aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-10-19 19:04:06 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-10-19 19:04:06 +0800
commita753213fd2a4cca960ae3917c0b582df0d005b3d (patch)
treea4c9e9ac67a0f6a081d68635790e506869cbf249 /libempathy-gtk
parentfb7cd00dd189d63114185facb9f161375301ca40 (diff)
downloadgsoc2013-empathy-a753213fd2a4cca960ae3917c0b582df0d005b3d.tar
gsoc2013-empathy-a753213fd2a4cca960ae3917c0b582df0d005b3d.tar.gz
gsoc2013-empathy-a753213fd2a4cca960ae3917c0b582df0d005b3d.tar.bz2
gsoc2013-empathy-a753213fd2a4cca960ae3917c0b582df0d005b3d.tar.lz
gsoc2013-empathy-a753213fd2a4cca960ae3917c0b582df0d005b3d.tar.xz
gsoc2013-empathy-a753213fd2a4cca960ae3917c0b582df0d005b3d.tar.zst
gsoc2013-empathy-a753213fd2a4cca960ae3917c0b582df0d005b3d.zip
Fix crash when iconifying main window if it's already hiden.
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. svn path=/trunk/; revision=379
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;
}