aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index 34563ecba..6935ead50 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -443,12 +443,13 @@ contact_list_view_key_press_event_cb (EmpathyContactListView *view,
gpointer user_data)
{
if (event->keyval == GDK_Menu) {
- MenuPopupData data;
+ MenuPopupData *data;
- data.view = view;
- data.button = 0;
- data.time = event->time;
- contact_list_view_popup_menu_idle_cb (&data);
+ data = g_slice_new (MenuPopupData);
+ data->view = view;
+ data->button = 0;
+ data->time = event->time;
+ g_idle_add (contact_list_view_popup_menu_idle_cb, data);
}
return FALSE;