aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-date.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-08-29 20:27:27 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-08-29 21:37:18 +0800
commit1884f66c02bfd0373b21f5d7f772523751256a5d (patch)
tree15bcbc4a82211c1c310e892ec75da8da06994f34 /widgets/table/e-cell-date.h
parent8fbcab126e2453c8cbf7b5dba5a309bf83e0a3c3 (diff)
downloadgsoc2013-evolution-1884f66c02bfd0373b21f5d7f772523751256a5d.tar
gsoc2013-evolution-1884f66c02bfd0373b21f5d7f772523751256a5d.tar.gz
gsoc2013-evolution-1884f66c02bfd0373b21f5d7f772523751256a5d.tar.bz2
gsoc2013-evolution-1884f66c02bfd0373b21f5d7f772523751256a5d.tar.lz
gsoc2013-evolution-1884f66c02bfd0373b21f5d7f772523751256a5d.tar.xz
gsoc2013-evolution-1884f66c02bfd0373b21f5d7f772523751256a5d.tar.zst
gsoc2013-evolution-1884f66c02bfd0373b21f5d7f772523751256a5d.zip
ECellText cleanups.
Diffstat (limited to 'widgets/table/e-cell-date.h')
-rw-r--r--widgets/table/e-cell-date.h51
1 files changed, 35 insertions, 16 deletions
diff --git a/widgets/table/e-cell-date.h b/widgets/table/e-cell-date.h
index ec23bd61ad..5753d24642 100644
--- a/widgets/table/e-cell-date.h
+++ b/widgets/table/e-cell-date.h
@@ -21,31 +21,50 @@
*
*/
-#ifndef _E_CELL_DATE_H_
-#define _E_CELL_DATE_H_
+#ifndef E_CELL_DATE_H
+#define E_CELL_DATE_H
#include <table/e-cell-text.h>
+/* Standard GObject macros */
+#define E_TYPE_CELL_DATE \
+ (e_cell_date_get_type ())
+#define E_CELL_DATE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_CELL_DATE, ECellDate))
+#define E_CELL_DATE_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_CELL_DATE, ECellDateClass))
+#define E_IS_CELL_DATE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_CELL_DATE))
+#define E_IS_CELL_DATE_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_CELL_DATE))
+#define E_CELL_DATE_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_CELL_DATE, ECellDateClass))
+
G_BEGIN_DECLS
-#define E_CELL_DATE_TYPE (e_cell_date_get_type ())
-#define E_CELL_DATE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_CELL_DATE_TYPE, ECellDate))
-#define E_CELL_DATE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_CELL_DATE_TYPE, ECellDateClass))
-#define E_IS_CELL_DATE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_CELL_DATE_TYPE))
-#define E_IS_CELL_DATE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_CELL_DATE_TYPE))
+typedef struct _ECellDate ECellDate;
+typedef struct _ECellDateClass ECellDateClass;
-typedef struct {
- ECellText base;
-} ECellDate;
+struct _ECellDate {
+ ECellText parent;
+};
-typedef struct {
+struct _ECellDateClass {
ECellTextClass parent_class;
-} ECellDateClass;
+};
-GType e_cell_date_get_type (void);
-ECell *e_cell_date_new (const gchar *fontname, GtkJustification justify);
-void e_cell_date_set_format_component (ECellDate *ecd, const gchar *fmt_component);
+GType e_cell_date_get_type (void);
+ECell * e_cell_date_new (const gchar *fontname,
+ GtkJustification justify);
+void e_cell_date_set_format_component
+ (ECellDate *ecd,
+ const gchar *fmt_component);
G_END_DECLS
-#endif /* _E_CELL_DATE_H_ */
+#endif /* E_CELL_DATE_H */