From ee54debd6aa1a081e8e08db464ed2a615d5bb045 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Tue, 10 Jan 2006 04:50:17 +0000 Subject: Use the right function to remove the timeout so that we don't crash if 2006-01-09 Elijah Newren * src/bell.c (meta_bell_notify_frame_destroy): Use the right function to remove the timeout so that we don't crash if removed at an inopportune time. Fixes #322031. --- ChangeLog | 6 ++++++ src/bell.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e43f66c7..97aeb602 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-09 Elijah Newren + + * src/bell.c (meta_bell_notify_frame_destroy): Use the right + function to remove the timeout so that we don't crash if removed + at an inopportune time. Fixes #322031. + 2006-01-09 Elijah Newren * src/edge-resistance.c (apply_edge_resistance): Remove the diff --git a/src/bell.c b/src/bell.c index cb1cf353..1aefc77d 100644 --- a/src/bell.c +++ b/src/bell.c @@ -252,5 +252,5 @@ void meta_bell_notify_frame_destroy (MetaFrame *frame) { if (frame->is_flashing) - g_idle_remove_by_data (frame); + g_source_remove_by_funcs_user_data (&g_timeout_funcs, frame); } -- cgit v1.2.1