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.
This commit is contained in:
Tim-Philipp Müller 2010-03-11 10:38:53 +00:00
parent 90d55bfc7e
commit 8697324e07

View file

@ -75,7 +75,8 @@ handle_resize_cb (GtkWidget * widget, GdkEventConfigure * event,
{ {
GtkAllocation allocation; GtkAllocation allocation;
gtk_widget_get_allocation (widget, &allocation); allocation = widget->allocation;
if (verbose) { if (verbose) {
g_print ("resize(%p): %dx%d\n", widget, allocation.width, g_print ("resize(%p): %dx%d\n", widget, allocation.width,
allocation.height); allocation.height);