| 64 |
64 |
| 65 void purple_init(void) |
65 void purple_init(void) |
| 66 { |
66 { |
| 67 GError *error = NULL; |
67 GError *error = NULL; |
| 68 |
68 |
| 69 g_type_init (); |
69 #if !GLIB_CHECK_VERSION(2, 36, 0) |
| |
70 /* GLib type system is automaticaly initialized since 2.36. */ |
| |
71 g_type_init(); |
| |
72 #endif |
| 70 |
73 |
| 71 bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error); |
74 bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error); |
| 72 if (!bus) |
75 if (!bus) |
| 73 lose_gerror ("Couldn't connect to session bus", error); |
76 lose_gerror ("Couldn't connect to session bus", error); |
| 74 |
77 |