]> git.0d.be Git - empathy.git/commitdiff
Do not use statis pointer for MenuPopupData because it get freed.
authorXavier Claessens <xclaesse@src.gnome.org>
Sun, 18 May 2008 17:00:38 +0000 (17:00 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sun, 18 May 2008 17:00:38 +0000 (17:00 +0000)
svn path=/trunk/; revision=1112

libempathy-gtk/empathy-contact-list-view.c

index 34563ecba53b853093f438f8dc5a4e6fba0dc7b7..6935ead505ce4ad74439e2c736acfd05070e568d 100644 (file)
@@ -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;