aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-status-icon.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-06-04 22:42:14 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-06-04 22:42:14 +0800
commitce1b0170672b455e9a6530a69559492f7b4ae069 (patch)
treea619c37a063805d7cdf1c43418d9af5701da1229 /src/empathy-status-icon.c
parentb3c68f043cf0817448d2ce1e9aa68135f81f7fa5 (diff)
downloadgsoc2013-empathy-ce1b0170672b455e9a6530a69559492f7b4ae069.tar.gz
gsoc2013-empathy-ce1b0170672b455e9a6530a69559492f7b4ae069.tar.zst
gsoc2013-empathy-ce1b0170672b455e9a6530a69559492f7b4ae069.zip
Add a command line option to hide contact list on startup. Fixes bug #535080 (Marco Pesenti Gritti).
svn path=/trunk/; revision=1146
Diffstat (limited to 'src/empathy-status-icon.c')
-rw-r--r--src/empathy-status-icon.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index 2ab49a63b..c030a5887 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -739,7 +739,7 @@ empathy_status_icon_init (EmpathyStatusIcon *icon)
}
EmpathyStatusIcon *
-empathy_status_icon_new (GtkWindow *window)
+empathy_status_icon_new (GtkWindow *window, gboolean hide_contact_list)
{
EmpathyStatusIconPriv *priv;
EmpathyStatusIcon *icon;
@@ -756,9 +756,13 @@ empathy_status_icon_new (GtkWindow *window)
G_CALLBACK (status_icon_delete_event_cb),
icon);
- empathy_conf_get_bool (empathy_conf_get (),
- EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN,
- &should_hide);
+ if (!hide_contact_list) {
+ empathy_conf_get_bool (empathy_conf_get (),
+ EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN,
+ &should_hide);
+ } else {
+ should_hide = TRUE;
+ }
if (gtk_window_is_active (priv->window) == should_hide) {
status_icon_set_visibility (icon, !should_hide, FALSE);