aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-status-icon.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-12-20 21:39:37 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-12-20 21:39:37 +0800
commitafdca8a81d71ab9c78780dabea1e651a9a4ccebb (patch)
tree01b8684b6a1b6a89d40dbd880cc3e533c2db8c61 /libempathy-gtk/empathy-status-icon.c
parent511f857fef39819c913d06538836b46d68b6e832 (diff)
downloadgsoc2013-empathy-afdca8a81d71ab9c78780dabea1e651a9a4ccebb.tar
gsoc2013-empathy-afdca8a81d71ab9c78780dabea1e651a9a4ccebb.tar.gz
gsoc2013-empathy-afdca8a81d71ab9c78780dabea1e651a9a4ccebb.tar.bz2
gsoc2013-empathy-afdca8a81d71ab9c78780dabea1e651a9a4ccebb.tar.lz
gsoc2013-empathy-afdca8a81d71ab9c78780dabea1e651a9a4ccebb.tar.xz
gsoc2013-empathy-afdca8a81d71ab9c78780dabea1e651a9a4ccebb.tar.zst
gsoc2013-empathy-afdca8a81d71ab9c78780dabea1e651a9a4ccebb.zip
Simplify empaty_window_present, empathy_window_iconify and empathy_window_is_visible stuff
svn path=/trunk/; revision=491
Diffstat (limited to 'libempathy-gtk/empathy-status-icon.c')
-rw-r--r--libempathy-gtk/empathy-status-icon.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-status-icon.c b/libempathy-gtk/empathy-status-icon.c
index 98c60ff64..0fd6c0d67 100644
--- a/libempathy-gtk/empathy-status-icon.c
+++ b/libempathy-gtk/empathy-status-icon.c
@@ -422,16 +422,15 @@ status_icon_set_visibility (EmpathyStatusIcon *icon,
priv = GET_PRIV (icon);
+ empathy_conf_set_bool (empathy_conf_get (),
+ EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN, !visible);
+
if (!visible) {
empathy_window_iconify (priv->window, priv->icon);
- empathy_conf_set_bool (empathy_conf_get (),
- EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN, TRUE);
} else {
GList *accounts;
empathy_window_present (GTK_WINDOW (priv->window), TRUE);
- empathy_conf_set_bool (empathy_conf_get (),
- EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN, FALSE);
/* Show the accounts dialog if there is no enabled accounts */
accounts = mc_accounts_list_by_enabled (TRUE);