summaryrefslogtreecommitdiff
path: root/gladeui
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:56:41 -0300
commit70a9d4c29fffb60a60ebf7a89575c27a079731e8 (patch)
tree1b3a51b15ac090267743ec1fc2b056ff93ad92cd /gladeui
parentb4f12e73613700e344ac32a4c64cd8a067a59d1a (diff)
downloadglade-70a9d4c29fffb60a60ebf7a89575c27a079731e8.tar.gz
GladeEditorProperty: properly show parentless objects in chooser
Closes issue #53 "Can't choose a FileChooserDialog for a FileChooserButton"
Diffstat (limited to 'gladeui')
-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)
{