From ee0dbab7bee4e0fde7c95e2351a39c06c7b68e6e Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 29 Oct 2007 16:43:19 +0200 Subject: [PATCH] Formating --- src/hildon-wrappers.c | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/src/hildon-wrappers.c b/src/hildon-wrappers.c index fd1b6d1..3f30537 100644 --- a/src/hildon-wrappers.c +++ b/src/hildon-wrappers.c @@ -10,8 +10,8 @@ #ifndef WITH_HILDONFM -GtkWidget *hildon_file_chooser_dialog_new(GtkWindow * parent, - GtkFileChooserAction action) +GtkWidget * +hildon_file_chooser_dialog_new(GtkWindow * parent, GtkFileChooserAction action) { GtkWidget *dialog; @@ -46,7 +46,8 @@ _sb_sid=0; return FALSE; } -GtkWidget *hildon_note_new_confirmation(GtkWidget *widget, const gchar *text) +GtkWidget * +hildon_note_new_confirmation(GtkWidget *widget, const gchar *text) { return gtk_message_dialog_new(widget, GTK_DIALOG_DESTROY_WITH_PARENT, @@ -54,7 +55,8 @@ return gtk_message_dialog_new(widget, GTK_BUTTONS_OK_CANCEL, text); } -void hildon_banner_show_information(GtkWidget *w, void *t, gchar *text) +void +hildon_banner_show_information(GtkWidget *w, void *t, gchar *text) { gtk_statusbar_pop(GTK_STATUSBAR(_status_bar), 0); gtk_statusbar_push(GTK_STATUSBAR(_status_bar), 0, text); @@ -63,7 +65,8 @@ if (_sb_sid!=0) _sb_sid=g_timeout_add(6000, status_bar_clear, NULL); } -GtkWidget *hildon_banner_show_progress(GtkWidget * widget, GtkProgressBar *bar, const gchar * text) +GtkWidget * +hildon_banner_show_progress(GtkWidget * widget, GtkProgressBar *bar, const gchar * text) { gtk_widget_show(_progress_item); gtk_progress_bar_set_text(_progress_item, text); @@ -71,7 +74,8 @@ hildon_banner_show_information(_status_bar, NULL, text); return NULL; } -void hildon_banner_set_fraction(GtkWidget * widget, gdouble fraction) +void +hildon_banner_set_fraction(GtkWidget * widget, gdouble fraction) { gtk_progress_bar_set_fraction(_progress_item, fraction); if (fraction<1.0) @@ -80,7 +84,8 @@ gtk_progress_bar_set_text(_progress_item, ""); gtk_progress_bar_set_fraction(_progress_item, 0.0); } -GtkWidget *hildon_banner_show_animation(GtkWidget *widget, const gchar *animation_name, const gchar *text) +GtkWidget * +hildon_banner_show_animation(GtkWidget *widget, const gchar *animation_name, const gchar *text) { hildon_banner_show_information(_status_bar, NULL, text); gtk_progress_bar_set_text(_progress_item, text); @@ -88,42 +93,50 @@ gtk_progress_bar_pulse(_progress_item); return NULL; } -GtkWidget *hildon_number_editor_new(gint min, gint max) +GtkWidget * +hildon_number_editor_new(gint min, gint max) { return gtk_spin_button_new_with_range(min, max, 1); } -gint hildon_number_editor_get_value(GtkWidget * w) +gint +hildon_number_editor_get_value(GtkWidget * w) { return gtk_spin_button_get_value_as_int(GTK_WIDGET(w)); } -void hildon_number_editor_set_value(GtkWidget * w, gint v) +void +hildon_number_editor_set_value(GtkWidget * w, gint v) { gtk_spin_button_set_value(w, v); } -void hildon_number_editor_set_range(GtkWidget * w, gint min, gint max) +void +hildon_number_editor_set_range(GtkWidget * w, gint min, gint max) { gtk_spin_button_set_range(w, min, max); } -GtkWidget *hildon_controlbar_new() +GtkWidget * +hildon_controlbar_new() { return gtk_hscale_new_with_range(1, 10, 1); } -gint hildon_controlbar_get_value(GtkWidget * w) +gint +hildon_controlbar_get_value(GtkWidget * w) { return gtk_range_get_value(w); } -void hildon_controlbar_set_value(GtkWidget * w, gint v) +void +hildon_controlbar_set_value(GtkWidget * w, gint v) { gtk_range_set_value(w, (gdouble)v); } -void hildon_controlbar_set_range(GtkWidget * w, gint min, gint max) +void +hildon_controlbar_set_range(GtkWidget * w, gint min, gint max) { gtk_range_set_range(w, (gdouble)min, (gdouble)max); } -- 2.39.5