#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;
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,
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);
_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);
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)
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);
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);
}