From 1a6bb41b0df656a29274da049e5fff924859d76f Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 17 Jan 2001 22:15:52 +0000 Subject: Added a collection argument to this to set the GalViewCollection. 2001-01-17 Christopher James Lahey * gal-define-views-dialog.c, gal-define-views-dialog.h: Added a collection argument to this to set the GalViewCollection. Connected up the modify, delete, and copy buttons. Documented. * gal-define-views-model.c, gal-define-views-model.h: Added gal_define_views_model_get_view, gal_define_views_model_delete_view, and gal_define_views_model_copy_view methods. Documented. * gal-view-collection.c: Documented. * gal-view-etable.c, gal-view-etable.h: Documented. Implemented edit and clone methods of GalView. Initialized state to a non-NULL value. Added a name parameter to gal_view_etable_new. * gal-view-factory-etable.c: Documented. Added the name argument to gal_view_etable_new. * gal-view-factory.c: Fixed the g_return_val_if_fails to check for GalViewFactory as the type instead of GalView. * gal-view.c, gal-view.h: Added the clone method. svn path=/trunk/; revision=7599 --- widgets/menus/gal-view.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/menus/gal-view.h') diff --git a/widgets/menus/gal-view.h b/widgets/menus/gal-view.h index 7894e043dc..7860f08da7 100644 --- a/widgets/menus/gal-view.h +++ b/widgets/menus/gal-view.h @@ -27,6 +27,7 @@ typedef struct { void (*save_to_node) (GalView *view, xmlNode *parent); const char *(*get_title) (GalView *view); + GalView *(*clone) (GalView *view); } GalViewClass; /* Standard functions */ @@ -44,5 +45,8 @@ void gal_view_save_to_node (GalView *view, /* Query functions */ const char *gal_view_get_title (GalView *view); +/* Cloning the view */ +GalView *gal_view_clone (GalView *view); + #endif /* _GAL_VIEW_H_ */ -- cgit v1.2.3