GNOME Bugzilla – Bug 586062
GtkMessageDialog's vbox isn't aligned with image
Last modified: 2010-06-22 18:19:08 UTC
The screenshot says it all. The left hand-side is using a GtkMessageDialog, the right hand-side using a normal GtkDialog.
Created attachment 136786 [details] Screenshot-2.png
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.
Except that I'm using GtkBuilder, and (dialog)->label->parent isn't really possible there.
Created attachment 136828 [details] passkey-dialogue.ui
*** This bug has been marked as a duplicate of bug 328069 ***