Commit Graph

39298 Commits

Author SHA1 Message Date
Matthew Barnes 4e394d89cf ETreeMemory: Further cleanups. 2013-06-15 11:06:45 -04:00
Matthew Barnes 235761ae23 ETreeMemory: Remove unused "fill-in-children" signal. 2013-06-15 10:23:22 -04:00
Matthew Barnes ec65fb8d44 Remove unused e_tree_memory_new(). 2013-06-15 10:18:52 -04:00
Matthew Barnes 612ee0e4b7 Remove unused e_tree_memory_construct(). 2013-06-15 10:18:17 -04:00
Matthew Barnes a0960cf4ff Remove unused e_tree_memory_set_node_destroy_func(). 2013-06-15 10:11:28 -04:00
Matthew Barnes 9a6a323c62 Remove unused e_tree_memory_sort_node(). 2013-06-15 10:07:41 -04:00
Matthew Barnes 0b1e95fb3f Remove unused e_tree_memory_node_insert_before(). 2013-06-15 09:58:44 -04:00
Matthew Barnes f198b7524d Remove unused e_tree_memory_node_insert_id(). 2013-06-15 09:57:54 -04:00
Matthew Barnes 12090eb288 Remove unused ETreeSorted. 2013-06-15 09:40:59 -04:00
Matthew Barnes 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
Matthew Barnes 3f39ab5f59 Remove em_utils_uids_copy().
No longer used.
2013-06-15 08:27:48 -04:00
Matthew Barnes 9311500db8 Avoid em_utils_uids_free() in other places. 2013-06-15 08:26:18 -04:00
Matthew Barnes 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
Matthew Barnes 2f43685f59 MessageList: Further cleanups. 2013-06-15 07:49:26 -04:00
Matthew Barnes 4c8944c611 Remove unused message_list_get_uids(). 2013-06-15 07:18:20 -04:00
Matthew Barnes 053aaed678 mdn: Fix a runtime warning. 2013-06-14 23:43:48 -04:00
Matthew Barnes 5b1742b202 Add e_mail_reader_ref_folder().
Replaces e_mail_reader_get_folder().
2013-06-14 23:21:41 -04:00
Matthew Barnes cf669f10f2 MessageList: Add a "group-by-threads" property.
Bind this to EMailReader's "group-by-threads" property.

New functions:

  message_list_get_group_by_threads()
  message_list_set_group_by_threads()
2013-06-14 23:21:40 -04:00
Matthew Barnes 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
Matthew Barnes b688b36e2d MessageList: Add a "show-deleted" property.
Bind this to the "show-deleted" GSettings key.

New functions:

  message_list_get_show_deleted()
  message_list_set_show_deleted()
2013-06-14 23:21:40 -04:00
Matthew Barnes 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
Matthew Barnes 169c9aea03 MessageList: Add a "thread-latest" property.
Bind this to the "thread-latest" GSettings key.
2013-06-14 11:48:39 -04:00
Matthew Barnes b355b7c2ed ESettingsMessageList: Apply the "thread-expanded" setting. 2013-06-14 11:27:44 -04:00
Matthew Barnes 0f8f88fe7e MessageList: Add a "thread-subject" property.
Bind this to the "thread-subject" GSettings key.
2013-06-14 11:27:40 -04:00
Matthew Barnes 96c32f5fac Make MessageList extensible.
Also add a placeholder ESettingsMessageList extension.  Going to clean
out some of the direct GSettings usage in MessageList by adding GObject
properties and binding them to GSettings keys from the extension.
2013-06-14 11:27:08 -04:00
Matthew Barnes 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
Matthew Barnes bb2d6be2fb em_utils_is_re_in_subject: Remove unused 'shell' parameter. 2013-06-14 09:43:28 -04:00
Matthew Barnes 9aca198838 message_list_regen_done_cb: Fix a runtime warning.
Make sure we're using our own RegenData structure.  Still clear the
reference on the private structure if it matches what we get from our
GSimpleAsyncResult.  The idea is to ensure we have exclusive access to
it so we don't have to worry about locking, etc.
2013-06-14 09:27:43 -04:00
Matthew Barnes ef54e65fb9 message_list_set_folder: Remove unused "outgoing" parameter. 2013-06-12 19:45:56 -04:00
Matthew Barnes 4ff2d9010e Remove unused MESSAGE_LIST_LOCK / MESSAGE_LOCK_UNLOCK macros.
Whatever those macros were once used for was surely evil.
2013-06-12 19:45:56 -04:00
Matthew Barnes 1e7f27ab1b Remove message_list_ensure_message().
No longer used.  Looks like a relic of some nasty hack.
2013-06-12 19:45:56 -04:00
Matthew Barnes bf4a068833 Reimplement mail_regen_list().
Reimplement the function to use an EActivity and GSimpleAsyncResult
instead of the legacy async framework in mail-mt.c.
2013-06-12 19:45:56 -04:00
Matthew Barnes 1846b2911e MessageList: Move regen-related members into private struct. 2013-06-12 19:45:56 -04:00
Matthew Barnes 362fcc69ad MessageList: Remove dead code.
BROKEN_ETREE is defined and SMART_ADDRESS_COMPARE is not defined.
That's not going to change, so remove the dead conditional code.
Also remove "#if 0" chunks that lack a comment explaining why.
2013-06-12 19:45:56 -04:00
Aurimas Černius e46c0629fb Updated Lithuanian translation 2013-06-12 23:36:35 +03:00
Daniel Mustieles 913312a5a5 Updated Spanish translation 2013-06-12 13:34:52 +02:00
Matthew Barnes 54384b7217 ECalShellView: Disconnect "prepare-for-quit" handler on dispose().
This is another source of crashes after creating and destroying a second
shell window.  The signal handler was left connected with the destroyed
shell window as the closure.
2013-06-10 16:43:38 -04:00
Matthew Barnes 243f84d37d ECalShellView cleanups. 2013-06-10 16:43:38 -04:00
Matthew Barnes 4f7b4d81e7 Reimplement the main toolbar's "prefer-item" feature.
This fixes a bug in the old implementation where the application could
crash after a second shell window was created and destroyed, because a
signal handler with the destroyed shell window as the closure was left
connected.

