diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-11-04 16:44:26 +0100 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-12-13 13:26:53 +0100 |
commit | ef4bb34859576d60ee3bb9d80d16ea582dba8e72 (patch) | |
tree | 16c4e576cb7fc30842cdd88eab69d665ab4acfee | |
parent | bc9bd8a381c5162140d0418abb9f2cafe7e2d8a0 (diff) | |
download | telepathy-glib-ef4bb34859576d60ee3bb9d80d16ea582dba8e72.tar.gz |
TpSimple{Observer, Approver, Handler}: Do not use deprecated API doc examples
-rw-r--r-- | telepathy-glib/simple-approver.c | 4 | ||||
-rw-r--r-- | telepathy-glib/simple-handler.c | 6 | ||||
-rw-r--r-- | telepathy-glib/simple-observer.c | 6 |
3 files changed, 11 insertions, 5 deletions
diff --git a/telepathy-glib/simple-approver.c b/telepathy-glib/simple-approver.c index 9a890342d..7cd4cc7f1 100644 --- a/telepathy-glib/simple-approver.c +++ b/telepathy-glib/simple-approver.c @@ -44,8 +44,10 @@ * tp_add_dispatch_operation_context_accept (context); * } * - * client = tp_simple_approver_new (dbus, "MyApprover", FALSE, + * factory = tp_automatic_client_factory_new (dbus); + * client = tp_simple_approver_new_with_factory (factory, "MyApprover", FALSE, * my_add_dispatch_operation, user_data); + * g_object_unref (factory); * * tp_base_client_take_approver_filter (client, tp_asv_new ( * TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT, diff --git a/telepathy-glib/simple-handler.c b/telepathy-glib/simple-handler.c index 4a99b1434..1a36a1579 100644 --- a/telepathy-glib/simple-handler.c +++ b/telepathy-glib/simple-handler.c @@ -45,8 +45,10 @@ * tp_handle_channels_context_accept (context); * } * - * client = tp_simple_handler_new (dbus, FALSE, FALSE, "MyHandler", FALSE, - * my_handle_channels, user_data); + * factory = tp_automatic_client_factory_new (dbus); + * client = tp_simple_handler_new_with_factory (factory, FALSE, FALSE, + * "MyHandler", FALSE, my_handle_channels, user_data); + * g_object_unref (factory); * * tp_base_client_take_handler_filter (client, tp_asv_new ( * TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT, diff --git a/telepathy-glib/simple-observer.c b/telepathy-glib/simple-observer.c index 471e2066d..6dede060c 100644 --- a/telepathy-glib/simple-observer.c +++ b/telepathy-glib/simple-observer.c @@ -44,8 +44,10 @@ * tp_observe_channels_context_accept (context); * } * - * client = tp_simple_observer_new (dbus, TRUE, "MyObserver", FALSE, - * my_observe_channels, user_data); + * factory = tp_automatic_client_factory_new (dbus); + * client = tp_simple_observer_new_with_factory (factory, TRUE, "MyObserver", + * FALSE, my_observe_channels, user_data); + * g_object_unref (factory); * * tp_base_client_take_observer_filter (client, tp_asv_new ( * TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT, |