When destroying the window, remove (if exists) the escape timeout handler.
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Fri, 1 Jun 2007 11:23:03 +0000 (11:23 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Fri, 1 Jun 2007 11:23:03 +0000 (11:23 +0000)
ChangeLog
src/hildon-window.c

index adeb39b..ce67925 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-06-01  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
+       * src/hildon-window.c: When destroying the window, remove (if exists) the
+       escape timeout handler. Fixes #NB59276.
+
+2007-06-01  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
+
        * src/hildon-banner.c: When realizing the widget, set the window
        transiency. Setting the transiency in the gobject constructor is not
        good, as the widget is not realized at that point. Fixes: #NB56624.
index 1f1fac6..c3c333d 100644 (file)
@@ -380,6 +380,11 @@ hildon_window_finalize                          (GObject * obj_self)
     
     self = HILDON_WINDOW (obj_self);
 
+    if (priv->escape_timeout) {
+      g_source_remove (priv->escape_timeout);
+      priv->escape_timeout = 0;
+    }
+
     g_free (priv->borders);
     g_free (priv->toolbar_borders);