aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-collection.h
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/menus/gal-view-collection.h')
-rw-r--r--widgets/menus/gal-view-collection.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/widgets/menus/gal-view-collection.h b/widgets/menus/gal-view-collection.h
index 40272da186..0de5f9ff71 100644
--- a/widgets/menus/gal-view-collection.h
+++ b/widgets/menus/gal-view-collection.h
@@ -11,11 +11,20 @@
#define GAL_IS_VIEW_COLLECTION(o) (GTK_CHECK_TYPE ((o), GAL_VIEW_COLLECTION_TYPE))
#define GAL_IS_VIEW_COLLECTION_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), GAL_VIEW_COLLECTION_TYPE))
+typedef struct _GalViewCollectionItem GalViewCollectionItem;
+
typedef struct {
GtkObject base;
- GList *view_list;
+ GalViewCollectionItem **view_data;
+ int view_count;
GList *factory_list;
+
+ GalViewCollectionItem **removed_view_data;
+ int removed_view_count;
+
+ char *system_dir;
+ char *local_dir;
} GalViewCollection;
typedef struct {
@@ -34,8 +43,8 @@ GalViewCollection *gal_view_collection_new (void);
/* Set up the view collection */
void gal_view_collection_set_storage_directories (GalViewCollection *collection,
- char *system_dir,
- char *local_dir);
+ const char *system_dir,
+ const char *local_dir);
void gal_view_collection_add_factory (GalViewCollection *collection,
GalViewFactory *factory);
@@ -43,4 +52,9 @@ void gal_view_collection_add_factory (GalViewCollecti
void gal_view_collection_display_view (GalViewCollection *collection,
GalView *view);
+/* 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);
+
#endif /* _GAL_VIEW_COLLECTION_H_ */