[gtk/wip/baedert/for-master: 47/51] inspector: Make controller rows activatable
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 47/51] inspector: Make controller rows activatable
- Date: Fri, 1 Nov 2019 13:07:21 +0000 (UTC)
commit b27b4825b4b8936ca688eac15521f057a067a652
Author: Timm Bäder <mail baedert org>
Date: Sat Oct 26 18:08:43 2019 +0200
inspector: Make controller rows activatable
The code for handling activation is already there.
gtk/inspector/controllers.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/inspector/controllers.c b/gtk/inspector/controllers.c
index deea5b866f..7a394ed2f7 100644
--- a/gtk/inspector/controllers.c
+++ b/gtk/inspector/controllers.c
@@ -58,7 +58,7 @@ row_activated (GtkListBox *box,
GtkInspectorControllers *sl)
{
GObject *controller;
-
+
controller = G_OBJECT (g_object_get_data (G_OBJECT (row), "controller"));
gtk_inspector_object_tree_select_object (sl->priv->object_tree, controller);
}
@@ -120,7 +120,6 @@ create_controller_widget (gpointer item,
GtkWidget *combo;
row = gtk_list_box_row_new ();
- gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 40);
gtk_container_add (GTK_CONTAINER (row), box);
g_object_set (box, "margin", 10, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]