From 18420e77507819dcee97dcc6cf5f5811915df82a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 23 Jun 2012 19:02:01 -0400 Subject: Bug 678634 - Criticals warnings when creating new book/cal This required some reworking of assumptions I made early on when I first wrote ESourceConfig, before I thought up the whole "collection" concept. Not all ESourceConfigBackends will use a fixed parent UID, specifically collection backends. In fact we may use multiple instances of the same ESourceConfigBackend subclass if, for example, a user has two different Exchange Web Services accounts configured. We would need to show both EWS account (or "collection") names in the "Type" combo box. For the moment collection-based ESourceConfigBackends are not listed when creating a new calendar or address book since we lack support for creating new resources on a remote server. A D-Bus interface for that is in the works. --- widgets/misc/e-source-config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/misc/e-source-config.h') diff --git a/widgets/misc/e-source-config.h b/widgets/misc/e-source-config.h index 1a5b549924..5d9ff7c93a 100644 --- a/widgets/misc/e-source-config.h +++ b/widgets/misc/e-source-config.h @@ -58,6 +58,8 @@ struct _ESourceConfigClass { /* Methods */ const gchar * (*get_backend_extension_name) (ESourceConfig *config); + GList * (*list_eligible_collections) + (ESourceConfig *config); /* Signals */ void (*init_candidate) (ESourceConfig *config, @@ -80,6 +82,8 @@ GtkWidget * e_source_config_get_page (ESourceConfig *config, ESource *scratch_source); const gchar * e_source_config_get_backend_extension_name (ESourceConfig *config); +GList * e_source_config_list_eligible_collections + (ESourceConfig *config); gboolean e_source_config_check_complete (ESourceConfig *config); ESource * e_source_config_get_original_source (ESourceConfig *config); -- cgit v1.2.3