diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-10-15 02:09:23 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-10-15 04:49:48 +0800 |
commit | 3e2f15590ee0d8e079566e2c6f00c536501c46ea (patch) | |
tree | f438ae1d777886ac3ba437a804c18d950bc13315 /libempathy-gtk/empathy-contact-menu.c | |
parent | 68fa80e30aa1ff0dc97dbd364a2870a1e3ee9b87 (diff) | |
download | gsoc2013-empathy-3e2f15590ee0d8e079566e2c6f00c536501c46ea.tar gsoc2013-empathy-3e2f15590ee0d8e079566e2c6f00c536501c46ea.tar.gz gsoc2013-empathy-3e2f15590ee0d8e079566e2c6f00c536501c46ea.tar.bz2 gsoc2013-empathy-3e2f15590ee0d8e079566e2c6f00c536501c46ea.tar.lz gsoc2013-empathy-3e2f15590ee0d8e079566e2c6f00c536501c46ea.tar.xz gsoc2013-empathy-3e2f15590ee0d8e079566e2c6f00c536501c46ea.tar.zst gsoc2013-empathy-3e2f15590ee0d8e079566e2c6f00c536501c46ea.zip |
remove unused EMPATHY_CONTACT_FEATURE_FAVOURITE
https://bugzilla.gnome.org/show_bug.cgi?id=661489
Diffstat (limited to 'libempathy-gtk/empathy-contact-menu.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-menu.c | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c index 030ab8290..07def6078 100644 --- a/libempathy-gtk/empathy-contact-menu.c +++ b/libempathy-gtk/empathy-contact-menu.c @@ -107,8 +107,7 @@ empathy_contact_menu_new (EmpathyContact *contact, /* Separator */ if (features & (EMPATHY_CONTACT_FEATURE_EDIT | - EMPATHY_CONTACT_FEATURE_INFO | - EMPATHY_CONTACT_FEATURE_FAVOURITE)) { + EMPATHY_CONTACT_FEATURE_INFO)) { item = gtk_separator_menu_item_new (); gtk_menu_shell_append (shell, item); gtk_widget_show (item); @@ -135,13 +134,6 @@ empathy_contact_menu_new (EmpathyContact *contact, gtk_widget_show (item); } - /* Favorite checkbox */ - if (features & EMPATHY_CONTACT_FEATURE_FAVOURITE) { - item = empathy_contact_favourite_menu_item_new (contact); - gtk_menu_shell_append (shell, item); - gtk_widget_show (item); - } - /* Separator & Block */ if (features & EMPATHY_CONTACT_FEATURE_BLOCK && (item = empathy_contact_block_menu_item_new (contact)) != NULL) { @@ -498,46 +490,6 @@ empathy_contact_share_my_desktop_menu_item_new (EmpathyContact *contact) } static void -favourite_menu_item_toggled_cb (GtkCheckMenuItem *item, - EmpathyContact *contact) -{ - EmpathyContactManager *manager; - EmpathyContactList *list; - - manager = empathy_contact_manager_dup_singleton (); - list = EMPATHY_CONTACT_LIST (manager); - - if (gtk_check_menu_item_get_active (item)) { - empathy_contact_list_add_to_favourites (list, contact); - } else { - empathy_contact_list_remove_from_favourites (list, contact); - } - - g_object_unref (manager); -} - -GtkWidget * -empathy_contact_favourite_menu_item_new (EmpathyContact *contact) -{ - GtkWidget *item; - EmpathyContactManager *manager; - - item = gtk_check_menu_item_new_with_label (_("Favorite")); - - manager = empathy_contact_manager_dup_singleton (); - gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), - empathy_contact_list_is_favourite (EMPATHY_CONTACT_LIST (manager), - contact)); - - g_signal_connect (item, "toggled", - G_CALLBACK (favourite_menu_item_toggled_cb), - contact); - - g_object_unref (manager); - return item; -} - -static void contact_info_menu_item_activate_cb (EmpathyContact *contact) { empathy_contact_information_dialog_show (contact, NULL); |