Commit Graph

134 Commits

Author SHA1 Message Date
Matthew Barnes a87a779e0b ERuleEditor: Remove dead code.
Unfinished undo framework from ages past.

Nice idea I guess, but not worth the complexity.
2013-07-08 20:38:18 -04:00
Matthew Barnes 0ac936cfe3 Remove nautilus-sendto integration.
nautilus-sendto has been stripped of its usefulness in GNOME 3.8.

It no longer has a UI of its own, it just immediately spawns a mail
client with a set of files as attachment arguments for a new message.
There's no reason for Evolution to be invoking it anymore.
2013-07-08 07:44:46 -04:00
Matthew Barnes 682328cded Add e_activity_get_last_known_text().
Evolution is still occasionally getting stuck on shutdown, and although
the evolution-shell log domain shows debug messages for activities that
are preventing shutdown, they frequently look like this:

(evolution:13534): evolution-shell-DEBUG: 5 active 'mail' activities:
(evolution:13534): evolution-shell-DEBUG: * (no description)
(evolution:13534): evolution-shell-DEBUG: * (no description)
(evolution:13534): evolution-shell-DEBUG: * (no description)
(evolution:13534): evolution-shell-DEBUG: * (no description)
(evolution:13534): evolution-shell-DEBUG: * (no description)

I think the lack of descriptions is from CamelOperations popping all
their pushed messages, which is correct behavior but doesn't help us
debug the problem.

e_activity_get_last_known_text() returns the most recent _non-empty_
text value set on the EActivity.  So our debug message can fall back
to that if the EActivity has no description at shutdown:

(evolution:13534): evolution-shell-DEBUG: * (was "blah, blah, blah")
2013-07-06 11:57:57 -04:00
Matthew Barnes 427d93b3df Remove GalViewFactory.
No longer used.
2013-07-05 16:40:51 -04:00
Matthew Barnes cbc2818d65 Remove GalViewFactoryEtable.
No longer used.
2013-07-05 16:40:51 -04:00
Matthew Barnes 61a773db49 GalViewCollection: Load files during instance initialization.
gal_view_collection_new() now takes system and user directory arguments
and loads GalViews during instance initialization.

Removed functions:

  gal_view_collection_set_storage_directories()
  gal_view_collection_load()
  gal_view_collection_loaded()
2013-07-05 16:40:51 -04:00
Matthew Barnes 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
Matthew Barnes 25d2fab96e GalViewCollection: Add a private section. 2013-07-05 16:40:50 -04:00
Matthew Barnes 8445107974 GalViewCollection: Add a "user-directory" property.
Just readable for now, but I plan to make it also construct-only.

(Despite the precendence, I prefer "user" over "local" for the name.)

New functions:

  gal_view_collection_get_user_directory()
2013-07-05 16:40:50 -04:00
Matthew Barnes 695e0dba70 GalViewCollection: Add a "system-directory" property.
Just readable for now, but I plan to make it also construct-only.

New functions:

  gal_view_collection_get_system_directory()
2013-07-05 16:40:50 -04:00
Matthew Barnes 2ce22e2506 Remove unused gal_view_collection_set_default_view(). 2013-07-05 16:40:50 -04:00
Matthew Barnes 8fd95b78a4 Remove unused gal_view_collection_copy_view(). 2013-07-05 16:40:50 -04:00
Matthew Barnes 2996a0503b Remove unused gal_view_collection_append(). 2013-07-05 16:40:50 -04:00
Matthew Barnes 535084860b Remove unused gal_view_collection_get_view_id_by_index(). 2013-07-05 16:40:50 -04:00
Matthew Barnes 562c54612f GalViewCollection: Remove "title" member.
It's set by EShellView but not actually used for anything.

Removed functions:

  gal_view_collection_set_title()
2013-07-05 16:40:50 -04:00
Matthew Barnes 8abe1f3203 GalViewCollection: Remove unused "display-view" signal.
Removed functions:

  gal_view_collection_display_view()
2013-07-05 16:40:50 -04:00
Matthew Barnes 57a3b819e1 GalViewClass: Replace get_type_code() with "type_code" string.
All GalView subclasses return a static string in their get_type_code()
methods, so replace the method with a static string pointer directly in
the class structure, and remove the "type-code" GalView property.
2013-07-05 16:40:49 -04:00
Matthew Barnes 2b9713656b GalViewFactoryEtable: Remove "specification" property.
No longer needed.

Removed functions:

  gal_view_factory_etable_get_specification()
2013-07-05 16:40:49 -04:00
Matthew Barnes 99f04cfe58 Remove gal_view_etable_set_state().
No longer used.
2013-07-05 16:40:49 -04:00
Matthew Barnes c6d3ced98a GalViewEtable: Remove ETableSpecification member.
Instead, lazily load the state file once an ETable or ETree is attached,
since we need its ETableSpecification to create an ETableState instance.

