tWidgets that span more than one row or column in a GtkTable are now sized properly under Win32. - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit 20317b21645411bd9e3a83c822d2a59499631cb7
parent ca392c09d0ad9ec99575b1c1f868087c880b72f9
Author: Ben Webb 
Date:   Sat, 31 Aug 2002 17:53:47 +0000

Widgets that span more than one row or column in a GtkTable are now sized
properly under Win32.


Diffstat:
  M src/gtkport/gtkport.c               |       6 ++++++

1 file changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c
t@@ -3036,9 +3036,15 @@ void gtk_table_set_size(GtkWidget *widget, GtkAllocation *allocation)
     }
     for (i = child->left_attach; i < child->right_attach; i++) {
       child_alloc.width += table->cols[i].allocation;
+      if (i < child->right_attach - 1) {
+        child_alloc.width += table->cols[i].spacing;
+      }
     }
     for (i = child->top_attach; i < child->bottom_attach; i++) {
       child_alloc.height += table->rows[i].allocation;
+      if (i < child->bottom_attach - 1) {
+        child_alloc.height += table->rows[i].spacing;
+      }
     }
     gtk_widget_set_size(child->widget, &child_alloc);
   }