2002-08-07 Anna Marie Dirks <anna@ximian.com>
* e-summary-shown.c (e_summary_shown_init): Added an alignment to make
button position be the same as the other buttons of this type in evo.
(add_clicked): make this buttons sensitive when there is no proper
selection
(remove_clicked): same thing with the button
* my-evolution.glade: Capitalized "Weather Settings" properly.
svn path=/trunk/; revision=17732
2002-08-07 Peter Williams <peterw@ximian.com>
* component-factory.c (request_quit): If outbox_folder is NULL, don't
try and get its message count (this should never happen, but has.)
svn path=/trunk/; revision=17731
2002-08-07 Not Zed <NotZed@Ximian.com>
* message-tag-followup.c (target_date_new): Set the week start day
from the calendar prefs, do same for 24 hour format. See #23423.
svn path=/trunk/; revision=17728
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* rule-context.c (save): Don't need to save temp/backup files
anymore, e_xml_save_file() now handles this for us (well, at least
the saving of temp files). I'm not sure we need a backup file
anymore now that we can depend on e_xml_save_file() to "Just Work"
svn path=/trunk/; revision=17727
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (save_metainfo): No need to save a temporary file
first anymore since I updated e_xml_save_file() to do this for us.
svn path=/trunk/; revision=17726
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* gal/util/e-xml-utils.c (e_xml_save_file): Changed to handle
saving to a temp file first, this allows us to remove a lot of
duplicate code from everywhere.
svn path=/trunk/; revision=17725
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* e-tree-table-adapter.c
(e_tree_table_adapter_save_expanded_state): And finally here.
* e-table-state.c (e_table_state_save_to_file): Same here.
* e-table-specification.c (e_table_specification_save_to_file): No
need to save to a temp file first here either since
e_xml_save_file now does that for us.
* e-table.c (e_table_save_specification): No need to handle
writing to a temp file first anymore, since I've updated
e_xml_save_file() to handle that for us.
svn path=/trunk/; revision=17724
2002-08-07 Not Zed <NotZed@Ximian.com>
* message-tag-followup.c (target_date_new): Set the week start day
from the calendar prefs, do same for 24 hour format. See #23423.
* mail-config.c (config_read): Added week_start_day from
Calendar/Display config. Also time_24hour format.
(mail_config_get_week_start_day):
(mail_config_get_time_24hour): And read-only accessors.
svn path=/trunk/; revision=17723
* backend/ebook/test-client.c (TEST_VCARD): Use "\r" rather than
including literal CRs in the string, which confuses gcc on OS X.
* backend/ebook/test-card.c (TEST_VCARD): Likewise.
svn path=/trunk/; revision=17722
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (save_metainfo): Save to a temporary file first
using e_xml_save_file rather than xmlSaveFile, if the save
completes successfully then rename it to the real filename. Make
sure that errno is saved.
(mls_get_folder): save_metainfo doesn't return -1 on fail, it
returns FALSE.
svn path=/trunk/; revision=17721
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* rule-context.c (save): Use e_xml_save_file().
(xml_doc_save): Removed this code and added it to gal so that
e-table and all other parts of evolution and so forth could use
it.
svn path=/trunk/; revision=17720
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* configure.in (THREADS_CFLAGS): Need to check for gal 0.19.99.18
for e_xml_save_file().
svn path=/trunk/; revision=17719
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* configure.in: Bumped version to 0.19.99.18
* gal/util/e-xml-utils.c (e_xml_save_file): New convenience
function to save an xmlDocPtr. Replaces xmlSaveFile because
xmlSaveFile isn't dependable.
svn path=/trunk/; revision=17718
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* e-cell-progress.c: #include <string.h> for memset
* e-table.c (e_table_save_specification): Updated to use
e_xml_save_file() instead of xmlSaveFile(). Also fixed to save to
a tmp file first.
* e-table-specification.c (e_table_specification_save_to_file):
Same as above.
* e-table-state.c (e_table_state_save_to_file): Same here.
* e-tree-table-adapter.c
(e_tree_table_adapter_save_expanded_state): And here too.
svn path=/trunk/; revision=17717
* e-storage-set-view.c (folder_property_item_verb_callback): Don't
include the storage name in the path passed to
e_corba_storage_show_folder_properties, for consistency with the
other EStorage methods.
svn path=/trunk/; revision=17716
* evolution-test-component.c
(storage_show_folder_properties_callback): New callback for the
show_folder_properties signal.
(setup_custom_storage): Add two property items, and connect the
callback to the signal.
* e-storage-set-view.c: Renamed private member container into
ui_container; new member ui_component.
(init): Initialize ui_component to NULL.
(impl_destroy): Unref if not NULL.
(e_storage_set_view_construct): If @ui_container is not NULL,
weakref it and create a new ui_component that uses it as its
container.
(ui_container_destroy_notify): New, weakref destroy callback for
priv->ui_container.
(remove_property_items): New helper function.
(setup_folder_properties_items_if_corba_storage_clicked): New
helper function.
(folder_property_item_verb_callback): New callback for the verbs
associated to the folder property items.
(popup_folder_menu): Set up the per-storage folder property items
using setup_folder_properties_items_if_corba_storage_clicked() and
remove them with remove_property_items() after the menu has been
popped down. Don't invoke populate_folder_context_menu if there
is no handler for this node [this avoids a spurious warning].
* e-corba-storage.c (e_corba_storage_show_folder_properties): New.
(e_corba_storage_get_folder_property_items): New.
(e_corba_storage_free_property_items_list): New.
* evolution-storage.c: New private member folder_property_items.
(init): Init to NULL.
(destroy): Free.
(impl_showFolderProperties): New, implementation for the
Storage::showFolderProperties CORBA method.
(class_init): Set up the "show_folder_properties" signal here.
(impl_Storage__get_propertyItems): New, getter for the
Storage::propertyItems property.
(corba_class_init): Install the new methods.
(evolution_storage_add_property_item): New function to add
property items to the storage.
* evolution-storage.h: New signal show_folder_properties.
* e-storage-set.c (e_storage_set_create_new_view): Renamed from
e_storage_set_new_view().
* Evolution-Storage.idl: Added attribute folderPropertyItems and
method ::showFolderProperties.
svn path=/trunk/; revision=17714
2002-08-05 Rodrigo Moya <rodrigo@ximian.com>
* pcs/query-backend.[ch] (query_backend_get_object_component): new
function.
(query_backend_get_uids): new function.
(query_backend_new): create the static GHashTable if it hasn't been
created yet.
(query_backend_destroy): destroy the static GHashTable if empty.
(foreach_uid_cb): call object_updated_cb, which does everything.
* pcs/query.c: make use of the new QueryBackend class.
(query_init): initialize new private structure member.
(query_destroy): clean up new member, without freeing it, since it is
managed internally in query-backend.c.
(query_construct): create a QueryBackend for the query.
svn path=/trunk/; revision=17713
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 Jeffrey Stedfast <fejj@ximian.com>
* providers/sendmail/camel-sendmail-transport.c
(sendmail_send_to): If writing to the sendmail pipe fails, wait
for the sendmail process to exit before returning. Fixes bug
#19636.
svn path=/trunk/; revision=17711
2002-08-06 Not Zed <NotZed@Ximian.com>
* e-filter-bar.c (menubar_activated): Set the query text into the
filter name when saving it, for #10979.
svn path=/trunk/; revision=17710
2002-08-06 Not Zed <NotZed@Ximian.com>
* message-list.c (message_list_hidden): Only count hidden messages
which are in the folder. Should probably maintain hidden table
better. For #4334.
svn path=/trunk/; revision=17707
2002-08-06 Not Zed <NotZed@Ximian.com>
* providers/pop3/camel-pop3-folder.c (cmd_list): Add messageinfo
to id table, and store array index in messageinfo too.
(fi_to_index): Removed, use index member of messageinfo, fixed
callers.
(cmd_builduid): Parse the headers of the data, and ignore any
status or x-status headers.
(uid_to_fi): Removed, use the hashtable instead.
(id_to_fi): Same.
(cmd_uidl): Add messageinfo to uid table.
(pop3_refresh_info): Setup hash tables, and fill out uid table for
nonuid capable servers.
(pop3_finalize): Destroy hash tables. Only free resources if the
uids table is not null (if finalised before we ran refresh info).
(id_to_fi): Removed. Use id hash table instead, fixed caller.
svn path=/trunk/; revision=17706
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-05 Jeffrey Stedfast <fejj@ximian.com>
* rule-context.c (xml_doc_save): New internal function to replace
xmlSaveFile. Does proper error checking and so forth to ensure
that the resulting file does not ever get truncated.
(save): Cal xml_doc_save rather than xmlSaveFile. Fixes bug
#25980.
svn path=/trunk/; revision=17703
2002-08-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (mail_msg_check_error): If we are not in interactive
mode, don't display error dialogs.
* component-factory.c (interactive_cb): Updated to use the new
function mail_session_set_interactive().
(owner_unset_cb): Same here.
* mail-session.c (mail_session_set_interactive): Renamed from
mail_session_enable_interaction().
(mail_session_get_interactive): New function to get the
interactive state.
svn path=/trunk/; revision=17702
2002-08-01 Peter Williams <peterw@ximian.com>
* mail-offline-handler.c (struct _sync_info): Add a GHashTable pointer
so we can remove the info once the operation is done.
(sync_done): Remove the info from the hash table.
(impl_syncFolder): Save the table to which the info was added.
svn path=/trunk/; revision=17701
2002-08-05 Jeffrey Stedfast <fejj@ximian.com>
* camel.c (camel_init): Always set a g_atexit handler to
flush/save the camel-certdb.
svn path=/trunk/; revision=17700
2002-08-05 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-store.c (get_folder_info_online): If
we are asking for the toplevel folders, use the IMAP store's
namespace as the toplevel folder rather than an empty
string. Fixes bug #28574.
(imap_forget_folder): Rearrange the code so that name can never be
used uninitialised.
* providers/imap/camel-imap-utils.c (imap_namespace_concat):
Removed.
svn path=/trunk/; revision=17699
2002-08-05 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (user_create_new_item_cb): Updated to call
post_to_url if the id is "post".
* mail-callbacks.c (post_to_url): New function so that we don't
need a FolderBrowser to post a new message.
(post_message): Call post_to_url since they shared so much code.
svn path=/trunk/; revision=17698
2002-08-04 Rodrigo Moya <rodrigo@ximian.com>
Fixes the crash in #19159
* gui/alarm-notify/alarm-queue.c (create_snooze): check for NULL
pointers before using them.
svn path=/trunk/; revision=17697
* e-html-utils.c (is_citation): Remove the logic that assumes
"Rupert> " is a citation, since it misfires more often than it
hits.
svn path=/trunk/; revision=17696
* camel-folder-summary.h (CamelMessageFlags): Add
CAMEL_MESSAGE_ANSWERED_ALL, for folders that can distinguish a
reply-to-sender from a reply-to-all. (eg, Exchange)
* providers/local/camel-local-folder.c (local_init): Add
ANSWERED_ALL to permanent_flags too.
svn path=/trunk/; revision=17694
2002-08-02 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (construct): Set the default flag to
Follow-Up.
svn path=/trunk/; revision=17692
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-08-01 Peter Williams <peterw@ximian.com>
* providers/imap/camel-imap-store.c (create_folder): If the folder
name contains the directory separator, reject it.
svn path=/trunk/; revision=17690
2002-08-02 JP Rosevear <jpr@ximian.com>
* gui/e-week-view.c (e_week_view_init): don't warn if we can't use
the small font, just set use_small_font to FALSE
svn path=/trunk/; revision=17689
2002-08-02 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.c (adjust_item): new util function to add
information to an itip message that might not already be there for
display purposes (summary, location, etc)
(show_current_event): use above
(show_current_todo): ditto
svn path=/trunk/; revision=17688
2002-08-02 Not Zed <NotZed@Ximian.com>
* providers/local/camel-mbox-summary.c (mbox_summary_check): Clear
the summary after building the 'removed uid' list.
svn path=/trunk/; revision=17686
2002-08-02 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c (message_info_load): revert jeff's patch
below, and do it slightly differently, and stop the auto-reformatting
bullshit.
2002-08-02 Not Zed <NotZed@Ximian.com>
* providers/local/camel-maildir-summary.c (message_info_new): If
we get a duplicate, just re-use the old info.
(remove_summary): Add any removed to a change list.
(maildir_summary_check): If we find new ones in 'cur' track them
in the change list. Removed FIXME about it. For #18348.
svn path=/trunk/; revision=17685
2002-08-02 Not Zed <NotZed@Ximian.com>
* filter.glade: Added a datespec editor window.
* filter-datespec.c (button_clicked): Rewritten to use glade.
Simplified all the code around it as a result, etc, and fixed bug
#21798.
svn path=/trunk/; revision=17684
2002-08-01 Chris Toshok <toshok@ximian.com>
[ fixes bug #25958 ]
* gui/component/addressbook.c (alphabet_state_changed): use
FULL_NAME in the case where we're untoggling a letter, and... well
use FULL_NAME in the other case too - we should never pop up the
advanced dialog.
svn path=/trunk/; revision=17683
2002-08-01 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names.h (struct
_ESelectNames): no more search_entry.
* gui/component/select-names/e-select-names.c (update_query): no
more search_entry, search_entry => select_entry, and add file_as
to the query since some entries don't have names (like the Ximian,
Inc. default card.)
(e_select_names_init): no more search_entry, and add an "activate"
handler on select_entry that updates the query.
svn path=/trunk/; revision=17682
2002-08-01 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names.h (struct
_ESelectNames): remove folders and folders_by_uri, and the 2
listeners.
* gui/component/select-names/e-select-names.c
(e_select_names_destroy): remove the hash_table_destroys of
folders and folders_by_uri, since they no longer exist. same for
other_contacts_listener and local_listener.
svn path=/trunk/; revision=17681