mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
Inspector: hide the selector tab for non-widgets
This commit is contained in:
parent
9a84d8a261
commit
8a8c6c0722
@ -68,7 +68,10 @@ gtk_inspector_selector_set_object (GtkInspectorSelector *oh,
|
|||||||
gtk_tree_store_clear (oh->priv->model);
|
gtk_tree_store_clear (oh->priv->model);
|
||||||
|
|
||||||
if (!GTK_IS_WIDGET (object))
|
if (!GTK_IS_WIDGET (object))
|
||||||
return;
|
{
|
||||||
|
gtk_widget_hide (GTK_WIDGET (oh));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
widget = GTK_WIDGET (object);
|
widget = GTK_WIDGET (object);
|
||||||
|
|
||||||
@ -89,6 +92,8 @@ gtk_inspector_selector_set_object (GtkInspectorSelector *oh,
|
|||||||
|
|
||||||
gtk_tree_view_expand_all (oh->priv->tree);
|
gtk_tree_view_expand_all (oh->priv->tree);
|
||||||
gtk_tree_selection_select_iter (gtk_tree_view_get_selection (oh->priv->tree), &iter);
|
gtk_tree_selection_select_iter (gtk_tree_view_get_selection (oh->priv->tree), &iter);
|
||||||
|
|
||||||
|
gtk_widget_show (GTK_WIDGET (oh));
|
||||||
}
|
}
|
||||||
|
|
||||||
// vim: set et sw=2 ts=2:
|
// vim: set et sw=2 ts=2:
|
||||||
|
Loading…
Reference in New Issue
Block a user