aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-02-23 15:49:47 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-02-23 15:49:47 +0000
commitb6f75c173098cd4a7ea605496a2692d436a16a96 (patch)
tree223d1ce481df66c43feffeceb46dd6a22f180d45
parent3acb7aa0ab282b7a4480ba6abeabc949ad3bb5b4 (diff)
downloadayatana-ido-b6f75c173098cd4a7ea605496a2692d436a16a96.tar.gz
ayatana-ido-b6f75c173098cd4a7ea605496a2692d436a16a96.tar.bz2
ayatana-ido-b6f75c173098cd4a7ea605496a2692d436a16a96.zip
Added get_date, pretty critical function
-rw-r--r--src/idocalendarmenuitem.c9
-rw-r--r--src/idocalendarmenuitem.h5
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__ */