diff options
Diffstat (limited to 'examples/client/dbus-tubes/offerer.c')
-rw-r--r-- | examples/client/dbus-tubes/offerer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/client/dbus-tubes/offerer.c b/examples/client/dbus-tubes/offerer.c index 87ffbb9e0..baa61d0c5 100644 --- a/examples/client/dbus-tubes/offerer.c +++ b/examples/client/dbus-tubes/offerer.c @@ -179,7 +179,7 @@ int main (int argc, const char **argv) { - TpDBusDaemon *dbus; + TpSimpleClientFactory *factory; TpAccount *account; char *account_path; GError *error = NULL; @@ -191,11 +191,11 @@ main (int argc, if (argc != 3) g_error ("Usage: offerer gabble/jabber/ladygaga t-pain@example.com"); - dbus = tp_dbus_daemon_dup (&error); - g_assert_no_error (error); + factory = tp_simple_client_factory_new (NULL); account_path = g_strconcat (TP_ACCOUNT_OBJECT_PATH_BASE, argv[1], NULL); - account = tp_account_new (dbus, account_path, &error); + account = tp_simple_client_factory_ensure_account (factory, account_path, + NULL, &error); g_assert_no_error (error); g_free (account_path); @@ -233,6 +233,7 @@ main (int argc, g_object_unref (req); g_hash_table_unref (request); g_main_loop_unref (loop); + g_object_unref (factory); return 0; } |