diff options
author | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2018-05-12 10:00:18 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2018-05-12 10:05:18 -0300 |
commit | 2d676673e46559c55681b68ee7848149dda0a780 (patch) | |
tree | 8fa432e7f840b96c015f70a2ac99a60762496b38 /gladeui | |
parent | 21b435fce5d9465943db8562b37568048ad0e308 (diff) | |
download | glade-2d676673e46559c55681b68ee7848149dda0a780.tar.gz |
GladeCommand: ignore special child types placeholders in add command.
GladeGtkWindow: mark titlebar placeholder as special child type.
Fix bug "Glade deletes all widgets when adding a Scrolled Window parent, but doesn't show it."
https://gitlab.gnome.org/GNOME/glade/issues/196
Diffstat (limited to 'gladeui')
-rw-r--r-- | gladeui/glade-command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gladeui/glade-command.c b/gladeui/glade-command.c index 25fc663d..78bd9385 100644 --- a/gladeui/glade-command.c +++ b/gladeui/glade-command.c @@ -1281,8 +1281,9 @@ glade_command_add (GList *widgets, { child = l->data; - /* Find a placeholder for this child */ - if (GLADE_IS_PLACEHOLDER (child) && + /* Find a placeholder for this child, ignore special child types */ + if (GLADE_IS_PLACEHOLDER (child) && + g_object_get_data (G_OBJECT (child), "special-child-type") == NULL && g_list_find (placeholders, child) == NULL) { placeholders = g_list_append (placeholders, child); |