From 1a76481fbfc909010ff8fc79bc04ebca7330a40d Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 16 Feb 2011 15:18:06 +0100 Subject: contact-list-view: use empathy_context_menu_new() (#642461) --- libempathy-gtk/empathy-contact-list-view.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index c558738df..8d234e375 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -938,7 +938,7 @@ contact_list_view_call_activated_cb ( event = (GdkEventButton *) gtk_get_current_event (); - menu = gtk_menu_new (); + menu = empathy_context_menu_new (GTK_WIDGET (view)); shell = GTK_MENU_SHELL (menu); /* audio */ @@ -951,13 +951,9 @@ contact_list_view_call_activated_cb ( 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 (contact); } -- cgit v1.2.3