diff options
author | Javier Jardón <jjardon@gnome.org> | 2012-02-27 11:07:08 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2012-02-27 17:06:11 +0000 |
commit | f8ca9a86b2db668f7f36a2a95a3fae739a3f6257 (patch) | |
tree | 7ab09ba52334583b8b3489a7ab8bc21ec8e53a74 | |
parent | 8408819d613490ee710edd0ab63fa06a2c663db1 (diff) | |
download | gtk+-f8ca9a86b2db668f7f36a2a95a3fae739a3f6257.tar.gz |
demos/gtk-demo/infobar.c: Do not use gtk_dialog_run()
-rw-r--r-- | demos/gtk-demo/infobar.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/demos/gtk-demo/infobar.c b/demos/gtk-demo/infobar.c index d71785205c..0cb58e66b1 100644 --- a/demos/gtk-demo/infobar.c +++ b/demos/gtk-demo/infobar.c @@ -21,8 +21,13 @@ on_bar_response (GtkInfoBar *info_bar, "You clicked a button on an info bar"); gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "Your response has id %d", response_id); - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); + + g_signal_connect_swapped (dialog, + "response", + G_CALLBACK (gtk_widget_destroy), + dialog); + + gtk_widget_show_all (dialog); } GtkWidget * |