Gtk.Calendar.set_year

### Method

# Gtk Calendarset_year

since: 4.14

#### Declaration [src]

    void
    gtk_calendar_set_year (
      GtkCalendar* self,
      int year
    )

#### Description [src]

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.

Available since: 4.14

Sets property | `Gtk.Calendar:year`

#### Parameters

`year`

  Type: `int`

  The desired year for the selected date (within `GDateTime` limits, i.e. from 0001 to 9999).