From 880cf290462273744bd3da929d9f10964e618e2a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 2 Jul 2013 16:54:22 -0400 Subject: GalViewFactoryClass: Add a "gal_view_type" member. This is the GType of the GalView instances the factory creates. Having this information will allow GalViewFactoryClass to do more itself and be less reliant on subclasses. --- addressbook/gui/widgets/gal-view-factory-minicard.c | 1 + 1 file changed, 1 insertion(+) (limited to 'addressbook/gui') diff --git a/addressbook/gui/widgets/gal-view-factory-minicard.c b/addressbook/gui/widgets/gal-view-factory-minicard.c index 5efd6995ed..f9c78f9a31 100644 --- a/addressbook/gui/widgets/gal-view-factory-minicard.c +++ b/addressbook/gui/widgets/gal-view-factory-minicard.c @@ -51,6 +51,7 @@ gal_view_factory_minicard_class_init (GalViewFactoryMinicardClass *minicard_clas GalViewFactoryClass *view_factory_class; view_factory_class = GAL_VIEW_FACTORY_CLASS (minicard_class); + view_factory_class->gal_view_type = GAL_TYPE_VIEW_MINICARD; view_factory_class->get_type_code = gal_view_factory_minicard_get_type_code; view_factory_class->new_view = gal_view_factory_minicard_new_view; } -- cgit v1.2.3