]> 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 10:38:06 +0000 (12:38 +0200)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1475

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

index f268d2d0a1434cc980d0697616e4d630d9e278ba..72d0a87fc7f921765473ac2066d39fbbc368ef77 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 e06727eb11e27407b8e0e090e215bc5a874be51d..a5f00bd2e6960cd2e4fc1423f330bb88dbeab64d 100644 (file)
@@ -299,6 +299,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