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 510736 - 'secondary' packing attribute for buttons is not taken into account
'secondary' packing attribute for buttons is not taken into account
Status: RESOLVED WONTFIX
Product: libglade
Classification: Deprecated
Component: gtk
2.6.x
Other All
: Normal normal
: ---
Assigned To: James Henstridge
James Henstridge
Depends on:
Blocks:
 
 
Reported: 2008-01-20 04:54 UTC by David Durrleman
Modified: 2011-07-19 23:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.41 KB, patch)
2009-02-20 05:24 UTC, Matthias Clasen
none Details | Review

Description David Durrleman 2008-01-20 04:54:46 UTC
Please describe the problem:
The 'secondary' packing attribute for buttons in dialog boxes does not seem to work. To make a button secondary, the only way seems to be by setting its response_id to -11, aka GTK_RESPONSE_HELP. I don't think that this is the wanted behaviour.

Steps to reproduce:
1. open glade
2. create a simple dialog box with two buttons, setting one of them as secondary, and setting the buttonbox layout style to 'end' (which should be the default)
3. save as test.glade
4. display the window, for example with python:
import gtk, gtk.glade
xml = gtk.glade.XML('test.glade')
win = xml.get_widget('dialog1')
win.connect('destroy', gtk.main_quit)
win.show_all()
gtk.main()
5. resize the resulting dialog box

Actual results:
The two buttons stay grouped at the right edge of the dialog box.

Expected results:
The button set as secondary should stay at the left edge of the dialog box.

Does this happen every time?
Yes.

Other information:
A workaround is to set the response id of the button to -11, aka GTK_RESPONSE_HELP, which seems to be treated specially. However, since the correct behaviour can only be obtained with undocumented magic (I spent many hours trying to find why the gnome dialogs were working and not mine), I think that this is not a satisfactory solution.
Comment 1 Matthias Clasen 2009-02-20 05:24:38 UTC
Created attachment 129122 [details] [review]
patch

Here is a patch that I put into Fedora to fix this problem
Comment 2 Fabio Durán Verdugo 2011-07-19 23:29:13 UTC
The GNOME Release team has officially deprecated libglade in favor of GtkBuilder[1]. So it's unlikely to get further development. I am closing bugs as WONTFIX. Please feel free to reopen the bugs in future if anyone takes the responsibility for active development.

[1] http://permalink.gmane.org/gmane.comp.gnome.devel.announce/28