[empathy] contact-widget: use empathy_context_menu_new()



commit 57c8169491a65eb284984a252859e39c0272db91
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Feb 16 15:25:23 2011 +0100

    contact-widget: use empathy_context_menu_new()

 libempathy-gtk/empathy-contact-widget.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 12866f2..3e4dc84 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -1071,7 +1071,7 @@ popup_avatar_menu (EmpathyContactWidget *information,
       empathy_contact_get_avatar (information->contact) == NULL)
       return;
 
-  menu = gtk_menu_new ();
+  menu = empathy_context_menu_new (parent);
 
   /* Add "Save as..." entry */
   item = gtk_image_menu_item_new_from_stock (GTK_STOCK_SAVE_AS, NULL);
@@ -1094,8 +1094,6 @@ popup_avatar_menu (EmpathyContactWidget *information,
 
   gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL,
       button, event_time);
-  g_object_ref_sink (menu);
-  g_object_unref (menu);
 }
 
 static gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]