From b08d9cfb567ad6944182a8f09015f1b648bb2ac6 Mon Sep 17 00:00:00 2001 From: RichardHitt Date: Wed, 1 May 2013 12:12:05 -0700 Subject: Fix warning about g_type_init() in dbus/example.c --- src/common/dbus/example.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common') diff --git a/src/common/dbus/example.c b/src/common/dbus/example.c index b78bb004..ee1833d3 100644 --- a/src/common/dbus/example.c +++ b/src/common/dbus/example.c @@ -102,7 +102,9 @@ main (int argc, char **argv) gchar *path; GError *error = NULL; +#if ! GLIB_CHECK_VERSION (2, 36, 0) g_type_init (); +#endif connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error); if (connection == NULL) { -- cgit 1.4.1