2001-06-01 Peter Williams <peterw@ximian.com>
* Makefile.am (dumpindex_LDADD): Add GAL_LIBS here too.
(testindex_LDADD): And here.
svn path=/trunk/; revision=10080
2001-05-31 Christopher James Lahey <clahey@ximian.com>
* README: Included information about db3.
* acconfig.h: Added HAVE_DB_H and HAVE_DB3_DB_H.
* configure.in: Added various checks for db3 libraries and
includes. Of note are the new configure options
--with-db3-includes=PREFIX and --with-db3-libs=PREFIX to specify
the location for your db3 library.
From addressbook/ChangeLog:
2001-05-31 Christopher James Lahey <clahey@ximian.com>
* backend/pas/Makefile.am (INCLUDES): Added db3 cflags.
* backend/pas/pas-backend-file.c: Updated this to use db3.
From e-util/ChangeLog:
2001-05-31 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (INCLUDES): Added db3 cflags.
* e-dbhash.c: Made this use db3.
* e-db3-utils.c, e-db3-utils.h: New files with some helper
functions.
From wombat/ChangeLog:
2001-05-31 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (wombat_LDADD): Added db3 libs.
svn path=/trunk/; revision=10077
2001-05-31 Federico Mena Quintero <federico@ximian.com>
* menus/gal-view-menus.c (gal_view_menus_construct): Store the
connection ID of the "changed" signal in the collection.
(gal_view_menus_new): Added preconditions.
(gal_view_menus_construct): Added preconditions.
svn path=/trunk/; revision=10075
2001-05-31 Federico Mena Quintero <federico@ximian.com>
* gui/widgets/e-addressbook-view.h (EAddressbookView): Added
fields for the GalViewMenus and GalViewCollection; we need to keep
them around while the component is active.
* gui/widgets/e-addressbook-view.c
(e_addressbook_view_setup_menus): Plug leak; unref the spec.
Unref the factories. Do not unref the collection, since we need
it for the signal emission (okay, so the views object adds a
reference to it, but if we are interested in it we should keep a
reference anyways).
(e_addressbook_view_setup_menus): Create the collection and views
on the EAddressbookView's fields so that we can keep them around.
(e_addressbook_view_discard_menus): New function; gets rid of the
collection and views objects.
* gui/component/addressbook.c (control_activate_cb): Call
e_addressbook_view_discard_menus().
svn path=/trunk/; revision=10074
2001-05-31 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names.h (struct
_ESelectNames): add the EAddressbookModel* and change the
ETableModel's name to "adapter".
* gui/component/select-names/e-select-names.c (set_book),
(addressbook_model_set_uri): these two things take an
EAddressbookModel* instead of an ETableModel now.
(e_addressbook_create_ebook_table): don't case the
EAddressbookModel* to ETableModel*, create an EAddressbookTableAdapter
on the EAddressbookModel instead.
(e_select_names_init): set e_select_names->adapter.
svn path=/trunk/; revision=10072
2001-05-31 Chris Toshok <toshok@ximian.com>
* gui/widgets/e-addressbook-model.c (remove_card): decrement
data_count before emitting the card_removed signal, and break
after we've removed the matching card.
(e_addressbook_model_class_init): change signature of
"card_removed" signal to match what we emit (and what is
expected.)
* gui/widgets/e-addressbook-view.c (e_addressbook_view_init): the
signal name is "destroy", not "destroyed".
(do_remove): new function, actually remove the card.
(e_addressbook_view_delete_selection): get this working for both
view types.
svn path=/trunk/; revision=10071
2001-05-31 Christopher James Lahey <clahey@ximian.com>
* configure.in (GTKHTML_DATADIR): Use --moddatadir to derive this.
From composer/ChangeLog:
2001-05-31 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (HTML_EDITOR_GENERATED): Use GTKHTML_DATADIR here.
svn path=/trunk/; revision=10070
2001-05-31 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (build_message): Fixed up the S/MIME
signing/encrypting code to work with the new API.
svn path=/trunk/; revision=10069
2001-05-31 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_signed): Removed the code to
check for the validity of an S/MIME part. Stuff works differently
now.
* mail-crypto.c: Rewrote how the S/MIME stuff is going to work.
svn path=/trunk/; revision=10066
2001-05-31 Jeffrey Stedfast <fejj@ximian.com>
* camel-cms-context.[c,h]: New virtual class for manipulating
cryptographic message syntax messages (like S/MIME).
* camel-smime-context.[c,h]: Modified to inherit from the
CamelCMSContext class rather than the CamelCipherContext class.
* camel-smime.[c,h]: Removed - just use camel-smime-context
directly.
* camel-smime-utils.[c,h]: New source files. Moved the 2 useful
functions from camel-smime.[c,h] into here.
svn path=/trunk/; revision=10065
2001-05-31 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook.c: Print Preview =>
ContactsPrintPreview. Changed peter's change so that the node
name is more in line with "Print.."'s
svn path=/trunk/; revision=10064
2001-05-31 Chris Toshok <toshok@ximian.com>
* evolution-addressbook.xml: change Print Preview's name to
ContactsPrintPreview.
svn path=/trunk/; revision=10063
2001-05-31 jacob berkman <jacob@ximian.com>
* gal/e-text/e-entry.c (e_entry_init): set allow_newlines on the
etext item to false, since we are like an entry
svn path=/trunk/; revision=10061
2001-05-30 Jason Leach <jleach@ximian.com>
* e-shell-view.c (e_shell_view_set_current_shortcuts_group_num):
New function (probably should just be static).
(e_shell_view_load_settings): Load the current shortcut group here
using the above new function.
(e_shell_view_save_settings): Save current shortcut group in here.
2001-05-30 Jason Leach <jleach@ximian.com>
* e-shell-folder-title-bar.c: New 'folder_bar_label' member for
EShellFolderTitleBar, it's for information that's shown to the
left of the icon like the dates in the calendar (or, potentially
total and unread numbers for mailer).
(e_shell_folder_title_bar_set_folder_bar_label): New function,
lets others set the title bar extra label.
* Evolution-ShellView.idl: New method 'setFolderBarLabel' for our
exposed ShellView interface.
* evolution-shell-view.c (class_init): New signal
"set_folder_bar_label" for EvolutionShellViewClass.
* evolution-shell-view.c (impl_ShellView_set_folder_bar_label):
Emit the new signal here.
* e-shell-view.c (setup_corba_interface): Connect the signal here.
* e-shell-view.c (corba_interface_set_folder_bar_label): New
function, callback for the above signals, does the actual extra
label setting for the folder title bar.
* e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar):
Fix a warning here.
svn path=/trunk/; revision=10059
* e-msg-composer.c (build_message): Use the config-specified
default character set (which in turn defaults to the locale
character set) as the default for encoding non-US-ASCII messages,
assuming it works. Fall back to camel_charset_best() if it fails.
Also, pick the Content-Transfer-Encoding based on how the data
looks in the destination charset, not in UTF8.
While I was here, I also refactored a bunch and tried to reduce
redundant code. There are still too many places that set the
transfer-encoding on the plaintext part though... Also, I think
some more cleanliness could happen if the sign/encrypt interfaces
returned CamelMultiparts instead of CamelMimeParts.
svn path=/trunk/; revision=10058
* mail-config.glade: Rename the "PGP" page back to "Other" and add
a "default charset" option menu.
* mail-config.c (config_read, mail_config_write_on_exit,
mail_config_get_default_charset, mail_config_set_default_charset):
Handle "default charset".
* mail-accounts.c (construct): Fill in the "default_charset" menu
with an e_charset_picker menu.
(charset_menu_deactivate): Update the default charset.
svn path=/trunk/; revision=10057
* camel-charset-map.c: Redo the BUILD_MAP code to not depend on
libunicode. Now it only generates a map of "popular" 8bit
encodings. (It's not worthwhile to support obscure encodings,
because any mailer that supports them will support UTF8 too. And
Chinese and Japanese use mostly the same UTF8 characters so you
need to decide between those encodings based on the locale or
the charset of the message you're replying to or the input
method you used. So this is sufficient for camel_charset_best's
use.)
* camel-charset-map-private.h: Regenerated.
* camel.c (camel_shutdown): Move #ifdefs around to prevent a
warning.
svn path=/trunk/; revision=10055
2001-05-30 Peter Williams <peterw@ximian.com>
* gui/component/addressbook.c: Use the correct path to the print
preview menu item.
svn path=/trunk/; revision=10054
2001-05-30 Jason Leach <jleach@ximian.com>
* e-shell.c (e_shell_construct): Removed an unecessary sleep(2)
call, so evolution will start up 2 seconds faster now.
2001-05-30 Jason Leach <jleach@ximian.com>
* e-shell-view-menu.c: Connect the AddFolderToShortcutBar verb to
their implementation functions.
* e-shell-view.c (e_shell_view_get_current_shortcuts_group_num):
New function, use it to find out which shourtcut group is
currently open on the shortcut bar.
* e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar):
Implement this using new function described above.
svn path=/trunk/; revision=10052
2001-05-30 Chris Toshok <toshok@ximian.com>
* evolution-addressbook.xml: add commands/menu items for
Cut/Copy/Paste/Select All.
svn path=/trunk/; revision=10051
2001-05-30 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook.c (cut_contacts_cb): new function, for
the Cut verb.
(copy_contacts_cb): new function, for the Copy verb.
(paste_contacts_cb): new function, for the Paste verb.
(select_all_contacts_cb): new function, for the Select All verb.
(update_command_state): add handling for sensitivity of
Cut/Copy/Paste/Select All.
* gui/widgets/e-addressbook-view.c (e_addressbook_view_init): init
the invisible and set up selection/destroy signals.
(get_selection_model): new function, so we can get the
ETableSelectionModel from either view type. makes lots of the
other functions easier, since we can get the list of selected
cards using the same code regardless of view type.
(invisible_destroyed): new function.
(selection_get): new function. convert the clipboard list to
string.
(selection_clear_event): new function - free up the list of
ECards.
(selection_received): if the selection data is valid and
well-formed, add the corresponding cards to the ebook.
(add_to_list): new function.
(get_selected_cards): new function.
(e_addressbook_view_cut): new function, implement in terms of
_copy and _delete_selection.
(e_addressbook_view_copy): claim ownership of the CLIPBOARD
selection after saving the list of selected ECards.
(e_addressbook_view_paste): call gtk_selection_convert.
(e_addressbook_view_select_all): new function, using
e_selection_model_select_all.
(e_addressbook_view_can_print): re-implement in terms of
get_selection_model.
(e_addressbook_view_can_delete): same.
(e_addressbook_view_can_cut): new function.
(e_addressbook_view_can_copy): new function.
(e_addressbook_view_can_paste): new function. hmm, always return
TRUE here.
(e_addressbook_view_can_select_all): new function.
* gui/widgets/e-addressbook-view.h (struct _EAddressbookView): add
selection stuff - the list of selected cards, and the GtkInvisible
selection owner, and add prototypes for
e_addressbook_view_[can]_{cut,copy,paste,select_all}.
* gui/widgets/e-minicard-view-widget.h: add a prototype for
e_minicard_view_widget_get_selection_model.
* gui/widgets/e-minicard-view-widget.c
(e_minicard_view_widget_get_selection_model): new function.
svn path=/trunk/; revision=10050
2001-05-29 Federico Mena Quintero <federico@ximian.com>
* gui/e-tasks.c (e_tasks_get_calendar_table): New function.
* gui/tasks-control.c (tasks_control_activate): Connect to the
"selection_changed" signal of the tasks widget here, not in
tasks_control_new(). Also, update the sensitivity of the commands
here for the first time.
(tasks_control_deactivate): Disconnect from the signal here since
it only makes sense to monitor selection changes while the control
is active.
(selection_changed_cb): Removed hack that tested the presence of
the remote UI container.
(sensitize_commands): New function.
svn path=/trunk/; revision=10049
2001-05-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (list_add_addresses): Take another argument to
ignore a certain address.
(mail_generate_reply): Ignore references to the reply-to address
when constructing the Cc list.
svn path=/trunk/; revision=10046
2001-05-28 Federico Mena Quintero <federico@ximian.com>
* gal-view-collection.c (gal_view_collection_add_factory):
Document the fact that this function ref()s the factory and that
people should unref() it after calling the function if they no
longer need the factory object.
(gal_view_collection_display_view): Added preconditions.
(gal_view_collection_set_storage_directories): Likewise.
(gal_view_collection_add_factory): Likewise.
(gal_view_collection_load): Likewise.
(gal_view_collection_save): Likewise.
(gal_view_collection_get_count): Likewise.
(gal_view_collection_get_view): Likewise.
(gal_view_collection_get_view_item): Likewise.
(gal_view_collection_append): Likewise.
(gal_view_collection_delete_view): Likewise.
(gal_view_collection_copy_view): Likewise.
svn path=/trunk/; revision=10044
2001-05-29 JP Rosevear <jpr@ximian.com>
* e-shell-view.c (setup_progress_bar): unref the control when
finished with it
(setup_offline_toggle): ditto
(destroy): destroy offline and progress widgets
svn path=/trunk/; revision=10043
* providers/imap/camel-imap-store.c (imap_connect_online,
imap_connect_offline): Create a CamelDiscoDiary.
(imap_disconnect_offline): And free it.
* providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
If RESYNCING, don't do any sort of checking that the remote folder
matches the summary, beyond making sure that the UIDVALIDITY is
correct.
(imap_rescan): Add a missing camel_folder_summary_info_free when
removing a UID from the summary.
(imap_expunge_uids_offline): Implement. Fairly simple.
(imap_expunge_uids_resyncing): Implement. If the store supports
UIDPLUS, we can just use imap_expunge_uids_online. If not, we need
to temporarily undelete any messages marked deleted on the server
that aren't supposed to get expunged.
(imap_append_offline): Implement, using cache and summary
operations, and triggering the folder_changed event by hand.
(imap_append_resyncing): Implement. Redo imap_append_online a bit
in the process to make them able to share more code.
(imap_copy_offline): Implement.
(imap_copy_online): Move parts of this out into a helper.
(imap_copy_resyncing): Implement. In most cases this is just like
imap_copy_online, but if you are copying a message that was itself
copied or appended into the folder, and the server doesn't do
UIDPLUS, it will be necessary to replace at least part of the copy
operation with one or more appends.
* providers/imap/camel-imap-command.c (imap_read_response): Don't
record the current folder in the response when in RESYNCING mode.
(This means that EXISTS and EXPUNGE responses won't be processed,
which is needed because the summary may not match the folder at
this point.)
(imap_read_response): On error, call
camel_imap_response_free_without_processing, not
camel_imap_response_free.
* providers/imap/camel-imap-utils.c (imap_uid_array_to_set): Make
this work better when operating on UIDs that aren't in the summary.
* providers/imap/camel-imap-summary.c
(camel_imap_summary_add_offline): New routine used by
imap_append_offline and imap_copy_offline to create new summary
entries.
svn path=/trunk/; revision=10041
* camel-disco-diary.c: Code for logging and replaying offline
operations.
* camel-disco-store.c (disco_construct): Set disco->status here
(where we can base it on the session's offline status) rather than
at init time.
(disco_connect): If we connect online and have a non-empty diary,
switch to RESYNCING mode and replay the diary to the server.
(disco_get_folder, disco_get_folder_info): Add _resyncing
variants.
* camel-disco-folder.c (disco_sync, disco_expunge_uids,
disco_append_message, disco_copy_messages_to,
disco_move_messages_to): Add _resyncing variants to switches.
(disco_expunge_uids, disco_append_message, disco_copy_messages_to,
disco_move_messages_to): Remove #ifdef'ed out diary code: let the
provider do it.
(disco_append_message): Redo the append methods to no longer
return the UID, since we're no longer doing the logging from here.
svn path=/trunk/; revision=10040
2001-05-29 Jason Leach <jleach@ximian.com>
* message-browser.c (message_browser_new): one-line fix for bug
#2536: File->Close in message viewer doesn't work.
(message_browser_new): Also replaced like 4 lines of code with a
one-liner featuring gnome_app_create_toolbar_with_data().
2001-05-28 Jason Leach <jleach@ximian.com>
* mail-local.c (load_metainfo): Don't need to check if (foo!=NULL)
before doing an xmlFreeDoc().
svn path=/trunk/; revision=10039
2001-05-28 Damon Chaplin <damon@ximian.com>
* gui/e-week-view-layout.[hc]:
* gui/e-day-view-layout.[hc]: new files to contain layout code split
off from EDayView an EWeekView, so we can use it for printing.
* gui/print.c: rewritten to use the same layout code as the EDayView
and EWeekView widgets.
* gui/gnome-cal.c (gnome_calendar_get_task_pad_cal_client): added
function so we can get the CalClient used for the TaskPad for printing.
* gui/Makefile.am (evolution_calendar_SOURCES): added
e-day-view-layout.[hc] amd e-week-view-layout.[hc].
* cal-util/timeutil.c (time_week_begin):
(time_week_end): added week_start_day argument.
* cal-util/cal-recur.c: added comments describing problems in it.
svn path=/trunk/; revision=10037
2001-05-28 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (update): Use
e_utf8_to_gtk_string() on the description of the attachment since
camel stores these as utf-8 strings.
svn path=/trunk/; revision=10036
* evolution-mail.xml: Undo Jeff's View menu changes, as they
resulted in the normal/fullheaders/source radio group being split
across two levels of hiearchy, and grouped "Hide Deleted" with
the unrelated other Hide/Show commands.
svn path=/trunk/; revision=10035
* e-storage-set-view.c (new_storage_cb): Call
e_tree_node_set_expanded on the storage_set_view, not the
storage_set (which is not an ETree).
svn path=/trunk/; revision=10033