aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy.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.c
parentb3c68f043cf0817448d2ce1e9aa68135f81f7fa5 (diff)
downloadgsoc2013-empathy-ce1b0170672b455e9a6530a69559492f7b4ae069.tar
gsoc2013-empathy-ce1b0170672b455e9a6530a69559492f7b4ae069.tar.gz
gsoc2013-empathy-ce1b0170672b455e9a6530a69559492f7b4ae069.tar.bz2
gsoc2013-empathy-ce1b0170672b455e9a6530a69559492f7b4ae069.tar.lz
gsoc2013-empathy-ce1b0170672b455e9a6530a69559492f7b4ae069.tar.xz
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.c')
-rw-r--r--src/empathy.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/empathy.c b/src/empathy.c
index d30935d24..5851d41ac 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -358,12 +358,17 @@ main (int argc, char *argv[])
EmpathyIdle *idle;
gboolean autoconnect = TRUE;
gboolean no_connect = FALSE;
+ gboolean hide_contact_list = FALSE;
GError *error = NULL;
GOptionEntry options[] = {
{ "no-connect", 'n',
0, G_OPTION_ARG_NONE, &no_connect,
N_("Don't connect on startup"),
NULL },
+ { "hide-contact-list", 'h',
+ 0, G_OPTION_ARG_NONE, &hide_contact_list,
+ N_("Don't show the contact list on startup"),
+ NULL },
{ NULL }
};
@@ -446,7 +451,7 @@ main (int argc, char *argv[])
/* Setting up UI */
window = empathy_main_window_show ();
- icon = empathy_status_icon_new (GTK_WINDOW (window));
+ icon = empathy_status_icon_new (GTK_WINDOW (window), hide_contact_list);
if (connection) {
/* We se the callback here because we need window */