[gtk+/widget-padding: 69/71] Adapt to widget->allocation becoming private
- From: Havoc Pennington <hp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/widget-padding: 69/71] Adapt to widget->allocation becoming private
- Date: Sat, 11 Sep 2010 23:58:58 +0000 (UTC)
commit cbfbe68eca5835f8b0151ca77f01ab8b370c50d8
Author: Havoc Pennington <hp pobox com>
Date: Sat Sep 11 17:10:54 2010 -0400
Adapt to widget->allocation becoming private
tests/testadjustsize.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/tests/testadjustsize.c b/tests/testadjustsize.c
index 2699211..8fa7424 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]