diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-08-08 14:47:01 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-08-08 14:47:01 +0800 |
commit | 0014b8c62e298231da5180a298360a0a24fb2095 (patch) | |
tree | f0cd1b09673d42f68115834f1ee2a3e180df31eb /shell | |
parent | fbc08b4c26608b550a78366a007fba27c451dae5 (diff) | |
download | gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.tar gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.tar.gz gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.tar.bz2 gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.tar.lz gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.tar.xz gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.tar.zst gsoc2013-evolution-0014b8c62e298231da5180a298360a0a24fb2095.zip |
Added a command line option to disable preview/selection for crash on select.
svn path=/trunk/; revision=33967
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 7 | ||||
-rw-r--r-- | shell/main.c | 12 |
2 files changed, 17 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 2e6ed926f6..d1410e0a10 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2007-08-08 Srinivasa Ragavan <sragavan@novell.com> + + ** Add a new command line option to disable crash-on-select mails, + tasks, contacts. + + * main.c: (main): Added a new command line option. + 2007-07-26 Hiroyuki Ikezoe <poincare@ikezoe.net> * e-shell-window-command.c: (view_statusbar_item_toggled_handler), diff --git a/shell/main.c b/shell/main.c index 76490cf1e6..c84fb39f2e 100644 --- a/shell/main.c +++ b/shell/main.c @@ -103,7 +103,7 @@ static gboolean killev = FALSE; static gboolean force_migrate = FALSE; #endif static gboolean disable_eplugin = FALSE; - +static gboolean disable_preview = FALSE; static gboolean idle_cb (gchar **uris); static char *default_component_id = NULL; @@ -470,6 +470,8 @@ static const GOptionEntry options[] = { N_("Send the debugging output of all components to a file."), NULL }, { "disable-eplugin", '\0', 0, G_OPTION_ARG_NONE, &disable_eplugin, N_("Disable loading of any plugins."), NULL }, + { "disable-preview", '\0', 0, G_OPTION_ARG_NONE, &disable_preview, + N_("Disable preview pane of Mail, Contacts and Tasks."), NULL }, { "setup-only", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &setup_only, NULL, NULL }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &remaining_args, NULL, NULL }, @@ -536,7 +538,13 @@ main (int argc, char **argv) destroy_config (client); } #endif - + if (disable_preview) { + gconf_client_set_bool (client, "/apps/evolution/mail/display/show_preview", FALSE, NULL); + gconf_client_set_bool (client, "/apps/evolution/mail/display/safe_list", TRUE, NULL); + gconf_client_set_bool (client, "/apps/evolution/addressbook/display/show_preview", FALSE, NULL); + gconf_client_set_bool (client, "/apps/evolution/calendar/display/show_task_preview", FALSE, NULL); + } + setup_segv_redirect (); if (evolution_debug_log) { |