GNOME Bugzilla – Bug 590517
Failed to correctly handle GtkOrientable of GtkBox
Last modified: 2010-12-16 08:27:31 UTC
Please describe the problem: GtkOrientable is provided in gtk+ 2.16+ only, but glade tried to apply this to older glade files as well even when the preferred gtk+ version number is specified to 2.12. Glade files created with older versions cannot be correctly loaded and GtkVBoxes all become horizontal because glade tried to apply horizontal orientation for them. Steps to reproduce: 1. Open the attached file with glade 3.6.3. Actual results: Expected results: Does this happen every time? Yes Other information:
Created attachment 139726 [details] All GtkBoxes became horizontally orientated when loaded with glade 3.6.3.
Currently the behavior you are witnessing is due to the fact that GTK+ misadvertizes the default property value. See bug 587256 for more details. err, and the announcement here ;-) http://mail.gnome.org/archives/gnome-announce-list/2009-June/msg00063.html > Glade files created with older versions cannot be correctly > loaded and GtkVBoxes all become horizontal because glade tried to apply > horizontal orientation for them Im not sure I understand, could this translate to: vboxes appear horizontal when running new Glade/GTK+ on an older Glade file ? If thats the case - its because your old Glade files have thier vboxes set to horizontal by virtue of the default property in GtkBox. setting them vertical will cause the orientation to be saved in the Glade file and then the Glade file will represent a vertically oriented vbox; with a property incompatible with GTK+ 2.12. With GTK+ fixed, then the meaning of a missing "orientation" will be "vertical" for vboxes - allowing Glade to save vboxes in a way that they both look vertical to the user in Glade - *and* can be loaded with GTK+ 2.12 . Currently Im marking this to block on the real bug, not sure why, soon I will come back and mark it a duplicate.
This has been fixed in master a while ago. The approach we took is to disable the "orientable" property alltogether for any Gtk[VH]Classes, classes such as GtkBox itself will allow configuration of orientation (when we release a version with that class exposed).