]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk4: Preserve compatibility with <= 4.8.x
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 19 Aug 2023 10:35:41 +0000 (12:35 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 19 Aug 2023 11:00:22 +0000 (13:00 +0200)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1475

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

index cc7bdb9f68767d7f00a7b4519d65b2cf9485c693..875602183503eb6f92734ca2eaf344ecd3bfa697 100644 (file)
@@ -11070,7 +11070,8 @@ namespace Gtk {
                public void set_search_delay (uint delay);
                [NoAccessorMethod]
                public bool activates_default { get; set; }
-               public string placeholder_text { get; set; }
+               [NoAccessorMethod]
+               public string placeholder_text { owned get; set; }
                [Version (since = "4.8")]
                public uint search_delay { get; set; }
                public signal void activate ();
index 75de83b466f325e8bdcc7a8fa8f136b1cca741fd..a0a4e2a413987466d8926deb05fd52b8226ebd4f 100644 (file)
@@ -298,6 +298,9 @@ Snapshot
   .free_to_paintable destroys_instance
 render_* parent="Gtk.StyleContext"
 render_* symbol_type="method" instance_idx=0
+SearchEntry
+  // gtk4 < 4.10
+  .placeholder_text no_accessor_method
 TextBuffer
   .backspace.iter ref
   .delete.start ref