[empathy] individual-widget: use empathy_context_menu_new()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] individual-widget: use empathy_context_menu_new()
- Date: Wed, 16 Feb 2011 14:50:03 +0000 (UTC)
commit a5685443623cf5be33ff0223c63621eda577c4d7
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Feb 16 15:34:26 2011 +0100
individual-widget: use empathy_context_menu_new()
libempathy-gtk/empathy-individual-widget.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 4c08d12..808c33f 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]