aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:34:26 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:34:26 +0800
commita5685443623cf5be33ff0223c63621eda577c4d7 (patch)
treec76e317bf68c656a51273da477bb2533804f21ea
parent867b57fdd04d230c205b2657b4ffa47db22af62a (diff)
downloadgsoc2013-empathy-a5685443623cf5be33ff0223c63621eda577c4d7.tar
gsoc2013-empathy-a5685443623cf5be33ff0223c63621eda577c4d7.tar.gz
gsoc2013-empathy-a5685443623cf5be33ff0223c63621eda577c4d7.tar.bz2
gsoc2013-empathy-a5685443623cf5be33ff0223c63621eda577c4d7.tar.lz
gsoc2013-empathy-a5685443623cf5be33ff0223c63621eda577c4d7.tar.xz
gsoc2013-empathy-a5685443623cf5be33ff0223c63621eda577c4d7.tar.zst
gsoc2013-empathy-a5685443623cf5be33ff0223c63621eda577c4d7.zip
individual-widget: use empathy_context_menu_new()
-rw-r--r--libempathy-gtk/empathy-individual-widget.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 4c08d122c..808c33fbc 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -1018,7 +1018,7 @@ popup_avatar_menu (EmpathyIndividualWidget *self,
return FALSE;
empathy_avatar_unref (avatar);
- 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);
@@ -1039,10 +1039,7 @@ popup_avatar_menu (EmpathyIndividualWidget *self,
event_time = gtk_get_current_event_time ();
}
- gtk_menu_attach_to_widget (GTK_MENU (menu), parent, NULL);
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, button, event_time);
- g_object_ref_sink (menu);
- g_object_unref (menu);
return TRUE;
}