diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-06-14 03:07:00 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-14 03:07:00 +0800 |
commit | ab27aff72c64183166fc6207d2ef0142e1ab8c83 (patch) | |
tree | 6b95a26dedf3ca26ae70f9a2ff3ea466e42763dc /mail/em-folder-tree-model.h | |
parent | 49ba34088bcdb9ab9cfae0c2b7fe11452fb60e24 (diff) | |
download | gsoc2013-evolution-ab27aff72c64183166fc6207d2ef0142e1ab8c83.tar gsoc2013-evolution-ab27aff72c64183166fc6207d2ef0142e1ab8c83.tar.gz gsoc2013-evolution-ab27aff72c64183166fc6207d2ef0142e1ab8c83.tar.bz2 gsoc2013-evolution-ab27aff72c64183166fc6207d2ef0142e1ab8c83.tar.lz gsoc2013-evolution-ab27aff72c64183166fc6207d2ef0142e1ab8c83.tar.xz gsoc2013-evolution-ab27aff72c64183166fc6207d2ef0142e1ab8c83.tar.zst gsoc2013-evolution-ab27aff72c64183166fc6207d2ef0142e1ab8c83.zip |
Thought of a better way to copy folder tree state.
Revert the expanded tree model column and add a "selection"property to
EMFolderTreeModel, which the sidebar sets. If set, all new EMFolderTree
instances will automatically mimic its expanded and selected state.
Diffstat (limited to 'mail/em-folder-tree-model.h')
-rw-r--r-- | mail/em-folder-tree-model.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/em-folder-tree-model.h b/mail/em-folder-tree-model.h index 036002d74b..899a6ee1d8 100644 --- a/mail/em-folder-tree-model.h +++ b/mail/em-folder-tree-model.h @@ -63,7 +63,6 @@ enum { COL_UINT_UNREAD, /* unread count */ COL_UINT_FLAGS, /* FolderInfo.flags */ - COL_BOOL_EXPANDED, /* node is expanded in sidebar */ COL_BOOL_IS_STORE, /* toplevel store node? */ COL_BOOL_IS_FOLDER, /* folder (not a store) */ COL_BOOL_LOAD_SUBDIRS, /* %TRUE only if the store/folder @@ -116,6 +115,12 @@ EMFolderTreeModel * EMailShellBackend * em_folder_tree_model_get_mail_shell_backend (EMFolderTreeModel *model); +GtkTreeSelection * + em_folder_tree_model_get_selection + (EMFolderTreeModel *model); +void em_folder_tree_model_set_selection + (EMFolderTreeModel *model, + GtkTreeSelection *selection); void em_folder_tree_model_set_folder_info (EMFolderTreeModel *model, GtkTreeIter *iter, |