[libegg/spread-table-dnd: 9/78] Allocate children at the proper location in the case we are not a no-window widget.



commit 5961a55a3ef933d1ce59bb41bacd40836b486202
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sat Mar 12 19:27:56 2011 +0900

    Allocate children at the proper location in the case we are not a no-window widget.

 libegg/spreadtable/eggspreadtable.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libegg/spreadtable/eggspreadtable.c b/libegg/spreadtable/eggspreadtable.c
index 6f191c8..f965551 100644
--- a/libegg/spreadtable/eggspreadtable.c
+++ b/libegg/spreadtable/eggspreadtable.c
@@ -753,6 +753,12 @@ allocate_child (EggSpreadTable *table,
 
   gtk_widget_get_allocation (GTK_WIDGET (table), &widget_allocation);
 
+  if (gtk_widget_get_has_window (GTK_WIDGET (table)))
+    {
+      widget_allocation.x = 0;
+      widget_allocation.y = 0;
+    }
+
   if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
     {
       child_allocation.x      = widget_allocation.x + item_offset;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]