After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590517 - Failed to correctly handle GtkOrientable of GtkBox
Failed to correctly handle GtkOrientable of GtkBox
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
3.6.x
Other All
: Normal critical
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on: 587256
Blocks:
 
 
Reported: 2009-08-02 10:53 UTC by Hong Jen Yee
Modified: 2010-12-16 08:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
All GtkBoxes became horizontally orientated when loaded with glade 3.6.3. (25.42 KB, application/x-glade)
2009-08-02 10:55 UTC, Hong Jen Yee
Details

Description Hong Jen Yee 2009-08-02 10:53:22 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:
Comment 1 Hong Jen Yee 2009-08-02 10:55:59 UTC
Created attachment 139726 [details]
All GtkBoxes became horizontally orientated when loaded with glade 3.6.3.
Comment 2 Tristan Van Berkom 2009-08-02 22:43:53 UTC
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.

Comment 3 Tristan Van Berkom 2010-12-16 08:27:31 UTC
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).