From d4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 13 Oct 2011 16:53:51 +0200 Subject: Migrate most of the shell code to GSettings --- shell/e-shell.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'shell/e-shell.c') diff --git a/shell/e-shell.c b/shell/e-shell.c index 1e8cd3c0f9..740bec8306 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -1430,18 +1430,13 @@ e_shell_create_shell_window (EShell *shell, /* EShellWindow initializes its active view from a GConf key, * so set the key ahead of time to control the intial view. */ if (view_name != NULL) { - GConfClient *client; + GSettings *settings; const gchar *key; - GError *error = NULL; - client = e_shell_get_gconf_client (shell); - key = "/apps/evolution/shell/view_defaults/component_id"; - gconf_client_set_string (client, key, view_name, &error); + settings = g_settings_new ("org.gnome.evolution.shell"); + g_settings_set_string (settings, "default-component-id", view_name); - if (error != NULL) { - g_warning ("%s", error->message); - g_error_free (error); - } + g_object_unref (settings); } shell_window = e_shell_window_new ( -- cgit v1.2.3