GtkCalendar

#GtkCalendar is a widget that displays a Gregorian calendar, one month at a time. It can be created with gtk.calendar.Calendar.new_.

The month and year currently displayed can be altered with gtk.calendar.Calendar.selectMonth. The exact day can be selected from the displayed month using gtk.calendar.Calendar.selectDay.

To place a visual marker on a particular day, use gtk.calendar.Calendar.markDay and to remove the marker, gtk.calendar.Calendar.unmarkDay. Alternative, all marks can be cleared with gtk.calendar.Calendar.clearMarks.

The way in which the calendar itself is displayed can be altered using gtk.calendar.Calendar.setDisplayOptions.

The selected date can be retrieved from a #GtkCalendar using gtk.calendar.Calendar.getDate.

Users should be aware that, although the Gregorian calendar is the legal calendar in most countries, it was adopted progressively between 1582 and 1929. Display before these dates is likely to be historically incorrect.

Members

Variables

priv
GtkCalendarPrivate* priv;
widget
GtkWidget widget;