Commit Graph

1308 Commits

Author SHA1 Message Date
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
76af649676 EComposerHeaderTable: Remove "shell" property.
No longer needed.

Removed functions:

  e_composer_header_table_get_shell()
2013-06-01 15:24:03 -04:00
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
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
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
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
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
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
b254ea37ef Bug #301323 - "Edit as new message" doesn't strip signature properly 2013-05-06 23:54:37 +02:00
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
2dfd548d26 Bug #271262 - Allow Send/Receive of local stores in offline 2013-04-08 19:21:04 +02:00
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
f8f89b0bfd Remove e_shell_adapt_window_size().
Its preconditions are never TRUE, and is therefore a no-op function.
2013-03-31 12:10:54 -04:00
50b164637f EShell: Remove "small-screen-mode" property.
The property is always FALSE.

Remove both the property itself and any logic predicated on it.
2013-03-31 12:10:54 -04:00
c9f01692ea Add e_msg_composer_ref_session().
Replaces e_msg_composer_get_session().
2013-03-17 08:49:12 -04:00
2e87aa81fc Remove EMailShellSettings.
EShellSettings predates GSettings and is no longer necessary.

GSettings allows binding GObject properties to GSettings keys,
with optional mapping functions.  That fulfills the purpose of
EShellSettings.
2013-03-17 08:49:12 -04:00
98f4b4a74b Add ESettingsSpellEntry.
Automatically configures the "checking-enabled" property on all
ESpellEntry instances.
2013-03-11 13:37:57 -04:00
4ff90f2bfd Use EClientComboBox where appropriate.
Basically any place where we use both EClient and ESourceComboBox.
2013-03-01 18:16:07 -05:00
e5bb2b4ca2 Bug #693250 - Signature HTML problem using <...> 2013-02-26 18:10:35 +01:00
0582520db4 EMsgComposer: Fix packing of content area.
Using gtk_box_new() instead of gtk_vbox_new() changes the way child
widgets are packed by default via gtk_container_add().  gtk_vbox_new()
expands them by default, gtk_box_new() does not, and the preview pane
was being packed with gtk_container_add().

Packing widgets into a GtkBox with gtk_container_add() is usually the
wrong way.  Use gtk_box_pack_start() instead, with expand=TRUE.
2013-01-21 08:54:27 -05:00
8e2902eefc Bump GDK_VERSION_MIN_REQUIRED to GDK_VERSION_3_2.
Clean up resulting deprecation warnings, which were all related to
GtkOrientable consolidation (e.g. gtk_hbox_new() -> gtk_box_new()).
2013-01-19 19:08:01 -05:00
de978d4231 Use g_hash_table_add() when using a hash table as a set.
g_hash_table_add(table, key) uses less memory than
g_hash_table_insert(table, key, GINT_TO_POINTER (1)).

Also use g_hash_table_contains() when testing for membership.
2013-01-11 13:43:19 -05:00
6a79322ff6 Reduce diff noise with webkit-composer branch. 2013-01-11 09:39:04 -05:00
e2fff99a0b e-composer-header-table.c: Remove redundant #define. 2013-01-10 20:25:28 -05:00
bed06d9ec3 Move the contact map widgets to addressbook/gui/widgets.
Move the supporting widgets for the contact maps feature alongside
EABContactDisplay.  Removing them from libeutil helps isolate our usage
of libchamplain so it's not imposed on the entire application, and even
3rd party software.  That libchamplain is an optional dependency only
further complicates the matter.

Ideally I'd like to somehow isolate this feature in an extension module,
but we currently lack sufficient hooks for such an extension.  So this
arrangement will have to suffice for now.
2012-12-12 14:33:47 -05:00
d09d8de870 Consolidate base utility libraries into libeutil.
Evolution consists of entirely too many small utility libraries, which
increases linking and loading time, places a burden on higher layers of
the application (e.g. modules) which has to remember to link to all the
small in-tree utility libraries, and makes it difficult to generate API
documentation for these utility libraries in one Gtk-Doc module.

Merge the following utility libraries under the umbrella of libeutil,
and enforce a single-include policy on libeutil so we can reorganize
the files as desired without disrupting its pseudo-public API.

   libemail-utils/libemail-utils.la
   libevolution-utils/libevolution-utils.la
   filter/libfilter.la
   widgets/e-timezone-dialog/libetimezonedialog.la
   widgets/menus/libmenus.la
   widgets/misc/libemiscwidgets.la
   widgets/table/libetable.la
   widgets/text/libetext.la

