Commit Graph

7303 Commits

Author SHA1 Message Date
Matthew Barnes 8564aef30c e-mail-reader.h: Remove unimplemented declarations.
These functions do not exist:

  e_mail_reader_get_formatter()
  e_mail_reader_set_formatter()
2013-06-02 08:24:43 -04:00
Matthew Barnes 8d7a5a1b87 Add e_composer_header_table_ref_source().
Convenience function that works like e_source_registry_ref_source(),
but spares the caller from digging out the ESourceRegistry from the
header table.
2013-06-01 15:24:37 -04:00
Matthew Barnes 0dc9aae35b EComposeHeaderTable: Replace "registry" property with "client-cache".
The ESourceRegistry can still be obtained from the EClientCache:

   client_cache = e_composer_header_table_ref_client_cache (table);
   registry = e_client_cache_ref_registry (client_cache);

   ...

   g_object_unref (client_cache);
   g_object_unref (registry);

Added functions:

  e_composer_header_table_ref_client_cache()

Removed functions:

  e_composer_header_table_get_registry()
2013-06-01 15:24:00 -04:00
Matthew Barnes 9528240fe8 EMailReader cleanups. 2013-06-01 12:35:21 -04:00
Matthew Barnes 13089f0d50 e_mail_session_send_to(): Don't silently ignore if we can't send.
If sending fails for any reason, return a suitable GError.  Don't just
return silently.  Also check for a wider range of errors indicating the
service is unavailable in composer_send_completed().  This will trigger
the "save-to-outbox" info alert.
2013-05-29 16:50:27 -04:00
Matthew Barnes 2d251a9597 Distinguish "attachment-wrapper" elements from attachments.
The HTML for attachments always has the following form:

<div class="attachment-wrapper" id="something" style="display: block;">
  <actual attachment element>
</div>

The <div> element controls attachment visibility through its "display"
style attribute, which is either "block" or "none".

Problem is the <actual attachment element> was getting the same ID as
its parent <div> element.  So when either element was requested by ID,
in certain cases the wrong element was returned and caused misbehavior
and console warnings.

Solve this by adding a "wrapper" suffix to the <div> element ID.  So in
the example above, id="something" gets the <actual attachment element>,
whereas id="something.wrapper" gets the <div> element.
2013-05-29 07:09:20 -04:00
Matthew Barnes 9bfe38c419 Rename libcomposer to libevolution-mail-composer.
To make Evolution's shared libraries more consistent.

Also add an evolution-mail-composer documentation module.
2013-05-28 09:56:30 -04:00
Matthew Barnes 04aa0fba1f Rename libemformat to libevolution-mail-formatter.
To make Evolution's shared libraries more consistent.

Also add an evolution-mail-formatter documentation module.
2013-05-28 09:56:30 -04:00
Matthew Barnes 70a9fcdf9c Rename libeshell to libevolution-shell.
To make Evolution's shared libraries more consistent.

Also rename the documentation module to evolution-shell.
2013-05-28 09:56:30 -04:00
Matthew Barnes 6c9a3243c9 Rename libeutil to libevolution-util.
To make Evolution's shared libraries more consistent.

Also rename the documentation module to evolution-util.
2013-05-28 09:56:30 -04:00
Matthew Barnes 3777e4887c configure.ac: Remove unused function and header checks.
This removes the following definitions from config.h:

   CTIME_R_THREE_ARGS
   GETHOSTBYADDR_R_SEVEN_ARGS
   GETHOSTBYNAME_R_FIVE_ARGS
   HAVE_ISBLANK
   HAVE_MKSTEMP
   HAVE_STATFS
   HAVE_STATVFS
   HAVE_SYS_MOUNT_H
   HAVE_SYS_PARAM_H
   HAVE_SYS_STATVFS_H

