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 586062 - GtkMessageDialog's vbox isn't aligned with image
GtkMessageDialog's vbox isn't aligned with image
Status: RESOLVED DUPLICATE of bug 328069
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on: 328069
Blocks:
 
 
Reported: 2009-06-16 22:18 UTC by Bastien Nocera
Modified: 2010-06-22 18:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot-2.png (24.18 KB, image/png)
2009-06-16 22:22 UTC, Bastien Nocera
Details
passkey-dialogue.ui (2.63 KB, text/plain)
2009-06-17 13:07 UTC, Bastien Nocera
Details

Description Bastien Nocera 2009-06-16 22:18:33 UTC
The screenshot says it all.

The left hand-side is using a GtkMessageDialog, the right hand-side using a normal GtkDialog.
Comment 1 Bastien Nocera 2009-06-16 22:22:28 UTC
Created attachment 136786 [details]
Screenshot-2.png
Comment 2 Christian Persch 2009-06-16 22:45:26 UTC
Actually the screenshot does _not_ tell it all to me :)

Guessing the packing, on the left, you have

[GtkDialog::vbox]
  [GtkMessageDialog's internal hbox]
     [image]
     [vbox]
        [primary label]
        [secondary label]
  [extra content]

while on the right you have

[GtkDialog::vbox]
  [hbox] 
    [image]
    [vbox]
      [primary label]
      [secondary label]
      [extra content]

If you want to achieve the result on the right with a GtkMessageDialog, you'll need to pack the extra content in the message dialogue's internal vbox, which you can access as GTK_BOX (GTK_MESSAGE_DIALOG (dialog)->label->parent). Bug 328069 is about making this really officially supported.
Comment 3 Bastien Nocera 2009-06-17 13:05:18 UTC
Except that I'm using GtkBuilder, and (dialog)->label->parent isn't really possible there.
Comment 4 Bastien Nocera 2009-06-17 13:07:20 UTC
Created attachment 136828 [details]
passkey-dialogue.ui
Comment 5 Federico Mena Quintero 2010-06-22 18:19:08 UTC

*** This bug has been marked as a duplicate of bug 328069 ***