aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/downloader-view.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 132fcc248..12aadde7b 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -155,7 +155,14 @@ downloader_view_class_init (DownloaderViewClass *klass)
static void
status_icon_activated (EggStatusIcon *icon, DownloaderView *dv)
{
- gtk_window_present (GTK_WINDOW (dv->priv->window));
+ if (GTK_WIDGET_VISIBLE (dv->priv->window))
+ {
+ gtk_widget_hide (dv->priv->window);
+ }
+ else
+ {
+ gtk_window_present (GTK_WINDOW (dv->priv->window));
+ }
}
static void