Skip to content

Commit 411058b

Browse files
sdroegebilelmoussaoui
authored andcommitted
gtk: Hide SearchEntry::placeholder-text getter/setter functions
The property exists since 4.0 but the functions only since 4.10, so we continue using the property.
1 parent ed7d7d5 commit 411058b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

gtk4/Gir.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ generate = [
208208
"Gtk.ScrolledWindow",
209209
"Gtk.ScrollStep",
210210
"Gtk.ScrollType",
211-
"Gtk.SearchEntry",
212211
"Gtk.SelectionMode",
213212
"Gtk.SelectionModel",
214213
"Gtk.SensitivityType",
@@ -1881,6 +1880,20 @@ status = "generate"
18811880
name = "search-mode-enabled"
18821881
generate = ["notify"] # the prop has a getter/setter already
18831882

1883+
[[object]]
1884+
name = "Gtk.SearchEntry"
1885+
status = "generate"
1886+
[[object.function]]
1887+
name = "get_placeholder_text"
1888+
# Use the property that is available since 4.0 instead of the function
1889+
# that is only available since 4.10
1890+
ignore = true
1891+
[[object.function]]
1892+
name = "set_placeholder_text"
1893+
# Use the property that is available since 4.0 instead of the function
1894+
# that is only available since 4.10
1895+
ignore = true
1896+
18841897
[[object]]
18851898
name = "Gtk.SelectionFilterModel"
18861899
status = "generate"

0 commit comments

Comments
 (0)