forked from AuroraMiddleware/gtk
inspector: Show the widget tree when picking
Makes more sense that way.
This commit is contained in:
parent
1c232066b8
commit
205e8f7e58
@ -211,6 +211,8 @@ on_inspect_widget (GtkWidget *button,
|
||||
|
||||
iw->selected_widget = widget;
|
||||
|
||||
gtk_notebook_set_current_page (GTK_NOTEBOOK (iw->top_notebook), 0);
|
||||
|
||||
gtk_inspector_widget_tree_scan (GTK_INSPECTOR_WIDGET_TREE (iw->widget_tree),
|
||||
gtk_widget_get_toplevel (widget));
|
||||
|
||||
|
@ -184,6 +184,7 @@ gtk_inspector_window_class_init (GtkInspectorWindowClass *klass)
|
||||
|
||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/inspector/window.ui");
|
||||
|
||||
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, top_notebook);
|
||||
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, widget_tree);
|
||||
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, prop_list);
|
||||
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, child_prop_list);
|
||||
|
@ -41,6 +41,7 @@ typedef struct
|
||||
{
|
||||
GtkWindow parent;
|
||||
|
||||
GtkWidget *top_notebook;
|
||||
GtkWidget *widget_tree;
|
||||
GtkWidget *prop_list;
|
||||
GtkWidget *child_prop_list;
|
||||
|
@ -45,7 +45,7 @@
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkNotebook">
|
||||
<object class="GtkNotebook" id="top_notebook">
|
||||
<property name="visible">True</property>
|
||||
<property name="show-border">False</property>
|
||||
<child>
|
||||
|
Loading…
Reference in New Issue
Block a user