diff options
author | Havoc Pennington <hp@pobox.com> | 2010-09-11 17:10:54 -0400 |
---|---|---|
committer | Havoc Pennington <hp@pobox.com> | 2010-09-11 17:10:54 -0400 |
commit | cbfbe68eca5835f8b0151ca77f01ab8b370c50d8 (patch) | |
tree | aecf5a7fa9a0739d42407bac3faa295e8984edcd | |
parent | dd3f8cefeb386a34b170b200705dc482435efa84 (diff) | |
download | gtk+-cbfbe68eca5835f8b0151ca77f01ab8b370c50d8.tar.gz |
Adapt to widget->allocation becoming private
-rw-r--r-- | tests/testadjustsize.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/testadjustsize.c b/tests/testadjustsize.c index 2699211305..8fa7424921 100644 --- a/tests/testadjustsize.c +++ b/tests/testadjustsize.c @@ -72,15 +72,17 @@ on_expose_alignment (GtkWidget *widget, void *data) { cairo_t *cr; + GtkAllocation allocation; cr = gdk_cairo_create (event->window); cairo_set_source_rgb (cr, 1.0, 0.0, 0.0); + gtk_widget_get_allocation (widget, &allocation); cairo_rectangle (cr, - widget->allocation.x, - widget->allocation.y, - widget->allocation.width, - widget->allocation.height); + allocation.x, + allocation.y, + allocation.width, + allocation.height); cairo_fill (cr); cairo_destroy (cr); |