diff options
Diffstat (limited to 'demos/gtk-demo/expander.c')
-rw-r--r-- | demos/gtk-demo/expander.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/demos/gtk-demo/expander.c b/demos/gtk-demo/expander.c index 44be2cf0bb..423a8131fe 100644 --- a/demos/gtk-demo/expander.c +++ b/demos/gtk-demo/expander.c @@ -17,21 +17,21 @@ do_expander (GtkWidget *do_widget) GtkWidget *vbox; GtkWidget *label; GtkWidget *expander; - + if (!window) { window = gtk_dialog_new_with_buttons ("GtkExpander", - GTK_WINDOW (do_widget), - 0, - GTK_STOCK_CLOSE, - GTK_RESPONSE_NONE, - NULL); + GTK_WINDOW (do_widget), + 0, + GTK_STOCK_CLOSE, + GTK_RESPONSE_NONE, + NULL); gtk_window_set_resizable (GTK_WINDOW (window), FALSE); g_signal_connect (window, "response", - G_CALLBACK (gtk_widget_destroy), NULL); + G_CALLBACK (gtk_widget_destroy), NULL); g_signal_connect (window, "destroy", - G_CALLBACK (gtk_widget_destroyed), &window); + G_CALLBACK (gtk_widget_destroyed), &window); content_area = gtk_dialog_get_content_area (GTK_DIALOG (window)); @@ -57,5 +57,3 @@ do_expander (GtkWidget *do_widget) return window; } - - |