From a8133af0231b5b7000f6f671215f841d68fb6bb4 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 3 Nov 2011 14:08:29 +0100 Subject: contact-search-dialog: stop using EmpathyContactManager https://bugzilla.gnome.org/show_bug.cgi?id=663327 --- libempathy-gtk/empathy-contact-search-dialog.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c index bfc42bbb0..1dfb942e2 100644 --- a/libempathy-gtk/empathy-contact-search-dialog.c +++ b/libempathy-gtk/empathy-contact-search-dialog.c @@ -28,8 +28,8 @@ #include -#include #include +#include #include #include @@ -142,7 +142,6 @@ on_get_contact_factory_get_from_id_cb (TpConnection *connection, gpointer user_data, GObject *object) { - EmpathyContactManager *manager = empathy_contact_manager_dup_singleton (); const gchar *message = user_data; if (error != NULL) @@ -151,8 +150,7 @@ on_get_contact_factory_get_from_id_cb (TpConnection *connection, return; } - empathy_contact_list_add (EMPATHY_CONTACT_LIST (manager), contact, - message); + empathy_contact_add_to_contact_list (contact, message); } static void @@ -342,15 +340,11 @@ check_request_message_available (EmpathyContactSearchDialog *self, TpConnection *conn) { EmpathyContactSearchDialogPrivate *priv = GET_PRIVATE (self); - EmpathyContactManager *manager = empathy_contact_manager_dup_singleton (); - EmpathyContactListFlags flags; - - flags = empathy_contact_manager_get_flags_for_connection (manager, conn); gtk_widget_set_visible (priv->message_window, - flags & EMPATHY_CONTACT_LIST_MESSAGE_ADD); + tp_connection_get_can_change_contact_list (conn)); gtk_widget_set_visible (priv->message_label, - flags & EMPATHY_CONTACT_LIST_MESSAGE_ADD); + tp_connection_get_can_change_contact_list (conn)); } static void -- cgit v1.2.3