diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:24:58 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:51 +0800 |
commit | 46d115cfeea26e027e4b40b31ca277015ecb7eff (patch) | |
tree | 00b52fe0acfb5c534389dde0ca9f1f0b4dc65e27 | |
parent | 021758f1e41903b8682e534f9ed1d769731805bf (diff) | |
download | gsoc2013-evolution-46d115cfeea26e027e4b40b31ca277015ecb7eff.tar gsoc2013-evolution-46d115cfeea26e027e4b40b31ca277015ecb7eff.tar.gz gsoc2013-evolution-46d115cfeea26e027e4b40b31ca277015ecb7eff.tar.bz2 gsoc2013-evolution-46d115cfeea26e027e4b40b31ca277015ecb7eff.tar.lz gsoc2013-evolution-46d115cfeea26e027e4b40b31ca277015ecb7eff.tar.xz gsoc2013-evolution-46d115cfeea26e027e4b40b31ca277015ecb7eff.tar.zst gsoc2013-evolution-46d115cfeea26e027e4b40b31ca277015ecb7eff.zip |
Remove GalViewFactory subclasses for calendar views.
No longer used.
-rw-r--r-- | calendar/gui/Makefile.am | 3 | ||||
-rw-r--r-- | calendar/gui/calendar-view-factory.c | 89 | ||||
-rw-r--r-- | calendar/gui/calendar-view-factory.h | 60 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.c | 1 | ||||
-rw-r--r-- | po/POTFILES.in | 1 |
5 files changed, 0 insertions, 154 deletions
diff --git a/calendar/gui/Makefile.am b/calendar/gui/Makefile.am index b7ee4164aa..64ef0f35ea 100644 --- a/calendar/gui/Makefile.am +++ b/calendar/gui/Makefile.am @@ -8,7 +8,6 @@ ecalendarinclude_HEADERS = \ calendar-config.h \ calendar-config-keys.h \ calendar-view.h \ - calendar-view-factory.h \ comp-util.h \ e-alarm-list.h \ e-cal-config.h \ @@ -83,8 +82,6 @@ libevolution_calendar_la_SOURCES = \ calendar-config-keys.h \ calendar-view.c \ calendar-view.h \ - calendar-view-factory.c \ - calendar-view-factory.h \ comp-util.c \ comp-util.h \ e-alarm-list.c \ diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c deleted file mode 100644 index 603bb0e0d2..0000000000 --- a/calendar/gui/calendar-view-factory.c +++ /dev/null @@ -1,89 +0,0 @@ -/* - * calendar-view-factory.c - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see <http://www.gnu.org/licenses/> - * - */ - -#include "calendar-view-factory.h" - -#include <config.h> -#include <glib/gi18n.h> - -#include "calendar-view.h" - -G_DEFINE_TYPE ( - GalViewFactoryCalendarDay, - gal_view_factory_calendar_day, - GAL_TYPE_VIEW_FACTORY) - -G_DEFINE_TYPE ( - GalViewFactoryCalendarWorkWeek, - gal_view_factory_calendar_work_week, - GAL_TYPE_VIEW_FACTORY) - -G_DEFINE_TYPE ( - GalViewFactoryCalendarWeek, - gal_view_factory_calendar_week, - GAL_TYPE_VIEW_FACTORY) - -G_DEFINE_TYPE ( - GalViewFactoryCalendarMonth, - gal_view_factory_calendar_month, - GAL_TYPE_VIEW_FACTORY) - -static void -gal_view_factory_calendar_day_class_init (GalViewFactoryClass *class) -{ - class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_DAY; -} - -static void -gal_view_factory_calendar_day_init (GalViewFactory *factory) -{ -} - -static void -gal_view_factory_calendar_work_week_class_init (GalViewFactoryClass *class) -{ - class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_WORK_WEEK; -} - -static void -gal_view_factory_calendar_work_week_init (GalViewFactory *factory) -{ -} - -static void -gal_view_factory_calendar_week_class_init (GalViewFactoryClass *class) -{ - class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_WEEK; -} - -static void -gal_view_factory_calendar_week_init (GalViewFactory *factory) -{ -} - -static void -gal_view_factory_calendar_month_class_init (GalViewFactoryClass *class) -{ - class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_MONTH; -} - -static void -gal_view_factory_calendar_month_init (GalViewFactory *factory) -{ -} - diff --git a/calendar/gui/calendar-view-factory.h b/calendar/gui/calendar-view-factory.h deleted file mode 100644 index ff4f8ee1c4..0000000000 --- a/calendar/gui/calendar-view-factory.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * calendar-view-factory.h - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see <http://www.gnu.org/licenses/> - * - */ - -#ifndef CALENDAR_VIEW_FACTORY_H -#define CALENDAR_VIEW_FACTORY_H - -#include <e-util/e-util.h> - -/* Standard GObject macros */ -#define GAL_TYPE_VIEW_FACTORY_CALENDAR_DAY \ - (gal_view_factory_calendar_day_get_type ()) -#define GAL_TYPE_VIEW_FACTORY_CALENDAR_WORK_WEEK \ - (gal_view_factory_calendar_work_week_get_type ()) -#define GAL_TYPE_VIEW_FACTORY_CALENDAR_WEEK \ - (gal_view_factory_calendar_week_get_type ()) -#define GAL_TYPE_VIEW_FACTORY_CALENDAR_MONTH \ - (gal_view_factory_calendar_month_get_type ()) - -G_BEGIN_DECLS - -typedef struct _GalViewFactory GalViewFactoryCalendarDay; -typedef struct _GalViewFactoryClass GalViewFactoryCalendarDayClass; - -typedef struct _GalViewFactory GalViewFactoryCalendarWorkWeek; -typedef struct _GalViewFactoryClass GalViewFactoryCalendarWorkWeekClass; - -typedef struct _GalViewFactory GalViewFactoryCalendarWeek; -typedef struct _GalViewFactoryClass GalViewFactoryCalendarWeekClass; - -typedef struct _GalViewFactory GalViewFactoryCalendarMonth; -typedef struct _GalViewFactoryClass GalViewFactoryCalendarMonthClass; - -GType gal_view_factory_calendar_day_get_type - (void) G_GNUC_CONST; -GType gal_view_factory_calendar_work_week_get_type - (void) G_GNUC_CONST; -GType gal_view_factory_calendar_week_get_type - (void) G_GNUC_CONST; -GType gal_view_factory_calendar_month_get_type - (void) G_GNUC_CONST; - -G_END_DECLS - -#endif /* CALENDAR_VIEW_FACTORY_H */ - diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 255851318f..684aa83206 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -45,7 +45,6 @@ #include "dialogs/event-editor.h" #include "calendar-config.h" -#include "calendar-view-factory.h" #include "calendar-view.h" #include "comp-util.h" #include "e-cal-list-view.h" diff --git a/po/POTFILES.in b/po/POTFILES.in index b1f0851bcd..3f5364aa9d 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -43,7 +43,6 @@ calendar/alarm-notify/alarm-notify-dialog.c calendar/alarm-notify/alarm-queue.c calendar/alarm-notify/util.c calendar/calendar.error.xml -calendar/gui/calendar-view-factory.c calendar/gui/caltypes.xml calendar/gui/dialogs/alarm-dialog.c [type: gettext/glade]calendar/gui/dialogs/alarm-dialog.ui |