aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-date-edit.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-17 02:24:31 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:19 +0800
commitdfc4205ce569594e83772ac8e0c04f5ca8c2a019 (patch)
tree5c8eac525f7468f36781c74b1730431950cc7df6 /widgets/table/e-cell-date-edit.h
parent30a590ae89a3fbba28a2296606dd7141136b5f21 (diff)
downloadgsoc2013-evolution-dfc4205ce569594e83772ac8e0c04f5ca8c2a019.tar.gz
gsoc2013-evolution-dfc4205ce569594e83772ac8e0c04f5ca8c2a019.tar.zst
gsoc2013-evolution-dfc4205ce569594e83772ac8e0c04f5ca8c2a019.zip
libetable cleanups.
Diffstat (limited to 'widgets/table/e-cell-date-edit.h')
-rw-r--r--widgets/table/e-cell-date-edit.h29
1 files changed, 23 insertions, 6 deletions
diff --git a/widgets/table/e-cell-date-edit.h b/widgets/table/e-cell-date-edit.h
index 4de4dc1819..5224b0ddff 100644
--- a/widgets/table/e-cell-date-edit.h
+++ b/widgets/table/e-cell-date-edit.h
@@ -32,11 +32,26 @@
#include <time.h>
#include <table/e-cell-popup.h>
-#define E_CELL_DATE_EDIT_TYPE (e_cell_date_edit_get_type ())
-#define E_CELL_DATE_EDIT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_CELL_DATE_EDIT_TYPE, ECellDateEdit))
-#define E_CELL_DATE_EDIT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), E_CELL_DATE_EDIT_TYPE, ECellDateEditClass))
-#define E_IS_CELL_DATE_EDIT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_CELL_DATE_EDIT_TYPE))
-#define E_IS_CELL_DATE_EDIT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_CELL_DATE_EDIT_TYPE))
+/* Standard GObject macros */
+#define E_TYPE_CELL_DATE_EDIT \
+ (e_cell_date_edit_get_type ())
+#define E_CELL_DATE_EDIT(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_CELL_DATE_EDIT, ECellDateEdit))
+#define E_CELL_DATE_EDIT_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_CELL_DATE_EDIT, ECellDateEditClass))
+#define E_IS_CELL_DATE_EDIT(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_CELL_DATE_EDIT))
+#define E_IS_CELL_DATE_EDIT_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_CELL_DATE_EDIT))
+#define E_CELL_DATE_EDIT_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_CELL_DATE_EDIT, ECellDateEditClass))
+
+G_BEGIN_DECLS
typedef struct _ECellDateEdit ECellDateEdit;
typedef struct _ECellDateEditClass ECellDateEditClass;
@@ -81,7 +96,7 @@ struct _ECellDateEditClass {
ECellPopupClass parent_class;
};
-GType e_cell_date_edit_get_type (void);
+GType e_cell_date_edit_get_type (void) G_GNUC_CONST;
ECell * e_cell_date_edit_new (void);
/* These freeze and thaw the rebuilding of the time list. They are useful when
@@ -99,4 +114,6 @@ void e_cell_date_edit_set_get_time_callback
gpointer data,
GDestroyNotify destroy);
+G_END_DECLS
+
#endif /* _E_CELL_DATE_EDIT_H_ */