Commit Graph

337 Commits

Author SHA1 Message Date
d75a0c1dcc Bug 738080 - message/rfc822 attachment drag and drop often does not work 2015-02-27 12:40:10 +01:00
8ea9f96f8b Prefer g_output_stream_write_all() over g_output_stream_write()
Just to make sure that all data had been written, while the later
can finish successfully without actually write all the data it was
requested to write.
2015-02-09 14:53:37 +01:00
59e2efa774 Share GSettings objects with e_util_ref_settings()
A simple Evolution run and move between all views means creation of
more than 100 GSettings objects, with only a bit more than 10 schemas.
Reusing the objects should have a positive impact on a performance too.
2014-11-13 10:06:04 +01:00
c0da2e669c Bug 738453 - Inefficient sort by subject in message list 2014-10-15 19:37:27 +02:00
8650fb139a Bug 540362: [webkit-composer] Use webkit for composer
Merge wip/webkit-composer branch into master.
2014-06-09 16:32:25 +02:00
f4bb7d7748 EMailFormatter: Use GOutputStream instead of CamelStream. 2014-02-28 14:38:11 -05:00
5c60d57082 Replace 'interface' with 'iface' in the code
Win32 headers have a #define for 'interface', which breaks the build
when this word is used in the code, thus replace it to 'iface',
the same way as GLib or GTK+ code use to have it. (See bug #722068.)
2014-02-26 16:15:21 +01:00
b21733d067 Bug 721545 - License text contains obsolete FSF postal address 2014-01-07 16:05:51 -05:00
570c637480 Fix/mute issues found by Coverity scan
This makes the code free of Coverity scan issues.
It is sometimes quite pedantic and expects/suggests some
coding habits, thus certain changes may look weird, but for a good
thing, I hope. The code is also tagged with Coverity scan
suppressions, to keep the code as is and hide the warning too.
Also note that Coverity treats g_return_if_fail(), g_assert() and
similar macros as unreliable, and it's true these can be disabled
during the compile time, thus it brings in other set of 'weird'
changes.
2013-11-15 09:06:57 +01:00
3c30fb1747 Convert libemail-engine to a single-include model.
Use: #include <libemail-engine/libemail-engine.h>
2013-11-11 12:07:43 -05:00
82010c57ec Adapt to Camel API changes. 2013-09-23 12:03:17 -04:00
8cbeb646cf Bug #705657 - Crash in em_utils_selection_set_urilist() 2013-08-08 10:53:31 +02:00
d3fdc59c40 Drop unused em_utils_get_proxy() 2013-07-15 18:52:50 +02:00
1dea0429cf Remove em_utils_uids_free().
No longer used.  We actually had this defined in two places.
2013-06-15 08:28:37 -04:00
3f39ab5f59 Remove em_utils_uids_copy().
No longer used.
2013-06-15 08:27:48 -04:00
9311500db8 Avoid em_utils_uids_free() in other places. 2013-06-15 08:26:18 -04:00
f642e03d49 message_list_get_selected: Give the returned array a free func.
The returned UID array now has a built-in "free" function for its
elements and should be released by callers with g_ptr_array_unref()
rather than em_utils_uids_free() or some equivalent.
2013-06-15 08:19:27 -04:00
f60986649a Remove global "shell_builtin_backend" variable.
No longer used.  Always nice to remove a dirty hack on a dirty hack.
2013-06-14 10:06:39 -04:00
bb2d6be2fb em_utils_is_re_in_subject: Remove unused 'shell' parameter. 2013-06-14 09:43:28 -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
67227b428b Add e_mail_part_get_validity_flags(). 2013-05-19 13:07:21 -04:00
ca09edf8fa Add e_mail_part_get_is_attachment(). 2013-05-19 13:07:21 -04:00
0ee556d346 Add e_mail_part_get_mime_type(). 2013-05-19 13:07:21 -04:00
c025ffbb29 Add e_mail_part_get_id(). 2013-05-19 13:07:20 -04:00
cd5a55f981 em-format cleanups. 2013-05-19 13:07:20 -04:00
f6f11a1da2 EMailPart: Store validity pairs in a GQueue. 2013-05-19 13:07:20 -04:00
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
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
459cbbd9c7 em-utils.c cleanups. 2013-05-09 17:32:57 -04:00
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
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
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
d5480344fc EMailTagEditor: Remove calendar configuration properties.
Remove EMailTagEditor's "use-24-hour-format" and "week-start-day"
properties, which were being used to manually configure its internal
EDateEdit instance.  This is unnecessary since all EDateEdit instances
are automatically configured by the ESettingsDateEdit extension.
2013-03-04 09:21:38 -05:00
da975dadf5 Replace deprecated static mutexes 2013-02-13 18:46:30 +01:00
3b11207dcb Use camel_service_ref_session(). 2013-02-11 10:38:29 -05:00
722a27e850 Bug #692005 - Changing character encoding doesn't work 2013-01-18 18:34:56 +01:00
6a79322ff6 Reduce diff noise with webkit-composer branch. 2013-01-11 09:39:04 -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
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
abdefcaa26 Bug #687670 - Signing with both pgp and S/MIME shows only one signature 2012-11-21 17:57:07 +01:00
2c4ae5e768 Coding style and whitespace cleanup. 2012-11-10 15:54:43 -05:00
aded0858c4 Prefer e_source_registry_check_enabled().
Prefer e_source_registry_check_enabled() over e_source_get_enabled()
for most instances where we want to exclude disabled data sources.
2012-10-25 13:01:50 -04:00
b0eca85eb4 Fix a memory leak when replying to a message 2012-09-12 13:53:56 +02:00
ea33b6c60d Bug #681279 - Reply on selection doesn't work (re-fix) 2012-09-12 12:41:22 +02:00
9998479b96 Revert commit c9d0ac7 (bug #681279) 2012-09-11 17:35:15 +02:00
c9d0ac751b Bug #681279 - Reply on selection doesn't work
This time because Prefer-plain could hide text/html part, which resulted
in no text shown in the reply.
2012-09-07 15:38:32 +02:00
c85109fc32 Coding style and whitespace cleanup. 2012-08-19 14:17:55 -04:00
6be2668e48 Adapt to CamelSession API changes.
These functions now return new references:

  camel_session_add_service()
  camel_session_list_services()

These functions have been renamed and also return new references:

  camel_session_get_service()        -> camel_session_ref_service()
  camel_session_get_service_by_url() -> camel_session_ref_service_by_url()
2012-08-12 11:44:37 -04:00
75eae13cbc Bug #680164 - Print Preview action should open preview immediatelly 2012-07-19 11:28:02 +02:00
f63f758398 Bug #349875 - Dragging an email from a vFolder should link to source folder 2012-07-11 18:32:24 +02:00