From ebed51d51b557112de26ed3f3750cb3fa3c3d975 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 May 2011 16:39:23 +0000 Subject: Fix compilation with ancient versions of Gtk2 (fix ticket #655). git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3299 a436a847-0d15-0410-975c-d299462d15a1 --- src/gtk2_in_qt4.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/gtk2_in_qt4.cpp b/src/gtk2_in_qt4.cpp index 844e45b..2d18df7 100644 --- a/src/gtk2_in_qt4.cpp +++ b/src/gtk2_in_qt4.cpp @@ -51,9 +51,13 @@ suil_wrap(const char* host_type_uri, QX11EmbedContainer* const wrapper = new QX11EmbedContainer(); wrapper->embedClient(gtk_plug_get_id(GTK_PLUG(plug))); +#ifdef SUIL_OLD_GTK + wrapper->resize(widget->allocation.width, widget->allocation.height); +#else GtkAllocation alloc; gtk_widget_get_allocation(widget, &alloc); wrapper->resize(alloc.width, alloc.height); +#endif instance->host_widget = wrapper; -- cgit v1.2.1