diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-06-23 23:46:38 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:35 +0800 |
commit | 315a71325f98d86722d7c313d726828f767cef82 (patch) | |
tree | 5f25542a0d70ea1e63f67fe33b512f185610b15d /libempathy-gtk/empathy-individual-menu.c | |
parent | e53b7431a34c09ceed319a1680cde1e44a50dab2 (diff) | |
download | gsoc2013-empathy-315a71325f98d86722d7c313d726828f767cef82.tar gsoc2013-empathy-315a71325f98d86722d7c313d726828f767cef82.tar.gz gsoc2013-empathy-315a71325f98d86722d7c313d726828f767cef82.tar.bz2 gsoc2013-empathy-315a71325f98d86722d7c313d726828f767cef82.tar.lz gsoc2013-empathy-315a71325f98d86722d7c313d726828f767cef82.tar.xz gsoc2013-empathy-315a71325f98d86722d7c313d726828f767cef82.tar.zst gsoc2013-empathy-315a71325f98d86722d7c313d726828f767cef82.zip |
Use the new FolksFavourite interface for favourites support
Diffstat (limited to 'libempathy-gtk/empathy-individual-menu.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-menu.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c index 98afbc541..c618d2c37 100644 --- a/libempathy-gtk/empathy-individual-menu.c +++ b/libempathy-gtk/empathy-individual-menu.c @@ -516,10 +516,8 @@ favourite_menu_item_toggled_cb (GtkCheckMenuItem *item, manager = empathy_individual_manager_dup_singleton (); list = EMPATHY_INDIVIDUAL_MANAGER (manager); - if (gtk_check_menu_item_get_active (item)) - empathy_individual_manager_add_to_favourites (list, individual); - else - empathy_individual_manager_remove_from_favourites (list, individual); + folks_favourite_set_is_favourite (FOLKS_FAVOURITE (individual), + gtk_check_menu_item_get_active (item)); g_object_unref (manager); } @@ -534,8 +532,7 @@ empathy_individual_favourite_menu_item_new (FolksIndividual *individual) manager = empathy_individual_manager_dup_singleton (); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), - empathy_individual_manager_is_favourite ( - EMPATHY_INDIVIDUAL_MANAGER (manager), individual)); + folks_favourite_get_is_favourite (FOLKS_FAVOURITE (individual))); g_signal_connect (item, "toggled", G_CALLBACK (favourite_menu_item_toggled_cb), individual); |