[empathy] contact-list-store: stop tracking favourite contacts



commit 960bbbe0782c242601ae28fe8f4bfbf67e96e2f3
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Oct 14 16:43:59 2011 -0400

    contact-list-store: stop tracking favourite contacts
    
    https://bugzilla.gnome.org/show_bug.cgi?id=661489

 libempathy-gtk/empathy-contact-list-store.c |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c
index 6350a04..4f7398e 100644
--- a/libempathy-gtk/empathy-contact-list-store.c
+++ b/libempathy-gtk/empathy-contact-list-store.c
@@ -100,10 +100,6 @@ static void             contact_list_store_members_changed_cb        (EmpathyCon
 								      gchar                         *message,
 								      gboolean                       is_member,
 								      EmpathyContactListStore       *store);
-static void             contact_list_store_favourites_changed_cb     (EmpathyContactList            *list_iface,
-								      EmpathyContact                *contact,
-								      gboolean                       is_favourite,
-								      EmpathyContactListStore       *store);
 static void             contact_list_store_member_renamed_cb         (EmpathyContactList            *list_iface,
 								      EmpathyContact                *old_contact,
 								      EmpathyContact                *new_contact,
@@ -208,10 +204,6 @@ contact_list_store_iface_setup (gpointer user_data)
 			  G_CALLBACK (contact_list_store_members_changed_cb),
 			  store);
 	g_signal_connect (priv->list,
-			  "favourites-changed",
-			  G_CALLBACK (contact_list_store_favourites_changed_cb),
-			  store);
-	g_signal_connect (priv->list,
 			  "groups-changed",
 			  G_CALLBACK (contact_list_store_groups_changed_cb),
 			  store);
@@ -379,9 +371,6 @@ contact_list_store_dispose (GObject *object)
 					      G_CALLBACK (contact_list_store_members_changed_cb),
 					      object);
 	g_signal_handlers_disconnect_by_func (priv->list,
-					      G_CALLBACK (contact_list_store_favourites_changed_cb),
-					      object);
-	g_signal_handlers_disconnect_by_func (priv->list,
 					      G_CALLBACK (contact_list_store_groups_changed_cb),
 					      object);
 	g_object_unref (priv->list);
@@ -937,21 +926,6 @@ contact_list_store_members_changed_cb (EmpathyContactList      *list_iface,
 }
 
 static void
-contact_list_store_favourites_changed_cb (EmpathyContactList      *list_iface,
-					  EmpathyContact          *contact,
-					  gboolean                 is_favourite,
-					  EmpathyContactListStore *store)
-{
-	DEBUG ("Contact %s (%d) is %s a favourite",
-		empathy_contact_get_id (contact),
-		empathy_contact_get_handle (contact),
-		is_favourite ? "now" : "no longer");
-
-	contact_list_store_remove_contact (store, contact);
-	contact_list_store_add_contact (store, contact);
-}
-
-static void
 contact_list_store_member_renamed_cb (EmpathyContactList      *list_iface,
 				      EmpathyContact          *old_contact,
 				      EmpathyContact          *new_contact,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]