2003-01-31 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_labels): New function to return a
cached list of labels.
(mail_config_get_label_color_by_name): New convenience function to
search the cached labels.
(mail_config_get_label_color_by_index): Same.
(mail_config_init): Cache the labels and also listen for changes
to them in the gconf db.
(config_cache_labels): Internal function to cache the labels.
* folder-browser.c (on_right_click): Fixed the label colours in
the menu by using the cached linked list of labels.
* mail-preferences.c (colorpicker_set_color): Now takes a string
argument allowing us to get rid of converting a string into an rgb
guint32 all over the place when trying to set defaults, since we
now store colors in gconf as strings.
(mail_preferences_construct): Use the cached labels (they are
already parsed for us).
svn path=/trunk/; revision=19694
2003-01-24 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_global): Set the
paned_size here.
* folder-browser.c (folder_browser_gui_init): Don't bother
connecting to the hide-deleted, message-display-style, paned-size,
nor show-preview gconf notifications anymore, since we can just
set them when the view becomes active again in
folder-browser-ui.c. Cuts down on extra overhead.
(folder_browser_destroy): No need to disconnect from those
notifications anymore either.
svn path=/trunk/; revision=19626
2003-01-23 Rodney Dawes <dobey@ximian.com>
* folder-browser.c (fb_resize_cb): Use button_release instead of
size_allocate, and get the position from the Paned widget to prevent
calling CORBA all the time for GConf stuff
svn path=/trunk/; revision=19607
2003-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_thread_list): Removed.
(mail_config_set_thread_list): Removed.
(mail_config_uri_renamed): No longer needs to change threaded
state for each url either.
(mail_config_write_on_exit): Updated.
* folder-browser-ui.c (folder_browser_ui_add_list): Get the
threaded state via gconf.
* folder-browser.c (folder_browser_toggle_threads): Save the
threaded state.
svn path=/trunk/; revision=19580
2003-01-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (do_get_pass): Updated.
(request_password): Same.
* mail-send-recv.c (mail_send): Fixed to use EAccountService.
* mail-config-druid.c (make_account): Updated to use EAccount and
friends.
* mail-account-gui.c (service_check_supported): Updated to use
EAccountService.
(mail_account_gui_new): Ref the account passed in and also update
to use EAccount objects.
(save_service): Updated to use an EAccountService.
(add_new_store): Updated to use an EAccount.
(mail_account_gui_save): Updated to use EAccounts.
(setup_signatures): Updated because the new account->id->def_sig
is now an int and not a structure pointer.
* mail-account-editor.c (construct): Updated.
(mail_account_editor_new): Now takes an EAccount object as an
argument instead of a MailConfigAccount.
* mail-crypto.c (mail_crypto_get_pgp_cipher_context): Updated to
use EAccounts.
* subscribe-dialog.c (populate_store_foreach): Removed.
(populate_store_list): Can't use populate_store_foreach here
because of the change to EAccountList so do it manually.
* mail-vfolder.c (uri_is_ignore): Rewrote to use EAccountList and
EIterator and all that fun.
* mail-send-recv.c (build_dialogue): Updated to use EAccountList
and EAccount object stuff. *ugh*
(mail_send_receive): Here too.
(mail_autoreceive_setup): Same.
* mail-callbacks.c (check_send_configuration): Updated.
(composer_get_message): Updated.
(compose_msg): "
(list_add_addresses): "
(guess_me): "
(guess_me_from_accounts): Same.
(forward_get_composer): Here too.
(mail_generate_reply): Same.
(redirect_get_composer): "
(empty_trash): And finally here.
* mail-accounts.c (account_edit_clicked): Updated.
(account_delete_clicked): Same.
(account_default_clicked): Here too.
(account_able_clicked): "
(account_cursor_change): "
(mail_accounts_load): Again here.
* folder-browser.c (folder_browser_is_drafts): Updated to use
EAccountList and EAccount stuff.
(folder_browser_is_sent): Same.
* component-factory.c (mail_load_storages): Updated to use
EAccount and EAccountList stuff.
(owner_set_cb): Same.
(send_receive_cb): Here too.
* mail-config.c: Rewritten to use EAccount and EAccountList
objects.
svn path=/trunk/; revision=19509
2003-01-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (sig_fill_clist): Same as below.
* mail-account-gui.c (sig_fill_options):
mail_config_get_signature_list() now returns a GSList instead of a
GList.
* mail-config.c (signature_new_from_xml): New function to parse a
signature xml blob into a MailConfigSignature structure.
(config_read_signatures): Rewritten to use above function.
(signature_to_xml): New function to write a signature to xml.
(config_write_signatures_num): Removed.
(config_write_signature): Removed.
(config_write_signatures): Rewritten to use signature_to_xml and
gconf.
svn path=/trunk/; revision=19497
2003-01-13 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_copy): Correctly create the
clipboard buffer by using a nul to delimit the uri and the list of
uids.
svn path=/trunk/; revision=19433
2003-01-13 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_message): Check the
state of message_style in gconf and set the menus accordingly.
* folder-browser.c (folder_browser_destroy): Remove listener for
message_style change notification.
(folder_browser_gui_init): Connect a listener for changes to
message_style.
svn path=/trunk/; revision=19432
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_list): We also need
to call message_list_set_hidedeleted() here so that any
deactivated folder controls will change to the currently set state
when re-activated.
(folder_browser_ui_add_global): Same for show_preview.
* folder-browser.c (hide_deleted_changed): Don't call
message_list_set_hidedeleted() here.
(folder_browser_toggle_hide_deleted): Instead, call it here. This
way we get a faster "response time". Also, this will make it so
that not all folder controls will regen their message-list at the
same time.
(folder_browser_toggle_preview): Same idea as the hide-deleted
changes.
(show_preview_changed): See above.
* mail-config-druid.c (make_account): Default the new account to
enabled.
(wizard_finish_cb): Don't set enabled here.
svn path=/trunk/; revision=19417
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (factory): Updated for function rename.
* mail-config-factory.c (mail_config_control_factory_cb):
Namespaced the function name.
* folder-browser-ui.c (folder_browser_ui_add_global): Don't add
the listener for show_preview here, it was moved into
folder-browser.c so we could detach the listener when the
folder-browser is destroyed. Also prevents a listener being added
multiple times (which was possible? before).
* folder-browser.c (folder_browser_destroy): Remove the gconf
notify handler for show_preview.
(show_preview_changed): Moved here from folder-browser-ui.c
svn path=/trunk/; revision=19408
2003-01-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_show_preview): Removed.
(mail_config_set_show_preview): Removed.
* folder-browser.c (folder_browser_toggle_preview): Simply set the
gconf show_preview setting and let the code in folder-browser-ui.c
detect it and update the UI.
* folder-browser-ui.c (folder_browser_ui_add_global): Listen for
changed events on the show_preview setting.
svn path=/trunk/; revision=19288
2003-01-07 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (save_cursor_pos): Use gconf to get the paned
size.
(folder_browser_set_message_preview): Same.
(folder_browser_toggle_hide_deleted): Use gconf to set the
hide-deleted state.
(folder_browser_set_message_display_style): Same but for the
message_display_style.
(fb_resize_cb): Save the paned_size via gconf.
(paned_size_changed): Callback for when the paned_size gets
changed. Change the folder-browser's paned size to the new
setting.
(folder_browser_gui_init): Listen to changes to the paned_size and
also get the initial size from gconf.
* message-list.c (message_list_set_folder): Use gconf.
(regen_list_regen): Use gconf.
* message-browser.c (transfer_msg_done): Use gconf to get the
hide_deleted setting.
* mail-account-gui.c (sig_add_new_signature): Use gconf.
* folder-browser-ui.c (folder_browser_ui_add_list): Use gconf.
* folder-browser.c (save_cursor_pos): Use gconf.
(folder_browser_set_message_preview): Same.
(folder_browser_toggle_hide_deleted): Here too.
(folder_browser_set_message_display_style): And here.
(folder_browser_gui_init): Here too.
(done_message_selected): And here.
* mail-config.c (mail_config_get_thread_subject): Removed.
(mail_config_set_thread_subject): Removed.
(mail_config_get_empty_trash_on_exit): Removed.
(mail_config_set_empty_trash_on_exit): Removed.
(mail_config_get_last_filesel_dir): Removed.
(mail_config_set_last_filesel_dir): Removed.
(mail_config_get_hide_deleted): Removed.
(mail_config_set_hide_deleted): Removed.
(mail_config_get_paned_size): Removed.
(mail_config_set_paned_size): Removed.
(mail_config_get_send_html): Removed.
(mail_config_set_send_html): Removed.
(mail_config_get_confirm_unwanted_html): Removed.
(mail_config_set_confirm_unwanted_html): Removed.
(mail_config_get_citation_highlight): Removed.
(mail_config_set_citation_highlight): Removed.
(mail_config_get_citation_color): Removed.
(mail_config_set_citation_color): Removed.
(mail_config_get_do_seen_timeout): Removed.
(mail_config_set_do_seen_timeout): Removed.
(mail_config_get_mark_as_seen_timeout): Removed.
(mail_config_set_mark_as_seen_timeout): Removed.
(mail_config_get_prompt_empty_subject): Removed.
(mail_config_set_prompt_empty_subject): Removed.
(mail_config_get_prompt_only_bcc): Removed.
(mail_config_set_prompt_only_bcc): Removed.
(mail_config_get_confirm_expunge): Removed.
(mail_config_set_confirm_expunge): Removed.
(mail_config_get_confirm_goto_next_folder): Removed.
(mail_config_set_confirm_goto_next_folder): Removed.
(mail_config_get_goto_next_folder): Removed.
(mail_config_set_goto_next_folder): Removed.
(mail_config_get_http_mode): Removed.
(mail_config_set_http_mode): Removed.
(mail_config_get_default_forward_style): Removed.
(mail_config_set_default_forward_style): Removed.
(mail_config_get_default_reply_style): Removed.
(mail_config_set_default_reply_style): Removed.
(mail_config_get_message_display_style): Removed.
(mail_config_set_message_display_style): Removed.
(mail_config_get_default_charset): Removed.
(mail_config_set_default_charset): Removed.
(mail_config_get_x_mailer_display_style): Removed.
(mail_config_set_x_mailer_display_style): Removed.
* subscribe-dialog.c (populate_store_list): Use the list of
accounts. We can't get the list of sources anymore.
(populate_store_foreach): Updated.
* mail-callbacks.c (guess_me_from_accounts): Use account->enabled.
(mail_generate_reply): Same.
(empty_trash): Here too.
* mail-accounts.c (account_delete_clicked): Use account->enabled
rather than source->enabled.
(account_able_clicked): Same.
(account_cursor_change): Here too.
(mail_accounts_load): And here.
* component-factory.c (owner_unset_cb): Use gconf empty-on-exit
settings.
(mail_load_storages): Use account->enabled rather than
account->source->enabled. The struct changed.
* mail-composer-prefs.c (sig_add): Get the send_html pref from gconf.
* message-tag-followup.c (target_date_new): Use gconf.
* mail-config.c (mail_config_get_week_start_day): Removed.
* mail-tools.c (mail_tool_quote_message): Use gconf here too, but
we don't need to parse the colour - just use it as a raw string.
(mail_tool_forward_message): Use gconf.
* mail-format.c (mail_format_data_wrapper_write_to_stream): Use gconf.
(write_headers): Use gconf.
(handle_text_plain): Same.
* mail-display.c (mail_text_write): Updated to use gconf and parse
GdkColour strings.
(on_url_requested): Updated to use gconf.
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Use gconf
rather than the old mail-config APIs which will be removed.
(ask_confirm_for_empty_subject): Same.
(ask_confirm_for_only_bcc): Here too.
(composer_get_message): And here.
(create_msg_composer): Same.
(transfer_msg_done): Again here.
(delete_msg): Here too.
(confirm_expunge): And finally here.
* mail-config.c (mail_config_write): Use gconf.
(mail_config_get_sources): Removed.
* mail-account-gui.c (mail_account_gui_save): No need to save
enabled-state anymore for a source.
* mail-config-druid.c (wizard_finish_cb): Instead of setting
account->source->enabled to TRUE, just set account->enabled to
TRUE. The structures changed a bit.
* mail-send-recv.c (mail_send_receive): Get the list of accounts
instead of sources, and pass them along to build_dialogue. I'm
trying to get rid of the mail_config_get_sources() api.
(mail_autoreceive_setup): Here too.
* mail-config.c (mail_config_get_filter_log): Removed.
(mail_config_set_filter_log): Removed.
(mail_config_get_filter_log_path): Removed.
(mail_config_set_filter_log_path): Removed.
(mail_config_get_new_mail_notify): Removed.
(mail_config_set_new_mail_notify): Removed.
(mail_config_get_new_mail_notify_sound_file): Removed.
(mail_config_set_new_mail_notify_sound_file): Removed.
* mail-session.c (main_get_filter_driver): Updated to use the
gconf settings.
svn path=/trunk/; revision=19271
2002-12-17 Jeffrey Stedfast <fejj@ximian.com>
...And a whole bunch more build fixes.
* mail-vfolder.c (mail_vfolder_delete_uri): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-session.c (main_get_filter_driver): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-ops.c (build_from): Don't use g_string_sprintfa() anymore
since it is apparently deprecated.
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-autofilter.c: Don't use g_string_sprintfa() anymore since
it is apparently deprecated.
* folder-browser.c: Don't use g_string_sprintfa() anymore since it
is apparently deprecated.
* mail-search.c (mail_search_set_subject): Remove the unnecessary
g_strdup()'age as well as fix a possible buffer overrun.
* mail-local.c (mail_local_folder_construct): Use
g_path_get_basename().
* mail-config-druid.c (make_account): Don't use e_utf8_*
functions.
svn path=/trunk/; revision=19152
2002-12-03 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_finalise/destroy): frobbed
around with these till it exits without crashing.
* message-list.c (message_list_destroy): made a destroy
handler again (was dispose). Frobbed around with this and
finalise till it can destroy without crashing.
* message-browser.c (message_browser_new): ref/sink the
folderbrowser.
svn path=/trunk/; revision=18991
2002-11-27 Not Zed <NotZed@Ximian.com>
* message-tag-followup.c (construct): gnome_pixmap -> gtkimage.
(construct): gtk_clist -> gtk_tree_view, setup columns. They dont
size well :-/
(message_tag_followup_append_message): Append using model, remove
clist stuff.
(construct): Show date edit (glade bugs?)
* folder-browser.c (folder_browser_class_init): gtk_marshal -> g_cclosure_marshal
(setup_popup_icons): gnome_pixmap -> gtk_image.
(on_right_click): gtk_pixmap -> gtk_image.
* mail-accounts.c (account_delete_clicked): removed #if 0'd out code.
* mail-send-recv.c (receive_done): remove FIXME and extra unref.
* mail-session.c (request_password): Removed #if 0'd out stuff.
* mail-vfolder.c (new_rule_clicked): proper cast for g_object_get_data.
* mail-local.c (reconfigure_response): cast for g_object_get_data.
* mail-account-editor.c (construct): GNOME_DIALOG -> GTK_DIALOG.
* *.[ch]: re-ran fix.sh for e_notice change
* mail-callbacks.c (save_msg_ok): g_object_get_data +
gtk_object_remove_no_notify -> g_object_steal_data.
(find_socket): gtk_container_children ->
gtk_container_get_children
(edit_msg): gnome_*_dialog -> gtk_message_dialog.
(resent_msg): "
(search_msg): "
(confirm_goto_next_folder): gtkmessagedialogised (even if not
used).
(confirm_expunge): gtkmessagedialogised
(filter_edit): "
(do_mail_print): e_notice -> gtk_message_dialog.
(are_you_sure): removed e_gnome_ok_cancel_dialog crap, replaced
with a gtk dialog.
(are_you_sure): gtkmessagedialogised.
(edit_msg_internal): Dont free uids array, are_you_sure() free's
it.
(resend_msg): Same.
(check_send_configuration): Use e_notice for stuff. Sigh, here we
go again ...!
(e_question): A utility function to ask a question, potentially
with 'dont ask again' as well.
(configure_mail): use e_question to save code. Here we go again,
again ...
(ask_confirm_for_unwanted_html_mail): "
(ask_confirm_for_only_bcc): "
(ask_confirm_for_only_bcc): "
(composer_get_message): Use e_notice.
(composer_save_draft_cb): Use e_question
(edit_msg): use e_notice, & change to an ERROR.
(resend_msg): same.
(save_msg_ok): Properly initialise ret to OK, and use e_question,
and use access() to determine existance/write access rather than
stat, display an error if we can't write to a file that exists,
and print the filename in all dialogues.
(confirm_goto_next_folder): Use e_question.
(confirm_expunge): use e_question.
(filter_edit): Use e_notice.
(do_mail_print): use e_notice.
svn path=/trunk/; revision=18974
2002-10-28 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_query_changed): No longer need
to check for a CLEAR_ID.
svn path=/trunk/; revision=18463
2002-10-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (write_data_to_file): Use the mode 0666 when
creating a new file and let the user's umask handle permissions.
* folder-browser.c (message_list_drag_data_get): When using open()
with the O_CREAT flag, we need to pass a mode argument. Also use
O_EXCL.
svn path=/trunk/; revision=18430
2002-10-23 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_query_changed): Only perform
the search if it is either a clear or advanced search.
svn path=/trunk/; revision=18422
2002-10-09 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (main_folder_changed): Don't do anything if the
message_list is NULL (this means the FolderBrowser has been
destroyed). Fixes bug #32002.
svn path=/trunk/; revision=18363
2002-10-01 Not Zed <NotZed@Ximian.com>
* folder-browser.c (on_cursor_activated): cursor activated on
etable is required to know when the selection changes on a single
row, update selection changed info with this signal too. Sounds
like an etable bug to me, but this fixes#29808.
(folder_browser_gui_init): Hook onto above signal.
svn path=/trunk/; revision=18275
2002-09-24 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_query_changed): Always do a
search if the query changed. For #31060 & #29625.
svn path=/trunk/; revision=18190
* folder-browser.c (fb_resize_cb): If the vpaned isn't realized,
don't call mail_config_set_paned_size. Fixes a problem with the
saved pane size being repeatedly lost (#29933)
svn path=/trunk/; revision=18064
2002-09-11 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_query_changed): Only abort if
the user selected ADVANCED_SEARCH, not the other way around. Any
other menu item and we are supposed to perform an actual
search. Fixes bug #30183.
svn path=/trunk/; revision=18048
2002-09-10 Not Zed <NotZed@Ximian.com>
* folder-browser.c (got_folder): If we already have a folder, make
sure we unref/unhook from it. Fixes a crash on exit.
* message-list.c (message_list_hide_clear): clear thread tree
cache if set.
(message_list_set_search): Same. For bug #28834.
svn path=/trunk/; revision=18029
2002-09-03 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (mark_as_seen_cb):
(mark_as_unseen_cb):
(mark_as_important_cb):
(mark_as_unimportant_cb): New callback functions that wrap the
mail-callbacks versions of mark_as_<whatever>. Thanks to Owen
Taylor for this fix.
svn path=/trunk/; revision=17950
2002-08-28 Peter Williams <peterw@ximian.com>
* folder-browser-ui.c (default_ui_nodes): Add some new flags for
sensitizing nodes based on the flags of the currently selected
messages.
(folder_browser_ui_add_message): Reset the sensitivity cache when
we re-add UI items.
(folder_browser_ui_add_list): Same.
(folder_browser_ui_add_global): Same.
(fbui_sensitise_item): Only cache the sensitivity in the hash
table if we actually change it.
(folder_browser_ui_scan_selection): New function, getting the bulk
of the contents of folder_browser_ui_set_selection_state. Now
with code to iterate over the currently selected messages and
check their flags so we can sensitize based on them.
(folder_browser_ui_set_selection_state): Now just set the
selection state if necessary and pass off to _scan_selection. Don't
skip of we're trying to go from SELSTATE_SINGLE to SELSTATE_SINGLE,
eg, as the flags of the selected messages may have changed.
* folder-browser-ui.h: Prototype folder_browser_ui_scan_selection.
* folder-browser.c (main_folder_changed): Call
folder_browser_ui_scan_selection as the flags on a selected
message may have just changed.
svn path=/trunk/; revision=17893
2002-08-27 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #4480
* folder-browser-factory.c (control_activate): Call
folder_browser_reload() instead of refreshing the folder
ourselves.
* folder-browser.c (folder_browser_reload): New convenience
function. If the folder-browser's folder is already loaded,
refresh the contents, otherwise if the folder has not been loaded
- try loading the folder again (it may have failed to open last
time for some reason?).
svn path=/trunk/; revision=17876
2002-08-08 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_toggle_threads): Force a
refresh of the menu sensitivity when the thread state changes.
2002-08-07 Not Zed <NotZed@Ximian.com>
* folder-browser-ui.c: Added EditSelectThread to only enable
threaded mode if threaded is on. For #19941. Added some macro's
to simplify the table.
(folder_browser_ui_set_selection_state): Implement IS_THREADED
mask.
svn path=/trunk/; revision=17738
2002-08-06 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_search_menu_activated): Set the
rule name to include the search string, for #10979.
svn path=/trunk/; revision=17712
2002-08-06 Not Zed <NotZed@Ximian.com>
* mail-ops.c (filter_folder_filter): Unref the driver before
returning to main thread, so any closing operations are handled
async (as in fetch_mail_fetch()), for #28072.
** fixes for #24605.
* mail-vfolder.c (vfolder_gui_add_from_mlist): Removed.
* folder-browser.c (filter_type_uid,vfolder_type_uid): Changed to
accept args directly. Fixed callers.
(filter_mlist_uid,vfolder_mlist_uid): Use filter_type_uid instead
of mlist variant.
(vfolder_type_current): new function to handle setup of vfolders
from the main menu. It now uses the vfolder_type_uid function the
same as the popup.
(vfolder_subject, vfolder_sender, vfolder_recipient,
vfolder_mlist): Changed to use vfolder_type_current.
(filter_type_current): Similar for filters.
(filter_subject, filter_sender, filter_recipient,
filter_mlist): Changed to use filter_type_current.
* mail-autofilter.c (rule_from_message): Handle AUTO_MLIST type.
(rule_from_mlist):
(vfolder_rule_from_mlist):
(filter_rule_from_mlist): Removed.
(filter_gui_add_from_mlist): Removed.
* mail-autofilter.h: Added AUTO_MLIST type.
svn path=/trunk/; revision=17704
2002-08-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_display_render): Updated to use the new
Follow-Up tags. Instead of storing a string containing the
follow-up tag value, we now have to store the CamelMessageInfo.
(mail_display_destroy): Unref the folder and the message-info.
* folder-browser.c (followup_tag_complete): No longer needed.
(on_right_clicked): Use the individual follow-up tags to decide
whether or not to enable something.
* message-list.c (ml_tree_value_at): Update to use the new
Follow-Up tags.
* mail-callbacks.c (flag_for_followup): Update to use the new
MessageTagEditor API.
(tag_editor_ok): Update this too.
(flag_followup_completed): Updated this too.
(flag_followup_clear): Set all the follow-up tag values to "".
svn path=/trunk/; revision=17691
2002-07-24 Peter Williams <peterw@ximian.com>
* mail-callbacks.c (do_mail_fetch_and_print): Check for whether
current_message is NULL as well as preview_shown (if we tried to
load the message and failed, as may happen in offline mode.)
(done_message_selected): Only print if we actually got the message.
* folder-browser.c (folder_browser_query_changed): New function,
use this on the query_changed signal. Don't run the search if
they only changed the dropdown.
svn path=/trunk/; revision=17580
2002-07-22 Peter Williams <peterw@ximian.com>
* folder-browser.c (folder_browser_gui_init): Also perform a search
on the query_changed signal, which is what gets emitted when the
Search menu is used.
2002-07-22 Peter Williams <peterw@ximian.com>
* e-filter-bar.c (do_advanced): Break out the code for creating
the advanced rule editor into a separate function, so that...
(menubar_activated): ... can also create an Advanced dialog;
needed when the Search menu's advanced button is used.
(option_changed): Change this to call the function instead of
having all the code to itself.
* e-search-bar.h: Add id's for the FIND_NOW and CLEAR actions
so that other code (eg, EFilterBar) doesn't get confused by
an old id being used when the search-activated signal gets
emitted.
* e-search-bar.c (clear_search): Set the item_id to CLEAR
before emitting the signal.
(search_now_verb_cb): Just make this emit query_changed,
as the button in the toolbar does.
svn path=/trunk/; revision=17550
2002-07-15 Not Zed <NotZed@Ximian.com>
* message-list.c (ml_tree_value_at): Lookup the label colour based
on the label token, not an integer.
* folder-browser.c (on_right_click): Lookup the label name from
the filter type. Sigh, a bunch of other code should do similar
but i'm going to leave it as integers.
(set_msg_label): Set the label directly.
svn path=/trunk/; revision=17473
2002-07-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (redirect): Don't ever use the mail-display's
current_message, this can cause problems.
* mail-ops.c (get_message_free): Unref the gotten message. All of
the callers seemed to think that they didn't have to unref the
message.
* mail-display.c (mail_display_set_message): Now refs the message.
(mail_display_destroy): Unref the current_message if we still have
ownership of it.
svn path=/trunk/; revision=17387