summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gtk2_in_qt4.cpp4
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;