mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-06 03:02:30 +01:00
Fix warning about g_type_init() in dbus/example.c
This commit is contained in:
parent
1969db5f94
commit
b08d9cfb56
@ -102,7 +102,9 @@ main (int argc, char **argv)
|
|||||||
gchar *path;
|
gchar *path;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
|
#if ! GLIB_CHECK_VERSION (2, 36, 0)
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
|
#endif
|
||||||
|
|
||||||
connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
|
connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
|
||||||
if (connection == NULL) {
|
if (connection == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user