diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-03 05:36:01 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:50 +0800 |
commit | a2e20af49304296b3c2b10305cb1312031107d55 (patch) | |
tree | fef2296790edf090261bd529c6fbfb5ee988c9f3 /calendar | |
parent | bb5f5ad90beabd459e27d7aaac44d92c9b106c00 (diff) | |
download | gsoc2013-evolution-a2e20af49304296b3c2b10305cb1312031107d55.tar.gz gsoc2013-evolution-a2e20af49304296b3c2b10305cb1312031107d55.tar.zst gsoc2013-evolution-a2e20af49304296b3c2b10305cb1312031107d55.zip |
GalViewFactoryClass: Remove the new_view() method.
GalViewFactory can now use its "gal_view_type" class member to
instantiate an appropriate GalView without help from subclasses.
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/gui/calendar-view-factory.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c index 706f5ead68..603bb0e0d2 100644 --- a/calendar/gui/calendar-view-factory.c +++ b/calendar/gui/calendar-view-factory.c @@ -43,20 +43,10 @@ G_DEFINE_TYPE ( gal_view_factory_calendar_month, GAL_TYPE_VIEW_FACTORY) -static GalView * -gal_view_factory_calendar_day_new_view (GalViewFactory *factory, - const gchar *title) -{ - return g_object_new ( - GAL_TYPE_VIEW_CALENDAR_DAY, - "title", title, NULL); -} - static void gal_view_factory_calendar_day_class_init (GalViewFactoryClass *class) { class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_DAY; - class->new_view = gal_view_factory_calendar_day_new_view; } static void @@ -64,20 +54,10 @@ gal_view_factory_calendar_day_init (GalViewFactory *factory) { } -static GalView * -gal_view_factory_calendar_work_week_new_view (GalViewFactory *factory, - const gchar *title) -{ - return g_object_new ( - GAL_TYPE_VIEW_CALENDAR_WORK_WEEK, - "title", title, NULL); -} - static void gal_view_factory_calendar_work_week_class_init (GalViewFactoryClass *class) { class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_WORK_WEEK; - class->new_view = gal_view_factory_calendar_work_week_new_view; } static void @@ -85,20 +65,10 @@ gal_view_factory_calendar_work_week_init (GalViewFactory *factory) { } -static GalView * -gal_view_factory_calendar_week_new_view (GalViewFactory *factory, - const gchar *title) -{ - return g_object_new ( - GAL_TYPE_VIEW_CALENDAR_WEEK, - "title", title, NULL); -} - static void gal_view_factory_calendar_week_class_init (GalViewFactoryClass *class) { class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_WEEK; - class->new_view = gal_view_factory_calendar_week_new_view; } static void @@ -106,20 +76,10 @@ gal_view_factory_calendar_week_init (GalViewFactory *factory) { } -static GalView * -gal_view_factory_calendar_month_new_view (GalViewFactory *factory, - const gchar *title) -{ - return g_object_new ( - GAL_TYPE_VIEW_CALENDAR_MONTH, - "title", title, NULL); -} - static void gal_view_factory_calendar_month_class_init (GalViewFactoryClass *class) { class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_MONTH; - class->new_view = gal_view_factory_calendar_month_new_view; } static void |