From 17349020fb95454d06f827fd555b05248f10a370 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Thu, 7 Mar 2024 17:56:05 +0100 Subject: [PATCH] gtk4: Preserve compatibility with < 4.14 Don't prefer new accessor methods for Calendar.day/month/year Fixes https://gitlab.gnome.org/GNOME/vala/issues/1531 --- vapi/gtk4.vapi | 3 +++ vapi/metadata/Gtk-4.0.metadata | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index 49f8b2078..51ecea27d 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -7350,11 +7350,14 @@ namespace Gtk { [Version (since = "4.14")] public void set_year (int year); public void unmark_day (uint day); + [NoAccessorMethod] public int day { get; set; } + [NoAccessorMethod] public int month { get; set; } public bool show_day_names { get; set; } public bool show_heading { get; set; } public bool show_week_numbers { get; set; } + [NoAccessorMethod] public int year { get; set; } public signal void day_selected (); public signal void next_month (); diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata index 603b5e963..6e4799677 100644 --- a/vapi/metadata/Gtk-4.0.metadata +++ b/vapi/metadata/Gtk-4.0.metadata @@ -285,6 +285,11 @@ value_take_expression.value ref BuildableParser skip // Backwards compatibility +Calendar + // gtk4 < 4.14 + .day no_accessor_method + .month no_accessor_method + .year no_accessor_method EntryBuffer .new.initial_chars type="uint8[]?" array_length_idx=1 .emit_inserted_text.chars type="uint8[]" array_length_idx=2 -- 2.47.2