This fix got dropped in the attachment rewrite. Also, ignore the
application's NoDisplay setting when building the "open with" menu.
That's mainly so "Document Viewer" shows up in the list.
2008-10-01 Milan Crha <mcrha@redhat.com>
** Fix for bug #554418
* e-util/e-util.h: (e_util_guess_mime_type):
* e-util/e-util.c: (e_util_guess_mime_type): Guess mime_type based on
the file content only when permitted by the caller, otherwise
check based on the filename only, where it fallbacks if file
content guess fails.
* mail/em-utils.c: (em_utils_snoop_type):
* mail/em-popup.c: (emp_standard_menu_factory):
Guess mime_type based on the filename only.
* composer/e-msg-composer.c: (handle_uri),
(e_msg_composer_add_inline_image_from_file): Guess mime_type based
on the file content, if failed, then on the filename.
* widgets/misc/e-attachment.c: (attachment_guess_mime_type):
Allow guessing mime_type based on the file content.
* calendar/gui/dialogs/comp-editor.c: (set_attachment_list):
* calendar/gui/e-cal-popup.c: (ecalp_standard_menu_factory):
Allow/disallow guessing of the mime_type based on the file content.
svn path=/trunk/; revision=36529
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-05-22 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #534360
Migrate from deprecated GtkObject symbols to GObject equivalents.
Touches over 150 files in all components; too many to list.
svn path=/trunk/; revision=35526
2008-04-17 Milan Crha <mcrha@redhat.com>
** Fix for bug #526741 (gnome-vfs to gio/gvfs port)
* configure.in: Drop dependency on gnome-vfs, depend on gio instead.
* addressbook/gui/contact-editor/e-contact-editor.c: Do not include gnome-vfs.
* calendar/gui/e-meeting-store.c: (start_async_read), (freebusy_async),
(async_read): Read data with gio, not with gnome-vfs.
* calendar/gui/e-meeting-store.c: (async_close): Function removed.
* calendar/gui/migration.c:
* calendar/gui/e-memos.c:
* calendar/gui/alarm-notify/notify-main.c:
* calendar/gui/e-tasks.c:
* calendar/gui/main.c:
* calendar/gui/e-meeting-list-view.c:
Do not include gnome-vfs.
* calendar/gui/dialogs/comp-editor.c: (set_attachment_list):
* calendar/gui/dialogs/comp-editor.c: (attachment_guess_mime_type):
Function removed, use e-util function instead.
* calendar/gui/e-cal-popup.c: (temp_save_part):
Reflect changes in CamelStreamVFS.
* calendar/gui/e-cal-popup.c: (ecalp_apps_open_in), (ecalp_apps_popup_free),
(ecalp_standard_menu_factory): Use gio to fill popup and launch app.
* calendar/gui/e-cal-component-preview.h: (e_cal_comp_preview_url_requested_cb):
* calendar/gui/e-cal-component-preview.c: (e_cal_comp_preview_url_requested_cb):
New helper function to manage file:// urls for GtkHTML component.
* calendar/gui/e-cal-component-preview.c: (e_cal_component_preview_init):
* calendar/gui/e-cal-component-memo-preview.c:
(e_cal_comp_preview_url_requested_cb):
Use above helper function.
* calendar/gui/e-cal-component-memo-preview.c: (url_requested_cb):
* calendar/gui/e-cal-component-preview.c: (url_requested_cb): Function removed.
* composer/e-msg-composer.h: (e_msg_composer_guess_mime_type):
* composer/e-msg-composer.c: (e_msg_composer_guess_mime_type), (handle_uri),
(e_msg_composer_add_inline_image_from_file):
Use shared e_util_guess_mime_type instead of its own.
* e-util/e-gui-utils.c: Do not include gnome-vfs.
* e-util/e-util.c: (e_write_file_uri), (e_file_get_save_path):
* e-util/e-dialog-utils.c: (e_file_can_save), (e_file_check_local):
Use gio instead of gnome-vfs.
* e-util/e-util.h:
* e-util/e-util.c: (e_util_guess_mime_type), (e_util_filename_to_uri),
(e_util_uri_to_filename), (e_util_read_file): New helper functions.
* mail/Makefile.am:
* mail/em-vfs-stream.h:
* mail/em-vfs-stream.c: Removed from project, not used anywhere.
* mail/em-menu.c:
* mail/em-config.c: Do not include gnome-vfs.
* mail/mail-ops.c: (save_messages_exec), (save_part_exec):
Changes related to Data Server change of CamelStreamVFS.
* mail/em-format.c: (em_format_describe_part):
* mail/em-format-html-display.c: (efhd_bonobo_object), (efhd_find_handler),
(efhd_use_component), (efhd_bonobo_unknown), (efhd_check_server_prop),
(efhd_format_attachment): Drop use of deprecated gnome-vfs functions.
* mail/em-utils.c: (em_utils_snoop_type): Use gio to guess the mime_type.
* mail/em-popup.c: (emp_apps_open_in), (emp_apps_popup_free),
(emp_standard_menu_factory): Use gio to fill popup and launch app.
* plugins/import-ics-attachments/icsimporter.c: Do not include gnome-vfs.
* plugins/ipod-sync/ical-format.c: (do_save_calendar_ical):
* plugins/ipod-sync/ipod-sync.c: (destination_save_addressbook):
Write to gio GOutputStream instead of gnome-vfs handle.
* plugins/ipod-sync/format-handler.h: (open_for_writing):
* plugins/ipod-sync/ipod-sync.c: (open_for_writing): New helper function.
* plugins/publish-calendar/publish-format-fb.h: (publish_calendar_as_fb):
* plugins/publish-calendar/publish-format-fb.c: (write_calendar), (publish_calendar_as_fb):
* plugins/publish-calendar/publish-format-ical.h: (publish_calendar_as_ical):
* plugins/publish-calendar/publish-format-ical.c: (write_calendar), (publish_calendar_as_ical):
Use gio GOutputStream instead of gnome-vfs handle.
* plugins/publish-calendar/url-editor-dialog.c: (create_uri): Use glib function to escape URI.
* plugins/publish-calendar/publish-location.c: (migrateURI): Use EUri to parse URI.
* plugins/publish-calendar/publish-calendar.c: (publish_online), (unmount_done_cb),
(struct mnt_struct), (mount_ready_cb), (ask_password), (ask_question),
(mount_first), (publish):
Use gio instead of gnome-vfs for opening (remote) files.
* plugins/save-calendar/ical-format.c: (do_save_calendar_ical):
* plugins/save-calendar/csv-format.c: (do_save_calendar_csv):
* plugins/save-calendar/rdf-format.c: (do_save_calendar_rdf):
Use gio GOutpuStream instead of gnome-vfs handle.
* plugins/save-calendar/format-handler.h: (open_for_writing):
* plugins/save-calendar/save-calendar.c: (open_for_writing): New helper function.
* shell/e-shell-window-commands.c: (command_quick_reference):
Use gio instead of gnome-vfs.
* widgets/misc/e-attachment.h: (struct _EAttachment):
* widgets/misc/e-attachment.c: (finalise), (init), (attachment_guess_mime_type),
(e_attachment_new), (struct DownloadInfo), (download_info_free),
(data_ready_cb), (download_to_local_path),
(e_attachment_new_remote_file):
Use gio instead of gnome-vfs to download remote files.
* widgets/misc/e-image-chooser.c: (image_drag_data_received_cb):
Use new util function to read file.
* widgets/misc/e-attachment-bar.c: (size_to_string): Stolen from gnome-vfs.
svn path=/trunk/; revision=35378
2008-03-13 Milan Crha <mcrha@redhat.com>
** Fix for bug #460204
* e-attachment.c: (attachment_guess_mime_type):
Check whether found mime type is valid before returning it.
My thanks come to Effenberg whom helped me to debug it.
svn path=/trunk/; revision=35184
2008-01-11 Jeffrey Stedfast <fejj@novell.com>
Patch by Jean-Christophe BEGUE to fix bug #329692.
* e-attachment.c (e_attachment_new_from_mime_part): Get the
content size of the MIME part by calling the new
camel_mime_part_get_content_size() function.
svn path=/trunk/; revision=34802
2006-05-26 Jeffrey Stedfast <fejj@novell.com>
Fix for Novell bug #178631
* e-attachment-bar.c: Changed the EAttachmentBarPrivate struct, we
no longer use a linked list, instead we use a GPtrArray - faster,
simpler (plus all the code used indexes anyway, so it was really
bizarre).
(free_attachment_list): Removed.
(attachment_destroy): New GWeakNotify callback for when an
EAttachment object gets destroyed. Remove the attachment from the
attachments array.
(add_common): Updated to add to an array rather than a linked
list. Also weak_ref the attachment object.
(remove_attachment): Removed.
(update): Updated to use the array instead of linked list of
attachments.
(e_attachment_bar_remove_selected): Same.
(e_attachment_bar_set_width): Same.
(e_attachment_bar_edit_selected): Same.
(e_attachment_bar_get_selected): Same.
(e_attachment_bar_get_attachment): Same.
(e_attachment_bar_get_all_attachments): Same and also optimised
since we can cheat now without having to g_slist_reverse.
(e_attachment_bar_get_parts): Same.
(destroy): Same.
(eab_drag_data_get): Same.
(init): Init attachments to a g_ptr_array_new
(e_attachment_bar_to_multipart): Updated to use the attachments
array.
(e_attachment_bar_get_num_attachments): Updated to return the
attachments->len.
(e_attachment_bar_get_download_count): Updated to use the array.
* e-attachment.c (finalise): Close the editor dialog if it is
open.
(async_progress_update_cb): If the phase is COMPLETE but the
file_size is 0, then treat it as an error. In the error case,
unref the attachment object (this will magically remove it from
the EAttachmentBar).
(close_cb): Don't unref the attachment object here anymore.
(e_attachment_edit): Don't ref the EAttachment anymore.
svn path=/trunk/; revision=32042
2005-12-18 Tor Lillqvist <tml@novell.com>
* e-attachment.c: Use gstdio wrappers. Construct glade file name
at run-time.
svn path=/trunk/; revision=30864
2005-08-24 Srinivasa Ragavan <sragavan@novell.com>
* e-attachment.c (e_attachment_build_remote_file):
Fix for bug #314136. Shows filename in the remote download in
composer.
* e-attachment-bar.c (update): Better space management.
Kills one extra row that happens some times.
(e_attachment_bar_set_width): Just adjusts the size instead of
rebuild of the bar, which is the cause for the freeze. Fixes the
bug #313799. Remove the function e_attachment_bar_refresh
* e-attachment-bar.h: Remove the function e_attachment_bar_refresh
svn path=/trunk/; revision=30234
2005-08-17 Srinivasa Ragavan <sragavan@novell.com>
* e-attachment-bar.c
eab_drag_data_get: Use camel_url to construct url
(eab_icon_clicked_cb) (e_attachment_bar_new):
Fixed part of bug #312224. It handles double click on a attachment
icon and calls gnome_url_show.
* e-attachment.[ch] (finalise) (init): Add a new member to preserve
the stored location
(e_attachment_new)(e_attachment_build_remote_file): Camel_url to
construct urls
svn path=/trunk/; revision=30160
2005-07-20 Srinivasa Ragavan <sragavan@novell.com>
* e-attachment-bar.[ch]:(remove_attachment) (update) (e_attachment_bar_get_selector)
(e_attachment_bar_get_attachment) (destroy) (init) (e_attachment_bar_new)
(e_attachment_bar_add_attachment) (e_attachment_bar_attach_remote_file)
Cleaned up most of it. Added the DnD.
* e-attachment.[ch]: (real_changed) (class_init) (init) (e_attachment_new)
(e_attachment_new_remote_file) (e_attachment_build_remote_file): Moved the
remote download code from bar to here and few cleanups.
svn path=/trunk/; revision=29813