aboutsummaryrefslogtreecommitdiffstats
path: root/embed/downloader-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/downloader-view.c')
-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