From 2166e7f4c73e8cc1f9b7f00027eec9de05961ee2 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 24 Feb 2010 15:08:43 +0000 Subject: Add 'express mode' gconf setting --- shell/e-shell.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'shell/e-shell.c') diff --git a/shell/e-shell.c b/shell/e-shell.c index fe046a4fc7..3fc23477d8 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -60,6 +60,7 @@ struct _EShellPrivate { guint online : 1; guint quit_cancelled : 1; guint safe_mode : 1; + guint express : 1; }; enum { @@ -1037,7 +1038,8 @@ 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 @@ -1658,6 +1660,24 @@ e_shell_set_online (EShell *shell, shell_prepare_for_offline (shell); } +/** + * e_shell_get_online: + * @shell: an #EShell + * + * Returns %TRUE if Evolution is online, %FALSE if Evolution is offline. + * Evolution may be offline because the user elected to work offline, or + * because the network has become unavailable. + * + * Returns: %TRUE if Evolution is online + **/ +gboolean +e_shell_get_express_mode (EShell *shell) +{ + g_return_val_if_fail (E_IS_SHELL (shell), FALSE); + + return shell->priv->online; +} + /** * e_shell_get_preferences_window: * @shell: an #EShell -- cgit