diff options
Diffstat (limited to 'src/idocalendarmenuitem.c')
-rw-r--r-- | src/idocalendarmenuitem.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c index 3ca788a..ec52f13 100644 --- a/src/idocalendarmenuitem.c +++ b/src/idocalendarmenuitem.c @@ -288,32 +288,49 @@ ido_calendar_menu_item_get_calendar (IdoCalendarMenuItem *item) gboolean ido_calendar_menu_item_mark_day (IdoCalendarMenuItem *menuitem, guint day) { + g_return_val_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem), FALSE); + return gtk_calendar_mark_day(GTK_CALENDAR (menuitem->priv->calendar), day); } gboolean ido_calendar_menu_item_unmark_day (IdoCalendarMenuItem *menuitem, guint day) { + g_return_val_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem), FALSE); + return gtk_calendar_unmark_day(GTK_CALENDAR (menuitem->priv->calendar), day); } void ido_calendar_menu_item_clear_marks (IdoCalendarMenuItem *menuitem) { + g_return_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem)); + gtk_calendar_clear_marks(GTK_CALENDAR (menuitem->priv->calendar)); } void ido_calendar_menu_item_set_display_options (IdoCalendarMenuItem *menuitem, GtkCalendarDisplayOptions flags) { + g_return_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem)); + gtk_calendar_set_display_options (GTK_CALENDAR (menuitem->priv->calendar), flags); } +GtkCalendarDisplayOptions +ido_calendar_menu_item_get_display_options (IdoCalendarMenuItem *menuitem) +{ + g_return_val_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem), 0); + + return gtk_calendar_get_display_options (GTK_CALENDAR (menuitem->priv->calendar)); +} + 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); + + g_return_if_fail(IDO_IS_CALENDAR_MENU_ITEM(menuitem)); + gtk_calendar_get_date (GTK_CALENDAR (menuitem->priv->calendar), year, month, day); } |