aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:18:06 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:18:06 +0800
commit1a76481fbfc909010ff8fc79bc04ebca7330a40d (patch)
treeadd1fc98dd43498b39a2ac5699ae17aca6ea1f4b
parentb93ebf9d9f42e4de478b63b9219efcdf516e630e (diff)
downloadgsoc2013-empathy-1a76481fbfc909010ff8fc79bc04ebca7330a40d.tar
gsoc2013-empathy-1a76481fbfc909010ff8fc79bc04ebca7330a40d.tar.gz
gsoc2013-empathy-1a76481fbfc909010ff8fc79bc04ebca7330a40d.tar.bz2
gsoc2013-empathy-1a76481fbfc909010ff8fc79bc04ebca7330a40d.tar.lz
gsoc2013-empathy-1a76481fbfc909010ff8fc79bc04ebca7330a40d.tar.xz
gsoc2013-empathy-1a76481fbfc909010ff8fc79bc04ebca7330a40d.tar.zst
gsoc2013-empathy-1a76481fbfc909010ff8fc79bc04ebca7330a40d.zip
contact-list-view: use empathy_context_menu_new() (#642461)
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c6
1 files changed, 1 insertions, 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);
}