2008-09-24 Milan Crha <mcrha@redhat.com>
** Fix for bug #313225
* mail/message-list.c: (struct states_pixmaps), (ml_tree_value_at),
(message_list_create_extras): Show meeting icon in 'Attachment'
column on messages with '$has_cal' user flag set.
* plugins/itip-formatter/itip-formatter.c: (format_itip): Set the user flag '$has_cal'
on the message when formatting a calendar attachment.
svn path=/trunk/; revision=36445
2008-08-12 Milan Crha <mcrha@redhat.com>
** Fix for bug #519292
* message-list.c: (read_boolean_with_default),
(message_list_construct): Read 'thread_expand' and 'thread_latest'
safely with TRUE as default if key doesn't exist.
svn path=/trunk/; revision=35968
2008-08-11 Milan Crha <mcrha@redhat.com>
** Fix for bug #519292
* mail/message-list.c: (load_tree_expand_all): Drop function.
* mail/message-list.c: (regen_list_done): Rather use desired expanded state
value when creating the tree instead of the default model's value for
this to have 'expand/collapse all' commands work better and quicker.
* widgets/tablee-tree.h: (e_tree_load_all_expanded_state):
* widgets/tablee-tree.c: (e_tree_load_all_expanded_state):
* widgets/tablee-tree-table-adapter.h:
(e_tree_table_adapter_load_all_expanded_state):
* widgets/tablee-tree-table-adapter.c:
(e_tree_table_adapter_load_all_expanded_state),
(set_expanded_state_func), (set_collapsed_state_func):
Drop functions in favor of new functions.
* widgets/tablee-tree.h: (e_tree_force_expanded_state):
* widgets/tablee-tree.c: (e_tree_force_expanded_state):
* widgets/tablee-tree-table-adapter.h: (e_tree_table_adapter_force_expanded_state):
* widgets/tablee-tree-table-adapter.c: (e_tree_table_adapter_force_expanded_state),
(struct ETreeTableAdapterPriv), (create_gnode), (etta_init):
Use either default value of the model to expanded state of new node or
use the one which has been set (forced) by new functions.
svn path=/trunk/; revision=35954
2008-08-11 Milan Crha <mcrha@redhat.com>
** Fix for bug #352695
* widgets/table/e-tree-table-adapter.h:
(e_tree_table_adapter_save_expanded_state_xml),
(e_tree_table_adapter_load_expanded_state_xml):
* widgets/table/e-tree-table-adapter.c:
(e_tree_table_adapter_save_expanded_state_xml),
(e_tree_table_adapter_save_expanded_state),
(e_tree_table_adapter_load_expanded_state_xml),
(e_tree_table_adapter_load_expanded_state):
* widgets/table/e-tree.h: (e_tree_save_expanded_state_xml),
(e_tree_load_expanded_state_xml):
* widgets/table/e-tree.c: (e_tree_save_expanded_state_xml),
(e_tree_load_expanded_state_xml):
Be able to store expanded state also in memory, not only on the disk.
* mail/message-list.c: (struct _MessageListPrivate), (save_tree_state),
(load_tree_state), (on_model_row_changed), (message_list_init),
(message_list_construct), (struct _regen_list_msg), (regen_list_done),
(regen_list_free), (mail_regen_list): Be able to recognize whether
there has been any change on any row in a list and save expanded
state only in case there was any change. Also use in-memory storing
of the expanded state in case we do not want to rewrite full view
It's for searches only, and it's not stored between sessions.
svn path=/trunk/; revision=35953
2008-08-05 Srinivasa Ragavan <sragavan@novell.com>
* mail/message-list.c: Fix a performance issue, where we can just go
by the presence than the exact count.
svn path=/trunk/; revision=35907
2008-07-31 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #545436
* mail/message-list.c: Check the info before accessing it.
svn path=/trunk/; revision=35870
2008-07-09 Milan Crha <mcrha@redhat.com>
** Fix for bug #228725
* gui/widgets/e-minicard-view.h: (struct _EMinicardView):
* gui/widgets/e-minicard-view.c: (set_empty_message),
(stop_state_changed), (e_minicard_view_set_property),
(e_minicard_view_dispose), (e_minicard_view_init):
Show different message in a view when searching.
svn path=/trunk/; revision=35783
2008-07-09 Milan Crha <mcrha@redhat.com>
** Fix for bug #207802 (Patch suggested by Veerapuram Varadhan.)
* message-list.c: (struct search_child_struct), (search_child_cb),
(is_tree_widget_children), (ml_tree_drag_motion): Do not allow drop
messages to the same message list as is the source. Also do not
allow drop over message list if it doesn't have set a folder.
svn path=/trunk/; revision=35732
2008-07-03 Milan Crha <mcrha@redhat.com>
** Fix for bug #541365
* message-list.c: (message_list_get_uids), (message_list_get_selected):
Do not call 'camel_folder_sort_uids' when we do not have folder or uid.
svn path=/trunk/; revision=35719
2008-07-02 Jeffrey Stedfast <fejj@novell.com>
Sort the uids so that moving/copying messages preserves mailbox
ordering rather than jumbled randomness.
* message-list.c (message_list_get_uids): Sort the uids.
(message_list_get_selected): Same.
svn path=/trunk/; revision=35714
2008-06-26 Milan Crha <mcrha@redhat.com>
** Fix for bug #540160
* message-list.h: (struct _MessageList):
* message-list.c: (message_list_init), (on_cursor_activated_cmd),
(on_selection_changed_cmd): Remember whether we come from none/multi
select to single select and properly update the preview.
(Reverting patch for bug #337160 and doing that with other approach.)
svn path=/trunk/; revision=35684
2008-06-16 Milan Crha <mcrha@redhat.com>
** Fix for bug #467892
* message-list.h: (struct _MessageList), (message_list_ensure_message):
* message-list.c: (message_list_init), (message_list_finalise),
(message_list_ensure_message), (regen_list_exec), (regen_list_done):
Be able to set a message uid to keep in a list after regeneration.
* em-folder-view.c: (em_folder_view_open_selected):
Inherit search criteria and ensure keeping the selected message
in the view even it may not belong to the filter anymore.
svn path=/trunk/; revision=35640
2008-06-13 Milan Crha <mcrha@redhat.com>
** Fix for bug #337160
* message-list.c: (on_cursor_activated_cmd): Do not pretend the row
with a cursor is selected when it isn't. Also take care of multiselect.
* message-list.c: (on_selection_changed_cmd):
Do not pretend the row with a cursor is selected when it isn't.
svn path=/trunk/; revision=35633
2008-06-06 Matthew Barnes <mbarnes@redhat.com>
** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES and
GTK_DISABLE_SINGLE_INCLUDES defined. (#536637)
svn path=/trunk/; revision=35606
2008-06-02 Milan Crha <mcrha@redhat.com>
** Fix for bug #535749
* message-list.c: (regen_list_exec): Use better condition whether
keep cursor_uid in the message list or not on regeneration.
svn path=/trunk/; revision=35574
2008-05-22 Matthew Barnes <mbarnes@redhat.com>
** Fix a bunch of compiler warnings.
* calendar/gui/e-select-names-renderer.c
(e_select_names_renderer_focus_out_event):
Remove this function. Looks like it hasn't been used in years.
* mail/em-format-html.c (efh_message_external):
Fix a typo in checking for an empty 'mode' string.
* mail/message-list.c (subtree_size):
Remove this function. Looks like it hasn't been used in years.
* plugins/email-custom-header/email-custom-header.c
(action_email_custom_header_cb):
Remove unused 'editor' variable.
* plugins/save-calendar/csv-format.c (do_save_calendar_csv):
* plugins/save-calendar/rdf-format.c (do_save_calendar_rdf):
Remove pointless address check of a local variable.
svn path=/trunk/; revision=35527
2008-05-19 Matthew Barnes <mbarnes@redhat.com>
* mail/message-list.c (regen_list_done):
Use a bit more direct English when informing the user of no messages
in the currently selected folder.
svn path=/trunk/; revision=35515
2008-04-30 Milan Crha <mcrha@redhat.com>
** Fix for bug #528288
* widgets/misc/e-filter-bar.c: (get_property): Do not return any query
with empty text from search bar.
* widgets/table/e-tree.h: (e_tree_set_info_message):
* widgets/table/e-tree.c: (struct ETreePriv), (et_dispose), (e_tree_init),
(tree_size_allocate), (e_tree_set_info_message):
Allow setting info message into the tree. It doesn't check
whether the tree is empty or not, so take care of that.
* mail/em-folder-browser.c: (emfb_init), (em_folder_browser_show_wide):
Ensure minimum size for preview and message list.
* mail/em-folder-browser.c: (get_view_query):
Distinguish between no filter and custom filter.
* mail/message-list.c: (regen_list_done):
Set info message to tree when no message shown in a list.
svn path=/trunk/; revision=35459
2008-04-30 Milan Crha <mcrha@redhat.com>
** Fix for bug #467892
* em-folder-view.c: (em_folder_view_open_selected):
Do not inherit search filters when opening messages in new window.
* message-list.c: (regen_list_exec):
If we are called from folder_changed even, then keep the actually
selected message so it will not disappear when user reads it and
it doesn't belong to actual filter anymore.
svn path=/trunk/; revision=35454
2008-04-01 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #525508, spotted by Thomas M.
* message-list.c (ml_tree_value_at):
Fix a leaking CamelURL in the COL_LOCATION case.
svn path=/trunk/; revision=35297
2008-04-01 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #525510, patch from Thomas M.
* mail/message-list.c (ml_tree_value_at):
Mark "On This Computer" for translation.
svn path=/trunk/; revision=35296
2008-03-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #488175
* message-list.c: (ml_tree_value_at):
Colorize follow-up messages same as with due-by flag.
svn path=/trunk/; revision=35261
2008-02-10 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #411576
* evolution-mail.schemas.in: Add a key to decide if same fonts gotto
be used in message list in vertical view column.
* message-list.c: (create_composite_cell):
svn path=/trunk/; revision=34987
2008-01-16 Matthew Barnes <mbarnes@redhat.com>
* em-folder-browser.c:
* message-list.c:
Change of heart; decided we like the old "emblem-important"
icon better than "mail-mark-important" for the message list
and "Show" combo box.
svn path=/trunk/; revision=34842
2008-01-10 Milan Crha <mcrha@redhat.com>
** Fix for bug #211353
* po/POTFILES.in: Added new file e-util/e-util-labels.c
* mail/filtertypes.xml:
* mail/vfoldertypes.xml:
* mail/em-folder-view.c:
* mail/em-folder-browser.c:
* mail/em-mailer-prefs.h:
* mail/em-mailer-prefs.c:
* mail/mail-config.h:
* mail/mail-config.c:
* mail/mail-config.glade:
* mail/message-list.c:
Label tags are now generated based on label name when creating, except
of first 5 labels. New menu option "New Label" in popup menu over
message list and editing of labels has been changed in Preferences.
Also renaming tab in Preferences for "Labels", not "Colors", and the
tab label too.
mail-config-label... functions was moved to e-util/e-util-labels.c/.h.
* mail/message-list.etspec: Normalized columns has been moved by one
when label column has been added.
* filter/filter-option.h:
* filter/filter-option.c: (filter_option_get_current),
(filter_option_remove_all): New functions to be able to refill options
even after initialization of the filter element.
* filter/filter-label.c: Added support to notify changes on labels in runtime
and use actual labels.
* e-util/Makefile.am:
* e-util/e-util-labels.h:
* e-util/e-util-labels.c: New files to work with labels.
svn path=/trunk/; revision=34788
M addressbook/gui/component/addressbook-view.c
M addressbook/ChangeLog
AM data/icons/hicolor_actions_16x16_mail-move.png
AM data/icons/hicolor_actions_16x16_mail-copy.png
AM data/icons/hicolor_actions_16x16_folder-move.png
M data/icons/Makefile.am
AM data/icons/hicolor_actions_16x16_folder-copy.png
M mail/em-folder-browser.c
M mail/ChangeLog
M mail/em-folder-tree.c
M mail/em-folder-view.c
M mail/message-list.c
M composer/ChangeLog
M composer/e-msg-composer.c
M ChangeLog
M calendar/gui/dialogs/comp-editor.c
M calendar/ChangeLog
svn path=/trunk/; revision=34769
2007-12-20 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #362638
* calendar/gui/alarm-notify/alarm-notify.c:
* calendar/gui/alarm-notify/alarm-notify.h:
* calendar/gui/alarm-notify/alarm-queue.c:
Rewrite message passing to use GThreadPool instead of EThread.
* mail/mail-mt.h:
Overhaul the message passing API:
- Define a MailMsg type as the base message struct.
- Define types for the various callback functions.
- Add a priority value to each message (not yet used).
- Add a reference count to each message.
- Define a MailMsgInfo type for the virtual function table.
- Record the size of message sub-types in MailMsgInfo.
- New/changed functions:
mail_msg_new() - Easier to use.
mail_msg_ref() - Increase reference count.
mail_msg_unref() - Decrease reference count.
mail_msg_main_loop_push() }
mail_msg_unordered_push() } Submit MailMsgs to various
mail_msg_fast_ordered_push() } message-processing threads.
mail_msg_slow_ordered_push() }
* mail/mail-mt.c (mail_msg_new):
Use GSlice for memory allocation.
* mail/mail-mt.c (mail_msg_ref), (mail_msg_unref):
New functions increment/decrement a MailMsg's reference count.
* mail/mail-mt.c (mail_cancel_hood_add), (mail_cancel_hook_remove):
Convert the 'cancel_hook_list' from an EDList to a GHookList and
modify the API accordingly.
* mail/mail-mt.c:
Use GThreadPools instead of EThreads.
Use GAsyncQueues instead of EMsgPorts.
* mail/em-composer-utils.c:
* mail/em-folder-browser.c:
* mail/em-folder-properties.c:
* mail/em-folder-tree.c:
* mail/em-folder-utils.c:
* mail/em-folder-view.c:
* mail/em-format-html-print.c:
* mail/em-format-html.c:
* mail/em-subscribe-editor.c:
* mail/em-sync-stream.c:
* mail/importers/elm-importer.c:
* mail/importers/mail-importer.c:
* mail/importers/pine-importer.c:
* mail/mail-component.c:
* mail/mail-folder-cache.c:
* mail/mail-mt.c:
* mail/mail-ops.c:
* mail/mail-ops.h:
* mail/mail-send-recv.c:
* mail/mail-session.c:
* mail/mail-vfolder.c:
* mail/message-list.c:
* plugins/folder-unsubscribe/folder-unsubscribe.c:
* plugins/groupwise-features/share-folder-common.c:
* plugins/exchange-operations/exchange-folder.c:
* plugins/mark-all-read/mark-all-read.c:
* plugins/mailing-list-actions/mailing-list-actions.c:
* plugins/itip-formatter/itip-formatter.c:
* plugins/save-attachments/save-attachments.c:
Use the new MailMsg API for messages.
svn path=/trunk/; revision=34730
2007-12-14 Milan Crha <mcrha@redhat.com>
** Fix for bug #211353
* message-list.etspec:
* message-list.h:
* message-list.c: Added new column to show labels.
* filtertypes.xml:
* vfoldertypes.xml:
Code for label filters/search folders has been changed.
* mail-config.glade:
* em-folder-view.c: (emfv_set_label), (emfv_unset_label),
(emfv_popup_label_clear), (emfv_popup_label_set),
(emfv_popup_labels_get_state_for_tag), (emfv_popup):
Labels popup submenu is now shown with checkboxes so one can set
more than one label to the message and unset only one label from
message. There has been added new function, because of this.
* mail-config.h:
* mail-config.c: New "interface" functions to work with labels.
* em-mailer-prefs.h:
* em-mailer-prefs.c: Editing labels in tree.
* em-folder-browser.c:
Labels in show menu reflect changes in preferences.
2007-12-14 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #211353
* filter-label.c: Use global label's setup, not its own copy.
2007-12-14 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #211353
* e-popup.h:
* e-popup.c: (ep_build_tree):
Toggles can be in inconsistent state now, and can also contain
an image, which is a pointer to GtkImage widget.
2007-12-14 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #211353
* e-search-bar.c: (e_search_bar_get_viewitem_id):
Return -1 if no viewmenu is setup yet.
svn path=/trunk/; revision=34715
2007-11-26 Nicholas Miell <nmiell@gmail.com>
** Fix for bug #216485
Edit->Select thread menu fix and improvement.
* mail/em-folder-browser.c: (emfb_edit_select_subthread): new function,
(emfb_enable_map, emfb_verbs) hook it up
* mail/message-list.c: (select_thread): new function based on
thread_select_foreach, (thread_select_foreach): remove the logic
now in select_thread, (message_list_select_thread): use
select_thread, (subthread_select_foreach): new function,
(message_list_select_subthread): new function
* mail/message-list.h: (message_list_select_subthread): add prototype
* ui/evolution-mail-list.xml
Add Select Message Subthread
svn path=/trunk/; revision=34585
2007-11-23 Milan Crha <mcrha@redhat.com>
** Fix for bug #335931
* message-list.c: (struct _regen_list_msg): New member last_row.
* message-list.c: (regen_list_regen): Store last_row for later use.
* message-list.c: (regen_list_regened): Restore row based on last_row
when no uid was selected before.
* message-list.c: (mail_regen_list): Init new last_row member.
* em-folder-view.c: (emfv_select_next_message): New helper function
to select messages in list.
* em-folder-view.c: (emfv_popup_mark_junk), (emfv_popup_mark_nojunk),
(emfv_popup_delete): Using new helper function, so get same behavior.
* message-list.h: (struct _MessageList):
* message-list.c: (on_cursor_activated_cmd): Removed cursor_row member.
svn path=/trunk/; revision=34567
2007-10-26 Milan Crha <mcrha@redhat.com>
** Fix for bug #489027
* evolution-mail.schemas.in: New hidden option 'thread_latest' to fall
back to thread sorting like before 2007-05-17 (see below).
* message-list.c: (struct _MessageListPrivate),
(message_list_construct): New property 'thread_latest'.
* message-list.c: (ml_tree_sort_value_at): Sort based on this property.
svn path=/trunk/; revision=34426