summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-02 16:13:15 +0000
committerDavid Robillard <d@drobilla.net>2011-06-02 16:13:15 +0000
commitc69624e0e2b255b8a428974f851c81dd7899ce3c (patch)
tree74258c88869b436bcfa8e3398c83cad23b5821b7 /src
parent39fe5f8872f656026776f3092751bcac251e7b6c (diff)
downloadsuil-c69624e0e2b255b8a428974f851c81dd7899ce3c.tar.gz
suil-c69624e0e2b255b8a428974f851c81dd7899ce3c.tar.bz2
suil-c69624e0e2b255b8a428974f851c81dd7899ce3c.zip
Call gtk_init after loading Gtk2 library when wrapped in Qt4 hosts.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3348 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/gtk2_in_qt4.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gtk2_in_qt4.cpp b/src/gtk2_in_qt4.cpp
index 585d1d5..9dd9cc6 100644
--- a/src/gtk2_in_qt4.cpp
+++ b/src/gtk2_in_qt4.cpp
@@ -43,8 +43,9 @@ suil_wrap_init(SuilHost* host,
if (!host->gtk_lib) {
fprintf(stderr, "Failed to open %s (%s)\n",
SUIL_GTK2_LIB_NAME, dlerror());
+ return 1;
}
- return 1;
+ gtk_init(NULL, NULL);
}
return 0;