aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/gal-view-collection.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-06 03:59:22 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-06 04:40:51 +0800
commit61a773db49f50e3d0a5a69cbd105e40b281ae722 (patch)
tree0a0744111ed98ea5a7bed677e5d33938fb8ace59 /e-util/gal-view-collection.h
parentdf1dc37704daf3b1f20d1632b1cef1ea0a2181ad (diff)
downloadgsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.gz
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.bz2
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.lz
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.xz
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.tar.zst
gsoc2013-evolution-61a773db49f50e3d0a5a69cbd105e40b281ae722.zip
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()
Diffstat (limited to 'e-util/gal-view-collection.h')
-rw-r--r--e-util/gal-view-collection.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/e-util/gal-view-collection.h b/e-util/gal-view-collection.h
index 700262e6ce..2077225643 100644
--- a/e-util/gal-view-collection.h
+++ b/e-util/gal-view-collection.h
@@ -79,19 +79,13 @@ struct _GalViewCollectionItem {
GType gal_view_collection_get_type (void) G_GNUC_CONST;
GalViewCollection *
- gal_view_collection_new (void);
+ gal_view_collection_new (const gchar *system_directory,
+ const gchar *user_directory);
const gchar * gal_view_collection_get_system_directory
(GalViewCollection *collection);
const gchar * gal_view_collection_get_user_directory
(GalViewCollection *collection);
-/* Set up the view collection. Call these two functions
- * before ever doing load or save and never call them again. */
-void gal_view_collection_set_storage_directories
- (GalViewCollection *collection,
- const gchar *system_dir,
- const gchar *local_dir);
-
/* Query the view collection. */
gint gal_view_collection_get_count (GalViewCollection *collection);
GalView * gal_view_collection_get_view (GalViewCollection *collection,
@@ -108,11 +102,7 @@ gint gal_view_collection_get_view_index_by_id
void gal_view_collection_delete_view (GalViewCollection *collection,
gint i);
-/* Call set_storage_directories and add factories for anything
- * that might be found there before doing either of these. */
-void gal_view_collection_load (GalViewCollection *collection);
void gal_view_collection_save (GalViewCollection *collection);
-gboolean gal_view_collection_loaded (GalViewCollection *collection);
/* Use factory list to load a GalView file. */
GalView * gal_view_collection_load_view_from_file