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