summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-10-14 18:54:00 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-10-14 18:54:00 -0300
commitf855dae999b23594e9ae199ee78bdc4c38ca73c3 (patch)
tree51ca3186e643ce5a161a5f3fd8b7365118d41f93
parent157b3563f7f65e77d3c1284544149f08fa6ecde6 (diff)
downloadglade-f855dae999b23594e9ae199ee78bdc4c38ca73c3.tar.gz
GladeEditorProperty: properly show parentless objects in chooser
Closes issue #53 "Can't choose a FileChooserDialog for a FileChooserButton"
-rw-r--r--gladeui/glade-editor-property.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index f82ac0f0..cdaa5d8b 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -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)
{