aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-07-25 02:59:46 +0800
committerJacob Leach <jleach@src.gnome.org>2001-07-25 02:59:46 +0800
commit3c69c8b3cc2ededfd1b89d6a4c13e6316fdf5233 (patch)
treee20fb9fd2bf78537815050572ea4864d48d38c87 /shell
parent488f755ce87e435a79a7da3fb31f83da3945935e (diff)
downloadgsoc2013-evolution-3c69c8b3cc2ededfd1b89d6a4c13e6316fdf5233.tar.gz
gsoc2013-evolution-3c69c8b3cc2ededfd1b89d6a4c13e6316fdf5233.tar.zst
gsoc2013-evolution-3c69c8b3cc2ededfd1b89d6a4c13e6316fdf5233.zip
Add the "/My Evolution" path to the path_to_etree_node hash so that
2001-07-24 Jason Leach <jleach@ximian.com> * e-storage-set-view.c (e_storage_set_view_construct): Add the "/My Evolution" path to the path_to_etree_node hash so that storage_set_view_set_current_folder() can select the My Evolution node when it's the current one. Fixes #5114 and #3956. svn path=/trunk/; revision=11348
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog7
-rw-r--r--shell/e-storage-set-view.c16
2 files changed, 19 insertions, 4 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 9f9af764cc..ba43e4c7ec 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,10 @@
+2001-07-24 Jason Leach <jleach@ximian.com>
+
+ * e-storage-set-view.c (e_storage_set_view_construct): Add the
+ "/My Evolution" path to the path_to_etree_node hash so that
+ storage_set_view_set_current_folder() can select the My Evolution
+ node when it's the current one. Fixes #5114 and #3956.
+
2001-07-23 Ettore Perazzoli <ettore@ximian.com>
* main.c (development_warning): Only show the warning dialog
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index dde7d23c93..43a7f9e3fc 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -1436,7 +1436,10 @@ etree_value_at (ETreeModel *etree, ETreePath tree_path, int col, void *model_dat
return TRUE;
}
- return _("My Evolution");
+ if (col == 0)
+ return _("My Evolution");
+ else
+ return TRUE;
}
static void
@@ -1842,7 +1845,9 @@ insert_storages (EStorageSetView *storage_set_view)
parent = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model), priv->root_node,
-1, path);
- e_tree_memory_sort_node (E_TREE_MEMORY(priv->etree_model), priv->root_node, storage_sort_callback, storage_set_view);
+ e_tree_memory_sort_node (E_TREE_MEMORY(priv->etree_model),
+ priv->root_node,
+ storage_sort_callback, storage_set_view);
g_hash_table_insert (priv->path_to_etree_node, path, parent);
@@ -1895,7 +1900,10 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view,
e_tree_memory_set_node_destroy_func (E_TREE_MEMORY (priv->etree_model), (GFunc) g_free, NULL);
e_tree_memory_set_expanded_default (E_TREE_MEMORY (priv->etree_model), TRUE);
- priv->root_node = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model), NULL, -1, g_strdup ("/My Evolution"));
+ priv->root_node = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model),
+ NULL, -1,
+ g_strdup ("/My Evolution"));
+ add_node_to_hash (storage_set_view, "/My Evolution", priv->root_node);
extras = e_table_extras_new ();
cell = e_cell_text_new (NULL, GTK_JUSTIFY_LEFT);
@@ -1992,7 +2000,7 @@ e_storage_set_view_get_current_folder (EStorageSetView *storage_set_view)
etree_node = e_tree_get_cursor (E_TREE (storage_set_view));
if (etree_node == NULL)
- return NULL; /* Mmh? */
+ return NULL; /* Mmh? */
path = (char*)e_tree_memory_node_get_data(E_TREE_MEMORY(priv->etree_model), etree_node);