aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-04-05 04:27:03 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-04-05 04:27:03 +0800
commite523bfb30046638ef6414ac5940d537ed0de8d6c (patch)
tree3cbc75908549a312637dbb056792e663d2726965 /shell/e-shell-view.c
parent03c22238641a72e40cc853627ce9ad685b358373 (diff)
downloadgsoc2013-evolution-e523bfb30046638ef6414ac5940d537ed0de8d6c.tar
gsoc2013-evolution-e523bfb30046638ef6414ac5940d537ed0de8d6c.tar.gz
gsoc2013-evolution-e523bfb30046638ef6414ac5940d537ed0de8d6c.tar.bz2
gsoc2013-evolution-e523bfb30046638ef6414ac5940d537ed0de8d6c.tar.lz
gsoc2013-evolution-e523bfb30046638ef6414ac5940d537ed0de8d6c.tar.xz
gsoc2013-evolution-e523bfb30046638ef6414ac5940d537ed0de8d6c.tar.zst
gsoc2013-evolution-e523bfb30046638ef6414ac5940d537ed0de8d6c.zip
Remove the icon_modes schema.
* apps_evolution_shell.schemas: Remove the icon_modes schema. * e-shell-view.c (setup_defaults): Don't set the icon modes from GConf, they are already stored in the shortcuts.xml file. (e_shell_view_save_defaults): Likewise, don't set it here. * e-config-upgrade.c: Remove translation from ShortcutBarGroup%iIconMode to shell/view_defaults/shortcut_bar/icon_types. svn path=/trunk/; revision=20673
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index c964b7c38c..a2a28e80dd 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -413,12 +413,9 @@ setup_defaults (EShellView *shell_view)
EShellViewPrivate *priv;
EShortcutBar *shortcut_bar;
GConfClient *client;
- GSList *icon_types_list;
- GSList *p;
char *file_name;
int shortcut_group;
int width;
- int i;
g_return_if_fail (shell_view != NULL);
g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
@@ -450,12 +447,6 @@ setup_defaults (EShellView *shell_view)
gtk_paned_set_position (GTK_PANED (priv->view_hpaned), width);
priv->view_hpaned_position = width;
- icon_types_list = gconf_client_get_list (client, "/apps/evolution/shell/view_defaults/shortcut_bar/icon_types",
- GCONF_VALUE_INT, NULL);
- for (p = icon_types_list, i = 0; p != NULL; p = p->next, i++)
- e_shortcut_bar_set_view_type (shortcut_bar, i, GPOINTER_TO_INT (p->data));
- g_slist_free (icon_types_list);
-
/* Load the expanded state for the ShellView's StorageSetView */
file_name = g_strdup_printf ("%s/config/storage-set-view-expanded:default",
e_shell_get_local_directory (priv->shell));
@@ -2816,11 +2807,8 @@ e_shell_view_save_defaults (EShellView *shell_view)
GConfClient *client;
EShellViewPrivate *priv;
EShortcutBar *shortcut_bar;
- GSList *shortcut_view_type_list;
const char *uri;
char *file_name;
- int num_groups;
- int group;
struct stat temp;
g_return_if_fail (shell_view != NULL);
@@ -2865,21 +2853,6 @@ e_shell_view_save_defaults (EShellView *shell_view)
else
gconf_client_unset (client, "/apps/evolution/shell/view_defaults/folder_path", NULL);
- num_groups = e_shortcut_model_get_num_groups (shortcut_bar->model);
-
- shortcut_view_type_list = NULL;
- for (group = 0; group < num_groups; group++) {
- EIconBarViewType view_type;
-
- view_type = e_shortcut_bar_get_view_type (shortcut_bar, group);
- shortcut_view_type_list = g_slist_prepend (shortcut_view_type_list, GINT_TO_POINTER (view_type));
- }
-
- gconf_client_set_list (client, "/apps/evolution/shell/view_defaults/shortcut_bar/icon_types",
- GCONF_VALUE_INT, shortcut_view_type_list, NULL);
-
- g_slist_free (shortcut_view_type_list);
-
/* If ~/evolution/config/ doesn't exist yet, make it */
file_name = g_strdup_printf ("%s/config/", e_shell_get_local_directory (priv->shell));
if (stat (file_name, &temp) != 0)