aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-26 02:35:58 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-26 02:37:13 +0800
commit20efbd7c8bc742d580bc0779b05c1af96787deee (patch)
tree6ffe0f715fd6fa60f33c8e5ff1c7420abff87009 /shell/main.c
parent7a086cbcd0592e4c133c5761c65fa291b6d05d04 (diff)
downloadgsoc2013-evolution-20efbd7c8bc742d580bc0779b05c1af96787deee.tar
gsoc2013-evolution-20efbd7c8bc742d580bc0779b05c1af96787deee.tar.gz
gsoc2013-evolution-20efbd7c8bc742d580bc0779b05c1af96787deee.tar.bz2
gsoc2013-evolution-20efbd7c8bc742d580bc0779b05c1af96787deee.tar.lz
gsoc2013-evolution-20efbd7c8bc742d580bc0779b05c1af96787deee.tar.xz
gsoc2013-evolution-20efbd7c8bc742d580bc0779b05c1af96787deee.tar.zst
gsoc2013-evolution-20efbd7c8bc742d580bc0779b05c1af96787deee.zip
Add a --geometry command-line option.
Applies the user's window geometry string to the first main window. Suggested in bug #529565.
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/main.c b/shell/main.c
index ab82c2eded..e96620ab24 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -89,6 +89,7 @@ static gboolean disable_preview = FALSE;
static gboolean import_uris = FALSE;
static gboolean idle_cb (gchar **uris);
+static gchar *geometry = NULL;
static gchar *requested_view = NULL;
static gchar *evolution_debug_log = NULL;
static gchar **remaining_args;
@@ -309,6 +310,8 @@ setup_segv_redirect (void)
static GOptionEntry entries[] = {
{ "component", 'c', 0, G_OPTION_ARG_STRING, &requested_view,
N_("Start Evolution activating the specified component"), NULL },
+ { "geometry", 'g', 0, G_OPTION_ARG_STRING, &geometry,
+ N_("Apply the given geometry to the main window"), "GEOMETRY" },
{ "offline", '\0', 0, G_OPTION_ARG_NONE, &start_offline,
N_("Start in offline mode"), NULL },
{ "online", '\0', 0, G_OPTION_ARG_NONE, &start_online,
@@ -451,6 +454,7 @@ create_default_shell (void)
shell = g_object_new (
E_TYPE_SHELL,
"name", "org.gnome.Evolution",
+ "geometry", geometry,
"online", online,
NULL);