comparison gtk/dw.c @ 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 c0a708e2cba3
children f6de197ecbe9
comparison
equal deleted inserted replaced
562:1b709b879181 563:d7c61755a57b
7918 */ 7918 */
7919 if(GTK_IS_TABLE(item) || (tmpitem && GTK_IS_TABLE(tmpitem))) 7919 if(GTK_IS_TABLE(item) || (tmpitem && GTK_IS_TABLE(tmpitem)))
7920 { 7920 {
7921 GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox"); 7921 GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox");
7922 7922
7923 /* NOTE: I left in the ability to pack boxes with a size,
7924 * this eliminates that by forcing the size to 0.
7925 */
7926 height = width = 0;
7927
7923 if(eventbox) 7928 if(eventbox)
7924 { 7929 {
7925 int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad"); 7930 int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad");
7926 gtk_container_add(GTK_CONTAINER(eventbox), item); 7931 gtk_container_add(GTK_CONTAINER(eventbox), item);
7927 gtk_container_border_width(GTK_CONTAINER(eventbox), boxpad); 7932 gtk_container_border_width(GTK_CONTAINER(eventbox), boxpad);
7961 GtkWidget *vbox = gtk_vbox_new(FALSE, 0); 7966 GtkWidget *vbox = gtk_vbox_new(FALSE, 0);
7962 7967
7963 if(GTK_IS_TABLE(item) || (tmpitem && GTK_IS_TABLE(tmpitem))) 7968 if(GTK_IS_TABLE(item) || (tmpitem && GTK_IS_TABLE(tmpitem)))
7964 { 7969 {
7965 GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox"); 7970 GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox");
7971
7972 /* NOTE: I left in the ability to pack boxes with a size,
7973 * this eliminates that by forcing the size to 0.
7974 */
7975 height = width = 0;
7966 7976
7967 if(eventbox) 7977 if(eventbox)
7968 { 7978 {
7969 int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad"); 7979 int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad");
7970 gtk_container_add(GTK_CONTAINER(eventbox), item); 7980 gtk_container_add(GTK_CONTAINER(eventbox), item);
9154 */ 9164 */
9155 if(GTK_IS_TABLE(item) || (tmpitem && GTK_IS_TABLE(tmpitem))) 9165 if(GTK_IS_TABLE(item) || (tmpitem && GTK_IS_TABLE(tmpitem)))
9156 { 9166 {
9157 GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox"); 9167 GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox");
9158 9168
9169 /* NOTE: I left in the ability to pack boxes with a size,
9170 * this eliminates that by forcing the size to 0.
9171 */
9172 height = width = 0;
9173
9159 if(eventbox) 9174 if(eventbox)
9160 { 9175 {
9161 int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad"); 9176 int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad");
9162 gtk_container_add(GTK_CONTAINER(eventbox), item); 9177 gtk_container_add(GTK_CONTAINER(eventbox), item);
9163 gtk_container_border_width(GTK_CONTAINER(eventbox), boxpad); 9178 gtk_container_border_width(GTK_CONTAINER(eventbox), boxpad);
9205 GtkWidget *vbox = gtk_vbox_new(FALSE, 0); 9220 GtkWidget *vbox = gtk_vbox_new(FALSE, 0);
9206 9221
9207 if(GTK_IS_TABLE(item) || (tmpitem && GTK_IS_TABLE(tmpitem))) 9222 if(GTK_IS_TABLE(item) || (tmpitem && GTK_IS_TABLE(tmpitem)))
9208 { 9223 {
9209 GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox"); 9224 GtkWidget *eventbox = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(item), "_dw_eventbox");
9225
9226 /* NOTE: I left in the ability to pack boxes with a size,
9227 * this eliminates that by forcing the size to 0.
9228 */
9229 height = width = 0;
9210 9230
9211 if(eventbox) 9231 if(eventbox)
9212 { 9232 {
9213 int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad"); 9233 int boxpad = (int)gtk_object_get_data(GTK_OBJECT(item), "_dw_boxpad");
9214 gtk_container_add(GTK_CONTAINER(eventbox), item); 9234 gtk_container_add(GTK_CONTAINER(eventbox), item);