diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-25 13:55:59 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-25 13:55:59 +0800 |
commit | bb241192eb773d7f0d178306dd55f9ca8e31c1f0 (patch) | |
tree | 4201777027364eeea243b2f625bb373bca30ef6d /shell/e-storage-set.c | |
parent | e90eea58a2109961faa8632ac5e5783d9970366b (diff) | |
download | gsoc2013-evolution-bb241192eb773d7f0d178306dd55f9ca8e31c1f0.tar.gz gsoc2013-evolution-bb241192eb773d7f0d178306dd55f9ca8e31c1f0.tar.zst gsoc2013-evolution-bb241192eb773d7f0d178306dd55f9ca8e31c1f0.zip |
Reorganized the shell to allow dynamic registration of storages and
folder types, and changed all the components to work with the new
setup.
svn path=/trunk/; revision=3199
Diffstat (limited to 'shell/e-storage-set.c')
-rw-r--r-- | shell/e-storage-set.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/shell/e-storage-set.c b/shell/e-storage-set.c index 6fcb4c24ba..d1adec19ce 100644 --- a/shell/e-storage-set.c +++ b/shell/e-storage-set.c @@ -52,7 +52,7 @@ static guint signals[LAST_SIGNAL] = { 0 }; struct _EStorageSetPrivate { GList *storages; - EFolderTypeRepository *folder_type_repository; + EFolderTypeRegistry *folder_type_registry; }; @@ -69,7 +69,7 @@ destroy (GtkObject *object) e_free_object_list (priv->storages); - gtk_object_unref (GTK_OBJECT (priv->folder_type_repository)); + gtk_object_unref (GTK_OBJECT (priv->folder_type_registry)); g_free (priv); @@ -116,7 +116,7 @@ init (EStorageSet *storage_set) priv = g_new (EStorageSetPrivate, 1); priv->storages = NULL; - priv->folder_type_repository = NULL; + priv->folder_type_registry = NULL; storage_set->priv = priv; } @@ -124,25 +124,25 @@ init (EStorageSet *storage_set) void e_storage_set_construct (EStorageSet *storage_set, - EFolderTypeRepository *folder_type_repository) + EFolderTypeRegistry *folder_type_registry) { g_return_if_fail (storage_set != NULL); g_return_if_fail (E_IS_STORAGE_SET (storage_set)); GTK_OBJECT_UNSET_FLAGS (storage_set, GTK_FLOATING); - gtk_object_ref (GTK_OBJECT (folder_type_repository)); - storage_set->priv->folder_type_repository = folder_type_repository; + gtk_object_ref (GTK_OBJECT (folder_type_registry)); + storage_set->priv->folder_type_registry = folder_type_registry; } EStorageSet * -e_storage_set_new (EFolderTypeRepository *folder_type_repository) +e_storage_set_new (EFolderTypeRegistry *folder_type_registry) { EStorageSet *new; new = gtk_type_new (e_storage_set_get_type ()); - e_storage_set_construct (new, folder_type_repository); + e_storage_set_construct (new, folder_type_registry); return new; } @@ -287,13 +287,13 @@ e_storage_set_new_view (EStorageSet *storage_set) } -EFolderTypeRepository * -e_storage_set_get_folder_type_repository (EStorageSet *storage_set) +EFolderTypeRegistry * +e_storage_set_get_folder_type_registry (EStorageSet *storage_set) { g_return_val_if_fail (storage_set != NULL, NULL); g_return_val_if_fail (E_IS_STORAGE_SET (storage_set), NULL); - return storage_set->priv->folder_type_repository; + return storage_set->priv->folder_type_registry; } |