aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-collection.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2001-01-21 14:00:04 +0800
committerChris Lahey <clahey@src.gnome.org>2001-01-21 14:00:04 +0800
commit9348acc44109d5fc54a70393131c1c5f30d181df (patch)
tree76d069c1c7082cd512b01ba38e61a3600ed2fae1 /widgets/menus/gal-view-collection.h
parentac6ce9637e4abaa35ede7aecf4ca1126dc57809c (diff)
downloadgsoc2013-evolution-9348acc44109d5fc54a70393131c1c5f30d181df.tar.gz
gsoc2013-evolution-9348acc44109d5fc54a70393131c1c5f30d181df.tar.zst
gsoc2013-evolution-9348acc44109d5fc54a70393131c1c5f30d181df.zip
Use the new gal_view_set_title function.
2001-01-21 Christopher James Lahey <clahey@helixcode.com> * gal-define-views-model.c (gdvm_set_value_at): Use the new gal_view_set_title function. * gal-view-collection.c, gal-view-collection.h: Implemented this. Added gal_view_collection_save and gal_view_collection_load. * gal-view-etable.c: Implemented save, load, and set_title methods for this class. * gal-view-factory.c: Implemented gal_view_factory_get_type_code. * gal-view.c, gal-view.h: Replaced gal_view_save_to_node with gal_view_save. Replaced gal_view_load_from_node with gal_view_load. Added gal_view_set_title. svn path=/trunk/; revision=7676
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_ */