diff options
author | David Robillard <d@drobilla.net> | 2011-05-20 16:39:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-20 16:39:23 +0000 |
commit | ebed51d51b557112de26ed3f3750cb3fa3c3d975 (patch) | |
tree | 9b6f964e0a93fadc8a3294265aa9351fa4438aec /src | |
parent | a8d19d25195f59dd47b398a1e640106cc9012a1d (diff) | |
download | suil-ebed51d51b557112de26ed3f3750cb3fa3c3d975.tar.gz suil-ebed51d51b557112de26ed3f3750cb3fa3c3d975.tar.bz2 suil-ebed51d51b557112de26ed3f3750cb3fa3c3d975.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/gtk2_in_qt4.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |