diff options
author | Eion Robb <eion@robbmob.com> | 2010-01-28 04:27:21 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2010-01-28 04:27:21 +0300 |
commit | b3ccb24a6354073f03ad443f394bc2d2e1d9d503 (patch) | |
tree | fe211021dc09203b1c7182f804e3c1605e838c55 /skype_messaging_dbus.c | |
parent | 8f05af92f5ea7053892614f6ea7c024ac17dac01 (diff) |
Improve dbus connection. Thanks to hrubi13 for a patch
Diffstat (limited to 'skype_messaging_dbus.c')
-rw-r--r-- | skype_messaging_dbus.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/skype_messaging_dbus.c b/skype_messaging_dbus.c index 469705a..1dfc35c 100644 --- a/skype_messaging_dbus.c +++ b/skype_messaging_dbus.c @@ -75,12 +75,16 @@ skype_connect() if (proxy == NULL) { - proxy = dbus_g_proxy_new_for_name (connection, + proxy = dbus_g_proxy_new_for_name_owner (connection, "com.Skype.API", "/com/Skype", - "com.Skype.API"); - if (proxy == NULL) + "com.Skype.API", + &error); + if (proxy == NULL && error != NULL) + { + skype_debug_warning("skype_dbus", "%s\n", error->message); return FALSE; + } vtable.message_function = &skype_notify_handler; dbus_connection_register_object_path(dbus_g_connection_get_connection(connection), "/com/Skype/Client", &vtable, NULL); |