Skip to content
Snippets Groups Projects
Commit c3fe62aa authored by Tristan Matthews's avatar Tristan Matthews
Browse files

gnome: remove another deprecated g_type_init call

parent 06405393
No related branches found
No related tags found
No related merge requests found
...@@ -642,8 +642,6 @@ gboolean dbus_connect(GError **error, SFLPhoneClient *client) ...@@ -642,8 +642,6 @@ gboolean dbus_connect(GError **error, SFLPhoneClient *client)
const char *configurationmanager_object_instance = "/org/sflphone/SFLphone/ConfigurationManager"; const char *configurationmanager_object_instance = "/org/sflphone/SFLphone/ConfigurationManager";
const char *configurationmanager_interface = "org.sflphone.SFLphone.ConfigurationManager"; const char *configurationmanager_interface = "org.sflphone.SFLphone.ConfigurationManager";
g_type_init();
DBusGConnection *connection = dbus_g_bus_get(DBUS_BUS_SESSION, error); DBusGConnection *connection = dbus_g_bus_get(DBUS_BUS_SESSION, error);
if (connection == NULL) { if (connection == NULL) {
g_warning("could not establish connection with session bus"); g_warning("could not establish connection with session bus");
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
START_TEST(test_dbus_connect) START_TEST(test_dbus_connect)
{ {
g_type_init();
GError *error = NULL; GError *error = NULL;
SFLPhoneClient *client = sflphone_client_new(); SFLPhoneClient *client = sflphone_client_new();
fail_unless(dbus_connect(&error, client) == TRUE, "dbus_connect () returns FALSE"); fail_unless(dbus_connect(&error, client) == TRUE, "dbus_connect () returns FALSE");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment