aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-03-03 16:41:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-14 09:52:51 +0800
commitd9be66b527d0d666e2169d11ece578e901101733 (patch)
treeadf9bd26c5d3b904f01c01c74a5d393c83255608 /shell/e-shell.c
parentbc77811277060467e27f6375b34953891f2e59da (diff)
downloadgsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar
gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.gz
gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.bz2
gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.lz
gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.xz
gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.zst
gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.zip
Removed obsolete method signatures in em-account-editor.h
Added em_account_editor_get_widget, and cleaned up the widget listing. Cleaned the startup wizard code to find it's label by name Added disabling of power-user 'indentity' frame in the first page express capplet.
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 1df973aea0..73ea0ac520 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -619,6 +619,8 @@ shell_constructed (GObject *object)
g_object_add_weak_pointer (object, &default_shell);
}
+ E_SHELL (object)->priv->express = e_shell_get_express_mode (NULL);
+
/* UniqueApp will have by this point determined whether we're
* the only Evolution process running. If so, proceed normally.
* Otherwise we just issue commands to the other process. */
@@ -1038,8 +1040,7 @@ shell_init (EShell *shell)
shell->priv->backends_by_name = backends_by_name;
shell->priv->backends_by_scheme = backends_by_scheme;
shell->priv->safe_mode = e_file_lock_exists ();
- shell->priv->express = gconf_client_get_bool (
- shell->priv->gconf_client, "/apps/evolution/shell/express_mode", NULL);
+
g_object_ref_sink (shell->priv->preferences_window);
#if defined(NM_SUPPORT) && NM_SUPPORT
@@ -1662,7 +1663,7 @@ e_shell_set_online (EShell *shell,
/**
* e_shell_get_express_mode:
- * @shell: an #EShell
+ * @shell: an #EShell, or NULL for the global value
*
* Returns %TRUE if Evolution is in express mode, %FALSE if Evolution not.
*
@@ -1670,9 +1671,19 @@ e_shell_set_online (EShell *shell,
gboolean
e_shell_get_express_mode (EShell *shell)
{
- g_return_val_if_fail (E_IS_SHELL (shell), FALSE);
+ if (shell)
+ return shell->priv->express;
+
+ if (g_getenv ("EVO_EXPRESS"))
+ return TRUE;
+
+ shell = e_shell_get_default ();
+ g_return_val_if_fail (shell != NULL, FALSE);
- return shell->priv->express;
+ return gconf_client_get_bool (
+ shell->priv->gconf_client,
+ "/apps/evolution/shell/express_mode",
+ NULL);
}
/**