diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-22 07:25:41 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-22 22:34:26 +0800 |
commit | 7be192643685acdc081332fc9177417d67870c53 (patch) | |
tree | 1c04a080735ed962b6dd89594e16efbf62ed5123 /calendar/gui/e-day-view-top-item.h | |
parent | 5a80f92d37e7e8a814f70f826b7b33f5d21b0f72 (diff) | |
download | gsoc2013-evolution-7be192643685acdc081332fc9177417d67870c53.tar.gz gsoc2013-evolution-7be192643685acdc081332fc9177417d67870c53.tar.zst gsoc2013-evolution-7be192643685acdc081332fc9177417d67870c53.zip |
Calendar canvas item cleanup.
Diffstat (limited to 'calendar/gui/e-day-view-top-item.h')
-rw-r--r-- | calendar/gui/e-day-view-top-item.h | 75 |
1 files changed, 48 insertions, 27 deletions
diff --git a/calendar/gui/e-day-view-top-item.h b/calendar/gui/e-day-view-top-item.h index e163e3eb81..64d56b135f 100644 --- a/calendar/gui/e-day-view-top-item.h +++ b/calendar/gui/e-day-view-top-item.h @@ -21,43 +21,64 @@ * */ -#ifndef _E_DAY_VIEW_TOP_ITEM_H_ -#define _E_DAY_VIEW_TOP_ITEM_H_ - -#include "e-day-view.h" - -G_BEGIN_DECLS - /* * EDayViewTopItem - displays the top part of the Day/Work Week calendar view. */ -#define E_DAY_VIEW_TOP_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ - e_day_view_top_item_get_type (), EDayViewTopItem)) -#define E_DAY_VIEW_TOP_ITEM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k),\ - e_day_view_top_item_get_type ())) -#define E_IS_DAY_VIEW_TOP_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), \ - e_day_view_top_item_get_type ())) +#ifndef E_DAY_VIEW_TOP_ITEM_H +#define E_DAY_VIEW_TOP_ITEM_H -typedef struct { - GnomeCanvasItem canvas_item; +#include "e-day-view.h" - /* The parent EDayView widget. */ - EDayView *day_view; +/* Standard GObject macros */ +#define E_TYPE_DAY_VIEW_TOP_ITEM \ + (e_day_view_top_item_get_type ()) +#define E_DAY_VIEW_TOP_ITEM(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), E_TYPE_DAY_VIEW_TOP_ITEM, EDayViewTopItem)) +#define E_DAY_VIEW_TOP_ITEM_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), E_TYPE_DAY_VIEW_TOP_ITEM, EDayViewTopItemClass)) +#define E_IS_DAY_VIEW_TOP_ITEM(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), E_TYPE_DAY_VIEW_TOP_ITEM)) +#define E_IS_DAY_VIEW_TOP_ITEM_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), E_TYPE_DAY_VIEW_TOP_ITEM)) +#define E_DAY_VIEW_TOP_ITEM_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), E_TYPE_DAY_VIEW_TOP_ITEM, EDayViewTopItemClass)) - /* Show dates or events. */ - gboolean show_dates; -} EDayViewTopItem; +G_BEGIN_DECLS -typedef struct { - GnomeCanvasItemClass parent_class; +typedef struct _EDayViewTopItem EDayViewTopItem; +typedef struct _EDayViewTopItemClass EDayViewTopItemClass; +typedef struct _EDayViewTopItemPrivate EDayViewTopItemPrivate; -} EDayViewTopItemClass; +struct _EDayViewTopItem { + GnomeCanvasItem parent; + EDayViewTopItemPrivate *priv; +}; + +struct _EDayViewTopItemClass { + GnomeCanvasItemClass parent_class; +}; -GType e_day_view_top_item_get_type (void); -void e_day_view_top_item_get_day_label (EDayView *day_view, gint day, - gchar *buffer, gint buffer_len); +GType e_day_view_top_item_get_type (void); +void e_day_view_top_item_get_day_label + (EDayView *day_view, + gint day, + gchar *buffer, + gint buffer_len); +EDayView * e_day_view_top_item_get_day_view(EDayViewTopItem *top_item); +void e_day_view_top_item_set_day_view(EDayViewTopItem *top_item, + EDayView *day_view); +gboolean e_day_view_top_item_get_show_dates + (EDayViewTopItem *top_item); +void e_day_view_top_item_set_show_dates + (EDayViewTopItem *top_item, + gboolean show_dates); G_END_DECLS -#endif /* _E_DAY_VIEW_TOP_ITEM_H_ */ +#endif /* E_DAY_VIEW_TOP_ITEM_H */ |