From b6f75c173098cd4a7ea605496a2692d436a16a96 Mon Sep 17 00:00:00 2001 From: karl-qdh Date: Wed, 23 Feb 2011 15:49:47 +0000 Subject: Added get_date, pretty critical function --- src/idocalendarmenuitem.c | 9 +++++++++ src/idocalendarmenuitem.h | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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__ */ -- cgit v1.2.3