diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-01-09 19:01:59 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-01-14 00:05:23 -0500 |
commit | 794ee0b8c0ab02eff6f54701ee955be734ef2a9d (patch) | |
tree | 10962682b1e3b61b7edb7164dea279761f3408a2 | |
parent | 2b7de841a9e044de7650ecebb9667daf1e15eee0 (diff) | |
download | gtk+-794ee0b8c0ab02eff6f54701ee955be734ef2a9d.tar.gz |
gtk-demo: Use a default action in the infobars demo
This makes the question infobar activatable by clicking
anywhere in it.
-rw-r--r-- | demos/gtk-demo/infobar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/gtk-demo/infobar.c b/demos/gtk-demo/infobar.c index a78f2d9f61..e70e162334 100644 --- a/demos/gtk-demo/infobar.c +++ b/demos/gtk-demo/infobar.c @@ -97,6 +97,7 @@ do_infobar (GtkWidget *do_widget) gtk_label_set_wrap (GTK_LABEL (label), TRUE); gtk_label_set_xalign (GTK_LABEL (label), 0); gtk_container_add (GTK_CONTAINER (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label); + gtk_info_bar_set_default_response (GTK_INFO_BAR (bar), GTK_RESPONSE_OK); button = gtk_toggle_button_new_with_label ("Question"); g_object_bind_property (bar, "revealed", button, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); |