diff options
Diffstat (limited to 'demos/gtk-demo/iconscroll.c')
-rw-r--r-- | demos/gtk-demo/iconscroll.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/demos/gtk-demo/iconscroll.c b/demos/gtk-demo/iconscroll.c index c1c8c8e3d2..fafd51930e 100644 --- a/demos/gtk-demo/iconscroll.c +++ b/demos/gtk-demo/iconscroll.c @@ -169,9 +169,9 @@ set_widget_type (int type) tick_cb = gtk_widget_add_tick_callback (window, scroll_cb, NULL, NULL); } -static void -next_clicked_cb (GtkButton *source, - gpointer user_data) +void +iconscroll_next_clicked_cb (GtkButton *source, + gpointer user_data) { int new_index; @@ -184,9 +184,9 @@ next_clicked_cb (GtkButton *source, set_widget_type (new_index); } -static void -prev_clicked_cb (GtkButton *source, - gpointer user_data) +void +iconscroll_prev_clicked_cb (GtkButton *source, + gpointer user_data) { int new_index; @@ -205,12 +205,7 @@ do_iconscroll (GtkWidget *do_widget) { GtkBuilder *builder; - builder = gtk_builder_new (); - gtk_builder_add_callback_symbols (builder, - "next_clicked_cb", G_CALLBACK (next_clicked_cb), - "prev_clicked_cb", G_CALLBACK (prev_clicked_cb), - NULL); - gtk_builder_add_from_resource (builder, "/iconscroll/iconscroll.ui", NULL); + builder = gtk_builder_new_from_resource ("/iconscroll/iconscroll.ui"); window = GTK_WIDGET (gtk_builder_get_object (builder, "window")); g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); |