mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue