summaryrefslogtreecommitdiff
path: root/bus/test-matchrule.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/test-matchrule.c')
-rw-r--r--bus/test-matchrule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bus/test-matchrule.c b/bus/test-matchrule.c
index d2e2648c..d85fc90c 100644
--- a/bus/test-matchrule.c
+++ b/bus/test-matchrule.c
@@ -20,7 +20,9 @@ int
main(gint argc, gchar **argv)
{
BusMatchRule *rule, *rule1;
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
rule = bus_match_rule_new (" type='signal' , interface = 'org.freedesktop.IBus' ");
g_assert (rule->message_type == G_DBUS_MESSAGE_TYPE_SIGNAL);