aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-03 05:17:40 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-06 04:40:50 +0800
commitbb5f5ad90beabd459e27d7aaac44d92c9b106c00 (patch)
treef1475231191b25673c2539c6955703cf9e7b7982 /calendar
parent880cf290462273744bd3da929d9f10964e618e2a (diff)
downloadgsoc2013-evolution-bb5f5ad90beabd459e27d7aaac44d92c9b106c00.tar
gsoc2013-evolution-bb5f5ad90beabd459e27d7aaac44d92c9b106c00.tar.gz
gsoc2013-evolution-bb5f5ad90beabd459e27d7aaac44d92c9b106c00.tar.bz2
gsoc2013-evolution-bb5f5ad90beabd459e27d7aaac44d92c9b106c00.tar.lz
gsoc2013-evolution-bb5f5ad90beabd459e27d7aaac44d92c9b106c00.tar.xz
gsoc2013-evolution-bb5f5ad90beabd459e27d7aaac44d92c9b106c00.tar.zst
gsoc2013-evolution-bb5f5ad90beabd459e27d7aaac44d92c9b106c00.zip
GalViewFactoryClass: Remove the get_type_code() method.
GalViewFactory can now use its "gal_view_type" class member to peek at the appropriate GalViewClass and return its static "type_code" string.
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/calendar-view-factory.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c
index ca4a117efb..706f5ead68 100644
--- a/calendar/gui/calendar-view-factory.c
+++ b/calendar/gui/calendar-view-factory.c
@@ -43,12 +43,6 @@ G_DEFINE_TYPE (
gal_view_factory_calendar_month,
GAL_TYPE_VIEW_FACTORY)
-static const gchar *
-gal_view_factory_calendar_day_get_type_code (GalViewFactory *factory)
-{
- return "day_view";
-}
-
static GalView *
gal_view_factory_calendar_day_new_view (GalViewFactory *factory,
const gchar *title)
@@ -62,7 +56,6 @@ 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;
}
@@ -71,12 +64,6 @@ gal_view_factory_calendar_day_init (GalViewFactory *factory)
{
}
-static const gchar *
-gal_view_factory_calendar_work_week_get_type_code (GalViewFactory *factory)
-{
- return "work_week_view";
-}
-
static GalView *
gal_view_factory_calendar_work_week_new_view (GalViewFactory *factory,
const gchar *title)
@@ -90,7 +77,6 @@ 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;
}
@@ -99,12 +85,6 @@ gal_view_factory_calendar_work_week_init (GalViewFactory *factory)
{
}
-static const gchar *
-gal_view_factory_calendar_week_get_type_code (GalViewFactory *factory)
-{
- return "week_view";
-}
-
static GalView *
gal_view_factory_calendar_week_new_view (GalViewFactory *factory,
const gchar *title)
@@ -118,7 +98,6 @@ 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;
}
@@ -127,12 +106,6 @@ gal_view_factory_calendar_week_init (GalViewFactory *factory)
{
}
-static const gchar *
-gal_view_factory_calendar_month_get_type_code (GalViewFactory *factory)
-{
- return "month_view";
-}
-
static GalView *
gal_view_factory_calendar_month_new_view (GalViewFactory *factory,
const gchar *title)
@@ -146,7 +119,6 @@ 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;
}