From ce949c0f25e017870f63077bf52630036574c682 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 13 May 2020 19:21:50 -0400 Subject: [PATCH] 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. --- demos/widget-factory/widget-factory.c | 4 +++- demos/widget-factory/widget-factory.ui | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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 + 0