Commit Graph

667 Commits

Author SHA1 Message Date
5ebf0fd3c3 Add EMailFolderCreateDialog.
Subclass of EMFolderSelector, replaces em_folder_utils_create_folder().
2014-03-26 20:24:34 -04:00
a0015666b9 EMFolderSelector: Remove 'title' argument when creating.
Just call gtk_window_set_title() after creating the dialog.

This makes EMFolderSelector a little more "subclassable".
2014-03-26 20:24:34 -04:00
7624730674 EMFolderSelector: Add a "default-button-label" property.
Replaces the 'oklabel' argument when creating a new dialog, and can be
changed after the dialog is created.

This makes EMFolderSelector a little more "subclassable".
2014-03-26 20:24:33 -04:00
c70e8e9ea2 EMFolderSelector: Add a "caption" property.
Replaces the 'text' argument when creating a new dialog, and can be
changed after the dialog is created.

This makes EMFolderSelector a little more "subclassable".
2014-03-26 20:24:33 -04:00
5747a285f7 EMFolderSelector: Add a "can-create" property.
Replaces the EM_FOLDER_SELECTOR_CAN_CREATE flag, and can also be set
after the selector dialog is instantiated.

This makes EMFolderSelector a little more "subclassable".
2014-03-26 20:24:33 -04:00
8692b1cb72 Add an --enable-code-coverage configure option to enable gcov support
When enabled, this will compile all libraries/binaries with the necessary
gcc and ld flags to enable code coverage support using gcov.
2014-03-25 12:04:58 +01:00
17acc96914 Bug 711350: Cannot position caret in received message body without using the mouse
If Caret mode is enabled don't try to process the navigation keys and
don't set the focus on main frame to actually make the Caret mode
working.
2014-03-11 14:51:01 +01:00
d325d27f96 Bug #711351 - Folder change in folder tree steals focus 2014-03-07 14:49:13 +01:00
c53fbc0b8f Miscellaneous cleanups. 2014-03-02 19:36:01 -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
b48e21d9aa Stop using deprecated gtk-stock items 2014-02-12 20:47:07 +01:00
285c672785 Avoid multiple save of folder changes on application quit
While looking at bug #721286, I found out that mail_shell_view_prepare_for_quit_cb
calls a sync of the folder changes to the server, but mail_backend_prepare_for_quit_cb
does the same thing (or even more, because it calls to synchronize changes in all folders),
thus the former is redundant and can be dropped.
2014-01-29 20:01:22 +01:00
b21733d067 Bug 721545 - License text contains obsolete FSF postal address 2014-01-07 16:05:51 -05:00
8ae3cc3283 Remove mail_cancel_all().
Turns out this function was a no-op, because nothing registered itself
to be cancelled this way.  This was part of the legacy async framework,
which we've mostly moved away from now.
2013-11-27 13:15:08 -05:00
70d219dff6 EMMailerPrefs: Remove some unused bits. 2013-11-24 09:46:19 -05:00
cbb07ef381 Remove "side-bar-ellipsize-mode" setting.
I was wrong: ellipsize setting got renamed, not removed.  Remove it.
2013-11-20 12:41:47 -05:00
59f124ac28 Add em_folder_tree_model_get_row_reference().
Replaces em_folder_tree_model_lookup_uri() and to some extent
em_folder_tree_model_lookup_store_info().

Working toward making the EMFolderTreeModelStoreInfo struct private to
EMFolderTreeModel, so it can then be made thread-safe.
2013-11-19 14:50:56 -05:00
1970888280 Add em_folder_tree_ref_selected_store().
Replaces em_folder_tree_get_selected_store().

Same as before, but adds a reference to the returned CamelStore.
2013-11-16 19:24:02 -05:00
a1f9e24189 EShellBackend cleanups. 2013-11-16 19:24:02 -05:00
a3c859d68a EMailShellView cleanups. 2013-11-16 19:24:02 -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
edf8ad6eff "Disco is dead!", says Camel.
All offline-capable Camel providers use CamelOfflineStore now.
2013-11-13 18:15:50 -05: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
bc0d5d40ed Bug 710797 - Name all the timeouts added with g_timeout_add() 2013-10-29 15:22:35 -04:00
19cee36149 Use EProxyPreferences in EPreferencesWindow.
Replaces EMNetworkPrefs.
2013-10-25 12:51:12 -04:00
7a6be11ea6 Miscellaeous cleanups. 2013-10-20 11:15:41 -04:00
b5023d32bd Bug #215115 - Per-folder From: email address
The change also allows setting accounts for certain recipients (based
on a part of the recipient address). The option can be found in Folder
Properties and in Edit->Preferences->Composer Preferences->Send Account.
2013-10-08 13:22:48 +02:00
82010c57ec Adapt to Camel API changes. 2013-09-23 12:03:17 -04:00
3da4948c0f Miscellaneous cleanups. 2013-09-07 19:08:54 -04:00
996055c6e5 Bug #698275 - Enable/disable account yields to a several seconds busy loop 2013-08-21 12:52:31 +02:00
b7e728dd46 Bug #682277 - Multiselect of messages causes slow UI update 2013-08-20 11:25:06 +02:00
20a97f4d61 Fix sidebar message counts for real Junk / Trash folders. 2013-08-03 15:21:51 +02:00
3eda7a50de Add e_web_view_cursor_image_copy().
Asynchronously copies the image under the cursor to the clipboard.

