Function

GtkCalendarDetailFunc

since: 2.14

Declaration

gchar*
(* GtkCalendarDetailFunc) (
  GtkCalendar* calendar,
  guint year,
  guint month,
  guint day,
  gpointer user_data
)

Description [src]

This kind of functions provide Pango markup with detail information for the specified day. Examples for such details are holidays or appointments. The function returns NULL when no information is available.

Available since: 2.14

Parameters

calendar

Type: GtkCalendar

A GtkCalendar.

The data is owned by the caller of the function.
year

Type: guint

The year for which details are needed.

month

Type: guint

The month for which details are needed.

day

Type: guint

The day of month for which details are needed.

user_data

Type: gpointer

The data passed with gtk_calendar_set_detail_func().

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: gchar*

Newly allocated string with Pango markup with details for the specified day or NULL.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.