diff options
author | Alberto Garcia <agarcia@igalia.com> | 2009-10-01 14:11:25 +0200 |
---|---|---|
committer | Alberto Garcia <agarcia@igalia.com> | 2009-10-01 14:11:33 +0200 |
commit | 3d133ba225cb64205fcb6e994cc6e107fb8564bb (patch) | |
tree | abed37c20b2fa83702d1b490e83a2514b2a1ddc8 /hildon/hildon-banner.c | |
parent | 2353dd5c270822fdfcb32e167474b09784f43b42 (diff) |
Make sure that all timeouts in HildonBanner are removed
* hildon/hildon-banner.c (hildon_banner_timeout):
Remove the timeout, if present, before setting it to 0.
Fixes: NB#141447 (HildonBanner crashes if a new one is shown
during a delete event)
Diffstat (limited to 'hildon/hildon-banner.c')
-rw-r--r-- | hildon/hildon-banner.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hildon/hildon-banner.c b/hildon/hildon-banner.c index cbfb263..54fab3c 100644 --- a/hildon/hildon-banner.c +++ b/hildon/hildon-banner.c @@ -306,7 +306,10 @@ hildon_banner_timeout (gpointer data) if (! continue_timeout) { HildonBannerPrivate *priv = HILDON_BANNER_GET_PRIVATE (data); - priv->timeout_id = 0; + if (priv->timeout_id) { + g_source_remove (priv->timeout_id); + priv->timeout_id = 0; + } gtk_widget_destroy (widget); } |