Commit Graph

39564 Commits

Author SHA1 Message Date
cd76c782bd Miscellaneous cleanups. 2013-07-07 11:39:47 -04:00
90cacf75dd Update evolution-shell API documentation. 2013-07-07 11:04:25 -04:00
a83157c778 Bug 703638 - Keep ItipView alive while connecting to calendar 2013-07-07 10:12:09 -04:00
3c4c595ab9 ItipView: Minor cleanups. 2013-07-07 10:12:05 -04:00
a260d79633 EMailFormatterQuoteExtension: Don't be cute with struct declarations.
Declare the instance and class structs normally so Gtk-Doc can make
sense of it.
2013-07-07 09:28:50 -04:00
3774c9c4c1 EMailFormatterPrintExtension: Don't be cute with struct declarations.
Declare the instance and class structs normally so Gtk-Doc can make
sense of it.
2013-07-07 09:26:25 -04:00
4e5e734ed2 Bug 703732 - Unnecessary localedir override in configure.ac 2013-07-07 07:58:31 -04:00
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
427d93b3df Remove GalViewFactory.
No longer used.
2013-07-05 16:40:51 -04:00
46d115cfee Remove GalViewFactory subclasses for calendar views.
No longer used.
2013-07-05 16:40:51 -04:00
021758f1e4 Remove GalViewFactoryMinicard.
No longer used.
2013-07-05 16:40:51 -04:00
cbc2818d65 Remove GalViewFactoryEtable.
No longer used.
2013-07-05 16:40:51 -04:00
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
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
d629e6850a GalViewCollection: We don't need no stinkin' factories!
Given a type code string from an XML file, find the appropriate GType by
traversing the GType hierarchy from GAL_TYPE_VIEW and checking the class
structures for a matching type code string.

This completely eliminates the need for what's left of GalViewFactory.
Now it's just a matter of cleaning up the remains.
2013-07-05 16:40:50 -04:00
da9673c421 GalViewCollection: Move public members into private section. 2013-07-05 16:40:50 -04:00
25d2fab96e GalViewCollection: Add a private section. 2013-07-05 16:40:50 -04:00
f6de38811c Use gal_view_collection_get_user_directory() where needed.
GalViewInstance and EMailPanedView need access.  Currently they're just
using the public GalViewCollection members directly, but those are about
to be sealed up.
2013-07-05 16:40:50 -04:00
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
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
552d1cc022 GalViewCollection cleanups. 2013-07-05 16:40:50 -04:00
2ce22e2506 Remove unused gal_view_collection_set_default_view(). 2013-07-05 16:40:50 -04:00
8fd95b78a4 Remove unused gal_view_collection_copy_view(). 2013-07-05 16:40:50 -04:00
2996a0503b Remove unused gal_view_collection_append(). 2013-07-05 16:40:50 -04:00
535084860b Remove unused gal_view_collection_get_view_id_by_index(). 2013-07-05 16:40:50 -04:00
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
8abe1f3203 GalViewCollection: Remove unused "display-view" signal.
Removed functions:

  gal_view_collection_display_view()
2013-07-05 16:40:50 -04:00
a2e20af493 GalViewFactoryClass: Remove the new_view() method.
GalViewFactory can now use its "gal_view_type" class member to
instantiate an appropriate GalView without help from subclasses.
2013-07-05 16:40:50 -04:00
bb5f5ad90b GalViewFactoryClass: Remove the get_type_code() method.
GalViewFactory can now use its "gal_view_type" class member to peek at
the appropriate GalViewClass and return its static "type_code" string.
2013-07-05 16:40:50 -04:00
880cf29046 GalViewFactoryClass: Add a "gal_view_type" member.
This is the GType of the GalView instances the factory creates.

Having this information will allow GalViewFactoryClass to do more itself
and be less reliant on subclasses.
2013-07-05 16:40:50 -04:00
033d5013d3 Split CalendarViewFactory into separate classes by view type.
I suspect this will enable us to ditch GalViewFactory entirely once I
rework a few more things.  We'll see though; one step at a time here.
2013-07-05 16:40:50 -04:00
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
3f5f362e0d Split CalendarView into separate classes by view type.
It's better to have separate classes each with a fixed type code, than
one class with a variable type code.  You'll see why in the next commit.
2013-07-05 16:40:49 -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
a242a2c172 GalViewEtable: Remove ETableState member.
Obtain the ETableState from the attached ETable or ETree as needed.
2013-07-05 16:40:49 -04:00
99f04cfe58 Remove gal_view_etable_set_state().
No longer used.
2013-07-05 16:40:49 -04:00
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
1f84c2af98 GalViewEtable: Add a private section. 2013-07-05 16:40:49 -04:00
369daca614 GalView: Store the title string internally.
This replaces the get_title() and set_title() class methods, since
it's silly to defer to subclasses to track a simple string property.
2013-07-05 16:40:49 -04:00
a2818bc4ea GalView: Add a private section. 2013-07-05 16:40:49 -04:00
6db972ab0f GalView-related cleanups. 2013-07-05 16:40:49 -04:00
c361af7396 GalViewFactory: Remove get_title() method.
No longer used.

Removed functions:

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

Removed functions:

  gal_view_edit()
2013-07-05 16:40:49 -04:00
af39ee96f0 Remove GalViewNewDialog.
No longer user.
2013-07-05 16:40:49 -04:00
70bce028f7 Remove GalDefineViewsModel.
No longer used.
2013-07-05 16:40:49 -04:00
031d11b437 Remove GalDefineViewsDialog.
No longer used.
2013-07-05 16:40:49 -04:00
8b8c95ab50 Replace "Define Views..." menu item with "Delete Current View".
The "Define Views" dialog is nearly useless.  Replace it with a "Delete
Current View" menu item which is only visible for custom views that have
been explicitly saved under a new name.

There's actually no loss of functionality with this commit.  Although
some view management tasks now require more clicks, view management in
general is a seldom-used feature and I doubt the dialog's absence will
even be noticed by users, much less missed.
2013-07-05 16:40:48 -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
7d6027be1a EShell-related cleanups. 2013-07-05 16:40:48 -04:00