From: Matthew Barnes Date: Fri, 2 Nov 2012 13:19:16 +0000 (-0400) Subject: e-cal-view.h cleanups. X-Git-Tag: upstream/3.7.4~264 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef57ec14f56f11c861afcc8eeb3719263022864d;p=platform%2Fupstream%2Fevolution-data-server.git e-cal-view.h cleanups. --- diff --git a/calendar/libecal/e-cal-view.h b/calendar/libecal/e-cal-view.h index be69c7e..fabe9ea 100644 --- a/calendar/libecal/e-cal-view.h +++ b/calendar/libecal/e-cal-view.h @@ -22,21 +22,34 @@ #error "Only should be included directly." #endif +#ifndef E_CAL_DISABLE_DEPRECATED + #ifndef E_CAL_VIEW_H #define E_CAL_VIEW_H -#ifndef E_CAL_DISABLE_DEPRECATED - #include #include -G_BEGIN_DECLS +/* Standard GObject macros */ +#define E_TYPE_CAL_VIEW \ + (e_cal_view_get_type ()) +#define E_CAL_VIEW(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), E_TYPE_CAL_VIEW, ECalView)) +#define E_CAL_VIEW_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), E_TYPE_CAL_VIEW, ECalViewClass)) +#define E_IS_CAL_VIEW(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), E_TYPE_CAL_VIEW)) +#define E_IS_CAL_VIEW_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), E_TYPE_CAL_VIEW)) +#define E_CAL_VIEW_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), E_TYPE_CAL_VIEW, ECalViewClass)) -#define E_TYPE_CAL_VIEW (e_cal_view_get_type ()) -#define E_CAL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_CAL_VIEW, ECalView)) -#define E_CAL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_CAL_VIEW, ECalViewClass)) -#define E_IS_CAL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CAL_VIEW)) -#define E_IS_CAL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_CAL_VIEW)) +G_BEGIN_DECLS typedef struct _ECalView ECalView; typedef struct _ECalViewClass ECalViewClass; @@ -46,34 +59,36 @@ struct _ECal; struct _ECalView { GObject object; - - /*< private >*/ ECalViewPrivate *priv; }; struct _ECalViewClass { GObjectClass parent_class; - /* Notification signals */ - void (* objects_added) (ECalView *view, GList *objects); - void (* objects_modified) (ECalView *view, GList *objects); - void (* objects_removed) (ECalView *view, GList *uids); - void (* view_progress) (ECalView *view, gchar *message, gint percent); - #ifndef E_CAL_DISABLE_DEPRECATED - void (* view_done) (ECalView *view, ECalendarStatus status); - #endif - void (* view_complete) (ECalView *view, ECalendarStatus status, const gchar *error_msg); + /* Signals */ + void (*objects_added) (ECalView *view, + GList *objects); + void (*objects_modified) (ECalView *view, + GList *objects); + void (*objects_removed) (ECalView *view, + GList *uids); + void (*view_progress) (ECalView *view, + gchar *message, + gint percent); + void (*view_done) (ECalView *view, + ECalendarStatus status); + void (*view_complete) (ECalView *view, + ECalendarStatus status, + const gchar *error_msg); }; -GType e_cal_view_get_type (void); - -struct _ECal *e_cal_view_get_client (ECalView *view); - -void e_cal_view_start (ECalView *view); -void e_cal_view_stop (ECalView *view); +GType e_cal_view_get_type (void); +struct _ECal * e_cal_view_get_client (ECalView *view); +void e_cal_view_start (ECalView *view); +void e_cal_view_stop (ECalView *view); G_END_DECLS -#endif /* E_CAL_DISABLE_DEPRECATED */ +#endif /* E_CAL_VIEW_H */ -#endif +#endif /* E_CAL_DISABLE_DEPRECATED */ diff --git a/docs/reference/calendar/libecal/libecal-sections.txt b/docs/reference/calendar/libecal/libecal-sections.txt index fa071bd..9926d94 100644 --- a/docs/reference/calendar/libecal/libecal-sections.txt +++ b/docs/reference/calendar/libecal/libecal-sections.txt @@ -509,11 +509,12 @@ e_cal_view_get_client e_cal_view_start e_cal_view_stop -E_TYPE_CAL_VIEW E_CAL_VIEW -E_CAL_VIEW_CLASS E_IS_CAL_VIEW +E_TYPE_CAL_VIEW +E_CAL_VIEW_CLASS E_IS_CAL_VIEW_CLASS +E_CAL_VIEW_GET_CLASS ECalViewClass ECalViewPrivate