diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-08-01 19:29:41 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-06 04:13:02 +0800 |
commit | de85e3c7862100da10fe860aef2b651245a1fdbf (patch) | |
tree | dd4a3482966c041a80c9798d45b73f5fe986dad6 /calendar/gui/e-cell-date-edit-text.h | |
parent | fac731e7359c978ff730d48f9ab88a5794450206 (diff) | |
download | gsoc2013-evolution-de85e3c7862100da10fe860aef2b651245a1fdbf.tar.gz gsoc2013-evolution-de85e3c7862100da10fe860aef2b651245a1fdbf.tar.zst gsoc2013-evolution-de85e3c7862100da10fe860aef2b651245a1fdbf.zip |
Replace more "config" classes with property bindings.
Diffstat (limited to 'calendar/gui/e-cell-date-edit-text.h')
-rw-r--r-- | calendar/gui/e-cell-date-edit-text.h | 66 |
1 files changed, 42 insertions, 24 deletions
diff --git a/calendar/gui/e-cell-date-edit-text.h b/calendar/gui/e-cell-date-edit-text.h index 5dc1f0c4bd..a49b68d36b 100644 --- a/calendar/gui/e-cell-date-edit-text.h +++ b/calendar/gui/e-cell-date-edit-text.h @@ -27,42 +27,60 @@ #include <libical/ical.h> #include <table/e-cell-text.h> -G_BEGIN_DECLS +/* Standard GObject macros */ +#define E_TYPE_CELL_DATE_EDIT_TEXT \ + (e_cell_date_edit_text_get_type ()) +#define E_CELL_DATE_EDIT_TEXT(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), E_TYPE_CELL_DATE_EDIT_TEXT, ECellDateEditText)) +#define E_CELL_DATE_EDIT_TEXT_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), E_TYPE_CELL_DATE_EDIT_TEXT, ECellDateEditTextClass)) +#define E_IS_CELL_DATE_EDIT_TEXT(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), E_TYPE_CELL_DATE_EDIT_TEXT)) +#define E_IS_CELL_DATE_EDIT_TEXT_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), E_TYPE_CELL_DATE_EDIT_TEXT)) +#define E_CELL_DATE_EDIT_TEXT_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), E_TYPE_CELL_DATE_EDIT_TEXT, ECellDateEditTextClass)) -#define E_CELL_DATE_EDIT_TEXT_TYPE (e_cell_date_edit_text_get_type ()) -#define E_CELL_DATE_EDIT_TEXT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_CELL_DATE_EDIT_TEXT_TYPE, ECellDateEditText)) -#define E_CELL_DATE_EDIT_TEXT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_CELL_DATE_EDIT_TEXT_TYPE, ECellDateEditTextClass)) -#define E_IS_CELL_DATE_EDIT_TEXT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_CELL_DATE_EDIT_TEXT_TYPE)) -#define E_IS_CELL_DATE_EDIT_TEXT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_CELL_DATE_EDIT_TEXT_TYPE)) +G_BEGIN_DECLS +typedef struct _ECellDateEditText ECellDateEditText; +typedef struct _ECellDateEditTextClass ECellDateEditTextClass; +typedef struct _ECellDateEditTextPrivate ECellDateEditTextPrivate; typedef struct _ECellDateEditValue ECellDateEditValue; + struct _ECellDateEditValue { struct icaltimetype tt; icaltimezone *zone; }; -typedef struct { - ECellText base; - - /* The timezone to display the date in. */ - icaltimezone *zone; - - /* Whether to display in 24-hour format. */ - gboolean use_24_hour_format; -} ECellDateEditText; +struct _ECellDateEditText { + ECellText parent; + ECellDateEditTextPrivate *priv; +}; -typedef struct { +struct _ECellDateEditTextClass { ECellTextClass parent_class; -} ECellDateEditTextClass; +}; -GType e_cell_date_edit_text_get_type (void); -ECell *e_cell_date_edit_text_new (const gchar *fontname, - GtkJustification justify); +GType e_cell_date_edit_text_get_type (void); +ECell * e_cell_date_edit_text_new (const gchar *fontname, + GtkJustification justify); +icaltimezone * e_cell_date_edit_text_get_timezone + (ECellDateEditText *ecd); +void e_cell_date_edit_text_set_timezone + (ECellDateEditText *ecd, + icaltimezone *timezone); +gboolean e_cell_date_edit_text_get_use_24_hour_format + (ECellDateEditText *ecd); +void e_cell_date_edit_text_set_use_24_hour_format + (ECellDateEditText *ecd, + gboolean use_24_hour); -void e_cell_date_edit_text_set_timezone (ECellDateEditText *ecd, - icaltimezone *zone); -void e_cell_date_edit_text_set_use_24_hour_format (ECellDateEditText *ecd, - gboolean use_24_hour); G_END_DECLS #endif /* _E_CELL_DATE_EDIT_TEXT_H_ */ |