set_year


Description:

[ Version ( since = "4.14" ) ]
public void set_year (int year)

Sets the year for the selected date.

The new date must be valid. For example, setting the year to 2023 when the date is February 29 will fail.

Parameters:

this

a `GtkCalendar`

year

The desired year for the selected date (within [struct@GLib.DateTime] limits, i.e. from 0001 to 9999).