diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-04-13 08:48:18 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-04-13 08:48:18 +0800 |
commit | e54abe319e03661b1e7d4270ddc7e4d5fc06fbf6 (patch) | |
tree | 45827efc6970da918eaddb8631a7bcd2ae50f746 /shell/e-storage-set-view.c | |
parent | 5083cd6bdc9d4e666cd9077b3e11f353d1a2cd24 (diff) | |
download | gsoc2013-evolution-e54abe319e03661b1e7d4270ddc7e4d5fc06fbf6.tar gsoc2013-evolution-e54abe319e03661b1e7d4270ddc7e4d5fc06fbf6.tar.gz gsoc2013-evolution-e54abe319e03661b1e7d4270ddc7e4d5fc06fbf6.tar.bz2 gsoc2013-evolution-e54abe319e03661b1e7d4270ddc7e4d5fc06fbf6.tar.lz gsoc2013-evolution-e54abe319e03661b1e7d4270ddc7e4d5fc06fbf6.tar.xz gsoc2013-evolution-e54abe319e03661b1e7d4270ddc7e4d5fc06fbf6.tar.zst gsoc2013-evolution-e54abe319e03661b1e7d4270ddc7e4d5fc06fbf6.zip |
Implemented these.
2001-04-12 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (etree_has_get_node_by_id,
etree_get_node_by_id): Implemented these.
svn path=/trunk/; revision=9291
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r-- | shell/e-storage-set-view.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 595e2bf76a..92b2355c90 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -1301,6 +1301,21 @@ etree_get_save_id (ETreeModel *etm, ETreePath node, void *model_data) return g_strdup(e_tree_memory_node_get_data (E_TREE_MEMORY(etm), node)); } +static gboolean +etree_has_get_node_by_id (ETreeModel *etm, void *data) +{ + return TRUE; +} + +static ETreePath +etree_get_node_by_id (ETreeModel *etm, gchar *save_id, void *model_data) +{ + EStorageSetView *storage_set_view; + storage_set_view = E_STORAGE_SET_VIEW (model_data); + + return g_hash_table_lookup (storage_set_view->priv->path_to_etree_node, save_id); +} + static void * etree_value_at (ETreeModel *etree, ETreePath tree_path, int col, void *model_data) { @@ -1773,6 +1788,9 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view, etree_has_save_id, etree_get_save_id, + etree_has_get_node_by_id, + etree_get_node_by_id, + etree_value_at, etree_set_value_at, etree_is_editable, |