aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-collection.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2001-01-24 12:22:08 +0800
committerChris Lahey <clahey@src.gnome.org>2001-01-24 12:22:08 +0800
commit6b3050b79ef1c987e854786bfef7cee614fee2a4 (patch)
tree9321d273e30db633d4d872e5c89ba02db32688bc /widgets/menus/gal-view-collection.h
parentd6599e25f2dfeccbc29e35cf8fbab3cd8c626839 (diff)
downloadgsoc2013-evolution-6b3050b79ef1c987e854786bfef7cee614fee2a4.tar.gz
gsoc2013-evolution-6b3050b79ef1c987e854786bfef7cee614fee2a4.tar.zst
gsoc2013-evolution-6b3050b79ef1c987e854786bfef7cee614fee2a4.zip
Made GalViewCollectionItem a public type. (load_single_file): Made it so
2001-01-23 Christopher James Lahey <clahey@helixcode.com> * gal-view-collection.c, gal-view-collection.h: Made GalViewCollectionItem a public type. (load_single_file): Made it so that the filename does not get saved with the directory structure. (gal_view_collection_get_view_item): Added this function to return a certain GalViewCollectionItem. svn path=/trunk/; revision=7773
Diffstat (limited to 'widgets/menus/gal-view-collection.h')
-rw-r--r--widgets/menus/gal-view-collection.h56
1 files changed, 33 insertions, 23 deletions
diff --git a/widgets/menus/gal-view-collection.h b/widgets/menus/gal-view-collection.h
index d93c9a12a5..bfe47781a7 100644
--- a/widgets/menus/gal-view-collection.h
+++ b/widgets/menus/gal-view-collection.h
@@ -11,7 +11,16 @@
#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 {
+ GalView *view;
+ char *id;
+ gboolean changed;
+ gboolean ever_changed;
+ gboolean built_in;
+ char *filename;
+ char *title;
+ char *type;
+} GalViewCollectionItem;
typedef struct {
GtkObject base;
@@ -38,34 +47,35 @@ typedef struct {
} GalViewCollectionClass;
/* Standard functions */
-GtkType gal_view_collection_get_type (void);
-GalViewCollection *gal_view_collection_new (void);
+GtkType gal_view_collection_get_type (void);
+GalViewCollection *gal_view_collection_new (void);
/* Set up the view collection */
-void gal_view_collection_set_storage_directories (GalViewCollection *collection,
- const char *system_dir,
- const char *local_dir);
-void gal_view_collection_add_factory (GalViewCollection *collection,
- GalViewFactory *factory);
+void gal_view_collection_set_storage_directories (GalViewCollection *collection,
+ const char *system_dir,
+ const char *local_dir);
+void gal_view_collection_add_factory (GalViewCollection *collection,
+ GalViewFactory *factory);
/* Send the display view signal. */
-void gal_view_collection_display_view (GalViewCollection *collection,
- GalView *view);
-
-gint gal_view_collection_get_count (GalViewCollection *collection);
-GalView *gal_view_collection_get_view (GalViewCollection *collection,
- int n);
-
-void gal_view_collection_append (GalViewCollection *collection,
- GalView *view);
-void gal_view_collection_delete_view (GalViewCollection *collection,
- int i);
-void gal_view_collection_copy_view (GalViewCollection *collection,
- int i);
+void gal_view_collection_display_view (GalViewCollection *collection,
+ GalView *view);
+gint gal_view_collection_get_count (GalViewCollection *collection);
+GalView *gal_view_collection_get_view (GalViewCollection *collection,
+ int n);
+GalViewCollectionItem *gal_view_collection_get_view_item (GalViewCollection *collection,
+ int n);
+
+void gal_view_collection_append (GalViewCollection *collection,
+ GalView *view);
+void gal_view_collection_delete_view (GalViewCollection *collection,
+ int i);
+void gal_view_collection_copy_view (GalViewCollection *collection,
+ int 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);
+void gal_view_collection_load (GalViewCollection *collection);
+void gal_view_collection_save (GalViewCollection *collection);
#endif /* _GAL_VIEW_COLLECTION_H_ */