aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@src.gnome.org>2008-02-28 03:13:46 +0800
committerCarlos Garcia Campos <carlosgc@src.gnome.org>2008-02-28 03:13:46 +0800
commitf58dd0321e97f331e5e5660ccd6a4014c72706b8 (patch)
tree4912986f349d1fd43ad7fcbe6eadf663895648e8
parent0739cde20855ff52142eadedad857553e67ab51f (diff)
downloadgsoc2013-epiphany-f58dd0321e97f331e5e5660ccd6a4014c72706b8.tar
gsoc2013-epiphany-f58dd0321e97f331e5e5660ccd6a4014c72706b8.tar.gz
gsoc2013-epiphany-f58dd0321e97f331e5e5660ccd6a4014c72706b8.tar.bz2
gsoc2013-epiphany-f58dd0321e97f331e5e5660ccd6a4014c72706b8.tar.lz
gsoc2013-epiphany-f58dd0321e97f331e5e5660ccd6a4014c72706b8.tar.xz
gsoc2013-epiphany-f58dd0321e97f331e5e5660ccd6a4014c72706b8.tar.zst
gsoc2013-epiphany-f58dd0321e97f331e5e5660ccd6a4014c72706b8.zip
Fix a crash when downloading a file. (Bug #519121)
svn path=/trunk/; revision=7994
-rw-r--r--embed/downloader-view.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index e85073cbb..1fd0130fb 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -550,6 +550,7 @@ queue_show_notification (DownloaderView *dv)
if (gtk_status_icon_is_embedded (dv->priv->status_icon))
{
notify_notification_show (dv->priv->notification, NULL);
+ dv->priv->notification_timeout = 0;
return FALSE;
}
@@ -562,7 +563,11 @@ show_notification_window (DownloaderView *dv)
if (gtk_status_icon_is_embedded (dv->priv->status_icon))
notify_notification_show (dv->priv->notification, NULL);
else
+ {
+ if (dv->priv->notification_timeout != 0)
+ g_source_remove (dv->priv->notification_timeout);
dv->priv->notification_timeout = g_timeout_add_seconds (1, (GSourceFunc) queue_show_notification, dv);
+ }
}
#endif