From 99b479df5c4af616952859e4e8cccd0b24215e5e Mon Sep 17 00:00:00 2001 From: karl-qdh Date: Mon, 21 Feb 2011 09:22:31 +0000 Subject: Added additional API for marking days and setting options --- src/idocalendarmenuitem.c | 24 ++++++++++++++++++++++++ src/idocalendarmenuitem.h | 10 +++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c index fca4bb6..8208ba2 100644 --- a/src/idocalendarmenuitem.c +++ b/src/idocalendarmenuitem.c @@ -264,3 +264,27 @@ ido_calendar_menu_item_get_calendar (IdoCalendarMenuItem *item) return item->priv->calendar; } + +gboolean +ido_calendar_menu_item_mark_day (IdoCalendarMenuItem *menuitem, guint day) +{ + return gtk_calendar_mark_day(menuitem->priv->calendar, day); +} + +gboolean +ido_calendar_menu_item_unmark_day (IdoCalendarMenuItem *menuitem, guint day) +{ + return gtk_calendar_unmark_day(menuitem->priv->calendar, day); +} + +void +ido_calendar_menu_item_clear_marks (IdoCalendarMenuItem *menuitem) +{ + gtk_calendar_clear_marks(menuitem->priv->calendar); +} + +void +ido_calendar_menu_item_set_display_options (IdoCalendarMenuItem *menuitem, GtkCalendarDisplayOptions flags) +{ + gtk_calendar_set_display_options (menuitem->priv->calendar, flags); +} diff --git a/src/idocalendarmenuitem.h b/src/idocalendarmenuitem.h index 3f9bf96..804dab9 100644 --- a/src/idocalendarmenuitem.h +++ b/src/idocalendarmenuitem.h @@ -53,10 +53,14 @@ struct _IdoCalendarMenuItemClass GtkMenuItemClass parent_class; }; -GType ido_calendar_menu_item_get_type (void) G_GNUC_CONST; +GType ido_calendar_menu_item_get_type (void) G_GNUC_CONST; -GtkWidget *ido_calendar_menu_item_new (void); -GtkWidget *ido_calendar_menu_item_get_calendar (IdoCalendarMenuItem *menuitem); +GtkWidget *ido_calendar_menu_item_new (void); +GtkWidget *ido_calendar_menu_item_get_calendar (IdoCalendarMenuItem *menuitem); +gboolean ido_calendar_menu_item_mark_day (IdoCalendarMenuItem *menuitem, guint day); +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); G_END_DECLS -- cgit v1.2.3