diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-19 13:52:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-19 13:52:33 +0800 |
commit | 0110c94c6abdbb25b4fea6a21f20f00b82a0fdd8 (patch) | |
tree | 2878cd13bd0cbdb1aa575dc9a351517591f002f9 /shell/main.c | |
parent | fd564be3203400024147469faaa7de0884861566 (diff) | |
download | gsoc2013-evolution-0110c94c6abdbb25b4fea6a21f20f00b82a0fdd8.tar gsoc2013-evolution-0110c94c6abdbb25b4fea6a21f20f00b82a0fdd8.tar.gz gsoc2013-evolution-0110c94c6abdbb25b4fea6a21f20f00b82a0fdd8.tar.bz2 gsoc2013-evolution-0110c94c6abdbb25b4fea6a21f20f00b82a0fdd8.tar.lz gsoc2013-evolution-0110c94c6abdbb25b4fea6a21f20f00b82a0fdd8.tar.xz gsoc2013-evolution-0110c94c6abdbb25b4fea6a21f20f00b82a0fdd8.tar.zst gsoc2013-evolution-0110c94c6abdbb25b4fea6a21f20f00b82a0fdd8.zip |
Rename EShell:online-mode to EShell:online and update docs.
Use EBindings instead of a notify callback to keep other widgets and
actions synchronized with EShell:online. Cleaner and less error prone.
svn path=/branches/kill-bonobo/; revision=37293
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/main.c b/shell/main.c index ce1b467754..df542568f3 100644 --- a/shell/main.c +++ b/shell/main.c @@ -578,7 +578,7 @@ create_default_shell (void) EShell *shell; GConfClient *conf_client; GnomeClient *master_client; - gboolean online_mode = TRUE; + gboolean online = TRUE; gchar *startup_id; GError *error = NULL; @@ -586,9 +586,9 @@ create_default_shell (void) master_client = gnome_master_client (); if (start_online) - online_mode = TRUE; + online = TRUE; else if (start_offline) - online_mode = FALSE; + online = FALSE; else { const gchar *key; gboolean value; @@ -596,7 +596,7 @@ create_default_shell (void) key = "/apps/evolution/shell/start_offline"; value = gconf_client_get_bool (conf_client, key, &error); if (error == NULL) - online_mode = !value; + online = !value; else { g_warning ("%s", error->message); g_error_free (error); @@ -608,7 +608,7 @@ create_default_shell (void) shell = g_object_new ( E_TYPE_SHELL, "name", "org.gnome.evolution", - "online-mode", online_mode, + "online", online, "startup-id", startup_id, NULL); |