Mercurial > dwindows
changeset 563:d7c61755a57b
Force boxes to size 0 on Unix to eliminate box packing confusion, I
originally intended to leave support in for packing boxes to sizes, but
it seems to be too confusing so I am disabling this support for now.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 29 Apr 2004 01:12:23 +0000 |
parents | 1b709b879181 |
children | 33b792d5c8ab |
files | gtk/dw.c |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk/dw.c Wed Apr 21 06:14:48 2004 +0000 +++ b/gtk/dw.c Thu Apr 29 01:12:23 2004 +0000 @@ -7920,6 +7920,11 @@ { GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox"); + /* NOTE: I left in the ability to pack boxes with a size, + * this eliminates that by forcing the size to 0. + */ + height = width = 0; + if(eventbox) { int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad"); @@ -7964,6 +7969,11 @@ { GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox"); + /* NOTE: I left in the ability to pack boxes with a size, + * this eliminates that by forcing the size to 0. + */ + height = width = 0; + if(eventbox) { int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad"); @@ -9156,6 +9166,11 @@ { GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox"); + /* NOTE: I left in the ability to pack boxes with a size, + * this eliminates that by forcing the size to 0. + */ + height = width = 0; + if(eventbox) { int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad"); @@ -9208,6 +9223,11 @@ { GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox"); + /* NOTE: I left in the ability to pack boxes with a size, + * this eliminates that by forcing the size to 0. + */ + height = width = 0; + if(eventbox) { int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad");