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:
parent
90d55bfc7e
commit
8697324e07
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user