aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-03 21:08:29 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-08 20:33:27 +0800
commita8133af0231b5b7000f6f671215f841d68fb6bb4 (patch)
treee7cf8904a1125ff4fbabc899c05ff306accdca2a /libempathy-gtk
parentb018a119c5a7f43eb5a407ed34d90681673c3f78 (diff)
downloadgsoc2013-empathy-a8133af0231b5b7000f6f671215f841d68fb6bb4.tar
gsoc2013-empathy-a8133af0231b5b7000f6f671215f841d68fb6bb4.tar.gz
gsoc2013-empathy-a8133af0231b5b7000f6f671215f841d68fb6bb4.tar.bz2
gsoc2013-empathy-a8133af0231b5b7000f6f671215f841d68fb6bb4.tar.lz
gsoc2013-empathy-a8133af0231b5b7000f6f671215f841d68fb6bb4.tar.xz
gsoc2013-empathy-a8133af0231b5b7000f6f671215f841d68fb6bb4.tar.zst
gsoc2013-empathy-a8133af0231b5b7000f6f671215f841d68fb6bb4.zip
contact-search-dialog: stop using EmpathyContactManager
https://bugzilla.gnome.org/show_bug.cgi?id=663327
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-search-dialog.c14
1 files changed, 4 insertions, 10 deletions
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 <telepathy-glib/telepathy-glib.h>
-#include <libempathy/empathy-contact-manager.h>
#include <libempathy/empathy-tp-contact-factory.h>
+#include <libempathy/empathy-utils.h>
#include <libempathy-gtk/empathy-account-chooser.h>
#include <libempathy-gtk/empathy-cell-renderer-text.h>
@@ -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