aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-10-19 19:04:06 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-10-19 19:04:06 +0800
commit34216c7683f325c0ef086b1bfceaa68a00463701 (patch)
treea4c9e9ac67a0f6a081d68635790e506869cbf249 /libempathy-gtk
parentc5101c2125ff6fc14b4a808ffcb79eb42b8aa9f3 (diff)
downloadgsoc2013-empathy-34216c7683f325c0ef086b1bfceaa68a00463701.tar
gsoc2013-empathy-34216c7683f325c0ef086b1bfceaa68a00463701.tar.gz
gsoc2013-empathy-34216c7683f325c0ef086b1bfceaa68a00463701.tar.bz2
gsoc2013-empathy-34216c7683f325c0ef086b1bfceaa68a00463701.tar.lz
gsoc2013-empathy-34216c7683f325c0ef086b1bfceaa68a00463701.tar.xz
gsoc2013-empathy-34216c7683f325c0ef086b1bfceaa68a00463701.tar.zst
gsoc2013-empathy-34216c7683f325c0ef086b1bfceaa68a00463701.zip
2007-10-19 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-status-icon.c: Fix crash when iconifying main window if it's already hiden. git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@379 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-status-icon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-status-icon.c b/libempathy-gtk/empathy-status-icon.c
index 16a678dcd..204ff383b 100644
--- a/libempathy-gtk/empathy-status-icon.c
+++ b/libempathy-gtk/empathy-status-icon.c
@@ -248,7 +248,9 @@ empathy_status_icon_new (GtkWindow *window)
EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN,
&should_hide);
- status_icon_set_visibility (icon, !should_hide);
+ if (gtk_window_is_active (priv->window) == should_hide) {
+ status_icon_set_visibility (icon, !should_hide);
+ }
return icon;
}