]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk4: Preserve compatibility with < 4.14
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 7 Mar 2024 16:56:05 +0000 (17:56 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 7 Mar 2024 16:56:05 +0000 (17:56 +0100)
Don't prefer new accessor methods for Calendar.day/month/year

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1531

vapi/gtk4.vapi
vapi/metadata/Gtk-4.0.metadata

index 77356ea8fbead58dfea92b477c474ad5a2c053ae..aad6ea0534a21eaa2047268173ce9be8c21908bd 100644 (file)
@@ -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 ();
index 1cbb1897b5b97742ce45876ac366faed384a7841..606c9aa8d0ae977bef31beb212cd1f350232be83 100644 (file)
@@ -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