But moreover this simplifies the implementation by using a property
binding plus transform function instead of juggling signal handlers,
and also adds code comments where things get a little tricky.

Removed (now unused) functions:

  e_shell_window_get_toolbar_new_prefer_item
  e_shell_window_set_toolbar_new_prefer_item
2013-06-10 15:47:13 -04:00
Matthew Barnes e51e1d6e4b EMenuToolButton cleanups. 2013-06-10 15:06:36 -04:00
Matthew Barnes decc4aa9a7 ETaskShellSidebar: Update selector rows after restoring state.
Call e_source_selector_update_all_rows() after connecting to the
selector tree model's "row-changed" signal.  This will ensure the
appropriate ECalClients get loaded into the ECalModel.

This fixes the bug where opening a second Tasks window shows no
content until one of the sidebar items is fiddled with.
2013-06-10 12:46:22 -04:00
Matthew Barnes 4099d7eed5 EMemoShellSidebar: Update selector rows after restoring state.
Call e_source_selector_update_all_rows() after connecting to the
selector tree model's "row-changed" signal.  This will ensure the
appropriate ECalClients get loaded into the ECalModel.

This fixes the bug where opening a second Memos window shows no
content until one of the sidebar items is fiddled with.
2013-06-10 12:46:22 -04:00
Matthew Barnes b28f6f1d99 ECalShellSidebar: Update selector rows after restoring state.
Call e_source_selector_update_all_rows() after connecting to the
selector tree model's "row-changed" signal.  This will ensure the
appropriate ECalClients get loaded into the ECalModel.

This fixes the bug where opening a second Calendar window shows no
content until one of the sidebar items is fiddled with.
2013-06-10 12:46:22 -04:00
Matthew Barnes ab42fdc8c7 Add e_source_selector_update_all_rows().
Calls e_source_selector_update_row() for each ESource being shown
by the ESourceSelector, according to the "extension-name" property.
2013-06-10 12:46:22 -04:00
Fran Diéguez c80966db00 Updated Galician translations 2013-06-10 10:22:15 +02:00
Matthew Barnes 35582bf4e2 Bug 701669 - Bad assumption in prefer-plain module
For messages with a base MIME type of multipart/alternative, we were
hiding text/plain subparts based on the number of alternate subparts.

This assumption of course broke on a message with the following body
structure and a Plain Text Mode preference of "Show HTML if present":

    multipart/alternative
        text/plain
        text/plain

Instead, note when we've actually seen a text/html subpart and use that
to decide whether to hide the text/plain parts.
2013-06-08 11:53:02 -04:00
Matthew Barnes 5cf06f855f EMailParserPreferPlain cleanups. 2013-06-08 11:31:30 -04:00
Matthew Barnes 7b8a8a6a24 EMailFormatter: Remove the header API.
Use the EMailPartHeaders API instead.
2013-06-08 00:25:15 -04:00
Matthew Barnes 06e391117a EMailFormatterQuoteHeaders: Avoid EMailFormatter header API.
Use e_mail_part_headers_dup_default_headers() to extract specific
headers to show in the desired order.
2013-06-08 00:25:15 -04:00
Matthew Barnes 93d5cdd57a EMailFormatterHeaders: Avoid EMailFormatter header API.
Use e_mail_part_headers_dup_default_headers() to extract specific
headers to show in the desired order.
2013-06-08 00:25:15 -04:00