GtkCalendar
display a calendar and/or allow the user to select a date.
#GtkCalendar is a widget that displays a calendar, one month at a time.
It can be created with gtk_calendar_new().
The month and year currently displayed can be altered with
gtk_calendar_select_month(). The exact day can be selected from the displayed
month using gtk_calendar_select_day().
To place a visual marker on a particular day, use gtk_calendar_mark_day()
and to remove the marker, gtk_calendar_unmark_day().
Alternative, all marks can be cleared with gtk_calendar_clear_marks().
The way in which the calendar itself is displayed can be altered using
gtk_calendar_display_options().
The selected date can be retrieved from a #GtkCalendar using
gtk_calendar_get_date().
If performing many 'mark' operations, the calendar can be frozen to prevent
flicker, using gtk_calendar_freeze(), and 'thawed' again using
gtk_calendar_thaw().
num_marked_dates is an integer containing the
number of days that have a mark over them.
marked_date is an array containing the day numbers
that currently have a mark over them.
month, year, and
selected_day contain the currently visible month,
year, and selected day respectively.
All of these fields should be considered read only, and everything in this
struct should only be modified using the functions provided below.
GTK_CALENDAR_SHOW_HEADING
Specifies that the month and year should be displayed.
GTK_CALENDAR_SHOW_DAY_NAMES
Specifies that three letter day descriptions should be present.
GTK_CALENDAR_NO_MONTH_CHANGE
Prevents the user from switching months with the calendar.
GTK_CALENDAR_SHOW_WEEK_NUMBERS
Displays each week numbers of the current year, down the left side of
the calendar.
GTK_CALENDAR_WEEK_START_MONDAY
Starts the calendar week on Monday, instead of the default Sunday.
@GTK_CALENDAR_SHOW_HEADING:
@GTK_CALENDAR_SHOW_DAY_NAMES:
@GTK_CALENDAR_NO_MONTH_CHANGE:
@GTK_CALENDAR_SHOW_WEEK_NUMBERS:
@GTK_CALENDAR_WEEK_START_MONDAY:
Creates a new calendar, with the current date being selected.
@Returns: a #GtkCalendar.
Shifts the calendar to a different month.
@calendar: a #GtkCalendar.
@month: a month number.
@year: the year the month is in.
@Returns: %TRUE.
Selects a day from the current month.
@calendar: a #GtkCalendar.
@day: the day number to select.
Places a visual marker on a particular day.
@calendar: a #GtkCalendar.
@day: the day number to mark.
@Returns: %TRUE.
Removes the visual marker from a particular day.
@calendar: a #GtkCalendar.
@day: the day number to unmark.
@Returns: %TRUE.
Remove all visual markers.
@calendar: a #GtkCalendar.
Sets display options (whether to display the heading and the month headings).
@calendar: a #GtkCalendar.
@flags: the display options to set.
Obtains the selected date from a #GtkCalendar.
@calendar: a #GtkCalendar.
@year: location to store the year number.
@month: location to store the month number.
@day: location to store the day number.
Locks the display of the calendar until it is thawed with gtk_calendar_thaw().
@calendar: a #GtkCalendar.
Defrosts a calendar; all the changes made since the last
gtk_calendar_freeze() are displayed.
@calendar: a #GtkCalendar.
Emitted when the user selects a day.
@calendar: the object which received the signal.
@calendar: the object which received the signal.
Emitted when the user clicks a button to change the selected month on a
calendar.
@calendar: the object which received the signal.
@calendar: the object which received the signal.
@calendar: the object which received the signal.
@calendar: the object which received the signal.
@calendar: the object which received the signal.