From c69624e0e2b255b8a428974f851c81dd7899ce3c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 2 Jun 2011 16:13:15 +0000 Subject: 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 --- src/gtk2_in_qt4.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.1