Function

GtkCalendarDetailFunc

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 GtkCalendar
 

A GtkCalendar.

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

The year for which details are needed.

month guint
 

The month for which details are needed.

day guint
 

The day of month for which details are needed.

user_data gpointer
 

The data passed with gtk_calendar_set_detail_func().

Return value

Returns: 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 string is a NUL terminated UTF-8 string.