diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-10 00:41:37 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-15 16:28:42 +0800 |
commit | cd054461923a9c8c7d05fab2a5f7a88b9f2e6431 (patch) | |
tree | 78b90ac8e9e0b20833894525c334ffd5ddc8528a | |
parent | b92ad3740762d958364d4f9421095b088f0d845b (diff) | |
download | gsoc2013-empathy-cd054461923a9c8c7d05fab2a5f7a88b9f2e6431.tar gsoc2013-empathy-cd054461923a9c8c7d05fab2a5f7a88b9f2e6431.tar.gz gsoc2013-empathy-cd054461923a9c8c7d05fab2a5f7a88b9f2e6431.tar.bz2 gsoc2013-empathy-cd054461923a9c8c7d05fab2a5f7a88b9f2e6431.tar.lz gsoc2013-empathy-cd054461923a9c8c7d05fab2a5f7a88b9f2e6431.tar.xz gsoc2013-empathy-cd054461923a9c8c7d05fab2a5f7a88b9f2e6431.tar.zst gsoc2013-empathy-cd054461923a9c8c7d05fab2a5f7a88b9f2e6431.zip |
contact-list-store: remove EMPATHY_CONTACT_LIST_STORE_COL_IS_FAVOURITE
We don't need it any more.
-rw-r--r-- | libempathy-gtk/empathy-contact-list-store.c | 35 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-list-store.h | 1 |
2 files changed, 0 insertions, 36 deletions
diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c index 1ea5c8776..3ebeacb4a 100644 --- a/libempathy-gtk/empathy-contact-list-store.c +++ b/libempathy-gtk/empathy-contact-list-store.c @@ -837,7 +837,6 @@ contact_list_store_setup (EmpathyContactListStore *store) G_TYPE_BOOLEAN, /* Can make audio calls */ G_TYPE_BOOLEAN, /* Can make video calls */ EMPATHY_TYPE_CONTACT_LIST_FLAGS, /* Flags */ - G_TYPE_BOOLEAN, /* Is a favourite */ G_TYPE_BOOLEAN, /* Is a fake group */ }; @@ -932,25 +931,6 @@ contact_list_store_members_changed_cb (EmpathyContactList *list_iface, } static void -contact_list_store_change_contact_favourite_status (EmpathyContactListStore *store, - EmpathyContact *contact, - gboolean is_favourite) -{ - GList *iters, *l; - - iters = contact_list_store_find_contact (store, contact); - for (l = iters; l; l = l->next) { - gtk_tree_store_set (GTK_TREE_STORE (store), l->data, - EMPATHY_CONTACT_LIST_STORE_COL_IS_FAVOURITE, - is_favourite, - -1); - } - - g_list_foreach (iters, (GFunc) gtk_tree_iter_free, NULL); - g_list_free (iters); -} - -static void contact_list_store_favourites_changed_cb (EmpathyContactList *list_iface, EmpathyContact *contact, gboolean is_favourite, @@ -965,9 +945,6 @@ contact_list_store_favourites_changed_cb (EmpathyContactList *list_iface, empathy_contact_get_handle (contact), is_favourite ? "now" : "no longer"); - contact_list_store_change_contact_favourite_status (store, contact, - is_favourite); - contact_list_store_remove_contact (store, contact); contact_list_store_add_contact (store, contact); } @@ -1175,17 +1152,6 @@ contact_list_store_remove_contact (EmpathyContactListStore *store, g_list_free (iters); } -static gboolean -list_store_contact_is_favourite (EmpathyContactListStore *store, - EmpathyContact *contact) -{ - EmpathyContactListStorePriv *priv; - - priv = GET_PRIV (store); - - return empathy_contact_list_is_favourite (priv->list, contact); -} - static void contact_list_store_contact_update (EmpathyContactListStore *store, EmpathyContact *contact) @@ -1301,7 +1267,6 @@ contact_list_store_contact_update (EmpathyContactListStore *store, pixbuf_status = contact_list_store_get_contact_status_icon (store, contact); for (l = iters; l && set_model; l = l->next) { gtk_tree_store_set (GTK_TREE_STORE (store), l->data, - EMPATHY_CONTACT_LIST_STORE_COL_IS_FAVOURITE, list_store_contact_is_favourite (store, contact), EMPATHY_CONTACT_LIST_STORE_COL_ICON_STATUS, pixbuf_status, EMPATHY_CONTACT_LIST_STORE_COL_PIXBUF_AVATAR, pixbuf_avatar, EMPATHY_CONTACT_LIST_STORE_COL_PIXBUF_AVATAR_VISIBLE, show_avatar, diff --git a/libempathy-gtk/empathy-contact-list-store.h b/libempathy-gtk/empathy-contact-list-store.h index ec8aa3a13..a787b837f 100644 --- a/libempathy-gtk/empathy-contact-list-store.h +++ b/libempathy-gtk/empathy-contact-list-store.h @@ -63,7 +63,6 @@ typedef enum { EMPATHY_CONTACT_LIST_STORE_COL_CAN_AUDIO_CALL, EMPATHY_CONTACT_LIST_STORE_COL_CAN_VIDEO_CALL, EMPATHY_CONTACT_LIST_STORE_COL_FLAGS, - EMPATHY_CONTACT_LIST_STORE_COL_IS_FAVOURITE, EMPATHY_CONTACT_LIST_STORE_COL_IS_FAKE_GROUP, EMPATHY_CONTACT_LIST_STORE_COL_COUNT, } EmpathyContactListStoreCol; |