diff options
author | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2020-09-19 14:30:27 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2020-09-19 14:30:27 -0300 |
commit | 89bf07f696044729bf299cdb6514fa7655d66a47 (patch) | |
tree | 02928bddb1fd2aa91a622c5fe8e749408ab782b5 /plugins | |
parent | cadacf6b8eb896344abf51743337ffc9c32500da (diff) |
GladeGtkGrid: fix tests
Fix glade_gtk_grid_add_child() return after adding child to avoid
adding it more than once.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtk+/glade-gtk-grid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gtk+/glade-gtk-grid.c b/plugins/gtk+/glade-gtk-grid.c index fc80d758..a940ae6d 100644 --- a/plugins/gtk+/glade-gtk-grid.c +++ b/plugins/gtk+/glade-gtk-grid.c @@ -306,12 +306,12 @@ glade_gtk_grid_add_child (GladeWidgetAdaptor *adaptor, { gtk_container_remove (GTK_CONTAINER (grid), child_widget); gtk_grid_attach (grid, GTK_WIDGET (child), x, y, 1, 1); - break; + return; } } } - else - gtk_container_add (GTK_CONTAINER (object), GTK_WIDGET (child)); + + gtk_container_add (GTK_CONTAINER (object), GTK_WIDGET (child)); glade_gtk_grid_refresh_placeholders (GTK_GRID (object), FALSE); } |