[gtk/matthiasc/for-master: 16/16] inspector: Make picking objects show them



commit 9b647a47d1a012ba73d54b1daa9aa111de17ee09
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jul 20 17:30:16 2020 -0400

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]