[atomix] Fix GSEAL issue



commit d9c7b0190ef6bf51e71ea30f8ea094c44ea937ac
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Wed Mar 10 18:23:42 2010 +0100

    Fix GSEAL issue

 src/board.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/board.c b/src/board.c
index 97ea0b1..78efc04 100644
--- a/src/board.c
+++ b/src/board.c
@@ -142,6 +142,7 @@ static void create_background_floor (void)
   GnomeCanvasItem *item;
   int ca_width, ca_height;
   int width, height;
+  GtkAllocation allocation;
 
   quark = g_quark_from_static_string ("floor");
   theme_get_tile_size (board_theme, &tile_width, &tile_height);
@@ -171,8 +172,9 @@ static void create_background_floor (void)
   g_object_unref (pixbuf);
 
   /* center the whole thing */
-  ca_width = GTK_WIDGET (board_canvas)->allocation.width;
-  ca_height = GTK_WIDGET (board_canvas)->allocation.height;
+  gtk_widget_get_allocation (GTK_WIDGET (board_canvas), &allocation);
+  ca_width = allocation.width;
+  ca_height = allocation.height;
 
   width = tile_width * BGR_FLOOR_COLS;
   height = tile_height * BGR_FLOOR_ROWS;



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