Bug 793125 - Crash due to popup menus left attached too long
[evolution.git] / src / calendar / gui / e-week-view-main-item.h
blob14840f46ce74be04dce85a43056a7745a799eff7
1 /*
2 * e-week-view-main-item.h
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/>.
17 * Authors:
18 * Damon Chaplin <damon@ximian.com>
20 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
25 * EWeekViewMainItem - displays the background grid and dates for the Week and
26 * Month calendar views.
29 #ifndef E_WEEK_VIEW_MAIN_ITEM_H
30 #define E_WEEK_VIEW_MAIN_ITEM_H
32 #include "e-week-view.h"
34 /* Standard GObject macros */
35 #define E_TYPE_WEEK_VIEW_MAIN_ITEM \
36 (e_week_view_main_item_get_type ())
37 #define E_WEEK_VIEW_MAIN_ITEM(obj) \
38 (G_TYPE_CHECK_INSTANCE_CAST \
39 ((obj), E_TYPE_WEEK_VIEW_MAIN_ITEM, EWeekViewMainItem))
40 #define E_WEEK_VIEW_MAIN_ITEM_CLASS(cls) \
41 (G_TYPE_CHECK_CLASS_CAST \
42 ((cls), E_TYPE_WEEK_VIEW_MAIN_ITEM, EWeekViewMainItemClass))
43 #define E_IS_WEEK_VIEW_MAIN_ITEM(obj) \
44 (G_TYPE_CHECK_INSTANCE_TYPE \
45 ((obj), E_TYPE_WEEK_VIEW_MAIN_ITEM))
46 #define E_IS_WEEK_VIEW_MAIN_ITEM_CLASS(cls) \
47 (G_TYPE_CHECK_CLASS_TYPE \
48 ((cls), E_TYPE_WEEK_VIEW_MAIN_ITEM))
49 #define E_WEEK_VIEW_MAIN_ITEM_GET_CLASS(obj) \
50 (G_TYPE_INSTANCE_GET_CLASS \
51 ((obj), E_TYPE_WEEK_VIEW_MAIN_ITEM, EWeekViewMainItemClass))
53 G_BEGIN_DECLS
55 typedef struct _EWeekViewMainItem EWeekViewMainItem;
56 typedef struct _EWeekViewMainItemClass EWeekViewMainItemClass;
57 typedef struct _EWeekViewMainItemPrivate EWeekViewMainItemPrivate;
59 struct _EWeekViewMainItem {
60 GnomeCanvasItem parent;
61 EWeekViewMainItemPrivate *priv;
64 struct _EWeekViewMainItemClass {
65 GnomeCanvasItemClass parent_class;
68 GType e_week_view_main_item_get_type (void);
69 EWeekView * e_week_view_main_item_get_week_view
70 (EWeekViewMainItem *main_item);
71 void e_week_view_main_item_set_week_view
72 (EWeekViewMainItem *main_item,
73 EWeekView *week_view);
75 G_END_DECLS
77 #endif /* E_WEEK_VIEW_MAIN_ITEM_H */