diff options
author | karl-qdh <karl@qdh.org.uk> | 2011-02-21 09:22:31 +0000 |
---|---|---|
committer | karl-qdh <karl@qdh.org.uk> | 2011-02-21 09:22:31 +0000 |
commit | 99b479df5c4af616952859e4e8cccd0b24215e5e (patch) | |
tree | 33635ee21c00c76ea3926124cb21ccad130abe38 | |
parent | 5b3b2fe2705a2b9e56d8d468b842c48eef9515c0 (diff) | |
download | ayatana-ido-99b479df5c4af616952859e4e8cccd0b24215e5e.tar.gz ayatana-ido-99b479df5c4af616952859e4e8cccd0b24215e5e.tar.bz2 ayatana-ido-99b479df5c4af616952859e4e8cccd0b24215e5e.zip |
Added additional API for marking days and setting options
-rw-r--r-- | src/idocalendarmenuitem.c | 24 | ||||
-rw-r--r-- | 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 |