diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-11-17 17:04:07 +0000 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-11-17 12:36:20 -0500 |
commit | 341624337f19078e946622427634e0b54a54aac3 (patch) | |
tree | 49a2e0684917fa3b37771f04391fdfcc3269ca5f /python | |
parent | 33c09394dd965de82e76323160ee563ee033f9fb (diff) |
Use tp_dbus_daemon_dup instead of tp_get_bus
Diffstat (limited to 'python')
-rw-r--r-- | python/pytpfarsight.override | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/pytpfarsight.override b/python/pytpfarsight.override index 279358a..0935835 100644 --- a/python/pytpfarsight.override +++ b/python/pytpfarsight.override @@ -37,11 +37,10 @@ _wrap_tf_channel_new(PyGObject *self, PyObject *args, PyObject *kwargs) kwlist, &busname, &connection_path, &channel_path)) return -1; - dbus = tp_dbus_daemon_new (tp_get_bus ()); - /* FIXME Throw an exception */ + dbus = tp_dbus_daemon_dup (&error); if (dbus == NULL) { - PyErr_SetString (PyExc_RuntimeError, "Failed to connect to D-Bus"); + pyg_error_check (&error); goto out; } |