[mistelix/stable] Desconnect timer when widget is destroyed
- From: Jordi Mas <jmas src gnome org>
- To: svn-commits-list gnome org
- Subject: [mistelix/stable] Desconnect timer when widget is destroyed
- Date: Thu, 9 Jul 2009 16:56:51 +0000 (UTC)
commit 3877448f7ad5c5991f3347943753b1bbc48e1646
Author: Jordi Mas <jmas softcatala org>
Date: Thu Jul 9 17:40:49 2009 +0100
Desconnect timer when widget is destroyed
src/dialogs/AddSlideDialog.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/AddSlideDialog.cs b/src/dialogs/AddSlideDialog.cs
index 50d51f1..812b9cc 100644
--- a/src/dialogs/AddSlideDialog.cs
+++ b/src/dialogs/AddSlideDialog.cs
@@ -584,5 +584,11 @@ namespace Mistelix.Dialogs
((IDisposable)cc).Dispose();
return base.OnExposeEvent(args);
}
+
+ protected override void OnUnrealized ()
+ {
+ timer.Enabled = false;
+ timer.Elapsed -= TimerUpdater;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]