These were all either unused or unnecessarily used.
2013-05-28 09:42:12 -04:00
Matthew Barnes 6777fe64ef e-mail-reader-utils.c cleanups. 2013-05-25 11:24:41 -04:00
Matthew Barnes f9ffe64723 Convert EMailPart to a GObject.
EMailPart is reference-counted, subclassed, and allows a custom
finalize function.  There's no excuse for it not to use GObject.
2013-05-19 13:07:22 -04:00
Matthew Barnes 67227b428b Add e_mail_part_get_validity_flags(). 2013-05-19 13:07:21 -04:00
Matthew Barnes ca09edf8fa Add e_mail_part_get_is_attachment(). 2013-05-19 13:07:21 -04:00
Matthew Barnes 0ee556d346 Add e_mail_part_get_mime_type(). 2013-05-19 13:07:21 -04:00
Matthew Barnes f19058ea7a Add e_mail_part_ref_mime_part(). 2013-05-19 13:07:20 -04:00
Matthew Barnes 366b731a16 Add e_mail_part_id_has_prefix(). 2013-05-19 13:07:20 -04:00
Matthew Barnes c025ffbb29 Add e_mail_part_get_id(). 2013-05-19 13:07:20 -04:00
Matthew Barnes cd5a55f981 em-format cleanups. 2013-05-19 13:07:20 -04:00
Matthew Barnes f6f11a1da2 EMailPart: Store validity pairs in a GQueue. 2013-05-19 13:07:20 -04:00
Matthew Barnes 07830ef445 Remove e_mail_display_set_charset().
Use e_mail_formatter_set_charset() instead.
Obtain the EMailFormatter with e_mail_display_get_formatter().
2013-05-14 15:20:14 -04:00
Matthew Barnes 232a3cd15d EMailDisplay cleanups. 2013-05-14 15:20:14 -04:00
Matthew Barnes 35f0a84993 EMailPrinter: Fix a couple typos. 2013-05-10 13:40:40 -04:00
Matthew Barnes 72f465b173 Bug 7000028 - Drag-n-drop export of a file produces 0 sized PDF file
em_utils_print_messages_to_file() was doing so asynchronously, but
unfortunately drag-n-drop is a synchronous protocol.  So by the time
the asynchronous print operation completed, the URI list pointing to
the temporary PDF files had already been passed to the file manager.

The only reason the files were created at all was because we test the
generated file name with open(...O_CREAT...) before starting the print
operation, and I'm not convinced that test is even necessary.
2013-05-10 12:44:10 -04:00
Matthew Barnes 16a95bfa16 Convert e_mail_printer_print() to a proper async function.
This adds a GAsyncReadyCallback and a closure to e_mail_printer_print(),
and trades the "done" signal for e_mail_printer_print_finish() so that
EMailPrinter is a little more reentrant.
2013-05-10 12:24:13 -04:00
Matthew Barnes 3acb2d6728 EMailPrinter cleanups. 2013-05-09 19:26:17 -04:00
Matthew Barnes 459cbbd9c7 em-utils.c cleanups. 2013-05-09 17:32:57 -04:00
Matthew Barnes 289d96f5f0 Remove "drag-and-drop-save-name-format" setting.
Hidden setting, no clear use case, and poorly implemented.
2013-05-09 16:31:04 -04:00
Matthew Barnes 448aa307c3 Right-align mail header names.
We used to do this before WebKit and it looked better.

Also fix up the header section for right-to-left locales:
put the collapse button on the right, and images on the left.
2013-05-08 23:06:23 -04:00
Matthew Barnes 58ef547151 Coding style and whitespace cleanup. 2013-05-08 08:28:09 -04:00
Milan Crha b254ea37ef Bug #301323 - "Edit as new message" doesn't strip signature properly 2013-05-06 23:54:37 +02:00
Milan Crha 7770e7c365 Merge [mark-all-read] plugin into core code
During fixes on bug #602428, rather than do everything twice,
I merged the plugin into the core code, thus it should be easier
to maintain as well.
2013-05-03 18:11:37 +02:00
Milan Crha 26229dd082 Bug #626215 - Prefer mail saving in order by UI 2013-04-26 15:34:32 +02:00
Matthew Barnes 3bf02daa08 Reimplement EPhotoCache to use EPhotoSource.
Reimplement EPhotoCache to delegate the actual photo fetching to
EPhotoSources.  When a photo is requested for a given email address,
all available EPhotoSources are dispatched concurrently and a photo
input stream is selected from the result set.

