[gtk/gtk-3-24] gtk-demo: Use a default action in the infobars demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] gtk-demo: Use a default action in the infobars demo
- Date: Tue, 14 Jan 2020 05:31:20 +0000 (UTC)
commit cf31119bf425763030e9f8f9c23c339c2e175057
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 9 19:04:15 2020 -0500
gtk-demo: Use a default action in the infobars demo
This makes the question infobar activatable by clicking
anywhere in it.
demos/gtk-demo/infobar.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/demos/gtk-demo/infobar.c b/demos/gtk-demo/infobar.c
index bca0e31152..b7a8bcae8c 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_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_xalign (GTK_LABEL (label), 0);
gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label, FALSE, FALSE,
0);
+ 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 (button, "active", bar, "visible", G_BINDING_BIDIRECTIONAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]