summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-13 19:21:50 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-13 19:22:31 -0400
commitce949c0f25e017870f63077bf52630036574c682 (patch)
treecd8a6e8baf659fc1c1b5d8fdb889d901c2710c90 /demos
parente9d966488beab002d8f36deddb7e872bdaa0e22b (diff)
downloadgtk+-ce949c0f25e017870f63077bf52630036574c682.tar.gz
widget-factory: Cosmetic changes
Change which rows in the listbox on page 2 are activatable, and trigger a dialog. It did not really make sense that this would happen when clicking on the spin button to focus it.
Diffstat (limited to 'demos')
-rw-r--r--demos/widget-factory/widget-factory.c4
-rw-r--r--demos/widget-factory/widget-factory.ui1
2 files changed, 4 insertions, 1 deletions
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 46cac4a989..34a594438e 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -1936,8 +1936,10 @@ activate (GApplication *app)
widget2 = (GtkWidget *)gtk_builder_get_object (builder, "listboxrow3image");
g_object_set_data (G_OBJECT (widget), "image", widget2);
- widget = (GtkWidget *)gtk_builder_get_object (builder, "listboxrow4");
widget2 = (GtkWidget *)gtk_builder_get_object (builder, "info_dialog");
+ widget = (GtkWidget *)gtk_builder_get_object (builder, "listboxrow7");
+ g_object_set_data (G_OBJECT (widget), "dialog", widget2);
+ widget = (GtkWidget *)gtk_builder_get_object (builder, "listboxrow8");
g_object_set_data (G_OBJECT (widget), "dialog", widget2);
widget = (GtkWidget *)gtk_builder_get_object (builder, "listboxrow5button");
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index f3321e1f6f..09c3aa5676 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -1759,6 +1759,7 @@ microphone-sensitivity-medium-symbolic</property>
</child>
<child>
<object class="GtkListBoxRow" id="listboxrow4">
+ <property name="activatable">0</property>
<child>
<object class="GtkBox">
<child>