Commit 70a9d4c2 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte
Browse files

GladeEditorProperty: properly show parentless objects in chooser

Closes issue #53 "Can't choose a FileChooserDialog for a FileChooserButton"
parent b4f12e73
Pipeline #221409 passed with stages
in 4 minutes and 44 seconds
......@@ -204,9 +204,7 @@ glade_editor_property_commit_common (GladeEditorProperty *eprop,
if (glade_property_def_get_construct_only (priv->property_def))
{
gboolean focus_set = FALSE;
gtk_container_foreach (GTK_CONTAINER (priv->input),
deepest_child_grab_focus,
&focus_set);
deepest_child_grab_focus (priv->input, &focus_set);
}
}
......@@ -2951,7 +2949,7 @@ glade_eprop_object_populate_view_real (GtkTreeStore *model,
widget_name = glade_widget_get_display_name (widget);
if (parentless)
good_type = good_type && !GLADE_WIDGET_ADAPTOR_IS_TOPLEVEL (adaptor);
good_type = good_type && GLADE_WIDGET_ADAPTOR_IS_TOPLEVEL (adaptor);
if (good_type || has_decendant)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment