diff options
author | Tristan Van Berkom <tristan@upstairslabs.com> | 2014-11-05 20:08:32 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan@upstairslabs.com> | 2014-11-07 17:20:22 +0900 |
commit | c59573813e1739f0b229121202ed0e405f4fd4cd (patch) | |
tree | 328a67e5a2118efea1e83ef2003c97a472a735f1 /plugins/gtk+/glade-gtk-image.h | |
parent | dfccf4b692c72208add5cf19bc854a576988e95a (diff) | |
download | glade-c59573813e1739f0b229121202ed0e405f4fd4cd.tar.gz |
GtkHeaderBar: Improving child add/remove/replace support
o Removed misguided code block in ->add_child()
The said code block assumes that any placeholder being added
should be added at the end 'if' anything is at the start.
This big block of code makes things seem to work if you happened
to save the file with one placeholder on each side (sneaky), however
just breaks down when you save more than one placeholder at the
beginning.
In any case, the number of placeholders should be synchronized to
the "start-size" / "end-size" properties (minus the number of real
children which should be placed according to their "position"
packing property).
o Removed destructive calls to gtk_widget_destroy(), widgets are
not destroyed unless the project is finalized or the final reference
to them is part of a GladeCommand that is being cleared from the
undo/redo stack
o Ensure that the replacement placeholder added when ->remove_child()
is called has the special child type set if it's the title widget
(not sure if this is needed, but it doesnt hurt).
Diffstat (limited to 'plugins/gtk+/glade-gtk-image.h')
0 files changed, 0 insertions, 0 deletions