aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-03 04:54:22 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-06 04:40:50 +0800
commit880cf290462273744bd3da929d9f10964e618e2a (patch)
treeb3d8550a524d88267394a7ca4cb20a1329d27748 /calendar
parent033d5013d365fb6bb00aeec6fd8442b38ac80e04 (diff)
downloadgsoc2013-evolution-880cf290462273744bd3da929d9f10964e618e2a.tar
gsoc2013-evolution-880cf290462273744bd3da929d9f10964e618e2a.tar.gz
gsoc2013-evolution-880cf290462273744bd3da929d9f10964e618e2a.tar.bz2
gsoc2013-evolution-880cf290462273744bd3da929d9f10964e618e2a.tar.lz
gsoc2013-evolution-880cf290462273744bd3da929d9f10964e618e2a.tar.xz
gsoc2013-evolution-880cf290462273744bd3da929d9f10964e618e2a.tar.zst
gsoc2013-evolution-880cf290462273744bd3da929d9f10964e618e2a.zip
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.
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/calendar-view-factory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c
index f23c997fb0..ca4a117efb 100644
--- a/calendar/gui/calendar-view-factory.c
+++ b/calendar/gui/calendar-view-factory.c
@@ -61,6 +61,7 @@ gal_view_factory_calendar_day_new_view (GalViewFactory *factory,
static void
gal_view_factory_calendar_day_class_init (GalViewFactoryClass *class)
{
+ class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_DAY;
class->get_type_code = gal_view_factory_calendar_day_get_type_code;
class->new_view = gal_view_factory_calendar_day_new_view;
}
@@ -88,6 +89,7 @@ gal_view_factory_calendar_work_week_new_view (GalViewFactory *factory,
static void
gal_view_factory_calendar_work_week_class_init (GalViewFactoryClass *class)
{
+ class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_WORK_WEEK;
class->get_type_code = gal_view_factory_calendar_work_week_get_type_code;
class->new_view = gal_view_factory_calendar_work_week_new_view;
}
@@ -115,6 +117,7 @@ gal_view_factory_calendar_week_new_view (GalViewFactory *factory,
static void
gal_view_factory_calendar_week_class_init (GalViewFactoryClass *class)
{
+ class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_WEEK;
class->get_type_code = gal_view_factory_calendar_week_get_type_code;
class->new_view = gal_view_factory_calendar_week_new_view;
}
@@ -142,6 +145,7 @@ gal_view_factory_calendar_month_new_view (GalViewFactory *factory,
static void
gal_view_factory_calendar_month_class_init (GalViewFactoryClass *class)
{
+ class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_MONTH;
class->get_type_code = gal_view_factory_calendar_month_get_type_code;
class->new_view = gal_view_factory_calendar_month_new_view;
}