Only redraw the real drawing area
authordanigm <dani@danigm.net>
Fri, 16 Apr 2010 19:21:27 +0000 (19:21 +0000)
committerdanigm <danigm@aa302d1f-72b1-406a-902b-8593ca2b2744>
Fri, 16 Apr 2010 19:21:27 +0000 (19:21 +0000)
From: danigm <dani@danigm.net>

git-svn-id: https://forja.rediris.es/svn/cusl4-tbo@118 aa302d1f-72b1-406a-902b-8593ca2b2744

src/ui-drawing.c

index 2d7b18a..3b65f49 100644 (file)
@@ -143,7 +143,7 @@ on_expose_cb (GtkWidget      *widget,
     cr = gdk_cairo_create(GTK_LAYOUT (widget)->bin_window);
 
     window = gtk_widget_get_parent_window (GTK_WIDGET (widget));
-    gdk_drawable_get_size (GDK_DRAWABLE (window), &DRAWING_W, &DRAWING_H);
+    gdk_drawable_get_size (GDK_DRAWABLE (GTK_LAYOUT (widget)->bin_window), &DRAWING_W, &DRAWING_H);
 
     cairo_set_source_rgb (cr, 0, 0, 0);
     cairo_rectangle (cr, 0, 0, DRAWING_W, DRAWING_H);