From: danigm <dani@danigm.net>
git-svn-id: https://forja.rediris.es/svn/cusl4-tbo@118
aa302d1f-72b1-406a-902b-
8593ca2b2744
cr = gdk_cairo_create(GTK_LAYOUT (widget)->bin_window);
window = gtk_widget_get_parent_window (GTK_WIDGET (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);
cairo_set_source_rgb (cr, 0, 0, 0);
cairo_rectangle (cr, 0, 0, DRAWING_W, DRAWING_H);