diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-08-30 14:56:28 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-08-30 14:56:28 +0900 |
commit | 54d44a9bd04cfbed8426614fc69c027a46f41a14 (patch) | |
tree | 34bdf65a6e8d5d6d4016154345d1d803ba0da379 /tests/testtooltips.c | |
parent | b3b22c31b997fb85b3319b392a1a69407703184c (diff) | |
parent | 67194ed77b153eb5a7eb6c596f3c20e274b7787a (diff) | |
download | gtk+-native-layout.tar.gz |
Merge branch 'master' into native-layoutnative-layout
Conflicts:
gtk/gtkplug.c
gtk/gtkscrolledwindow.c
Diffstat (limited to 'tests/testtooltips.c')
-rw-r--r-- | tests/testtooltips.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/testtooltips.c b/tests/testtooltips.c index 8aee9583e6..c228c23241 100644 --- a/tests/testtooltips.c +++ b/tests/testtooltips.c @@ -209,16 +209,19 @@ drawing_area_expose (GtkWidget *drawing_area, GdkEventExpose *event, gpointer data) { + GtkAllocation allocation; + GdkWindow *window; gint i; cairo_t *cr; - gdk_window_get_pointer (drawing_area->window, NULL, NULL, NULL); + window = gtk_widget_get_window (drawing_area); - cr = gdk_cairo_create (drawing_area->window); + gdk_window_get_pointer (window, NULL, NULL, NULL); - cairo_rectangle (cr, 0, 0, - drawing_area->allocation.width, - drawing_area->allocation.height); + cr = gdk_cairo_create (window); + + gtk_widget_get_allocation (drawing_area, &allocation); + cairo_rectangle (cr, 0, 0, allocation.width, allocation.height); cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); cairo_fill (cr); |