aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-view.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:34:08 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:34:08 +0800
commit867b57fdd04d230c205b2657b4ffa47db22af62a (patch)
treee701cf136f4e4a5f063e5765099fdd34548a91db /libempathy-gtk/empathy-individual-view.c
parent57c8169491a65eb284984a252859e39c0272db91 (diff)
downloadgsoc2013-empathy-867b57fdd04d230c205b2657b4ffa47db22af62a.tar
gsoc2013-empathy-867b57fdd04d230c205b2657b4ffa47db22af62a.tar.gz
gsoc2013-empathy-867b57fdd04d230c205b2657b4ffa47db22af62a.tar.bz2
gsoc2013-empathy-867b57fdd04d230c205b2657b4ffa47db22af62a.tar.lz
gsoc2013-empathy-867b57fdd04d230c205b2657b4ffa47db22af62a.tar.xz
gsoc2013-empathy-867b57fdd04d230c205b2657b4ffa47db22af62a.tar.zst
gsoc2013-empathy-867b57fdd04d230c205b2657b4ffa47db22af62a.zip
individual-view: use empathy_context_menu_new()
Diffstat (limited to 'libempathy-gtk/empathy-individual-view.c')
-rw-r--r--libempathy-gtk/empathy-individual-view.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index f2574408f..96ff466d2 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -1051,7 +1051,7 @@ individual_view_call_activated_cb (EmpathyCellRendererActivatable *cell,
event = (GdkEventButton *) gtk_get_current_event ();
- menu = gtk_menu_new ();
+ menu = empathy_context_menu_new (GTK_WIDGET (view));
shell = GTK_MENU_SHELL (menu);
/* audio */
@@ -1064,12 +1064,9 @@ individual_view_call_activated_cb (EmpathyCellRendererActivatable *cell,
gtk_menu_shell_append (shell, item);
gtk_widget_show (item);
- gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (view), NULL);
gtk_widget_show (menu);
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL,
event->button, event->time);
- g_object_ref_sink (menu);
- g_object_unref (menu);
g_object_unref (individual);
}