From 960bbbe0782c242601ae28fe8f4bfbf67e96e2f3 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 14 Oct 2011 16:43:59 -0400 Subject: 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 file changed, 26 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c index 6350a0483..4f7398e22 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, @@ -207,10 +203,6 @@ contact_list_store_iface_setup (gpointer user_data) "members-changed", 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), @@ -378,9 +370,6 @@ contact_list_store_dispose (GObject *object) g_signal_handlers_disconnect_by_func (priv->list, 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); @@ -936,21 +925,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, -- cgit v1.2.3