This also utilizes EDataCapture, which is affixed to the returned
GInputStream to capture and cache photo data for an email address.

New functions:

    e_photo_cache_add_photo_source()
    e_photo_cache_list_photo_sources()
    e_photo_cache_remove_photo_source()
    e_photo_cache_add_photo()

Renamed functions:

    e_photo_cache_remove() --> e_photo_cache_remove_photo()
2013-04-23 20:52:20 -04:00
Milan Crha b064d64be7 [EMailFormatter] Use GdkRGBA and GtkStyleContext to get theme colors
It could happen that header text color had been picked white one time,
but the other time black as expected (for me usually when I started
Evolution in Calendar and moved to Mail view, the header text color
was white, while when starting in Mail view it was black). The change
to use GtkStyleContext is there only as a cleanup from deprecated
GtkStyle, and to make things easier too, because both GtkStyle
and the GtkStyleContext had set white color for some reason.
2013-04-23 14:59:09 +02:00
Matthew Barnes 60386356e3 Remove "Search for sender photograph only in local address books".
This was added as part of bug 360184 but no justification was given
for the "local-only" part.  My Spidey sense tells me it was a hack-
around for the old implementation's tendency to freeze the UI while
searching for a photograph.  So the "local-only" option really just
meant "don't freeze the UI for very long, please".

The new EPhotoCache-based implementation in 3.8 NEVER freezes the UI,
so the "local-only" option is no longer needed.  If a remote address
book is slow or unresponsive we simply cancel the async photo lookup
when the user moves on to another email.
2013-04-20 13:15:27 -04:00
Milan Crha 765a50d3df Bug #697710 - Going offline doesn't disconnect remote stores 2013-04-11 13:53:22 +02:00
Milan Crha 2dfd548d26 Bug #271262 - Allow Send/Receive of local stores in offline 2013-04-08 19:21:04 +02:00
Matthew Barnes 576b9b358c EMailAccountStore: Remove "express-mode" property. 2013-04-01 07:53:21 -04:00
Matthew Barnes fdcd596763 EMailAccountManager: Add Online Account blurbs.
For accounts linked to an Online Accounts service (GNOME or Ubuntu),
display an informational message with an "Open Online Accounts" button
that launches gnome-control-center with an appropriate panel name.
2013-03-31 23:37:59 -04:00
Matthew Barnes bbe0e117ac EMailAccountManager: Inherit from GtkGrid. 2013-03-31 17:03:28 -04:00
Matthew Barnes 018018fabe Remove more Express Mode hacks.
This removes all traces of Express Mode from all but the contact editor
and calendar appointment editor.  Need to evaluate the remaining cases
individually.
2013-03-31 12:10:54 -04:00
Matthew Barnes 0494d4c3c6 Remove EUIManager.
No longer needed.  Use GtkUIManager directly.
2013-03-31 12:10:54 -04:00
Matthew Barnes 440ea8e3a0 Remove e_shell_configure_ui_manager().
No longer needed.
2013-03-31 12:10:54 -04:00
Tomas Popela 8c2472645f Fix for typing in ITIP comments when some keys triggered actions. 2013-03-28 13:03:09 +01:00
Milan Crha 4b03f11c4c Bug #696173 - Various memory leaks 2013-03-25 14:57:01 +01:00
Matthew Barnes 3cbe26e9d0 e-mail.h: Remove non-existent header files. 2013-03-24 14:11:25 -04:00
Tomas Popela e6bb4c7795 Fix usage of non-existing variable in debug message. 2013-03-21 14:07:55 +01:00
Matthew Barnes c9f01692ea Add e_msg_composer_ref_session().
Replaces e_msg_composer_get_session().
2013-03-17 08:49:12 -04:00