[glade/glade-3-38] GladeEditorProperty: properly show parentless objects in chooser



commit f855dae999b23594e9ae199ee78bdc4c38ca73c3
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Wed Oct 14 18:54:00 2020 -0300

    GladeEditorProperty: properly show parentless objects in chooser
    
    Closes issue #53 "Can't choose a FileChooserDialog for a FileChooserButton"

 gladeui/glade-editor-property.c | 6 ++----
 1 file 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)
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]