Bug 793125 - Crash due to popup menus left attached too long
[evolution.git] / src / calendar / gui / e-day-view-time-item.h
blob880aa4c470525726dbeab4dbb49e0507983bd388
1 /*
3 * This program is free software; you can redistribute it and/or modify it
4 * under the terms of the GNU Lesser General Public License as published by
5 * the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful, but
8 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
10 * for more details.
12 * You should have received a copy of the GNU Lesser General Public License
13 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 * Authors:
17 * Damon Chaplin <damon@ximian.com>
19 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
24 * EDayViewTimeItem - canvas item which displays the times down the left of
25 * the EDayView.
28 #ifndef E_DAY_VIEW_TIME_ITEM_H
29 #define E_DAY_VIEW_TIME_ITEM_H
31 #include "e-day-view.h"
33 /* Standard GObject macros */
34 #define E_TYPE_DAY_VIEW_TIME_ITEM \
35 (e_day_view_time_item_get_type ())
36 #define E_DAY_VIEW_TIME_ITEM(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST \
38 ((obj), E_TYPE_DAY_VIEW_TIME_ITEM, EDayViewTimeItem))
39 #define E_DAY_VIEW_TIME_ITEM_CLASS(cls) \
40 (G_TYPE_CHECK_CLASS_CAST \
41 ((cls), E_TYPE_DAY_VIEW_TIME_ITEM, EDayViewTimeItemClass))
42 #define E_IS_DAY_VIEW_TIME_ITEM(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE \
44 ((obj), E_TYPE_DAY_VIEW_TIME_ITEM))
45 #define E_IS_DAY_VIEW_TIME_ITEM_CLASS(cls) \
46 (G_TYPE_CHECK_CLASS_TYPE \
47 ((cls), E_TYPE_DAY_VIEW_TIME_ITEM))
48 #define E_DAY_VIEW_TIME_ITEM_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS \
50 ((obj), E_TYPE_DAY_VIEW_TIME_ITEM, EDayViewTimeItemClass))
52 G_BEGIN_DECLS
54 typedef struct _EDayViewTimeItem EDayViewTimeItem;
55 typedef struct _EDayViewTimeItemClass EDayViewTimeItemClass;
56 typedef struct _EDayViewTimeItemPrivate EDayViewTimeItemPrivate;
58 struct _EDayViewTimeItem {
59 GnomeCanvasItem parent;
60 EDayViewTimeItemPrivate *priv;
63 struct _EDayViewTimeItemClass {
64 GnomeCanvasItemClass parent_class;
67 GType e_day_view_time_item_get_type (void);
68 EDayView * e_day_view_time_item_get_day_view
69 (EDayViewTimeItem *time_item);
70 void e_day_view_time_item_set_day_view
71 (EDayViewTimeItem *time_item,
72 EDayView *day_view);
73 gint e_day_view_time_item_get_column_width
74 (EDayViewTimeItem *time_item);
75 icaltimezone * e_day_view_time_item_get_second_zone
76 (EDayViewTimeItem *time_item);
78 G_END_DECLS
80 #endif /* E_DAY_VIEW_TIME_ITEM_H */