Bug 793125 - Crash due to popup menus left attached too long
[evolution.git] / src / calendar / gui / e-day-view-main-item.h
blob7c4cf0bafd6bb651b3b6e96486a14365a4ab689c
1 /*
2 * This program is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU Lesser General Public License as published by
4 * the Free Software Foundation.
6 * This program is distributed in the hope that it will be useful, but
7 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
8 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
9 * for more details.
11 * You should have received a copy of the GNU Lesser General Public License
12 * along with this program; if not, see <http://www.gnu.org/licenses/>.
15 * Authors:
16 * Damon Chaplin <damon@ximian.com>
18 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
23 * EDayViewMainItem - canvas item which displays most of the appointment
24 * data in the main Day/Work Week display.
27 #ifndef E_DAY_VIEW_MAIN_ITEM_H
28 #define E_DAY_VIEW_MAIN_ITEM_H
30 #include "e-day-view.h"
32 /* Standard GObject macros */
33 #define E_TYPE_DAY_VIEW_MAIN_ITEM \
34 (e_day_view_main_item_get_type ())
35 #define E_DAY_VIEW_MAIN_ITEM(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST \
37 ((obj), E_TYPE_DAY_VIEW_MAIN_ITEM, EDayViewMainItem))
38 #define E_DAY_VIEW_MAIN_ITEM_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_CAST \
40 ((cls), E_TYPE_DAY_VIEW_MAIN_ITEM, EDayViewMainItemClass))
41 #define E_IS_DAY_VIEW_MAIN_ITEM(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE \
43 ((obj), E_TYPE_DAY_VIEW_MAIN_ITEM))
44 #define E_IS_DAY_VIEW_MAIN_ITEM_CLASS(cls) \
45 (G_TYPE_CHECK_CLASS_TYPE \
46 ((cls), E_TYPE_DAY_VIEW_MAIN_ITEM))
47 #define E_DAY_VIEW_MAIN_ITEM_GET_CLASS(obj) \
48 (G_TYPE_INSTANCE_GET_TYPE \
49 ((obj), E_TYPE_DAY_VIEW_MAIN_ITEM, EDayViewMainItemClass))
51 G_BEGIN_DECLS
53 typedef struct _EDayViewMainItem EDayViewMainItem;
54 typedef struct _EDayViewMainItemClass EDayViewMainItemClass;
55 typedef struct _EDayViewMainItemPrivate EDayViewMainItemPrivate;
57 struct _EDayViewMainItem {
58 GnomeCanvasItem parent;
59 EDayViewMainItemPrivate *priv;
62 struct _EDayViewMainItemClass {
63 GnomeCanvasItemClass parent_class;
66 GType e_day_view_main_item_get_type (void);
67 EDayView * e_day_view_main_item_get_day_view
68 (EDayViewMainItem *main_item);
69 void e_day_view_main_item_set_day_view
70 (EDayViewMainItem *main_item,
71 EDayView *day_view);
73 G_END_DECLS
75 #endif /* E_DAY_VIEW_MAIN_ITEM_H */