2005-05-19 Not Zed <NotZed@Ximian.com>
* em-folder-utils.h: fix rodney's name choices. fix
multiple-inclusion. fix forward references. fix all callers.
add many fixme's for the busted api's.
* em-format-quote.c (emfq_format_clone): use pseudo mime type to
find message formatter.
* em-format-html-display.c (efhd_format_message): remove, it
didn't do anything.
* em-format-html.c (efh_format_message): make this a handler
callback.
* em-format.c (emf_message_rfc822): make this use the pseudo
mime-type x-evolution/message/rfc822 instead of the hardcoded
format_message callback.
* em-format-html-display.c (efhd_message_prefix): make this use a
pseudo-mime-type handler rather than hard-coded, so it can be
overridden by a plugin.
svn path=/trunk/; revision=29382
2005-05-17 Radek Doulik <rodo@novell.com>
* em-format-html.c: removed include of htmlengine.h which wasn't
needed
* em-format-html-display.c: use top level gtkhtml API instead of
lower level one
* em-folder-view.c (emfv_popup_selectall): use gtk_html_select_all
instead of calling html engine directly
svn path=/trunk/; revision=29378
2005-05-05 Radek Doulik <rodo@site>
* em-folder-view.c (em_folder_view_get_popup_target): use
gtk_html_command to ask if selection is active tto avoid using
selection API directly
(emfv_popup_copy_text): use gtkhtml API instead of engine API
(emfv_message_reply): use new gtk_html_get_selection_html function
to avoid using low level gtkhtml APIs
svn path=/trunk/; revision=29272
2005-02-07 Harry Lu <harry.lu@sun.com>
Fix for 72275.
* em-folder-view.c: (emfv_popup_menu): try to bring up menu for
preivew html object.
(emfv_format_popup_event): handle event == NULL case.
* em-format-html-display.c: (em_format_html_display_popup_menu):
New function to popup context menu.
* em-format-html-display.h: add new function declaration.
svn path=/trunk/; revision=28744
2005-01-21 Not Zed <NotZed@Ximian.com>
** See bug #60664.
* em-format-html-display.c (efhd_init, efhd_gtkhtml_style_set): if
the style changes, re-calculate the page colours, and redraw.
svn path=/trunk/; revision=28478
2004-11-15 Not Zed <NotZed@Ximian.com>
* *.c: Moved various things from e-util to libedataserver.
* GNOME_Evolution_Mail.server.in.in: remove the startup wizard stuff.
* mail-config-druid.[ch]:
* mail-account-editor.[ch]:
* mail-account-gui.[ch]: removed & deleted.
* mail-session.c (mail_session_init): and here too.
* em-migrate.c (em_migrate_1_4): init camel-provider library too.
(e_path_to_physical): copy from e-util/e-path.c.
* Makefile.am (libevolution_mail_la_LIBADD): link to new libcamel
provider too.
svn path=/trunk/; revision=28047
2004-12-01 Mengjie Yu <meng-jie.yu@sun.com>
* em-account-editor.c: (emae_option_toggle),
(emae_receive_options_item):add mnemonic for buttons.
* em-format-html-display.c: (efhd_attachment_button):add atk name
for the popup button.
* mail-account-gui.c: (mail_account_gui_build_extra_conf):add
access key for checkbox.
* message-list.c: (message_list_construct):add a atk name for the
message list.
svn path=/trunk/; revision=28029
2004-09-28 Not Zed <NotZed@Ximian.com>
* em-composer-utils.c (forward_non_attached): put back in the
attachment attaching code. Doesn't work for s/mime and pgp, but
why bother arguing about it.
2004-10-06 Not Zed <NotZed@Ximian.com>
* em-folder-tree.c (emft_get_folder_info__desc): fix busted cast.
* *.c: e-popup api changes.
2004-10-06 Not Zed <NotZed@Ximian.com>
* em-folder-tree.c (emft_tree_button_press): remove some debug
that made it in accidentally.
svn path=/trunk/; revision=27487
2004-09-03 Not Zed <NotZed@Ximian.com>
** See bug #65058.
* em-format-html.c (efh_image): use the content-id rather than
the uri for tracking our image reference. Makes more
sense anyway, its guaranteed unique.
svn path=/trunk/; revision=27328
2004-08-13 Jeffrey Stedfast <fejj@novell.com>
Fix for bug #62812
* em-format-html-display.c (em_format_html_display_search): Set
the search_dialog to be transient for the parent window and make
sure to destroy the search_dialog when the parent gets destroyed.
svn path=/trunk/; revision=26995
2004-07-09 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c (emfb_folder_expunge): only call expunge if
the folder is set.
(emfb_enable_map[]): only enable expunge menu item if we have a
valid folder set.
** See bug #60900.
* em-format-html.c: convert the text_inline_parts hash to be keyed
off the partid.
(efh_free_inline_parts): -> efh_free_cache and fix to do it.
* em-format.c (emf_free_cache): make the inline table cache other
info too based on partid, this frees the structure.
(emf_clone_inlines): copy all of the cache data.
(em_format_is_inline): use the new data structure to determine
state.
(em_format_set_inline): same for setting.
(emf_multipart_signed): cache/lookup the cached part.
(emf_insert_cache): helper to add a cache entry.
(emf_multipart_encrypted): cache decrypted part.
(emf_application_xpkcs7mime): same.
2004-07-08 Not Zed <NotZed@Ximian.com>
** See bug #60900 (related only).
* em-format-html-display.c (efhd_attachment_show): let set_inline
do the redraw itself if required. kill some dead code.
* em-format.c (em_format_set_inline): trigger a redraw here like
the other em_format_set methods, if the state changed.
* em-format.c (emf_format_clone): free inline table keys & setup
string hash table.
* em-format-quote.c (emfq_format_attachment):
* em-format-html-display.c (efhd_format_attachment):
* em-format-html.c (efh_format_attachment): is_inline api changes.
* em-format-html-display.c (efhd_attachment_show): set_inline api
changes.
* em-format.c (em_format_is_inline): make this use the partid
rather than the part address as a key, which may change.
(emf_init): make the inline talbe a string hashtable.
(emf_finalise): free inline keys.
(emf_clone_inlines): copy the key string.
svn path=/trunk/; revision=26614
2004-06-23 Not Zed <NotZed@Ximian.com>
** See #54030.
* e-searching-tokenizer.c (e_searching_tokenizer_match_count):
only return a count if we're using the primary search string.
* em-format-html-display.c (efhd_search_response): set the primary
search string to NULL instead of resetting it.
(efhd_update_search): dont noop if we have a null search text,
just set an empty search.
* e-searching-tokenizer.c (e_searching_tokenizer_reset): remove
this, revert jeff's fixes for 54030. this is incomplete and so
doesn't work either (search text stays remembered and secondary
search text lost too).
** See #60523.
* em-folder-view.c (emfv_finalise): unhook the folder changed
before destroying the async thing, and move it all to destroy
event anyway.
(emfv_destroy): as above.
svn path=/trunk/; revision=26472
2004-06-18 Not Zed <NotZed@Ximian.com>
* em-vfolder-rule.c (get_widget): use mail dialogs.glade.
* mail-dialogs.glade: move the vfolder-source window here from
mail-config.glade.
* Makefile.am (glade_DATA): fix the glade list.
* mail-license.glade, subscribe-dialog.glade, mail-security.glade,
* mail-search.glade: Merged into mail-dialogs.glade. Should be
easier to manage.
* message-tag-followup.c (construct): use mail dialogs glade file.
* mail-account-gui.c (display_license): use mail dialogs glade file.
* em-subscribe-editor.c (em_subscribe_editor_new): use new glade
file.
* em-format-html-display.c (em_format_html_display_search): use
merged glade file.
(efhd_xpkcs7mime_validity_clicked): same.
* mail-dialogs.glade: merge various glade files into here.
svn path=/trunk/; revision=26409
2004-05-19 Not Zed <NotZed@Ximian.com>
* em-format-html.c (efh_format_secure): make this match the efhd
stuff.
* em-format-html-display.c: removed stock_signature-nokey since it
doesn't exist in gnome-icon-theme.
(efhd_xpkcs7mime_button): if there is no signing, but encryption,
use its icon. if there's no encryption too, use a broken icon
(?).
svn path=/trunk/; revision=25973
2004-05-14 Jeffrey Stedfast <fejj@novell.com>
* em-format-html.c (efh_format_secure): Same. Also changed the
"Valid signature, cannot verify sender" string to "Valid signature
but cannot verify sender" as I think it reads nicer.
* em-format-html-display.c (efhd_format_secure): Since signature
status is a tri-state, use 3 different colours too (yellow for
valid sig but unknown sender).
svn path=/trunk/; revision=25906
2004-05-13 Not Zed <NotZed@Ximian.com>
* em-folder-view.c (emfv_message_reply): re-enabled the reply to
selection stuff. I worked out how to make it work; I think.
* em-format-html-display.c (efhd_html_button_press_event): if we
aren't on a clickable object, do a null popup event instead.
* em-folder-view.c (emfv_format_popup_event): do the full popup if
we aren't on anything (not on a uri or part). See #8414.
svn path=/trunk/; revision=25894
2004-04-19 Jeffrey Stedfast <fejj@ximian.com>
* em-composer-prefs.h: Removed variables that got re-added with
the icon-theme patch somehow.
* em-account-prefs.c: Don't bother keeping global references to
the enable_pixbuf anymore, since it's unnecessary.
svn path=/trunk/; revision=25523
2004-04-14 Not Zed <NotZed@Ximian.com>
* mail-component.c (impl_createControls): remove debug comment.
** See #56641.
* em-format-html-display.c (efhd_format_secure): fix a small
memleak.
(efhd_bonobo_unknown, efhd_format_attachment): close the <object>
tag properly, and <br> it as well to make sure its separated.
* em-sync-stream.c: add some runtime and compile time stream
logging stuff.
svn path=/trunk/; revision=25457
2004-04-05 Not Zed <NotZed@Ximian.com>
* em-format-html-display.c (efhd_xpkcs7mime_button): if we have no
sign status, use signed-nokey, rather than no icon.
(efhd_xpkcs7mime_viewcert_clicked): show the certificate viewer
since certificate_viewer_show doesn't show it.
(efhd_xpkcs7mime_viewcert_foad): foad foad foad. The api changed
and we need to foad it ourselves.
** See bug #52822.
* em-format-html-display.c (efhd_xpkcs7mime_add_cert_table): if we
can't find the cert, then desensitise the cert button.
svn path=/trunk/; revision=25313
2004-03-31 Not Zed <NotZed@Ximian.com>
* *.[ch]: Cleaned up header inclusions and added plenty of forward
declarations. Sped up complete re-compilation by upto 20%.
** See bug #55950.
* em-utils.c (em_utils_in_addressbook): utility for checking if an
email address is in the addressbook. I can't tell if it works
'cause it crashes eds.
* em-format-html.c (emfh_gethttp): handle addressbook checking.
2004-03-30 Not Zed <NotZed@Ximian.com>
* mail-config.h: clean up the headers and use some forward decl's
instead.
* em-format-html.c (em_format_html_set_load_http): change state to
an int 'style' instead.
* em-folder-view.c (emfv_setting_notify): set the format load http
option to the config value directly.
** See bug #56147.
* message-list.c (clear_info): set the node data to NULL when we
unref its data.
(ml_get_save_id): use a different test for the root node, and
return NULL if we don't have any data on the node (because we're
cleaing it).
** See bug #54962.
* em-folder-tree.c (emft_popup_new_folder_response): put back the
old hack to open the vfolder editor if you try to create a folder
under vfolders.
** See bug #55940.
* mail-autofilter.c (mail_filter_rename_uri): map the uri to an
email uri before passing to filter code.
(mail_filter_delete_uri): same here.
svn path=/trunk/; revision=25261
2004-03-23 Radek Doulik <rodo@ximian.com>
* em-format-html-display.c (efhd_format_attachment): use
EM_FORMAT_HTML_VPAD
* em-format-html.h (EM_FORMAT_HTML_VPAD): added new define for
vertical padding
* em-format-html.c (efh_format_message): change padding table so
that it works OK with fixed gtkhtml
svn path=/trunk/; revision=25156
2004-03-23 Not Zed <NotZed@Ximian.com>
* em-format-html-display.c (efhd_attachment_popup): dont add the
show/hide menu items if we can't ever show it inline.
(efhd_attachment_button): disable the ">" button if we can't view
the content inline. See #52086.
svn path=/trunk/; revision=25155
2004-03-10 Jeffrey Stedfast <fejj@ximian.com>
* em-format-html-display.c (efhd_xpkcs7mime_validity_clicked):
Removed an unused variable left over from an old attempted fix.
* em-folder-selector.c (emfs_response): Select the same folder in
the create-folder dialog as is selected in the parent selector
dialog. Fixes the rest of bug #53862.
svn path=/trunk/; revision=25014
2004-03-05 Jeffrey Stedfast <fejj@ximian.com>
* em-format-html-display.c (em_format_html_display_search): Don't
set our parent window as the efhd, ehfd isn't even a widget.
Fixes bug #54030
* em-format-html-display.c (efhd_search_response): Reset the
searching tokeniser on Cancel.
* e-searching-tokenizer.c (e_searching_tokenizer_reset): New
function to reset a search tokeniser.
svn path=/trunk/; revision=24977
2004-02-26 Rodney Dawes <dobey@ximian.com>
* em-format-html-display.c (efhd_attachment_button): Create the
arrows in these widgets as GTK_SHADOW_NONE, since the default arrow
type in GTK+ 2.x is flat triangle arrows, and shadow types are
generally ignored for arrows anyway, and so we don't look ugly with
themes that handle shadow types on arrows correctly
svn path=/trunk/; revision=24901
2004-02-26 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #54352
* em-message-browser.c (emmb_class_init): Set update_message_style
to FALSE.
* em-folder-view.c (emfv_setting_notify): Only update message
display style if our subclass wants us to.
(emfv_class_init): Set update_message_style to TRUE.
(emfv_view_mode): Don't save the gconf key unless our class allows
us to.
svn path=/trunk/; revision=24894
2004-02-25 Jeffrey Stedfast <fejj@ximian.com>
* em-format-html-display.c (efhd_attachment_button): Protect
against using NULL pixbufs. Gets rid of a lot of console warning
spewage on my system.
svn path=/trunk/; revision=24873
2004-02-18 Jeffrey Stedfast <fejj@ximian.com>
* em-format-html-display.c (efhd_xpkcs7mime_validity_clicked):
Revert change from yesterday.
(efhd_xpkcs7mime_button): Use the icon from the table.
svn path=/trunk/; revision=24778
2004-02-17 Jeffrey Stedfast <fejj@ximian.com>
* em-format-html-display.c (efhd_xpkcs7mime_validity_clicked):
Display an alternate description based on the trust value if we
have a trust to work with.
svn path=/trunk/; revision=24764
2004-02-06 Not Zed <NotZed@Ximian.com>
** See bug #53258.
* em-format-html-display.c (efhd_find_handler): force any bonobo
handler types to always be inline, even attachments.
* em-format.c (em_format_is_inline): use handler flags for special
cases, removing all hard-coded types.
* em-format.h (EMFormatHandler): add a flags field, so far a flag
to set default inline viewing of the content.
2004-02-06 Not Zed <NotZed@Ximian.com>
* em-folder-properties.c: include string.h to kill warning.
** See bug #53627.
* em-folder-view.c (emfv_popup_mark_junk): changed to work like
delete does, jumping to the next message if required, and marking
things immediately, then queuing up the junk marking job if
required.
* mail-ops.c (mail_mark_junk): ugh, this stuff totally can't go
accessing messagelist from another thread!!!! Changed so this
code only does the junk reporting, not setting flags. UGH! It
should be doing this implictly on the folder when you set the
flags, or at least when you sync the folder!!! Changed ot use the
queued thread.
* message-list.c (find_next_undeleted): changed to find
next-unhidden, i.e. junk as well as deleted, if we're in
hide-deleted mode.
(build_tree): always call find_next_undeleted if we have a cursor.
(build_flat): same.
svn path=/trunk/; revision=24644
2004-01-30 Not Zed <NotZed@Ximian.com>
** See bug #53558 (plus other fixes/cleanups)
* em-format.c (emf_format_secure): default implementation, handle
output of inner part, but dont output any sign/encrypt info.
(emf_multipart_signed, emf_multipart_encrypted): replaced with
implementations from em-format-html.c, which now call
em_format_format_secure to output guts.
(emf_class_init): hook-up virtual method format_secure.
* em-format.[ch]: add a virtual method for outputing secured
parts. Moved all validity stuff from em-format-html.[ch] to here.
* mail-component.c (impl_createControls): set the session
interactive too.
* em-format-html-display.c: make smime stuff dependent on
HAVE_NSS.
(efhd_multipart_signed, efhd_application_xpkcs7mime): removed, now
handled by root class.
(efhd_output_secure): renamed to efhd_format_secure, and use
EMFormat::format_secure to kick off.
(efhd_class_init): setup format_secure virtual method.
* em-format-html.c (efh_multipart_encrypted): We need to handle
this here so we can properly keep track of the ciphervalidity
stuff. Also do it directly using the context, not
multipartencrypted part.
(efh_multipart_signed): with unsupported signature format, format
as multipart/mixed, not as an attachment.
(efh_multipart_signed): make the smime stuff optional.
(efh_multipart_signed, efh_multipart_encrypted): Moved to
em-format.c.
(efh_application_xpkcs7mime): moved to em-format.c
(efh_output_secure): renamed to efh_format_secure, linked into
virtual method. call parent class to do the validation foo then
output the info if needed.
(efh_format_message): fixed access to validity stuff to parent
object.
(efh_class_init): hook up format_secure virtual method.
(*): removed some now-unused headers.
svn path=/trunk/; revision=24531
2004-01-29 Not Zed <NotZed@Ximian.com>
* em-format-html-display.c (efhd_attachment_button): check the
snooped type for the icon/etc.
(efhd_format_attachment): save the snooped type in the
attach_puri.
* em-format-html.c (efh_text_plain): If we had a snooped type, use
that as the base type, rather than octet-stream, which will cause
an attachment in attachment loop.
* em-format.c (em_format_part_as): save the current snooped mime
type in a stack if we had any.
svn path=/trunk/; revision=24515
2004-01-21 Not Zed <NotZed@Ximian.com>
** See bug #53159.
* em-format.c (emf_message_rfc822): removed incorrect comment,
this is not a fallback.
* em-format-html.c (efh_text_plain): check the content-type of the
containee object, not the holder.
** See bug #52979.
* em-format-html.c: take out text/x-patch and put in text/* for a
text/plain fallback handler instead.
* em-format-html-display.c (efhd_find_handler): allow the bonobo
handlers to override the builtin ones.
svn path=/trunk/; revision=24341
2004-01-16 Not Zed <NotZed@Ximian.com>
* default/C/Inbox:
* default/C/Makefile.am:
* default/Makefile.am: Startup files/folders.
* em-migrate.c (emm_setup_initial): initial implementation of
startup setup.
(cp): Fix the test, we want exists AND size>0, not exists OR
size>0.
(cp): Fix the open, we can't use O_EXCL with empty, but present
files. Another hack fix for #52880.
** See bug #52896.
* em-format-html-display.c (efhd_html_button_press_event): do this
based on get_object_at rather than get_point_at, so we get the
offset properly.
svn path=/trunk/; revision=24261
2004-01-15 Not Zed <NotZed@Ximian.com>
** See bugs #51609 and #43515.
* em-format-html-display.c (efhd_format_prefix): output flag for
followup details above the message.
(efhd_write_image): added to output icon data.
* em-format-html.c (efh_format_do): call format_prefix before
outputting the message in normal display mode.
* em-format.c (emf_format_prefix): method called to format data
before the first message output. Default impl == noop.
svn path=/trunk/; revision=24230
2004-01-14 Not Zed <NotZed@Ximian.com>
** See bug 51660.
* em-format-html-quote.c (efhq_multipart_related): setup part_id
appropriately.
* em-format-html-display.c (efhd_output_secure): use part_id in
classid, and add .signed to part_id for subpart.
(efhd_bonobo_unknown): use part_id in classid.
(efhd_format_attachment): use part_id in classid's.
* em-format-html.c (efh_multipart_related)
(emfh_multipart_related_check): setup part_id for each subpart.
(efh_output_secure): as above, and use the part_id for the
classid.
(em_format_html_add_pobject): use part_id for a generated classid.
(efh_text_plain): setup pseudo-parts into part_id.
* em-format.c (emf_format_clone): setup the part_id base, folder +
uid.
(emf_finalise): free the part_id gstring.
(emf_init): allocate the part_id gstring.
(em_format_add_puri): build the cid from the part_id rather than
an arbitrary number, so it is more persistent. Also save the
part_id in the puri for multipart/related use.
(emf_multipart_mixed, emf_multipart_alternative)
(emf_multipart_appledouble, emf_multipart_encrypted)
(emf_multipart_related, emf_multipart_signed): Set the part_id for
each subpart.
(emf_clear_puri_node): free part_id.
2004-01-13 Not Zed <NotZed@Ximian.com>
** See bug 51660.
* em-format-html-print.c (em_format_html_print_print): dont take
message, get the message from the source formatter.
* em-format.c (emf_format_clone): Added folder and uid parameters,
changed camelmedium to a mimemessage.
* em-format-html-display.c (efhd_attachment_button): check the
icon image cache and if the image is there use it.
* em-icon-stream.c (em_icon_stream_get_image): api to lookup
finished images in cache.
(em_icon_stream_new): add a cache key arg.
(emis_sync_close): store the image in the cache once its
completed.
svn path=/trunk/; revision=24210
2004-01-04 ERDI Gergo <cactus@cactus.rulez.org>
* em-folder-view.c (emfv_on_url_cb): Emit a hover-url signal when
the user mouses over a URL, ...
(emfv_hover_url_impl): ... and use BonoboUI to change the status
bar message...
(em_folder_view_set_statusbar): ... unless we are asked not to, ...
* mail-component.c (impl_createControls): ... like in the case of
the mail component, ...
(view_hover_url_cb): ... that uses the ActivityHandler to do the
same
Add these together, and #127536 is neatly solved.
2004-01-05 ERDI Gergo <cactus@cactus.rulez.org>
* e-task-bar.c (init): Create a separate label to the left of the
progress messages...
(e_task_bar_message): ...and allow components to set it...
* e-activity-handler.c (e_activity_handler_message): ...through
this new ActivityHandler method
svn path=/trunk/; revision=24086