From 8697324e07a8182f5ce47fece1c952560a84301d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 11 Mar 2010 10:38:53 +0000 Subject: [PATCH] tests: don't use Gtk+ 2.18 API for no good reason The rest of the code directly uses widget->allocation as well, so no point in using the new API in other places. --- tests/icles/test-xoverlay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/icles/test-xoverlay.c b/tests/icles/test-xoverlay.c index b1dc239466..684470760e 100644 --- a/tests/icles/test-xoverlay.c +++ b/tests/icles/test-xoverlay.c @@ -75,7 +75,8 @@ handle_resize_cb (GtkWidget * widget, GdkEventConfigure * event, { GtkAllocation allocation; - gtk_widget_get_allocation (widget, &allocation); + allocation = widget->allocation; + if (verbose) { g_print ("resize(%p): %dx%d\n", widget, allocation.width, allocation.height);