aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-06 10:31:40 +0800
committerDan Winship <danw@src.gnome.org>2000-07-06 10:31:40 +0800
commita4e1613aae063dd4bd4088d6d14ddd3fe570e73b (patch)
treeed827f51acb1ac3a111392f2d6cdadec3c8caefc /shell/e-shell.c
parent6003a18e8970367021fbddbac8167536bb952ed5 (diff)
downloadgsoc2013-evolution-a4e1613aae063dd4bd4088d6d14ddd3fe570e73b.tar
gsoc2013-evolution-a4e1613aae063dd4bd4088d6d14ddd3fe570e73b.tar.gz
gsoc2013-evolution-a4e1613aae063dd4bd4088d6d14ddd3fe570e73b.tar.bz2
gsoc2013-evolution-a4e1613aae063dd4bd4088d6d14ddd3fe570e73b.tar.lz
gsoc2013-evolution-a4e1613aae063dd4bd4088d6d14ddd3fe570e73b.tar.xz
gsoc2013-evolution-a4e1613aae063dd4bd4088d6d14ddd3fe570e73b.tar.zst
gsoc2013-evolution-a4e1613aae063dd4bd4088d6d14ddd3fe570e73b.zip
Use the correct gconf path (/apps, not /app), and call
* e-shell.c (e_shell_save_settings): Use the correct gconf path (/apps, not /app), and call gconf_client_suggest_sync at the end. (e_shell_restore_from_settings): Use the correct gconf path. svn path=/trunk/; revision=3907
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index f5ba300e3d..d767707c38 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -120,7 +120,7 @@ folder_selection_dialog_folder_selected_cb (EShellFolderSelectionDialog *folder_
EStorageSet *storage_set;
EFolder *folder;
char *uri;
- char *physical_uri;
+ const char *physical_uri;
shell = E_SHELL (data);
listener = gtk_object_get_data (GTK_OBJECT (folder_selection_dialog), "corba_listener");
@@ -629,7 +629,7 @@ e_shell_save_settings (EShell *shell)
view = E_SHELL_VIEW (p->data);
- gconf_prefix = g_strdup_printf ("/app/Evolution/Shell/Views/%d", i);
+ gconf_prefix = g_strdup_printf ("/apps/Evolution/Shell/Views/%d", i);
if (! e_shell_view_save_settings (view, priv->gconf_client, gconf_prefix)) {
g_warning ("Cannot save settings for view -- %d", i);
@@ -639,8 +639,9 @@ e_shell_save_settings (EShell *shell)
g_free (gconf_prefix);
}
- gconf_client_set_int (priv->gconf_client, "/app/Evolution/Shell/NumberOfViews",
+ gconf_client_set_int (priv->gconf_client, "/apps/Evolution/Shell/NumberOfViews",
g_list_length (priv->views), &err);
+ gconf_client_suggest_sync (priv->gconf_client, NULL);
return retval;
}
@@ -670,7 +671,7 @@ e_shell_restore_from_settings (EShell *shell)
priv = shell->priv;
- num_views = gconf_client_get_int (priv->gconf_client, "/app/Evolution/Shell/NumberOfViews", &err);
+ num_views = gconf_client_get_int (priv->gconf_client, "/apps/Evolution/Shell/NumberOfViews", &err);
if (err != NULL) {
gconf_error_destroy (err);
return FALSE;
@@ -684,7 +685,7 @@ e_shell_restore_from_settings (EShell *shell)
GtkWidget *view_widget;
char *gconf_prefix;
- gconf_prefix = g_strdup_printf ("/app/Evolution/Shell/Views/%d", i);
+ gconf_prefix = g_strdup_printf ("/apps/Evolution/Shell/Views/%d", i);
/* FIXME restore the URI here. There should be an
e_shell_view_new_from_configuration() thingie. */