aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-19 01:00:38 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-19 01:00:38 +0800
commit008e6bf5763d296800a24c13696d8ded00c37d35 (patch)
treeeb8663a16dc958a3c60c974a49cc1fd479012486 /libempathy-gtk
parente6b6fc0eeac8f0da68932320cce2b6fea03cbf6f (diff)
downloadgsoc2013-empathy-008e6bf5763d296800a24c13696d8ded00c37d35.tar
gsoc2013-empathy-008e6bf5763d296800a24c13696d8ded00c37d35.tar.gz
gsoc2013-empathy-008e6bf5763d296800a24c13696d8ded00c37d35.tar.bz2
gsoc2013-empathy-008e6bf5763d296800a24c13696d8ded00c37d35.tar.lz
gsoc2013-empathy-008e6bf5763d296800a24c13696d8ded00c37d35.tar.xz
gsoc2013-empathy-008e6bf5763d296800a24c13696d8ded00c37d35.tar.zst
gsoc2013-empathy-008e6bf5763d296800a24c13696d8ded00c37d35.zip
Do not use statis pointer for MenuPopupData because it get freed.
svn path=/trunk/; revision=1112
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;