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.
Each EShellView now maintains a GKeyFile for recording disposable widget
state such as tree view path expansion, scroll bar positions, combo box
selections, etc. The EShellView records changes to the key file to
~/.evolution/<shell-backend>/config/state, and automatically restores
the GKeyFile at startup.
Currently only the mailer uses the key file, but it's intended to serve
all shell views. It replaces the use of Camel "cmeta" files, as well as
"et-expanded-*" and "folder-tree-expand-state.xml" files.
Also, the mailer's folder tree model now includes a column for tracking
which sidebar folders are expanded. Folder tree widgets appearing in
dialog windows can copy the sidebar's expanded state using
em_folder_tree_clone_expanded().
Consolidate all marshalling specifications to e-util/e-marshal.list.
This reduces code duplication and makes it slightly easier to locate
unused marshallers.
This reduces the dependency of the composer on the mail module, which is
currently a circular dependency.
svn path=/branches/kill-bonobo/; revision=37135
2008-07-28 Milan Crha <mcrha@redhat.com>
** Fix for bug #543532
* em-folder-tree-model.c: (em_folder_tree_model_remove_store_info):
Let free memory when we are done with it, not before.
svn path=/trunk/; revision=35850
2008-07-28 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #543411
* mail/em-folder-tree-model.c: Dont load known folders.
* mail/em-folder-tree.c: Move iter to the last entry.
svn path=/trunk/; revision=35841
2008-06-20 Milan Crha <mcrha@redhat.com>
** Fix for bug #534039
* em-folder-tree-model.h: (em_folder_tree_model_signal_block):
* em-folder-tree-model.c: (em_folder_tree_model_signal_block):
Removed obsolete function.
* mail-vfolder.c: (vfolder_load_storage):
Add storage to the tree model when everything is loaded, thus
everything will be shown when enabling the Search Folders on demand.
Also ensure the Search Folders to be enabled next start.
* mail-vfolder.c: (mail_vfolder_add_uri), (mail_vfolder_delete_uri):
Track folders even when Search Folders disabled, to have them
known when enabling Search Folders on demand.
svn path=/trunk/; revision=35658
2008-03-17 Milan Crha <mcrha@redhat.com>
** Fix for bug #514744
* em-folder-tree-model.c: (em_folder_tree_model_load_state):
Check also for proper root node and use default if not the right one.
svn path=/trunk/; revision=35209
2008-01-02 Srinivasa Ragavan <sragavan@novell.com>
* em-event.c: (eme_target_free):
* em-event.h:
* em-folder-tree-model.c: (em_folder_tree_model_get_folder_name):
* em-folder-tree-model.h:
* mail-folder-cache.c: (real_flush_updates): Send the folder name
along with the new mail event.
svn path=/trunk/; revision=34744
2007-12-15 Matthew Barnes <mbarnes@redhat.com>
* configure.in:
* plugins/mail-remote:
Just remove the mail-remote plugin altogether so we stop going
back and forth over whether the translatable files should be added
to POTFILES.in. We can always add it back once we get it working
again.
* po/POTFILES.in:
Remove the mail-remote files for good this time.
* mail/em-folder-tree-model.c (emft_model_unread_count_changed),
(emfolder_tree_model_set_unread_count):
Fix recently introduced compiler warnings.
* plugins/mail-remote:
Remove this plugin until it can be fixed.
* ui/evolution.xml:
Fix capitalization of "Download Messages..." (HIG 8.3.2).
svn path=/trunk/; revision=34706
2007-12-14 Sankar P <psankar@novell.com>
* em-folder-tree-model.c: (emft_model_unread_count_changed),
(em_folder_tree_model_init),
(em_folder_tree_model_set_unread_count):
* em-folder-tree.c: (em_folder_tree_construct):
Moving some code from tree to model where it belongs.
Fixes some CPU usage issue whenever (un)read count is updated.
Hopefully no regresssions.
svn path=/trunk/; revision=34698
2007-11-05 Milan Crha <mcrha@redhat.com>
** Fix for bug #343011
(restore collapse state of selected folder after start)
* em-folder-tree.c: (emft_maybe_expand_row): Do not expand subtree of
a node, only make it visible.
* em-folder-tree-model.h: (em_folder_tree_model_get_expanded_uri),
(em_folder_tree_model_set_expanded_uri):
* em-folder-tree-model.c: (em_folder_tree_model_get_expanded_uri),
(em_folder_tree_model_set_expanded_uri):
Same as ..._get/_set_expanded, but using 'uri', instead of 'key'.
* em-folder-tree-model.c: (emftm_uri_to_key): New helper function.
* mail-component.c: (impl_createView): Restore collapsed state after
selecting last selected folder, if necessary.
svn path=/trunk/; revision=34503
2007-10-09 Bharath Acharya <abharath@novell.com>
** Fix for bug #484635
* em-folder-tree-model.c: (em_folder_tree_model_remove_store_info):
Destroy functions in GHashTables to simplify memory management already
free the store info. So do no free it again in this function.
svn path=/trunk/; revision=34365