Bug 793125 - Crash due to popup menus left attached too long
[evolution.git] / src / calendar / gui / calendar-view.c
blob6571239ba9b034c1f241500de7959e3e8578c5ee
1 /*
2 * calendar-view.c
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 * for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #include "calendar-view.h"
20 G_DEFINE_TYPE (
21 GalViewCalendarDay,
22 gal_view_calendar_day,
23 GAL_TYPE_VIEW)
25 G_DEFINE_TYPE (
26 GalViewCalendarWorkWeek,
27 gal_view_calendar_work_week,
28 GAL_TYPE_VIEW)
30 G_DEFINE_TYPE (
31 GalViewCalendarWeek,
32 gal_view_calendar_week,
33 GAL_TYPE_VIEW)
35 G_DEFINE_TYPE (
36 GalViewCalendarMonth,
37 gal_view_calendar_month,
38 GAL_TYPE_VIEW)
40 static void
41 gal_view_calendar_day_class_init (GalViewClass *class)
43 class->type_code = "day_view";
46 static void
47 gal_view_calendar_day_init (GalView *view)
51 static void
52 gal_view_calendar_work_week_class_init (GalViewClass *class)
54 class->type_code = "work_week_view";
57 static void
58 gal_view_calendar_work_week_init (GalView *view)
62 static void
63 gal_view_calendar_week_class_init (GalViewClass *class)
65 class->type_code = "week_view";
68 static void
69 gal_view_calendar_week_init (GalView *view)
73 static void
74 gal_view_calendar_month_class_init (GalViewClass *class)
76 class->type_code = "month_view";
79 static void
80 gal_view_calendar_month_init (GalView *view)