aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-factory.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2001-01-18 06:15:52 +0800
committerChris Lahey <clahey@src.gnome.org>2001-01-18 06:15:52 +0800
commit1a6bb41b0df656a29274da049e5fff924859d76f (patch)
tree768e491c5a17aee242471035d65121cf1f0c5ee1 /widgets/menus/gal-view-factory.c
parentf3cd904e2b40296fd78a1837257778002387ca53 (diff)
downloadgsoc2013-evolution-1a6bb41b0df656a29274da049e5fff924859d76f.tar
gsoc2013-evolution-1a6bb41b0df656a29274da049e5fff924859d76f.tar.gz
gsoc2013-evolution-1a6bb41b0df656a29274da049e5fff924859d76f.tar.bz2
gsoc2013-evolution-1a6bb41b0df656a29274da049e5fff924859d76f.tar.lz
gsoc2013-evolution-1a6bb41b0df656a29274da049e5fff924859d76f.tar.xz
gsoc2013-evolution-1a6bb41b0df656a29274da049e5fff924859d76f.tar.zst
gsoc2013-evolution-1a6bb41b0df656a29274da049e5fff924859d76f.zip
Added a collection argument to this to set the GalViewCollection.
2001-01-17 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'widgets/menus/gal-view-factory.c')
-rw-r--r--widgets/menus/gal-view-factory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/menus/gal-view-factory.c b/widgets/menus/gal-view-factory.c
index 1ba3e061bf..32eb7ad016 100644
--- a/widgets/menus/gal-view-factory.c
+++ b/widgets/menus/gal-view-factory.c
@@ -30,7 +30,7 @@ const char *
gal_view_factory_get_title (GalViewFactory *factory)
{
g_return_val_if_fail (factory != NULL, 0);
- g_return_val_if_fail (GAL_IS_VIEW (factory), 0);
+ g_return_val_if_fail (GAL_IS_VIEW_FACTORY (factory), 0);
if (GVF_CLASS (factory)->get_title)
return GVF_CLASS (factory)->get_title (factory);
@@ -50,7 +50,7 @@ gal_view_factory_new_view (GalViewFactory *factory,
const char *name)
{
g_return_val_if_fail (factory != NULL, 0);
- g_return_val_if_fail (GAL_IS_VIEW (factory), 0);
+ g_return_val_if_fail (GAL_IS_VIEW_FACTORY (factory), 0);
if (GVF_CLASS (factory)->new_view)
return GVF_CLASS (factory)->new_view (factory, name);