inspector: Show the widget tree when picking

Makes more sense that way.
This commit is contained in:
Matthias Clasen 2014-06-04 20:12:42 -04:00
parent 1c232066b8
commit 205e8f7e58
4 changed files with 5 additions and 1 deletions

View File

@ -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));

View File

@ -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);

View File

@ -41,6 +41,7 @@ typedef struct
{
GtkWindow parent;
GtkWidget *top_notebook;
GtkWidget *widget_tree;
GtkWidget *prop_list;
GtkWidget *child_prop_list;

View File

@ -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>