inspector: Fix showing of menus

We were hitting an assertion in some leftover
code that assumed property editors are popovers.
This commit is contained in:
Matthias Clasen 2019-05-02 02:05:46 +00:00
parent 78d254370c
commit c7df0c907a

View File

@ -251,11 +251,6 @@ show_object (GtkInspectorPropEditor *editor,
const gchar *tab,
GtkInspectorPropList *pl)
{
GtkWidget *popover;
popover = gtk_widget_get_ancestor (GTK_WIDGET (editor), GTK_TYPE_POPOVER);
gtk_widget_hide (popover);
g_object_set_data_full (G_OBJECT (pl->priv->object_tree), "next-tab", g_strdup (tab), g_free);
gtk_inspector_object_tree_select_object (pl->priv->object_tree, object);
gtk_inspector_object_tree_activate_object (pl->priv->object_tree, object);