diff options
author | Diego Escalante Urrelo <diegoe@gnome.org> | 2007-07-26 12:14:07 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2007-07-26 12:14:07 +0800 |
commit | a16299d8110ff4b3e72aac0862c754a2c5200949 (patch) | |
tree | 433334547a35c25df324f4f5efac0113a7f1f57f /embed/downloader-view.c | |
parent | 4eee87dd91ed05b2f636433d356b2450e1a535b1 (diff) | |
download | gsoc2013-epiphany-a16299d8110ff4b3e72aac0862c754a2c5200949.tar gsoc2013-epiphany-a16299d8110ff4b3e72aac0862c754a2c5200949.tar.gz gsoc2013-epiphany-a16299d8110ff4b3e72aac0862c754a2c5200949.tar.bz2 gsoc2013-epiphany-a16299d8110ff4b3e72aac0862c754a2c5200949.tar.lz gsoc2013-epiphany-a16299d8110ff4b3e72aac0862c754a2c5200949.tar.xz gsoc2013-epiphany-a16299d8110ff4b3e72aac0862c754a2c5200949.tar.zst gsoc2013-epiphany-a16299d8110ff4b3e72aac0862c754a2c5200949.zip |
Make the status icon clickable so it shows/hides the download window,
2007-07-25 Diego Escalante Urrelo <diegoe@gnome.org>
* embed/downloader-view.c:
Make the status icon clickable so it shows/hides the download window,
works across workspaces. Patch by Kraai. Fixes bug #448610.
svn path=/trunk/; revision=7198
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r-- | embed/downloader-view.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c index 0b482f4cb..0374d89a0 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -173,7 +173,14 @@ downloader_view_class_init (DownloaderViewClass *klass) static void show_downloader_cb (DownloaderView *dv) { - gtk_window_present (GTK_WINDOW (dv->priv->window)); + if (!gtk_window_has_toplevel_focus (GTK_WINDOW (dv->priv->window))) + { + gtk_window_present (GTK_WINDOW (dv->priv->window)); + } + else + { + gtk_widget_hide (dv->priv->window); + } } static gboolean |