aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-19 00:49:23 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-19 00:49:23 +0800
commite6b6fc0eeac8f0da68932320cce2b6fea03cbf6f (patch)
tree3f212964f3fe50db6dac2063e4441c345102bb4e
parent98cc9025c6972a582578cac9ee33ed6dc5e473a0 (diff)
downloadgsoc2013-empathy-e6b6fc0eeac8f0da68932320cce2b6fea03cbf6f.tar
gsoc2013-empathy-e6b6fc0eeac8f0da68932320cce2b6fea03cbf6f.tar.gz
gsoc2013-empathy-e6b6fc0eeac8f0da68932320cce2b6fea03cbf6f.tar.bz2
gsoc2013-empathy-e6b6fc0eeac8f0da68932320cce2b6fea03cbf6f.tar.lz
gsoc2013-empathy-e6b6fc0eeac8f0da68932320cce2b6fea03cbf6f.tar.xz
gsoc2013-empathy-e6b6fc0eeac8f0da68932320cce2b6fea03cbf6f.tar.zst
gsoc2013-empathy-e6b6fc0eeac8f0da68932320cce2b6fea03cbf6f.zip
No need of an idle callback forkey m
svn path=/trunk/; revision=1111
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c11
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;