diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-13 22:53:51 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-13 22:53:51 +0800 |
commit | d4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9 (patch) | |
tree | 57244f41cfcd1cd6ded0348501ce465ebfba9d2d /shell/e-shell.c | |
parent | 805d8c25ac6c8f58c8e17f3b89fa50f17cfdf27b (diff) | |
download | gsoc2013-evolution-d4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9.tar gsoc2013-evolution-d4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9.tar.gz gsoc2013-evolution-d4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9.tar.bz2 gsoc2013-evolution-d4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9.tar.lz gsoc2013-evolution-d4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9.tar.xz gsoc2013-evolution-d4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9.tar.zst gsoc2013-evolution-d4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9.zip |
Migrate most of the shell code to GSettings
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r-- | shell/e-shell.c | 13 |
1 files changed, 4 insertions, 9 deletions
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 ( |