From 9b647a47d1a012ba73d54b1daa9aa111de17ee09 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 20 Jul 2020 17:30:16 -0400 Subject: [PATCH] inspector: Make picking objects show them Changing the selection in the object tree is not a useful action if we are already in the object details. Most likely, a user who picks an object wants to inspect its details, so just always show them. Fixes: #1876 --- gtk/inspector/inspect-button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/inspector/inspect-button.c b/gtk/inspector/inspect-button.c index 46f780e797..ed5c2d3099 100644 --- a/gtk/inspector/inspect-button.c +++ b/gtk/inspector/inspect-button.c @@ -92,7 +92,7 @@ select_widget (GtkInspectorWindow *iw, { GtkInspectorObjectTree *wt = GTK_INSPECTOR_OBJECT_TREE (iw->object_tree); - gtk_inspector_object_tree_select_object (wt, G_OBJECT (widget)); + gtk_inspector_object_tree_activate_object (wt, G_OBJECT (widget)); } static void