aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:25:23 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:25:23 +0800
commit57c8169491a65eb284984a252859e39c0272db91 (patch)
tree31b1b3f8195a1ea9a33a64a07acf9725ad8322cd /libempathy-gtk/empathy-contact-widget.c
parent1a76481fbfc909010ff8fc79bc04ebca7330a40d (diff)
downloadgsoc2013-empathy-57c8169491a65eb284984a252859e39c0272db91.tar
gsoc2013-empathy-57c8169491a65eb284984a252859e39c0272db91.tar.gz
gsoc2013-empathy-57c8169491a65eb284984a252859e39c0272db91.tar.bz2
gsoc2013-empathy-57c8169491a65eb284984a252859e39c0272db91.tar.lz
gsoc2013-empathy-57c8169491a65eb284984a252859e39c0272db91.tar.xz
gsoc2013-empathy-57c8169491a65eb284984a252859e39c0272db91.tar.zst
gsoc2013-empathy-57c8169491a65eb284984a252859e39c0272db91.zip
contact-widget: use empathy_context_menu_new()
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 12866f291..3e4dc845a 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