From 0110c94c6abdbb25b4fea6a21f20f00b82a0fdd8 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 19 Feb 2009 05:52:33 +0000 Subject: 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 --- shell/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'shell/main.c') 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); -- cgit v1.2.3