This means GalViewFactoryEtable can lose its ETableSpecification too.
2013-07-05 16:40:49 -04:00
Matthew Barnes 1f84c2af98 GalViewEtable: Add a private section. 2013-07-05 16:40:49 -04:00
Matthew Barnes a2818bc4ea GalView: Add a private section. 2013-07-05 16:40:49 -04:00
Matthew Barnes c361af7396 GalViewFactory: Remove get_title() method.
No longer used.

Removed functions:

  gal_view_factory_get_title()
2013-07-05 16:40:49 -04:00
Matthew Barnes 7193739a13 GalView: Remove edit() method.
No longer used.

Removed functions:

  gal_view_edit()
2013-07-05 16:40:49 -04:00
Matthew Barnes af39ee96f0 Remove GalViewNewDialog.
No longer user.
2013-07-05 16:40:49 -04:00
Matthew Barnes 70bce028f7 Remove GalDefineViewsModel.
No longer used.
2013-07-05 16:40:49 -04:00
Matthew Barnes 031d11b437 Remove GalDefineViewsDialog.
No longer used.
2013-07-05 16:40:49 -04:00
Matthew Barnes b459f80f1f Update evolution-util API docs. 2013-07-02 10:34:12 -04:00
Matthew Barnes 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
Matthew Barnes dfc653bb43 Remove e_tree_set_state().
No longer used.
2013-07-02 10:34:12 -04:00
Matthew Barnes 4d5c0ce60e Remove e_tree_get_state().
No longer used.
2013-07-02 10:34:12 -04:00
Matthew Barnes 3d1514fb67 Remove e_table_set_state().
No longer used.
2013-07-02 10:34:12 -04:00
Matthew Barnes 058c39cd61 Remove e_table_get_state().
No longer used.
2013-07-02 10:34:12 -04:00
Matthew Barnes b5f6b03fdf Remove e_table_specification_load_from_string().
No longer used outside of e-table-specification.c.

Its logic is merged into e_table_specification_load_from_file(), but
that too will be removed momentarily.
2013-07-02 10:34:12 -04:00
Matthew Barnes a5f7b4eef6 Remove e_tree_new_from_spec_file().
Also remove e_tree_construct_from_spec_file().

Use e_tree_new() or e_tree_construct() instead.
2013-07-02 10:34:11 -04:00
Matthew Barnes aeefcadc77 Remove e_table_new_from_spec_file().
Also remove e_table_construct_from_spec_file().

Use e_table_new() or e_table_construct() instead.
2013-07-02 10:34:11 -04:00
Matthew Barnes 4391d00cdf Remove ETableWithout.
No longer used.
2013-07-02 10:34:11 -04:00
Matthew Barnes 1f6560f3f2 Remove ETableMemory.
No longer used.
2013-07-02 10:34:11 -04:00
Matthew Barnes 44f1ec85ba Remove ETableMemoryStore.
No longer used.
2013-07-02 10:34:11 -04:00
Matthew Barnes c4a37c155a Add ETableColumnSelector.
A new ETable column selection and ordering widget that looks like
it was written in the 21st century.  Derives from ETreeViewFrame.
2013-07-02 10:34:11 -04:00
Matthew Barnes 30d15fc59c Remove e_table_column_specification_load_from_node().
No longer used.
2013-07-02 10:34:10 -04:00
Matthew Barnes c1e8c1869d Remove e_table_specification_load_from_node().
No longer used.
2013-07-02 10:34:10 -04:00
Matthew Barnes 44c74e5e9d Add e_table_state_parse_context_push/pop().
New parser implementation that uses GMarkupParser instead of libxml2.
2013-07-02 10:34:10 -04:00
Matthew Barnes bcd071b566 Add e_table_sort_info_parse_context_push/pop().
New parser implementation that uses GMarkupParser instead of libxml2.
2013-07-02 10:34:10 -04:00
Matthew Barnes ad5ed0d603 ETableSortInfo: Rework API to avoid exposing ETableSortColumn.
Replace ETableSortColumn with separate ETableColumnSpecification and
GtkSortType parameters in the "get_nth" and "set_nth" functions.

Makes some other parts of the code simpler since it no longer has to
translate a column number to a column specification.
2013-07-02 10:34:10 -04:00
Matthew Barnes ce3e2091c2 Add e_table_sort_info_sorting_remove(). 2013-07-02 10:34:10 -04:00
Matthew Barnes 21998504a0 ETableSortInfo: Add a "specification" construct-only property.
ETableSortInfo now keeps a weak reference on the ETableSpecification to
which it's associated.  The plan is to replace the column index numbers
with a direct reference to an ETableColumnSpecification from the spec.

New functions:

  e_table_sort_info_ref_specification()
2013-07-02 10:34:09 -04:00
Matthew Barnes cf33c28a0e ETableSortInfo: Add a private section. 2013-07-02 10:34:09 -04:00
Matthew Barnes f8605636c3 ETableSortInfo cleanups. 2013-07-02 10:34:09 -04:00
Matthew Barnes 93987da1f5 Add e_table_header_get_column_by_spec().
Will eventually replace e_table_header_get_column_by_col_idx().
2013-07-02 10:34:09 -04:00