This also merges libedataserverui from the Evolution-Data-Server module,
since Evolution is its only consumer nowadays, and I'd like to make some
improvements to those APIs without concern for backward-compatibility.

And finally, start a Gtk-Doc module for libeutil.  It's going to be a
project just getting all the symbols _listed_ much less _documented_.
But the skeletal structure is in place and I'm off to a good start.
2012-12-12 14:33:43 -05:00
3924dc759d EMailParserExtension: Collect EMailParts in a GQueue.
Collect EMailParts in a GQueue provided to the EMailParserExtension,
and change the return type of parse() to gboolean to indicate whether
the given CamelMimePart was handled (even if no parts were added to
the output GQueue).

This avoids the awkward corner case of a parser extension returning a
linked list node with a NULL data member to indicate the CamelMimePart
was handled but no EMailParts produced, and then having to watch out
for that NULL data member corner case throughout the application.

Also, remove the GCancellable parameter from e_mail_parser_error() and
e_mail_parser_wrap_as_attachment() since neither function blocks.
2012-12-07 14:01:04 -05:00
91822b42dc Make EMailPartList thread-safe.
Exposing data members in the public struct is unwise, especially when
EMailPartList is used from multiple threads.  Instead keep the members
private and provide a set of thread-safe functions to manipulate them.
2012-12-07 14:01:04 -05:00
a92d93fdf2 Bug #687998 - Attachment dialog shown when storing assigned task 2012-11-12 11:39:29 +01:00
2c4ae5e768 Coding style and whitespace cleanup. 2012-11-10 15:54:43 -05:00
704b78d23b Replace deprecated GLib symbols (as of GLib 2.34.x) 2012-11-06 16:21:37 +01:00
4f6b7704e2 Bug #681314 - Add address dialog should follow composer's view settings 2012-10-15 19:51:57 +02:00
d495e19945 Bug 684249 - Signatures get compounded, not replaced 2012-10-04 02:05:42 -04:00
e18f1b8709 Composer could start with empty From 2012-09-05 16:43:58 +02:00
d89e767a1c Coding style and whitespace cleanup. 2012-09-01 08:06:32 -04:00
c85109fc32 Coding style and whitespace cleanup. 2012-08-19 14:17:55 -04:00
8248614e36 composer: Remove redundant tooltips.
These are defined in GtkhtmlEditor now (bug #681087).
2012-08-02 23:06:50 -04:00
ae1f880dd8 Trust attachments from ~/.kde and ~/.kde4.
This came about from a mailing list thread entitled:

   Sending photos from digKam: "Skipping suspicious attachment"

Apparently KDE still uses dot-folders quite heavily, despite having
helped draft the XDG Base Directory Specification.
2012-07-02 11:02:56 -04:00
137eec97eb Bug #617557 - Can close composer while message is sending 2012-06-26 12:02:36 +02:00
6c05b09be1 Do not call g_object_notify() when property didn't change 2012-06-18 15:35:44 +02:00
0c2a0824be Bug #678304 - Save Draft prevents Evolution's quit 2012-06-18 12:25:35 +02:00
5b8340563c Mail formatter rewrite
All mail-parsing and formatting code has been moved to em-format.
Parsing is handeled by EMailParser class, formatting by EMailFormatter.
Both classes have registry which hold extensions - simple classes
that do actual parsing and formatting. Each supported mime-type
has it's own parser and formatter extension class.
2012-06-06 15:27:19 +02:00
2a39437ee9 Adapt to single-include E-D-S libraries. 2012-06-03 15:14:03 -04:00
f78795f4df Adapt composer to the new ESource API. 2012-06-02 23:00:40 -04:00
53a3d2f4e1 Use g_simple_async_result_set_check_cancellable().
Always call it immediately after g_simple_async_result_new().
2012-05-13 09:40:23 -04:00
89777f0726 Whitespace cleanups. 2012-05-13 09:15:42 -04:00
ecc1f7ae88 Bug #200683 - Composer subject spell checking 2012-05-09 19:50:33 +02:00
3fbbdd80ac Bug #674248 - Lost new lines from text/plain 2012-04-19 09:22:36 +02:00
e3295b4d11 Bug 673895 - "Send To..." doesn't work anymore
Our hidden file/directory blacklist went a little too far.  Evolution
was blacklisting its own temporary files.  This changes the blacklist
function to trust the user's own XDG Base Directories.
2012-04-11 09:44:11 -04:00
299521f02c Whitespace cleanup.
Replace 8-space indentation with tab characters, and various other
automated cleanups.
2012-04-01 23:15:38 -04:00