aboutsummaryrefslogtreecommitdiff
path: root/tests/client/menuchangestest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/client/menuchangestest.cpp')
-rw-r--r--tests/client/menuchangestest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/client/menuchangestest.cpp b/tests/client/menuchangestest.cpp
index 2015582..bc7dcbd 100644
--- a/tests/client/menuchangestest.cpp
+++ b/tests/client/menuchangestest.cpp
@@ -17,6 +17,10 @@
* Renato Araujo Oliveira Filho <renato@canonical.com>
*/
+extern "C" {
+#include <glib-object.h>
+}
+
#include "qdbusmenumodel.h"
#include "dbusmenuscript.h"
@@ -35,6 +39,7 @@ private:
private Q_SLOTS:
void initTestCase()
{
+ g_type_init();
Q_ASSERT(m_script.connect());
}