Hi,
This does not work as I expected it to do:
win = gtk_dialog_new_with_buttons (...);
gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (win)->vbox), 10);
This does:
win = gtk_dialog_new_with_buttons (...);
vbox = gtk_vbox_new (TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (win)->vbox), vbox, TRUE, TRUE, 0);
Question is, is this a bug in GtkDialog or elsewhere in GTK or were my
expectations wrong?
Why do I have to add a second vbox inside the dialog vbox to be able to set
a border? The first snippet doesn't do anything, nomatter if I set the
second argument to gtk_container_set_border_width() to 0 or 10 or 10000.
Regards,
Filip
--
"AIX was NOT fully SAA/SNA compliant, since Unix had its own standards that
conflicted with IBM's. Either they'd have a non-standard unix, or a non-IBM
os. (They kind of wound up with both, actually.)"
-- Rob Landley
Attachment:
pgpkrxXPpHM6X.pgp
Description: PGP signature