diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2004-08-10 22:14:43 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-08-10 22:14:43 +0800 |
commit | 60939de9ba741af0dc99c141fbf951dba8061f60 (patch) | |
tree | b6fa4cc838583d27b25f81eab64178271c291cdb /calendar/gui/alarm-notify | |
parent | 91841270f1f436fa751a89fcd131bcb9afb9aa43 (diff) | |
download | gsoc2013-evolution-60939de9ba741af0dc99c141fbf951dba8061f60.tar.gz gsoc2013-evolution-60939de9ba741af0dc99c141fbf951dba8061f60.tar.zst gsoc2013-evolution-60939de9ba741af0dc99c141fbf951dba8061f60.zip |
disconnect from signals also when using only the system tray. Fixes a
2004-08-10 Rodrigo Moya <rodrigo@novell.com>
* gui/alarm-notify/alarm-queue.c (tray_icon_destroyed_cb): disconnect
from signals also when using only the system tray. Fixes a crash when
removing an event that had an alarm popup recently.
svn path=/trunk/; revision=26862
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index 74c16746c4..08d3033dcb 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -768,6 +768,9 @@ tray_icon_destroyed_cb (GtkWidget *tray, gpointer user_data) { TrayIconData *tray_data = user_data; + g_signal_handlers_disconnect_matched (tray_data->query, G_SIGNAL_MATCH_FUNC, + 0, 0, NULL, on_dialog_objs_removed_cb, NULL); + if (tray_data->cqa != NULL) remove_queued_alarm (tray_data->cqa, tray_data->alarm_id, TRUE, TRUE); |