diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2001-01-21 14:00:04 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-01-21 14:00:04 +0800 |
commit | 9348acc44109d5fc54a70393131c1c5f30d181df (patch) | |
tree | 76d069c1c7082cd512b01ba38e61a3600ed2fae1 /widgets/menus/gal-view-factory.c | |
parent | ac6ce9637e4abaa35ede7aecf4ca1126dc57809c (diff) | |
download | gsoc2013-evolution-9348acc44109d5fc54a70393131c1c5f30d181df.tar gsoc2013-evolution-9348acc44109d5fc54a70393131c1c5f30d181df.tar.gz gsoc2013-evolution-9348acc44109d5fc54a70393131c1c5f30d181df.tar.bz2 gsoc2013-evolution-9348acc44109d5fc54a70393131c1c5f30d181df.tar.lz gsoc2013-evolution-9348acc44109d5fc54a70393131c1c5f30d181df.tar.xz 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-factory.c')
-rw-r--r-- | widgets/menus/gal-view-factory.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/widgets/menus/gal-view-factory.c b/widgets/menus/gal-view-factory.c index 32eb7ad016..569dc59b92 100644 --- a/widgets/menus/gal-view-factory.c +++ b/widgets/menus/gal-view-factory.c @@ -49,8 +49,8 @@ GalView * 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 (factory), 0); + g_return_val_if_fail (factory != NULL, NULL); + g_return_val_if_fail (GAL_IS_VIEW_FACTORY (factory), NULL); if (GVF_CLASS (factory)->new_view) return GVF_CLASS (factory)->new_view (factory, name); @@ -58,6 +58,24 @@ gal_view_factory_new_view (GalViewFactory *factory, return NULL; } +/** + * gal_view_factory_get_type_code: + * @factory: The factory to use + * + * Returns: The type code + */ +const char * +gal_view_factory_get_type_code (GalViewFactory *factory) +{ + g_return_val_if_fail (factory != NULL, NULL); + g_return_val_if_fail (GAL_IS_VIEW_FACTORY (factory), NULL); + + if (GVF_CLASS (factory)->get_type_code) + return GVF_CLASS (factory)->get_type_code (factory); + else + return NULL; +} + static void gal_view_factory_class_init (GtkObjectClass *object_class) { |