This replaces the "cursor-image" property, which attempts to match the
image URI to a subresource from WebKitWebDataSource.  The problem with
that approach is EMailDisplay redirects several URI schemes to its own
custom request handlers which further mutate the URI.  So for example,
a text/html message may use a "cid:" URI to refer to an embedded image,
which EMailDisplay transforms to a "mail:" URI and finally to a "data:"
URI.  The final image URI might not be derivable from the original URI
without retracing the SoupRequest.

The "image-copy" action now calls e_web_view_cursor_image_copy().

This also adds an explicit requirement on gdk-pixbuf-2.0 >= 2.24 for
gdk_pixbuf_new_from_stream_async() / finish().

New functions:

  e_web_view_cursor_image_copy()

Removed functions:

  e_web_view_get_cursor_image()
  e_web_view_set_cursor_image()
2013-07-27 21:24:01 -04:00
3f3ae7f2c8 Rename e_mail_display_set_parts_list().
Rename to e_mail_display_set_part_list().

Function takes an EMailPartList, not an "EMailPartsList".
2013-07-27 02:16:47 -04:00
df1dc37704 EShellView can load the GalViewCollection itself now.
EShellView no longer needs help from subclasses other than getting
the needed GalView subclasses registered.

A nice side-effect of this is EShellView subclasses can now use the
G_DEFINE_DYNAMIC_TYPE macro.
2013-07-05 16:40:50 -04:00
7bb795b299 Remove gal_view_collection_add_factory().
No longer needed.  Instead, use g_type_ensure() to ensure the necessary
GalView subclasses are registered in the GType system before loading a
GalViewCollection.  Best place to ensure types is from GClassInitFunc.
2013-07-05 16:40:50 -04:00
2b9713656b GalViewFactoryEtable: Remove "specification" property.
No longer needed.

Removed functions:

  gal_view_factory_etable_get_specification()
2013-07-05 16:40:49 -04:00
31b5261fdb EShellView: Add a "view-instance" property.
EShellView now holds a reference to the active GalViewInstance.  Where
applicable, the EShellView subclass is responsible for keeping this up
to date when the sidebar selection changes.

Holding a reference allows EShellView to implement common actions like
"Save Current View" directly instead pushing it on to subclasses.

New functions:

  e_shell_view_get_view_instance
  e_shell_view_set_view_instance
2013-07-05 16:40:48 -04:00
f267827d67 ETableSpecification: Implement GInitable.
e_table_specification_new() now takes a table specification filename and
a GError and parses the file as part of instance creation.  If a file or
parse error occurs, e_table_specification_new() returns NULL.

This replaces e_table_specification_load_from_file().

New functions:

  e_table_specification_get_filename()

Removed functions:

  e_table_specification_load_from_file()
2013-07-02 10:34:12 -04:00
23d786f06a e-mail-shell-view.c: Avoid e_tree_set_state().
Create our own ETableState and call e_table_state_load_from_string()
followed by e_tree_set_state_object().
2013-07-02 10:34:12 -04:00
f927a9a169 Bug 702664 - Settings migration issue from "headers" to "show-headers"
Give the "show-headers" key a proper default value, and watch out for
an empty "headers" key, which is supposed to imply that default value.
2013-06-21 11:06:16 -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
5b1742b202 Add e_mail_reader_ref_folder().
Replaces e_mail_reader_get_folder().
2013-06-14 23:21:41 -04:00
4fb6020185 MessageList: Remove public 'hidejunk' and 'hidedeleted' flags.
Add internal functions to compute these as needed based on a given
CamelFolder.

Removed functions:

  message_list_set_hidedeleted()
2013-06-14 23:21:40 -04:00
9c4500a9b5 MessageList: Add a "folder" property.
Also move the CamelFolder pointer into the private structure.

New functions:

  message_list_ref_folder()
2013-06-14 23:21:40 -04:00
3e8b6ddf8d Add "show-headers" settings key.
Replaces the "headers" key.  Whereas "headers" is an array of XML
blobs, the "show-headers" key is an array of string/boolean pairs.

Also update the appropriate places to get/set the new key.
2013-06-05 13:03:45 -04:00
89d274e476 Remove unused EMailNotebookView.
This is just an Express Mode leftover.
2013-06-02 16:44:51 -04:00
540acdbfa9 Simplify em_utils_forward_message() arguments.
Replace the EShell and CamelSession arguments with a single EMailBackend
argument, from which both the EShell and CamelSession can be obtained.
2013-06-02 11:58:08 -04:00
4860654335 Use F9 to toggle sidebar visibility.
As discussed recently on the users mailing list [1], there's a strong
precedent among GTK+ applications for F9 to toggle sidebar visibility.
Examples cited were Nautilus, Evince, Totem, Rhythmbox, File-Roller
and gThumb.

Change the Send/Receive accelerator from F9 to F12, and designate F9
as the accelerator for View->Layout->Show Side Bar.

[1] https://mail.gnome.org/archives/evolution-list/2013-May/msg00194.html
2013-05-29 08:09:53 -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