diff options
author | karl-qdh <karl@qdh.org.uk> | 2011-02-23 15:49:47 +0000 |
---|---|---|
committer | karl-qdh <karl@qdh.org.uk> | 2011-02-23 15:49:47 +0000 |
commit | b6f75c173098cd4a7ea605496a2692d436a16a96 (patch) | |
tree | 223d1ce481df66c43feffeceb46dd6a22f180d45 | |
parent | 3acb7aa0ab282b7a4480ba6abeabc949ad3bb5b4 (diff) | |
download | ayatana-ido-b6f75c173098cd4a7ea605496a2692d436a16a96.tar.gz ayatana-ido-b6f75c173098cd4a7ea605496a2692d436a16a96.tar.bz2 ayatana-ido-b6f75c173098cd4a7ea605496a2692d436a16a96.zip |
Added get_date, pretty critical function
-rw-r--r-- | src/idocalendarmenuitem.c | 9 | ||||
-rw-r--r-- | src/idocalendarmenuitem.h | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c index 64b67a5..3e326e0 100644 --- a/src/idocalendarmenuitem.c +++ b/src/idocalendarmenuitem.c @@ -300,3 +300,12 @@ ido_calendar_menu_item_set_display_options (IdoCalendarMenuItem *menuitem, GtkCa { gtk_calendar_set_display_options (GTK_CALENDAR (menuitem->priv->calendar), flags); } + +void +ido_calendar_menu_item_get_date (IdoCalendarMenuItem *menuitem, + guint *year, + guint *month, + guint *day) { + + gtk_calendar_get_date (GTK_CALENDAR (menuitem->priv->calendar), year, month, day); +} diff --git a/src/idocalendarmenuitem.h b/src/idocalendarmenuitem.h index 6d65985..6e9ff9a 100644 --- a/src/idocalendarmenuitem.h +++ b/src/idocalendarmenuitem.h @@ -60,7 +60,10 @@ gboolean ido_calendar_menu_item_mark_day (IdoCalendarMenuItem *menui gboolean ido_calendar_menu_item_unmark_day (IdoCalendarMenuItem *menuitem, guint day); void ido_calendar_menu_item_clear_marks (IdoCalendarMenuItem *menuitem); void ido_calendar_menu_item_set_display_options (IdoCalendarMenuItem *menuitem, GtkCalendarDisplayOptions flags); - +void ido_calendar_menu_item_get_date (IdoCalendarMenuItem *menuitem, + guint *year, + guint *month, + guint *day) G_END_DECLS #endif /* __IDO_CALENDAR_MENU_ITEM_H__ */ |