[empathy] Remove unused EmpathyIndividualManager instances from the individual menu
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Remove unused EmpathyIndividualManager instances from the individual menu
- Date: Tue, 20 Jul 2010 23:22:27 +0000 (UTC)
commit 6d9c8a607e2b44d20d54a11e917d0723da81078d
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Jun 30 15:26:03 2010 +0100
Remove unused EmpathyIndividualManager instances from the individual menu
libempathy-gtk/empathy-individual-menu.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index d42f4d9..ceb95db 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -505,32 +505,23 @@ static void
favourite_menu_item_toggled_cb (GtkCheckMenuItem *item,
FolksIndividual *individual)
{
- EmpathyIndividualManager *manager;
-
- manager = empathy_individual_manager_dup_singleton ();
-
folks_favourite_set_is_favourite (FOLKS_FAVOURITE (individual),
gtk_check_menu_item_get_active (item));
-
- g_object_unref (manager);
}
GtkWidget *
empathy_individual_favourite_menu_item_new (FolksIndividual *individual)
{
GtkWidget *item;
- EmpathyIndividualManager *manager;
item = gtk_check_menu_item_new_with_label (_("Favorite"));
- manager = empathy_individual_manager_dup_singleton ();
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item),
folks_favourite_get_is_favourite (FOLKS_FAVOURITE (individual)));
g_signal_connect (item, "toggled",
G_CALLBACK (favourite_menu_item_toggled_cb), individual);
- g_object_unref (manager);
return item;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]