X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon-date-button.h;h=5c8e1caabbca9356702b62ddf0496030d10d5ff3;hb=9e85b8840c98eee4c79882c17ebcf3e4ad7248d1;hp=6070707117fb036bc6ebabb4e502e7e8081db2e5;hpb=32ff4261905d31356e0218c6b047e411811049db;p=hildon diff --git a/src/hildon-date-button.h b/src/hildon-date-button.h index 6070707..5c8e1ca 100644 --- a/src/hildon-date-button.h +++ b/src/hildon-date-button.h @@ -14,42 +14,74 @@ * */ -#ifndef _HILDON_DATE_BUTTON -#define _HILDON_DATE_BUTTON +#ifndef __HILDON_DATE_BUTTON__ +#define __HILDON_DATE_BUTTON__ -#include +#include + +#include "hildon-picker-button.h" G_BEGIN_DECLS -#define HILDON_TYPE_DATE_BUTTON hildon_date_button_get_type() -#define HILDON_DATE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_DATE_BUTTON, HildonDateButton)) -#define HILDON_DATE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass)) -#define HILDON_IS_DATE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_DATE_BUTTON)) -#define HILDON_IS_DATE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_DATE_BUTTON)) -#define HILDON_DATE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass)) +#define HILDON_TYPE_DATE_BUTTON \ + hildon_date_button_get_type() + +#define HILDON_DATE_BUTTON(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj),\ + HILDON_TYPE_DATE_BUTTON, HildonDateButton)) + +#define HILDON_DATE_BUTTON_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), \ + HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass)) + +#define HILDON_IS_DATE_BUTTON(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_DATE_BUTTON)) + +#define HILDON_IS_DATE_BUTTON_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_DATE_BUTTON)) -typedef struct _HildonDateButton HildonDateButton; -typedef struct _HildonDateButtonClass HildonDateButtonClass; +#define HILDON_DATE_BUTTON_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass)) -struct _HildonDateButton + +typedef struct _HildonDateButton HildonDateButton; +typedef struct _HildonDateButtonClass HildonDateButtonClass; + +struct _HildonDateButton { HildonPickerButton parent; }; -struct _HildonDateButtonClass +struct _HildonDateButtonClass { HildonPickerButtonClass parent_class; }; -GType hildon_date_button_get_type (void); -GtkWidget *hildon_date_button_new (HildonSizeType size, - HildonButtonArrangement arrangement); +GType +hildon_date_button_get_type (void); + +GtkWidget* +hildon_date_button_new (HildonSizeType size, + HildonButtonArrangement arrangement); + +GtkWidget * +hildon_date_button_new_with_year_range (HildonSizeType size, + HildonButtonArrangement arrangement, + gint min_year, + gint max_year); -void hildon_date_button_get_date (HildonDateButton * button, - guint * year, guint * month, guint * day); -void hildon_date_button_set_date (HildonDateButton * button, - guint year, guint month, guint day); +void +hildon_date_button_get_date (HildonDateButton *button, + guint *year, + guint *month, + guint *day); +void +hildon_date_button_set_date (HildonDateButton * button, + guint year, + guint month, + guint day); G_END_DECLS -#endif /* _HILDON_DATE_BUTTON */ +#endif /* __HILDON_DATE_BUTTON__ */