aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2004-01-14 05:17:25 +0800
committerXan Lopez <xan@src.gnome.org>2004-01-14 05:17:25 +0800
commit37a790e31a8550851af7dcf637abca91a44ae0af (patch)
treecdfed4226a28c61ab12292ee2be7db9de8234ebd
parenta3ae85c9d33e987d50b3fd5c7de87773f1670780 (diff)
downloadgsoc2013-epiphany-37a790e31a8550851af7dcf637abca91a44ae0af.tar
gsoc2013-epiphany-37a790e31a8550851af7dcf637abca91a44ae0af.tar.gz
gsoc2013-epiphany-37a790e31a8550851af7dcf637abca91a44ae0af.tar.bz2
gsoc2013-epiphany-37a790e31a8550851af7dcf637abca91a44ae0af.tar.lz
gsoc2013-epiphany-37a790e31a8550851af7dcf637abca91a44ae0af.tar.xz
gsoc2013-epiphany-37a790e31a8550851af7dcf637abca91a44ae0af.tar.zst
gsoc2013-epiphany-37a790e31a8550851af7dcf637abca91a44ae0af.zip
Allow to show/hide downloader clicking on tray icon. Fixes #131012.
* embed/downloader-view.c: (status_icon_activated): Allow to show/hide downloader clicking on tray icon. Fixes #131012.
-rw-r--r--ChangeLog7
-rw-r--r--embed/downloader-view.c9
2 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 09693e836..dfc21f3fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-01-13 Xan Lopez <xan@gnome.org>
+
+ * embed/downloader-view.c: (status_icon_activated):
+
+ Allow to show/hide downloader clicking on tray icon.
+ Fixes #131012.
+
2004-01-13 Christian Persch <chpe@cvs.gnome.org>
* configure.in:
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