diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ea076e9fd318..7eb85c75fbdf 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,3 +1,5 @@ +env: + GSK_RENDERER: "cairo" on: push: branches: @@ -48,14 +50,14 @@ jobs: features: "v4_18,xml_validation,blueprint", test_sys: false, } - - { name: "gsk4", features: "v4_14,broadway,vulkan", test_sys: true } - - { name: "gdk4", features: "v4_16,gl", test_sys: true } + - { name: "gsk4", features: "v4_18,broadway,vulkan", test_sys: true } + - { name: "gdk4", features: "v4_18,gl", test_sys: true } - { name: "gdk4-wayland", - features: "v4_12,wayland_crate,egl", + features: "v4_18,wayland_crate,egl", test_sys: true, } - - { name: "gdk4-x11", features: "v4_16,xlib,egl", test_sys: true } + - { name: "gdk4-x11", features: "v4_18,xlib,egl", test_sys: true } - { name: "gtk4-macros", features: "xml_validation,blueprint", diff --git a/Cargo.lock b/Cargo.lock index 3cf487b0d436..9ca1467538cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -88,9 +88,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.6.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" [[package]] name = "bitmaps" @@ -109,24 +109,24 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" [[package]] name = "bumpalo" -version = "3.16.0" +version = "3.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" +checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" [[package]] name = "bytemuck" -version = "1.20.0" +version = "1.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b37c88a63ffd85d15b406896cc343916d7cf57838a847b3a6f2ca5d39a5695a" +checksum = "ef657dfab802224e671f5818e9a4935f9b1957ed18e58292690cc39e7a4092a3" dependencies = [ "bytemuck_derive", ] [[package]] name = "bytemuck_derive" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcfcc3cd946cb52f0bbfdbbcfa2f4e24f75ebb6c0e1002f7c25904fada18b9ec" +checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" dependencies = [ "proc-macro2", "quote", @@ -147,16 +147,16 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" [[package]] name = "bytes" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" +checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9" [[package]] name = "cairo-rs" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "cairo-sys-rs", "glib", "libc", @@ -164,8 +164,8 @@ dependencies = [ [[package]] name = "cairo-sys-rs" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "glib-sys", "libc", @@ -174,9 +174,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.4" +version = "1.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9157bbaa6b165880c27a4293a474c91cdcf265cc68cc829bf10be0964a391caf" +checksum = "0c3d1b2e905a3a7b00a6141adb0e4c0bb941d11caf55349d863942a1cc44e3c9" dependencies = [ "shlex", ] @@ -223,7 +223,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f79398230a6e2c08f5c9760610eb6924b52aa9e7950a619602baba59dcbbdbb2" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "block", "cocoa-foundation", "core-foundation", @@ -239,7 +239,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e14045fb83be07b5acf1c0884b2180461635b433455fa35d1cd6f17f1450679d" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "block", "core-foundation", "core-graphics-types", @@ -284,7 +284,7 @@ version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "core-foundation", "core-graphics-types", "foreign-types", @@ -297,16 +297,16 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "core-foundation", "libc", ] [[package]] name = "core_maths" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3b02505ccb8c50b0aa21ace0fc08c3e53adebd4e58caa18a36152803c7709a3" +checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30" dependencies = [ "libm", ] @@ -357,9 +357,9 @@ dependencies = [ [[package]] name = "equivalent" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "errno" @@ -373,9 +373,9 @@ dependencies = [ [[package]] name = "event-listener" -version = "5.3.1" +version = "5.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba" +checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" dependencies = [ "concurrent-queue", "parking", @@ -400,11 +400,11 @@ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "femtovg" -version = "0.11.2" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eafc3dd3c956423a6669e1f6f9ab23261dbe45cdb24ce23dba38b0389b8a8ff8" +checksum = "e9893dbf48a85e6d92e461d8417b883b647b01b1049c9068f30149a1e1d8e483" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "bytemuck", "fnv", "glow", @@ -537,8 +537,8 @@ dependencies = [ [[package]] name = "gdk-pixbuf" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "gdk-pixbuf-sys", "gio", @@ -548,8 +548,8 @@ dependencies = [ [[package]] name = "gdk-pixbuf-sys" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "gio-sys", "glib-sys", @@ -702,10 +702,22 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "wasm-bindgen", ] +[[package]] +name = "getrandom" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.13.3+wasi-0.2.2", + "windows-targets", +] + [[package]] name = "gif" version = "0.13.1" @@ -724,8 +736,8 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "gio" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "futures-channel", "futures-core", @@ -740,8 +752,8 @@ dependencies = [ [[package]] name = "gio-sys" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "glib-sys", "gobject-sys", @@ -784,15 +796,15 @@ checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d" dependencies = [ "khronos_api 3.1.0", "log", - "xml-rs 0.8.24", + "xml-rs 0.8.25", ] [[package]] name = "glib" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "futures-channel", "futures-core", "futures-executor", @@ -809,8 +821,8 @@ dependencies = [ [[package]] name = "glib-macros" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "heck", "proc-macro-crate", @@ -821,8 +833,8 @@ dependencies = [ [[package]] name = "glib-sys" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "libc", "system-deps", @@ -843,15 +855,15 @@ dependencies = [ [[package]] name = "glob" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" [[package]] name = "glow" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e33cd8ff5e02c1a5463ec10a846c8f3166a3ae0382ec33de6a327ea6dd61c41d" +checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08" dependencies = [ "js-sys", "slotmap", @@ -861,8 +873,8 @@ dependencies = [ [[package]] name = "gobject-sys" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "glib-sys", "libc", @@ -871,8 +883,8 @@ dependencies = [ [[package]] name = "graphene-rs" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "glib", "graphene-sys", @@ -881,8 +893,8 @@ dependencies = [ [[package]] name = "graphene-sys" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "glib-sys", "libc", @@ -949,7 +961,7 @@ dependencies = [ "gtk4", "proc-macro-crate", "proc-macro2", - "quick-xml 0.37.1", + "quick-xml", "quote", "syn", "trybuild2", @@ -1041,15 +1053,15 @@ dependencies = [ [[package]] name = "httparse" -version = "1.9.5" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" +checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a" [[package]] name = "hyper" -version = "1.5.2" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "256fb8d4bd6413123cc9d91832d78325c48ff41677595be797d90f42969beae0" +checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" dependencies = [ "bytes", "futures-channel", @@ -1066,9 +1078,9 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.3" +version = "0.27.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333" +checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" dependencies = [ "futures-util", "http", @@ -1298,9 +1310,9 @@ checksum = "d0263a3d970d5c054ed9312c0057b4f3bde9c0b33836d3637361d4a9e6e7a408" [[package]] name = "indexmap" -version = "2.7.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" +checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" dependencies = [ "equivalent", "hashbrown", @@ -1308,9 +1320,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.10.1" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" [[package]] name = "itoa" @@ -1320,9 +1332,9 @@ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" [[package]] name = "js-sys" -version = "0.3.76" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" dependencies = [ "once_cell", "wasm-bindgen", @@ -1357,9 +1369,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.168" +version = "0.2.169" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aaeb2981e0606ca11d79718f8bb01164f1d6ed75080182d3abf017e6d244b6d" +checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" [[package]] name = "libloading" @@ -1379,15 +1391,15 @@ checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" [[package]] name = "linux-raw-sys" -version = "0.4.14" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" [[package]] name = "litemap" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704" +checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" [[package]] name = "lock_api" @@ -1401,9 +1413,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.22" +version = "0.4.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" +checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" [[package]] name = "lru" @@ -1443,9 +1455,9 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniz_oxide" -version = "0.8.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ffbe83022cedc1d264172192511ae958937694cd57ce297164951b8b3568394" +checksum = "b3b1c9bd4fe1f0f8b387f6eb9eb3b4a1aa26185e5750efb9140301703f62cd1b" dependencies = [ "adler2", ] @@ -1457,7 +1469,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.52.0", ] @@ -1481,23 +1493,23 @@ dependencies = [ [[package]] name = "object" -version = "0.36.5" +version = "0.36.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.20.2" +version = "1.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" +checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" [[package]] name = "pango" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "gio", "glib", @@ -1507,8 +1519,8 @@ dependencies = [ [[package]] name = "pango-sys" -version = "0.20.8" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#96e4705cbfb7b4c4273cb46773349b5f4d1bdd73" +version = "0.20.9" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=0.20#052084edb141065138e407dd6e53471ad166413f" dependencies = [ "glib-sys", "gobject-sys", @@ -1553,9 +1565,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pin-project-lite" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "pin-utils" @@ -1589,27 +1601,18 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.92" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" +checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" dependencies = [ "unicode-ident", ] [[package]] name = "quick-xml" -version = "0.36.2" +version = "0.37.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7649a7b4df05aed9ea7ec6f628c67c9953a43869b8bc50929569b2999d443fe" -dependencies = [ - "memchr", -] - -[[package]] -name = "quick-xml" -version = "0.37.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f22f29bdff3987b4d8632ef95fd6424ec7e4e0a57e2f4fc63e489e75357f6a03" +checksum = "165859e9e55f79d67b96c5d96f4e88b6f2695a1972849c15a6a3f5c59fc2c003" dependencies = [ "memchr", ] @@ -1639,7 +1642,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" dependencies = [ "bytes", - "getrandom", + "getrandom 0.2.15", "rand", "ring", "rustc-hash", @@ -1654,9 +1657,9 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.9" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904" +checksum = "e46f3055866785f6b92bc6164b76be02ca8f2eb4b002c0354b28cf4c119e5944" dependencies = [ "cfg_aliases", "libc", @@ -1668,9 +1671,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" dependencies = [ "proc-macro2", ] @@ -1702,7 +1705,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom", + "getrandom 0.2.15", ] [[package]] @@ -1720,14 +1723,14 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", ] [[package]] name = "reqwest" -version = "0.12.9" +version = "0.12.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a77c62af46e79de0a562e1a9849205ffcb7fc1238876e9bd743357570e04046f" +checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da" dependencies = [ "base64", "bytes", @@ -1756,6 +1759,7 @@ dependencies = [ "sync_wrapper", "tokio", "tokio-rustls", + "tower", "tower-service", "url", "wasm-bindgen", @@ -1776,15 +1780,14 @@ dependencies = [ [[package]] name = "ring" -version = "0.17.8" +version = "0.17.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" +checksum = "e75ec5e92c4d8aede845126adc388046234541629e76029599ed35a003c7ed24" dependencies = [ "cc", "cfg-if", - "getrandom", + "getrandom 0.2.15", "libc", - "spin", "untrusted", "windows-sys 0.52.0", ] @@ -1797,9 +1800,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" [[package]] name = "rustc_version" @@ -1812,11 +1815,11 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.42" +version = "0.38.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93dc38ecbab2eb790ff964bb77fa94faf256fd3e73285fd7ba0903b76bedb85" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "errno", "libc", "linux-raw-sys", @@ -1825,9 +1828,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.19" +version = "0.23.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "934b404430bb06b3fae2cba809eb45a1ab1aecd64491213d7c3301b88393f8d1" +checksum = "47796c98c480fce5406ef69d1c76378375492c3b0a0de587be0c1d9feb12f395" dependencies = [ "once_cell", "ring", @@ -1848,9 +1851,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.10.1" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" +checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c" dependencies = [ "web-time", ] @@ -1866,13 +1869,19 @@ dependencies = [ "untrusted", ] +[[package]] +name = "rustversion" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" + [[package]] name = "rustybuzz" version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd3c7c96f8a08ee34eff8857b11b49b07d71d1c3f4e88f8a88d4c9e9f90b1702" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "bytemuck", "core_maths", "log", @@ -1886,9 +1895,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" +checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd" [[package]] name = "scoped-tls" @@ -1904,24 +1913,24 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "semver" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba" +checksum = "f79dfe2d285b0488816f30e700a7438c5a73d816b5b7d3ac72fbc48b0d185e03" [[package]] name = "serde" -version = "1.0.216" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.216" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" dependencies = [ "proc-macro2", "quote", @@ -1930,9 +1939,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.133" +version = "1.0.138" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" +checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949" dependencies = [ "itoa", "memchr", @@ -2022,9 +2031,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.13.2" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd" [[package]] name = "socket2" @@ -2036,12 +2045,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "spin" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" - [[package]] name = "stable_deref_trait" version = "1.2.0" @@ -2056,9 +2059,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" -version = "2.0.90" +version = "2.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" +checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" dependencies = [ "proc-macro2", "quote", @@ -2106,12 +2109,13 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tempfile" -version = "3.14.0" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" +checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91" dependencies = [ "cfg-if", "fastrand", + "getrandom 0.3.1", "once_cell", "rustix", "windows-sys 0.59.0", @@ -2128,18 +2132,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.8" +version = "2.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f5383f3e0071702bf93ab5ee99b52d26936be9dedd9413067cbdcddcb6141a" +checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "2.0.8" +version = "2.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f357fcec90b3caef6623a099691be676d033b40a058ac95d2a6ade6fa0c943" +checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2" dependencies = [ "proc-macro2", "quote", @@ -2158,9 +2162,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" +checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" dependencies = [ "tinyvec_macros", ] @@ -2173,9 +2177,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.42.0" +version = "1.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cec9b21b0450273377fc97bd4c33a8acffc8c996c987a7c5b319a0083707551" +checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" dependencies = [ "backtrace", "bytes", @@ -2191,9 +2195,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" dependencies = [ "proc-macro2", "quote", @@ -2212,9 +2216,9 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.19" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" +checksum = "cd87a5cdd6ffab733b2f74bc4fd7ee5fff6634124999ac278c35fc78c6120148" dependencies = [ "serde", "serde_spanned", @@ -2233,9 +2237,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.22.22" +version = "0.22.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" +checksum = "17b4795ff5edd201c7cd6dca065ae59972ce77d1b80fa0a84d94950ece7d1474" dependencies = [ "indexmap", "serde", @@ -2244,6 +2248,27 @@ dependencies = [ "winnow", ] +[[package]] +name = "tower" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + [[package]] name = "tower-service" version = "0.3.3" @@ -2325,9 +2350,9 @@ checksum = "ce61d488bcdc9bc8b5d1772c404828b17fc481c0a582b5581e95fb233aef503e" [[package]] name = "unicode-ident" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" +checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" [[package]] name = "unicode-properties" @@ -2403,22 +2428,32 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +[[package]] +name = "wasi" +version = "0.13.3+wasi-0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2" +dependencies = [ + "wit-bindgen-rt", +] + [[package]] name = "wasm-bindgen" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if", "once_cell", + "rustversion", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ "bumpalo", "log", @@ -2430,9 +2465,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.49" +version = "0.4.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38176d9b44ea84e9184eff0bc34cc167ed044f816accfe5922e54d84cf48eca2" +checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" dependencies = [ "cfg-if", "js-sys", @@ -2443,9 +2478,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2453,9 +2488,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", @@ -2466,15 +2501,18 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] [[package]] name = "wayland-backend" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "056535ced7a150d45159d3a8dc30f91a2e2d588ca0b23f70e56033622b8016f6" +checksum = "b7208998eaa3870dad37ec8836979581506e0c5c64c20c9e79e9d2a10d6f47bf" dependencies = [ "cc", "downcast-rs", @@ -2486,11 +2524,11 @@ dependencies = [ [[package]] name = "wayland-client" -version = "0.31.7" +version = "0.31.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b66249d3fc69f76fd74c82cc319300faa554e9d865dab1f7cd66cc20db10b280" +checksum = "c2120de3d33638aaef5b9f4472bff75f07c56379cf76ea320bd3a3d65ecaf73f" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "rustix", "wayland-backend", "wayland-scanner", @@ -2498,20 +2536,20 @@ dependencies = [ [[package]] name = "wayland-scanner" -version = "0.31.5" +version = "0.31.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "597f2001b2e5fc1121e3d5b9791d3e78f05ba6bfa4641053846248e3a13661c3" +checksum = "896fdafd5d28145fce7958917d69f2fd44469b1d4e861cb5961bcbeebc6d1484" dependencies = [ "proc-macro2", - "quick-xml 0.36.2", + "quick-xml", "quote", ] [[package]] name = "wayland-sys" -version = "0.31.5" +version = "0.31.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efa8ac0d8e8ed3e3b5c9fc92c7881406a268e11555abe36493efabe649a29e09" +checksum = "dbcebb399c77d5aa9fa5db874806ee7b4eba4e73650948e8f93963f128896615" dependencies = [ "dlib", "log", @@ -2520,9 +2558,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.76" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" +checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" dependencies = [ "js-sys", "wasm-bindgen", @@ -2540,9 +2578,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.26.7" +version = "0.26.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d642ff16b7e79272ae451b7322067cdc17cadf68c23264be9d94a32319efe7e" +checksum = "2210b291f7ea53617fbafcc4939f10914214ec15aace5ba62293a668f322c5c9" dependencies = [ "rustls-pki-types", ] @@ -2738,13 +2776,22 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.6.20" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" +checksum = "59690dea168f2198d1a3b0cac23b8063efcd11012f10ae4698f284808c8ef603" dependencies = [ "memchr", ] +[[package]] +name = "wit-bindgen-rt" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" +dependencies = [ + "bitflags 2.8.0", +] + [[package]] name = "write16" version = "1.0.0" @@ -2778,15 +2825,15 @@ dependencies = [ [[package]] name = "xml-rs" -version = "0.8.24" +version = "0.8.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea8b391c9a790b496184c29f7f93b9ed5b16abb306c05415b68bcc16e4d06432" +checksum = "c5b940ebc25896e71dd073bad2dbaa2abfe97b0a391415e22ad1326d9c54e3c4" [[package]] name = "yoke" -version = "0.7.4" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" dependencies = [ "serde", "stable_deref_trait", @@ -2829,18 +2876,18 @@ dependencies = [ [[package]] name = "zerofrom" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" +checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" dependencies = [ "zerofrom-derive", ] [[package]] name = "zerofrom-derive" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" dependencies = [ "proc-macro2", "quote", diff --git a/book/src/todo_4.md b/book/src/todo_4.md index efd9a4240bb3..c370a96a7961 100644 --- a/book/src/todo_4.md +++ b/book/src/todo_4.md @@ -65,7 +65,7 @@ The adaptive behavior of the leaflet allows the To-Do app to work on smaller scr
diff --git a/deny.toml b/deny.toml index 02a3bf5f1f46..daa87bd60eeb 100644 --- a/deny.toml +++ b/deny.toml @@ -32,7 +32,3 @@ unknown-git = "deny" allow-git = [ "https://github.com/gtk-rs/gtk-rs-core", ] - -[[bans.skip]] -name = "quick-xml" -version = "0.36.0" diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 4424efeb8f02..fe04d76fe0b2 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -7,9 +7,9 @@ authors.workspace = true [dependencies] chrono = "0.4" -femtovg = { version = "0.11", optional = true, default-features = false } +femtovg = { version = "0.13", optional = true, default-features = false } glium = { version = "0.36", optional = true, default-features = false } -glow = { version = "0.15.0", optional = true } +glow = { version = "0.16.0", optional = true } epoxy = { version = "0.1.0", optional = true } libloading = { version = "0.8.0", optional = true } im-rc = { version = "15", optional = true } diff --git a/gdk4-macos/src/auto/versions.txt b/gdk4-macos/src/auto/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4-macos/src/auto/versions.txt +++ b/gdk4-macos/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gdk4-macos/sys/versions.txt b/gdk4-macos/sys/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4-macos/sys/versions.txt +++ b/gdk4-macos/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gdk4-wayland/Cargo.toml b/gdk4-wayland/Cargo.toml index 36469d6476e5..0f0d940ddf89 100644 --- a/gdk4-wayland/Cargo.toml +++ b/gdk4-wayland/Cargo.toml @@ -18,6 +18,7 @@ v4_4 = ["gdk4-wayland-sys/v4_4", "gdk/v4_4"] v4_10 = ["gdk4-wayland-sys/v4_10", "v4_4", "gdk/v4_10"] v4_12 = ["gdk4-wayland-sys/v4_12", "v4_10", "gdk/v4_12"] v4_16 = ["gdk4-wayland-sys/v4_16", "v4_12", "gdk/v4_16"] +v4_18 = ["gdk4-wayland-sys/v4_18", "v4_16", "gdk/v4_18"] wayland_crate = ["wayland-client", "wayland-backend"] egl = ["khronos-egl"] diff --git a/gdk4-wayland/README.md b/gdk4-wayland/README.md index c7950a5a9738..03052c13d6f6 100644 --- a/gdk4-wayland/README.md +++ b/gdk4-wayland/README.md @@ -43,6 +43,7 @@ gdk-wayland = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gdk4-w | Feature | Description | | --- | ----------- | +| `v4_18` | Enable the new APIs part of GTK 4.18 | | `v4_16` | Enable the new APIs part of GTK 4.16 | | `v4_12` | Enable the new APIs part of GTK 4.12 | | `v4_10` | Enable the new APIs part of GTK 4.10 | diff --git a/gdk4-wayland/src/auto/mod.rs b/gdk4-wayland/src/auto/mod.rs index 10030036da0e..5d000dc22f19 100644 --- a/gdk4-wayland/src/auto/mod.rs +++ b/gdk4-wayland/src/auto/mod.rs @@ -25,3 +25,7 @@ pub use self::wayland_surface::WaylandSurface; mod wayland_toplevel; pub use self::wayland_toplevel::WaylandToplevel; + +pub(crate) mod traits { + pub use super::wayland_surface::WaylandSurfaceExt; +} diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4-wayland/src/auto/versions.txt +++ b/gdk4-wayland/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gdk4-wayland/src/auto/wayland_surface.rs b/gdk4-wayland/src/auto/wayland_surface.rs index 03b135d90dc1..03f89d696755 100644 --- a/gdk4-wayland/src/auto/wayland_surface.rs +++ b/gdk4-wayland/src/auto/wayland_surface.rs @@ -3,6 +3,10 @@ // DO NOT EDIT use crate::ffi; +use glib::prelude::*; +#[cfg(feature = "v4_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] +use glib::translate::*; glib::wrapper! { #[doc(alias = "GdkWaylandSurface")] @@ -16,3 +20,21 @@ glib::wrapper! { impl WaylandSurface { pub const NONE: Option<&'static WaylandSurface> = None; } + +mod sealed { + pub trait Sealed {} + impl> Sealed for T {} +} + +pub trait WaylandSurfaceExt: IsA + sealed::Sealed + 'static { + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gdk_wayland_surface_force_next_commit")] + fn force_next_commit(&self) { + unsafe { + ffi::gdk_wayland_surface_force_next_commit(self.as_ref().to_glib_none().0); + } + } +} + +impl> WaylandSurfaceExt for O {} diff --git a/gdk4-wayland/src/prelude.rs b/gdk4-wayland/src/prelude.rs index bcd5b61752b8..52ccd361e8b3 100644 --- a/gdk4-wayland/src/prelude.rs +++ b/gdk4-wayland/src/prelude.rs @@ -6,4 +6,5 @@ #[doc(hidden)] pub use gdk::prelude::*; +pub use crate::auto::traits::*; pub use crate::wayland_surface::WaylandSurfaceExtManual; diff --git a/gdk4-wayland/sys/Cargo.toml b/gdk4-wayland/sys/Cargo.toml index 57dc2fb0d069..9bc8c2ea6700 100644 --- a/gdk4-wayland/sys/Cargo.toml +++ b/gdk4-wayland/sys/Cargo.toml @@ -45,6 +45,9 @@ version = "4.12" [package.metadata.system-deps.gtk4_wayland.v4_16] version = "4.16" +[package.metadata.system-deps.gtk4_wayland.v4_18] +version = "4.17" + [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] @@ -58,6 +61,7 @@ v4_4 = [] v4_10 = ["v4_4"] v4_12 = ["v4_10"] v4_16 = ["v4_12"] +v4_18 = ["v4_16"] [dependencies] libc = "0.2" diff --git a/gdk4-wayland/sys/src/lib.rs b/gdk4-wayland/sys/src/lib.rs index 85ec95b315ed..521b3fe040c7 100644 --- a/gdk4-wayland/sys/src/lib.rs +++ b/gdk4-wayland/sys/src/lib.rs @@ -255,6 +255,9 @@ extern "C" { // GdkWaylandSurface //========================================================================= pub fn gdk_wayland_surface_get_type() -> GType; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gdk_wayland_surface_force_next_commit(surface: *mut GdkWaylandSurface); pub fn gdk_wayland_surface_get_wl_surface(surface: *mut GdkWaylandSurface) -> gpointer; //========================================================================= diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4-wayland/sys/versions.txt +++ b/gdk4-wayland/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4-win32/src/auto/versions.txt +++ b/gdk4-win32/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4-win32/sys/versions.txt +++ b/gdk4-win32/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gdk4-x11/Cargo.toml b/gdk4-x11/Cargo.toml index db4ef21be2d4..42d77ff9f4d6 100644 --- a/gdk4-x11/Cargo.toml +++ b/gdk4-x11/Cargo.toml @@ -17,6 +17,7 @@ version.workspace = true v4_4 = ["gdk4-x11-sys/v4_4", "gdk/v4_4"] v4_10 = ["gdk4-x11-sys/v4_10", "v4_4", "gdk/v4_10"] v4_16 = ["gdk4-x11-sys/v4_16", "v4_10", "gdk/v4_16"] +v4_18 = ["gdk4-x11-sys/v4_18", "v4_16", "gdk/v4_18"] egl = ["khronos-egl"] xlib = ["x11"] diff --git a/gdk4-x11/README.md b/gdk4-x11/README.md index 1611d7d99bba..157fd79231b6 100644 --- a/gdk4-x11/README.md +++ b/gdk4-x11/README.md @@ -43,6 +43,7 @@ gdk-wayland = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gdk4-w | Feature | Description | | --- | ----------- | +| `v4_18` | Enable the new APIs part of GTK 4.18 | | `v4_16` | Enable the new APIs part of GTK 4.16 | | `v4_10` | Enable the new APIs part of GTK 4.10 | | `v4_4` | Enable the new APIs part of GTK 4.4 | diff --git a/gdk4-x11/src/auto/functions.rs b/gdk4-x11/src/auto/functions.rs index 2b3a94fbd057..64412ffd7e83 100644 --- a/gdk4-x11/src/auto/functions.rs +++ b/gdk4-x11/src/auto/functions.rs @@ -5,12 +5,16 @@ use crate::{ffi, X11DeviceManagerXI2, X11DeviceXI2, X11Surface}; use glib::translate::*; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] +#[allow(deprecated)] #[doc(alias = "gdk_x11_device_get_id")] pub fn x11_device_get_id(device: &X11DeviceXI2) -> i32 { skip_assert_initialized!(); unsafe { ffi::gdk_x11_device_get_id(device.to_glib_none().0) } } +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] +#[allow(deprecated)] #[doc(alias = "gdk_x11_device_manager_lookup")] pub fn x11_device_manager_lookup( device_manager: &X11DeviceManagerXI2, @@ -25,6 +29,8 @@ pub fn x11_device_manager_lookup( } } +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] +#[allow(deprecated)] #[doc(alias = "gdk_x11_get_server_time")] pub fn x11_get_server_time(surface: &X11Surface) -> u32 { skip_assert_initialized!(); diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4-x11/src/auto/versions.txt +++ b/gdk4-x11/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gdk4-x11/src/auto/x11_display.rs b/gdk4-x11/src/auto/x11_display.rs index 3992a22255e2..8244e1a7ef42 100644 --- a/gdk4-x11/src/auto/x11_display.rs +++ b/gdk4-x11/src/auto/x11_display.rs @@ -50,8 +50,10 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[cfg(feature = "v4_4")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_get_egl_version")] #[doc(alias = "get_egl_version")] pub fn egl_version(&self) -> Option<(i32, i32)> { @@ -71,6 +73,8 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_get_glx_version")] #[doc(alias = "get_glx_version")] pub fn glx_version(&self) -> Option<(i32, i32)> { @@ -163,6 +167,8 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_string_to_compound_text")] pub fn string_to_compound_text(&self, str: &str) -> (i32, glib::GString, i32, Vec) { unsafe { @@ -194,6 +200,8 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_utf8_to_compound_text")] pub fn utf8_to_compound_text(&self, str: &str) -> Option<(glib::GString, i32, Vec)> { unsafe { @@ -221,6 +229,8 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_open")] pub fn open(display_name: Option<&str>) -> Option { assert_initialized_main_thread!(); diff --git a/gdk4-x11/src/auto/x11_monitor.rs b/gdk4-x11/src/auto/x11_monitor.rs index 910a28a03bca..60b6248fef81 100644 --- a/gdk4-x11/src/auto/x11_monitor.rs +++ b/gdk4-x11/src/auto/x11_monitor.rs @@ -1,6 +1,7 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT +#![allow(deprecated)] use crate::ffi; use glib::translate::*; @@ -15,6 +16,8 @@ glib::wrapper! { } impl X11Monitor { + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_monitor_get_workarea")] #[doc(alias = "get_workarea")] pub fn workarea(&self) -> gdk::Rectangle { diff --git a/gdk4-x11/src/auto/x11_screen.rs b/gdk4-x11/src/auto/x11_screen.rs index 85fec0dd5422..9ad70b69f65b 100644 --- a/gdk4-x11/src/auto/x11_screen.rs +++ b/gdk4-x11/src/auto/x11_screen.rs @@ -1,9 +1,11 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT +#![allow(deprecated)] use crate::ffi; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -20,24 +22,32 @@ glib::wrapper! { } impl X11Screen { + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_get_current_desktop")] #[doc(alias = "get_current_desktop")] pub fn current_desktop(&self) -> u32 { unsafe { ffi::gdk_x11_screen_get_current_desktop(self.to_glib_none().0) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_get_number_of_desktops")] #[doc(alias = "get_number_of_desktops")] pub fn number_of_desktops(&self) -> u32 { unsafe { ffi::gdk_x11_screen_get_number_of_desktops(self.to_glib_none().0) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_get_screen_number")] #[doc(alias = "get_screen_number")] pub fn screen_number(&self) -> i32 { unsafe { ffi::gdk_x11_screen_get_screen_number(self.to_glib_none().0) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_get_window_manager_name")] #[doc(alias = "get_window_manager_name")] pub fn window_manager_name(&self) -> glib::GString { @@ -48,6 +58,8 @@ impl X11Screen { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_supports_net_wm_hint")] pub fn supports_net_wm_hint(&self, property_name: &str) -> bool { unsafe { diff --git a/gdk4-x11/src/auto/x11_surface.rs b/gdk4-x11/src/auto/x11_surface.rs index dff4cace4bea..d9071e8cf3ca 100644 --- a/gdk4-x11/src/auto/x11_surface.rs +++ b/gdk4-x11/src/auto/x11_surface.rs @@ -1,6 +1,7 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT +#![allow(deprecated)] use crate::ffi; use glib::{prelude::*, translate::*}; @@ -15,18 +16,24 @@ glib::wrapper! { } impl X11Surface { + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_get_desktop")] #[doc(alias = "get_desktop")] pub fn desktop(&self) -> u32 { unsafe { ffi::gdk_x11_surface_get_desktop(self.to_glib_none().0) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_get_group")] #[doc(alias = "get_group")] pub fn group(&self) -> Option { unsafe { from_glib_none(ffi::gdk_x11_surface_get_group(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_move_to_current_desktop")] pub fn move_to_current_desktop(&self) { unsafe { @@ -34,6 +41,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_move_to_desktop")] pub fn move_to_desktop(&self, desktop: u32) { unsafe { @@ -41,6 +50,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_frame_sync_enabled")] pub fn set_frame_sync_enabled(&self, frame_sync_enabled: bool) { unsafe { @@ -51,6 +62,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_group")] pub fn set_group(&self, leader: &impl IsA) { unsafe { @@ -58,6 +71,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_skip_pager_hint")] pub fn set_skip_pager_hint(&self, skips_pager: bool) { unsafe { @@ -68,6 +83,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_skip_taskbar_hint")] pub fn set_skip_taskbar_hint(&self, skips_taskbar: bool) { unsafe { @@ -78,6 +95,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_theme_variant")] pub fn set_theme_variant(&self, variant: &str) { unsafe { @@ -85,6 +104,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_urgency_hint")] pub fn set_urgency_hint(&self, urgent: bool) { unsafe { @@ -92,6 +113,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_user_time")] pub fn set_user_time(&self, timestamp: u32) { unsafe { @@ -99,6 +122,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_utf8_property")] pub fn set_utf8_property(&self, name: &str, value: Option<&str>) { unsafe { diff --git a/gdk4-x11/sys/Cargo.toml b/gdk4-x11/sys/Cargo.toml index 2a46fbf705c1..b9708ba3f58b 100644 --- a/gdk4-x11/sys/Cargo.toml +++ b/gdk4-x11/sys/Cargo.toml @@ -42,6 +42,9 @@ version = "4.10" [package.metadata.system-deps.gtk4_x11.v4_16] version = "4.16" +[package.metadata.system-deps.gtk4_x11.v4_18] +version = "4.17" + [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] @@ -54,6 +57,7 @@ name = "gdk4_x11_sys" v4_4 = [] v4_10 = ["v4_4"] v4_16 = ["v4_10"] +v4_18 = ["v4_16"] [dependencies] libc = "0.2" diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4-x11/sys/versions.txt +++ b/gdk4-x11/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gdk4/src/auto/clipboard.rs b/gdk4/src/auto/clipboard.rs index 91fe1874e7be..9949e0b447ae 100644 --- a/gdk4/src/auto/clipboard.rs +++ b/gdk4/src/auto/clipboard.rs @@ -4,6 +4,7 @@ use crate::{ffi, ContentFormats, ContentProvider, Display, Texture}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/content_provider.rs b/gdk4/src/auto/content_provider.rs index 15b6ddac6f32..36c76eb83e7a 100644 --- a/gdk4/src/auto/content_provider.rs +++ b/gdk4/src/auto/content_provider.rs @@ -4,6 +4,7 @@ use crate::{ffi, ContentFormats}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/device.rs b/gdk4/src/auto/device.rs index 801af520cf5d..6fc0f1aaba0a 100644 --- a/gdk4/src/auto/device.rs +++ b/gdk4/src/auto/device.rs @@ -4,6 +4,7 @@ use crate::{ffi, DeviceTool, Display, InputSource, ModifierType, Seat, Surface}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -36,6 +37,15 @@ mod sealed { } pub trait DeviceExt: IsA + sealed::Sealed + 'static { + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gdk_device_get_active_layout_index")] + #[doc(alias = "get_active_layout_index")] + #[doc(alias = "active-layout-index")] + fn active_layout_index(&self) -> i32 { + unsafe { ffi::gdk_device_get_active_layout_index(self.as_ref().to_glib_none().0) } + } + #[doc(alias = "gdk_device_get_caps_lock_state")] #[doc(alias = "get_caps_lock_state")] #[doc(alias = "caps-lock-state")] @@ -85,6 +95,19 @@ pub trait DeviceExt: IsA + sealed::Sealed + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gdk_device_get_layout_names")] + #[doc(alias = "get_layout_names")] + #[doc(alias = "layout-names")] + fn layout_names(&self) -> Vec { + unsafe { + FromGlibPtrContainer::from_glib_full(ffi::gdk_device_get_layout_names( + self.as_ref().to_glib_none().0, + )) + } + } + #[doc(alias = "gdk_device_get_modifier_state")] #[doc(alias = "get_modifier_state")] #[doc(alias = "modifier-state")] @@ -258,6 +281,34 @@ pub trait DeviceExt: IsA + sealed::Sealed + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "active-layout-index")] + fn connect_active_layout_index_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_active_layout_index_trampoline< + P: IsA, + F: Fn(&P) + 'static, + >( + this: *mut ffi::GdkDevice, + _param_spec: glib::ffi::gpointer, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f(Device::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"notify::active-layout-index\0".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( + notify_active_layout_index_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + #[doc(alias = "caps-lock-state")] fn connect_caps_lock_state_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_caps_lock_state_trampoline< @@ -333,6 +384,31 @@ pub trait DeviceExt: IsA + sealed::Sealed + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "layout-names")] + fn connect_layout_names_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_layout_names_trampoline, F: Fn(&P) + 'static>( + this: *mut ffi::GdkDevice, + _param_spec: glib::ffi::gpointer, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f(Device::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"notify::layout-names\0".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( + notify_layout_names_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + #[doc(alias = "modifier-state")] fn connect_modifier_state_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_modifier_state_trampoline< diff --git a/gdk4/src/auto/display.rs b/gdk4/src/auto/display.rs index 7cbc73e3ff92..e8fd56f8a4b4 100644 --- a/gdk4/src/auto/display.rs +++ b/gdk4/src/auto/display.rs @@ -11,6 +11,7 @@ use crate::DmabufFormats; use crate::GLContext; use crate::{ffi, AppLaunchContext, Clipboard, Device, Event, Monitor, Seat, Surface}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/display_manager.rs b/gdk4/src/auto/display_manager.rs index b059894cd767..191dca89f5e9 100644 --- a/gdk4/src/auto/display_manager.rs +++ b/gdk4/src/auto/display_manager.rs @@ -4,6 +4,7 @@ use crate::{ffi, Display}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/drag.rs b/gdk4/src/auto/drag.rs index 5a56e9f51678..946f23dcf9b2 100644 --- a/gdk4/src/auto/drag.rs +++ b/gdk4/src/auto/drag.rs @@ -6,6 +6,7 @@ use crate::{ ffi, ContentFormats, ContentProvider, Device, Display, DragAction, DragCancelReason, Surface, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/frame_clock.rs b/gdk4/src/auto/frame_clock.rs index 774c61a9ee2a..d2cab092dd80 100644 --- a/gdk4/src/auto/frame_clock.rs +++ b/gdk4/src/auto/frame_clock.rs @@ -4,6 +4,7 @@ use crate::{ffi, FrameClockPhase, FrameTimings}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/monitor.rs b/gdk4/src/auto/monitor.rs index f25a2e562498..4d1420f26ced 100644 --- a/gdk4/src/auto/monitor.rs +++ b/gdk4/src/auto/monitor.rs @@ -4,6 +4,7 @@ use crate::{ffi, Display, Rectangle, SubpixelLayout}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/paintable.rs b/gdk4/src/auto/paintable.rs index e36d2fc7ef24..c8613ab8a1e7 100644 --- a/gdk4/src/auto/paintable.rs +++ b/gdk4/src/auto/paintable.rs @@ -4,6 +4,7 @@ use crate::{ffi, PaintableFlags, Snapshot}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/seat.rs b/gdk4/src/auto/seat.rs index eb55df9ec4b7..e6e2bbbb322a 100644 --- a/gdk4/src/auto/seat.rs +++ b/gdk4/src/auto/seat.rs @@ -4,6 +4,7 @@ use crate::{ffi, Device, DeviceTool, Display, SeatCapabilities}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/surface.rs b/gdk4/src/auto/surface.rs index e383b3e86bc2..3f02b765e94c 100644 --- a/gdk4/src/auto/surface.rs +++ b/gdk4/src/auto/surface.rs @@ -8,6 +8,7 @@ use crate::{ Monitor, VulkanContext, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4/src/auto/versions.txt +++ b/gdk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gdk4/src/auto/vulkan_context.rs b/gdk4/src/auto/vulkan_context.rs index 9beacf914a87..90e249789cc7 100644 --- a/gdk4/src/auto/vulkan_context.rs +++ b/gdk4/src/auto/vulkan_context.rs @@ -4,6 +4,7 @@ use crate::{ffi, DrawContext}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/lib.rs b/gdk4/src/lib.rs index 4624cf65419e..4ce8a188e219 100644 --- a/gdk4/src/lib.rs +++ b/gdk4/src/lib.rs @@ -2,6 +2,7 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![allow(deprecated)] +#![allow(clippy::manual_c_str_literals)] #![doc = include_str!("../README.md")] pub use cairo; @@ -53,6 +54,7 @@ macro_rules! skip_assert_initialized { #[allow(clippy::derived_hash_with_manual_eq)] #[allow(clippy::type_complexity)] +#[allow(unused_imports)] mod auto; #[macro_use] diff --git a/gdk4/sys/src/lib.rs b/gdk4/sys/src/lib.rs index 030cac15fd2b..d4016ffab4fc 100644 --- a/gdk4/sys/src/lib.rs +++ b/gdk4/sys/src/lib.rs @@ -4750,11 +4750,17 @@ extern "C" { // GdkDevice //========================================================================= pub fn gdk_device_get_type() -> GType; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gdk_device_get_active_layout_index(device: *mut GdkDevice) -> c_int; pub fn gdk_device_get_caps_lock_state(device: *mut GdkDevice) -> gboolean; pub fn gdk_device_get_device_tool(device: *mut GdkDevice) -> *mut GdkDeviceTool; pub fn gdk_device_get_direction(device: *mut GdkDevice) -> pango::PangoDirection; pub fn gdk_device_get_display(device: *mut GdkDevice) -> *mut GdkDisplay; pub fn gdk_device_get_has_cursor(device: *mut GdkDevice) -> gboolean; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gdk_device_get_layout_names(device: *mut GdkDevice) -> *mut *mut c_char; pub fn gdk_device_get_modifier_state(device: *mut GdkDevice) -> GdkModifierType; pub fn gdk_device_get_name(device: *mut GdkDevice) -> *const c_char; pub fn gdk_device_get_num_lock_state(device: *mut GdkDevice) -> gboolean; diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gir b/gir index e06125dad46a..2b05eaddce95 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit e06125dad46a08379ad5c1f20c6fb566c68fc657 +Subproject commit 2b05eaddce95ba2ef7cf123e2aa95f8c7feafd77 diff --git a/gir-files b/gir-files index 01066bc7d926..5089b7ff80cd 160000 --- a/gir-files +++ b/gir-files @@ -1 +1 @@ -Subproject commit 01066bc7d926da07306225c810f13ca42cfcf0b6 +Subproject commit 5089b7ff80cd84874a6eb3fd30350e64158a5050 diff --git a/gsk4/Cargo.toml b/gsk4/Cargo.toml index af435436e5a4..6fae91e71f3a 100644 --- a/gsk4/Cargo.toml +++ b/gsk4/Cargo.toml @@ -23,8 +23,9 @@ v4_2 = ["gsk4-sys/v4_2", "gdk/v4_2"] v4_4 = ["gsk4-sys/v4_4", "gdk/v4_4", "v4_2"] v4_6 = ["gsk4-sys/v4_6", "gdk/v4_6", "v4_4"] v4_10 = ["gsk4-sys/v4_10", "gdk/v4_10", "v4_6"] -v4_14 = ["gsk4-sys/v4_14", "v4_10"] -v4_16 = ["gsk4-sys/v4_16", "v4_14"] +v4_14 = ["gsk4-sys/v4_14", "gdk/v4_14", "v4_10"] +v4_16 = ["gsk4-sys/v4_16", "gdk/v4_16", "v4_14"] +v4_18 = ["gsk4-sys/v4_18", "gdk/v4_18", "v4_16"] [dependencies] gsk4-sys.workspace = true diff --git a/gsk4/README.md b/gsk4/README.md index b29cea1fc617..5fca394637a2 100644 --- a/gsk4/README.md +++ b/gsk4/README.md @@ -45,6 +45,8 @@ gsk = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gsk4" } | --- | ----------- | | `vulkan` | Enable `vulkan` Renderer. Only if GTK is compiled with Vulkan support | | `broadway` | Enable `broadway` Renderer. Only if GTK is compiled with Broadway support | +| `v4_18` | Enable the new APIs part of GTK 4.18 | +| `v4_16` | Enable the new APIs part of GTK 4.16 | | `v4_14` | Enable the new APIs part of GTK 4.14 | | `v4_10` | Enable the new APIs part of GTK 4.10 | | `v4_6` | Enable the new APIs part of GTK 4.6 | diff --git a/gsk4/src/auto/gl_renderer.rs b/gsk4/src/auto/gl_renderer.rs index 42bbe75bfb39..deed4d33f228 100644 --- a/gsk4/src/auto/gl_renderer.rs +++ b/gsk4/src/auto/gl_renderer.rs @@ -22,8 +22,6 @@ impl GLRenderer { } } -#[cfg(feature = "v4_2")] -#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] impl Default for GLRenderer { fn default() -> Self { Self::new() diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gsk4/src/auto/versions.txt +++ b/gsk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gsk4/src/lib.rs b/gsk4/src/lib.rs index 296e9aa97286..01f5e06081d0 100644 --- a/gsk4/src/lib.rs +++ b/gsk4/src/lib.rs @@ -2,6 +2,7 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![allow(deprecated)] +#![allow(clippy::manual_c_str_literals)] #![doc = include_str!("../README.md")] pub use cairo; diff --git a/gsk4/sys/Cargo.toml b/gsk4/sys/Cargo.toml index bf064cb9ad5d..4c5b1216a965 100644 --- a/gsk4/sys/Cargo.toml +++ b/gsk4/sys/Cargo.toml @@ -51,6 +51,9 @@ version = "4.14" [package.metadata.system-deps.gtk4.v4_16] version = "4.16" +[package.metadata.system-deps.gtk4.v4_18] +version = "4.17" + [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] @@ -68,6 +71,7 @@ vulkan = [] broadway = [] v4_14 = ["v4_10"] v4_16 = ["v4_14"] +v4_18 = ["v4_16"] [dependencies] libc = "0.2" diff --git a/gsk4/sys/src/lib.rs b/gsk4/sys/src/lib.rs index 2d2cfb1d8ad7..abc9efc0118e 100644 --- a/gsk4/sys/src/lib.rs +++ b/gsk4/sys/src/lib.rs @@ -1751,7 +1751,7 @@ extern "C" { border_width: *const [c_float; 4], border_color: *const [gdk::GdkRGBA; 4], ) -> *mut GskBorderNode; - pub fn gsk_border_node_get_colors(node: *const GskBorderNode) -> *const gdk::GdkRGBA; + pub fn gsk_border_node_get_colors(node: *const GskBorderNode) -> *const [gdk::GdkRGBA; 4]; pub fn gsk_border_node_get_outline(node: *const GskBorderNode) -> *const GskRoundedRect; pub fn gsk_border_node_get_widths(node: *const GskBorderNode) -> *const [c_float; 4]; @@ -2066,11 +2066,7 @@ extern "C" { //========================================================================= // GskNglRenderer //========================================================================= - #[cfg(feature = "v4_2")] - #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gsk_ngl_renderer_get_type() -> GType; - #[cfg(feature = "v4_2")] - #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gsk_ngl_renderer_new() -> *mut GskRenderer; //========================================================================= diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gtk4/Gir.toml b/gtk4/Gir.toml index 3b12c59666eb..f84ce348d804 100644 --- a/gtk4/Gir.toml +++ b/gtk4/Gir.toml @@ -2080,9 +2080,6 @@ name = "Gtk.Snapshot" status = "generate" final_type = false manual_traits = ["SnapshotExtManual"] - [[object.function]] - pattern = "free_to_(node|paintable)" - ignore = true # C convenience functions [[object.function]] name = "append_border" manual = true @@ -2090,10 +2087,14 @@ manual_traits = ["SnapshotExtManual"] name = "push_debug" manual = true # ignore format args [[object.function]] + pattern = "free_to_node" + rename = "to_node" + [[object.function]] + pattern = "free_to_paintable" + rename = "to_paintable" + [[object.function]] pattern = "to_(node|paintable)" - [[object.function.parameter]] - name = "snapshot" - move = true + ignore = true [[object]] name = "Gtk.SortListModel" diff --git a/gtk4/src/auto/about_dialog.rs b/gtk4/src/auto/about_dialog.rs index fcdc48b3ca77..e84e7ccc6743 100644 --- a/gtk4/src/auto/about_dialog.rs +++ b/gtk4/src/auto/about_dialog.rs @@ -7,6 +7,7 @@ use crate::{ LayoutManager, License, Native, Overflow, Root, ShortcutManager, Widget, Window, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -1104,6 +1105,14 @@ impl AboutDialogBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/accessible.rs b/gtk4/src/auto/accessible.rs index f2c4bd93f1f0..c556eb228dc3 100644 --- a/gtk4/src/auto/accessible.rs +++ b/gtk4/src/auto/accessible.rs @@ -209,6 +209,18 @@ pub trait AccessibleExt: IsA + sealed::Sealed + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gtk_accessible_update_platform_state")] + fn update_platform_state(&self, state: AccessiblePlatformState) { + unsafe { + ffi::gtk_accessible_update_platform_state( + self.as_ref().to_glib_none().0, + state.into_glib(), + ); + } + } + #[doc(alias = "accessible-role")] fn set_accessible_role(&self, accessible_role: AccessibleRole) { ObjectExt::set_property(self.as_ref(), "accessible-role", accessible_role) diff --git a/gtk4/src/auto/action_bar.rs b/gtk4/src/auto/action_bar.rs index d9d1d0d99054..4b395affc9df 100644 --- a/gtk4/src/auto/action_bar.rs +++ b/gtk4/src/auto/action_bar.rs @@ -221,6 +221,14 @@ impl ActionBarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/adjustment.rs b/gtk4/src/auto/adjustment.rs index 3a8fecdcb3aa..08020a233cc8 100644 --- a/gtk4/src/auto/adjustment.rs +++ b/gtk4/src/auto/adjustment.rs @@ -4,6 +4,7 @@ use crate::ffi; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/app_chooser_button.rs b/gtk4/src/auto/app_chooser_button.rs index 357a937aacbe..72d63c0308bd 100644 --- a/gtk4/src/auto/app_chooser_button.rs +++ b/gtk4/src/auto/app_chooser_button.rs @@ -8,6 +8,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -493,6 +494,14 @@ impl AppChooserButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/app_chooser_widget.rs b/gtk4/src/auto/app_chooser_widget.rs index 9aea93dbb953..7be5e9782a78 100644 --- a/gtk4/src/auto/app_chooser_widget.rs +++ b/gtk4/src/auto/app_chooser_widget.rs @@ -8,6 +8,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -530,6 +531,14 @@ impl AppChooserWidgetBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/application.rs b/gtk4/src/auto/application.rs index 2e4b80077610..e58a119d62ea 100644 --- a/gtk4/src/auto/application.rs +++ b/gtk4/src/auto/application.rs @@ -4,6 +4,7 @@ use crate::{ffi, ApplicationInhibitFlags, Window}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/application_window.rs b/gtk4/src/auto/application_window.rs index ea36e5e320cd..443ee69edcb5 100644 --- a/gtk4/src/auto/application_window.rs +++ b/gtk4/src/auto/application_window.rs @@ -1,6 +1,7 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT +#![allow(deprecated)] use crate::{ ffi, Accessible, AccessibleRole, Align, Application, Buildable, ConstraintTarget, @@ -309,6 +310,14 @@ impl ApplicationWindowBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), @@ -428,6 +437,8 @@ mod sealed { } pub trait ApplicationWindowExt: IsA + sealed::Sealed + 'static { + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gtk_application_window_get_help_overlay")] #[doc(alias = "get_help_overlay")] fn help_overlay(&self) -> Option { @@ -455,6 +466,8 @@ pub trait ApplicationWindowExt: IsA + sealed::Sealed + 'stati } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gtk_application_window_set_help_overlay")] fn set_help_overlay(&self, help_overlay: Option<&ShortcutsWindow>) { unsafe { diff --git a/gtk4/src/auto/aspect_frame.rs b/gtk4/src/auto/aspect_frame.rs index bbf8c91fa25b..c04464eca63a 100644 --- a/gtk4/src/auto/aspect_frame.rs +++ b/gtk4/src/auto/aspect_frame.rs @@ -367,6 +367,14 @@ impl AspectFrameBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/assistant.rs b/gtk4/src/auto/assistant.rs index 9323ff2d84c1..af59c95706ca 100644 --- a/gtk4/src/auto/assistant.rs +++ b/gtk4/src/auto/assistant.rs @@ -9,6 +9,7 @@ use crate::{ Window, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -722,6 +723,14 @@ impl AssistantBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/at_context.rs b/gtk4/src/auto/at_context.rs index 34e79926e6f4..f33d137bfdcb 100644 --- a/gtk4/src/auto/at_context.rs +++ b/gtk4/src/auto/at_context.rs @@ -4,6 +4,7 @@ use crate::{ffi, Accessible, AccessibleRole}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/box_.rs b/gtk4/src/auto/box_.rs index 6e5cbe4280dc..3fe00b168252 100644 --- a/gtk4/src/auto/box_.rs +++ b/gtk4/src/auto/box_.rs @@ -172,6 +172,14 @@ impl BoxBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/button.rs b/gtk4/src/auto/button.rs index 54e36c3f5c6e..119b27160b99 100644 --- a/gtk4/src/auto/button.rs +++ b/gtk4/src/auto/button.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -212,6 +213,14 @@ impl ButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/calendar.rs b/gtk4/src/auto/calendar.rs index e7d5da2bd56a..50edf6f88326 100644 --- a/gtk4/src/auto/calendar.rs +++ b/gtk4/src/auto/calendar.rs @@ -7,6 +7,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -577,6 +578,14 @@ impl CalendarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/cell_area.rs b/gtk4/src/auto/cell_area.rs index 5286056b4bc7..796017cb00b0 100644 --- a/gtk4/src/auto/cell_area.rs +++ b/gtk4/src/auto/cell_area.rs @@ -8,6 +8,7 @@ use crate::{ DirectionType, Orientation, SizeRequestMode, Snapshot, TreeIter, TreeModel, TreePath, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_editable.rs b/gtk4/src/auto/cell_editable.rs index 24f9614a387c..a7afbf9ee5f8 100644 --- a/gtk4/src/auto/cell_editable.rs +++ b/gtk4/src/auto/cell_editable.rs @@ -5,6 +5,7 @@ use crate::{ffi, Accessible, Buildable, ConstraintTarget, Widget}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer.rs b/gtk4/src/auto/cell_renderer.rs index 3c181053969e..ef66a5af0422 100644 --- a/gtk4/src/auto/cell_renderer.rs +++ b/gtk4/src/auto/cell_renderer.rs @@ -8,6 +8,7 @@ use crate::{ StateFlags, TreePath, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer_accel.rs b/gtk4/src/auto/cell_renderer_accel.rs index 2e54165a612a..fb6fefc49503 100644 --- a/gtk4/src/auto/cell_renderer_accel.rs +++ b/gtk4/src/auto/cell_renderer_accel.rs @@ -7,6 +7,7 @@ use crate::{ ffi, CellRenderer, CellRendererAccelMode, CellRendererMode, CellRendererText, TreePath, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer_combo.rs b/gtk4/src/auto/cell_renderer_combo.rs index 7c342ce5749f..1e515bcdefdc 100644 --- a/gtk4/src/auto/cell_renderer_combo.rs +++ b/gtk4/src/auto/cell_renderer_combo.rs @@ -5,6 +5,7 @@ use crate::{ffi, CellRenderer, CellRendererMode, CellRendererText, TreeIter, TreeModel, TreePath}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer_text.rs b/gtk4/src/auto/cell_renderer_text.rs index 6b0bb4271aa8..f4aed3f83457 100644 --- a/gtk4/src/auto/cell_renderer_text.rs +++ b/gtk4/src/auto/cell_renderer_text.rs @@ -5,6 +5,7 @@ use crate::{ffi, CellRenderer, CellRendererMode, TreePath}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer_toggle.rs b/gtk4/src/auto/cell_renderer_toggle.rs index 46a5b4590d32..fa4c74d860ab 100644 --- a/gtk4/src/auto/cell_renderer_toggle.rs +++ b/gtk4/src/auto/cell_renderer_toggle.rs @@ -5,6 +5,7 @@ use crate::{ffi, CellRenderer, CellRendererMode, TreePath}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_view.rs b/gtk4/src/auto/cell_view.rs index db1f31c50d53..7dfee94214e2 100644 --- a/gtk4/src/auto/cell_view.rs +++ b/gtk4/src/auto/cell_view.rs @@ -395,6 +395,14 @@ impl CellViewBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/center_box.rs b/gtk4/src/auto/center_box.rs index ef16e6ce7b5d..db68f15e047b 100644 --- a/gtk4/src/auto/center_box.rs +++ b/gtk4/src/auto/center_box.rs @@ -416,6 +416,14 @@ impl CenterBoxBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/check_button.rs b/gtk4/src/auto/check_button.rs index c4458f224de2..6ac970bb28fa 100644 --- a/gtk4/src/auto/check_button.rs +++ b/gtk4/src/auto/check_button.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -202,6 +203,14 @@ impl CheckButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/color_button.rs b/gtk4/src/auto/color_button.rs index 8ea9abc610a5..7f58a8281e1e 100644 --- a/gtk4/src/auto/color_button.rs +++ b/gtk4/src/auto/color_button.rs @@ -8,6 +8,7 @@ use crate::{ LayoutManager, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -339,6 +340,14 @@ impl ColorButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/color_chooser.rs b/gtk4/src/auto/color_chooser.rs index 82d1dba68bc8..a91e477fd730 100644 --- a/gtk4/src/auto/color_chooser.rs +++ b/gtk4/src/auto/color_chooser.rs @@ -5,6 +5,7 @@ use crate::ffi; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/color_chooser_dialog.rs b/gtk4/src/auto/color_chooser_dialog.rs index c6e2cf0e8d39..e53ce6cd2683 100644 --- a/gtk4/src/auto/color_chooser_dialog.rs +++ b/gtk4/src/auto/color_chooser_dialog.rs @@ -351,6 +351,14 @@ impl ColorChooserDialogBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/color_chooser_widget.rs b/gtk4/src/auto/color_chooser_widget.rs index 028ef7bd4265..8c2cdcdd7ea1 100644 --- a/gtk4/src/auto/color_chooser_widget.rs +++ b/gtk4/src/auto/color_chooser_widget.rs @@ -179,6 +179,14 @@ impl ColorChooserWidgetBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/color_dialog_button.rs b/gtk4/src/auto/color_dialog_button.rs index 7b1cf711d36e..8d9d75f72a1b 100644 --- a/gtk4/src/auto/color_dialog_button.rs +++ b/gtk4/src/auto/color_dialog_button.rs @@ -6,6 +6,9 @@ use crate::{ ffi, Accessible, AccessibleRole, Align, Buildable, ColorDialog, ConstraintTarget, LayoutManager, Overflow, Widget, }; +#[cfg(feature = "v4_14")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] +use glib::object::ObjectType as _; use glib::{ prelude::*, signal::{connect_raw, SignalHandlerId}, @@ -273,6 +276,14 @@ impl ColorDialogButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/column_view.rs b/gtk4/src/auto/column_view.rs index e67c22cdca04..2b45fda40681 100644 --- a/gtk4/src/auto/column_view.rs +++ b/gtk4/src/auto/column_view.rs @@ -11,6 +11,7 @@ use crate::{ #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] use crate::{ListItemFactory, ListScrollFlags, ListTabBehavior, ScrollInfo}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -775,6 +776,14 @@ impl ColumnViewBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/combo_box.rs b/gtk4/src/auto/combo_box.rs index e4fabfdd477f..aabd000607ac 100644 --- a/gtk4/src/auto/combo_box.rs +++ b/gtk4/src/auto/combo_box.rs @@ -8,6 +8,7 @@ use crate::{ LayoutManager, Overflow, ScrollType, SensitivityType, TreeIter, TreeModel, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -248,6 +249,14 @@ impl ComboBoxBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/combo_box_text.rs b/gtk4/src/auto/combo_box_text.rs index 24518434292b..5dd5283c726a 100644 --- a/gtk4/src/auto/combo_box_text.rs +++ b/gtk4/src/auto/combo_box_text.rs @@ -314,6 +314,14 @@ impl ComboBoxTextBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/css_provider.rs b/gtk4/src/auto/css_provider.rs index c4062e24ccb1..87428eadda1b 100644 --- a/gtk4/src/auto/css_provider.rs +++ b/gtk4/src/auto/css_provider.rs @@ -5,6 +5,7 @@ use crate::{ffi, CssSection, StyleProvider}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/dialog.rs b/gtk4/src/auto/dialog.rs index 2ecdba924ef3..95e7968c22cc 100644 --- a/gtk4/src/auto/dialog.rs +++ b/gtk4/src/auto/dialog.rs @@ -9,6 +9,7 @@ use crate::{ Window, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -309,6 +310,14 @@ impl DialogBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/drag_source.rs b/gtk4/src/auto/drag_source.rs index 94ecf49afc4c..09f855993b59 100644 --- a/gtk4/src/auto/drag_source.rs +++ b/gtk4/src/auto/drag_source.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/drawing_area.rs b/gtk4/src/auto/drawing_area.rs index 827eb3c92a72..078dc0ce1e79 100644 --- a/gtk4/src/auto/drawing_area.rs +++ b/gtk4/src/auto/drawing_area.rs @@ -7,6 +7,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -154,6 +155,14 @@ impl DrawingAreaBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/drop_controller_motion.rs b/gtk4/src/auto/drop_controller_motion.rs index e671c141188a..8b0220fa480d 100644 --- a/gtk4/src/auto/drop_controller_motion.rs +++ b/gtk4/src/auto/drop_controller_motion.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/drop_down.rs b/gtk4/src/auto/drop_down.rs index debb2eddcf8b..65ae3ab11d64 100644 --- a/gtk4/src/auto/drop_down.rs +++ b/gtk4/src/auto/drop_down.rs @@ -9,6 +9,9 @@ use crate::{ ffi, Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, Expression, LayoutManager, ListItemFactory, Overflow, Widget, }; +#[cfg(feature = "v4_6")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] +use glib::object::ObjectType as _; use glib::{ prelude::*, signal::{connect_raw, SignalHandlerId}, @@ -675,6 +678,14 @@ impl DropDownBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/drop_target.rs b/gtk4/src/auto/drop_target.rs index 1605b2679543..53c14d1b61b3 100644 --- a/gtk4/src/auto/drop_target.rs +++ b/gtk4/src/auto/drop_target.rs @@ -5,6 +5,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/drop_target_async.rs b/gtk4/src/auto/drop_target_async.rs index 4660b2ac6a75..8204b1839a3c 100644 --- a/gtk4/src/auto/drop_target_async.rs +++ b/gtk4/src/auto/drop_target_async.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/editable.rs b/gtk4/src/auto/editable.rs index cf29ca5cbf16..e88697baef23 100644 --- a/gtk4/src/auto/editable.rs +++ b/gtk4/src/auto/editable.rs @@ -7,6 +7,7 @@ use crate::AccessiblePlatformState; use crate::{ffi, Accessible, Buildable, ConstraintTarget, Widget}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/editable_label.rs b/gtk4/src/auto/editable_label.rs index 0cbcef56c0f0..cf0daf35e0e1 100644 --- a/gtk4/src/auto/editable_label.rs +++ b/gtk4/src/auto/editable_label.rs @@ -172,6 +172,14 @@ impl EditableLabelBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/emoji_chooser.rs b/gtk4/src/auto/emoji_chooser.rs index c8a8243d93e4..1e4f2f3682f3 100644 --- a/gtk4/src/auto/emoji_chooser.rs +++ b/gtk4/src/auto/emoji_chooser.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, Popover, PositionType, ShortcutManager, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -218,6 +219,14 @@ impl EmojiChooserBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/entry.rs b/gtk4/src/auto/entry.rs index 66ebc0d9f220..c2a249b320ee 100644 --- a/gtk4/src/auto/entry.rs +++ b/gtk4/src/auto/entry.rs @@ -9,6 +9,7 @@ use crate::{ LayoutManager, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -433,6 +434,14 @@ impl EntryBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/entry_completion.rs b/gtk4/src/auto/entry_completion.rs index 0a23ff711915..13dfcb9d98a8 100644 --- a/gtk4/src/auto/entry_completion.rs +++ b/gtk4/src/auto/entry_completion.rs @@ -5,6 +5,7 @@ use crate::{ffi, Buildable, CellArea, CellLayout, TreeIter, TreeModel}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/enums.rs b/gtk4/src/auto/enums.rs index b7e456a166fd..dde4151791d0 100644 --- a/gtk4/src/auto/enums.rs +++ b/gtk4/src/auto/enums.rs @@ -669,6 +669,30 @@ pub enum AccessibleRelation { RowSpan, #[doc(alias = "GTK_ACCESSIBLE_RELATION_SET_SIZE")] SetSize, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_LABEL_FOR")] + LabelFor, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR")] + DescriptionFor, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_CONTROLLED_BY")] + ControlledBy, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_DETAILS_FOR")] + DetailsFor, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR")] + ErrorMessageFor, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_FLOW_FROM")] + FlowFrom, #[doc(hidden)] __Unknown(i32), } @@ -707,6 +731,18 @@ impl IntoGlib for AccessibleRelation { Self::RowIndexText => ffi::GTK_ACCESSIBLE_RELATION_ROW_INDEX_TEXT, Self::RowSpan => ffi::GTK_ACCESSIBLE_RELATION_ROW_SPAN, Self::SetSize => ffi::GTK_ACCESSIBLE_RELATION_SET_SIZE, + #[cfg(feature = "v4_18")] + Self::LabelFor => ffi::GTK_ACCESSIBLE_RELATION_LABEL_FOR, + #[cfg(feature = "v4_18")] + Self::DescriptionFor => ffi::GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR, + #[cfg(feature = "v4_18")] + Self::ControlledBy => ffi::GTK_ACCESSIBLE_RELATION_CONTROLLED_BY, + #[cfg(feature = "v4_18")] + Self::DetailsFor => ffi::GTK_ACCESSIBLE_RELATION_DETAILS_FOR, + #[cfg(feature = "v4_18")] + Self::ErrorMessageFor => ffi::GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR, + #[cfg(feature = "v4_18")] + Self::FlowFrom => ffi::GTK_ACCESSIBLE_RELATION_FLOW_FROM, Self::__Unknown(value) => value, } } @@ -736,6 +772,18 @@ impl FromGlib for AccessibleRelation { ffi::GTK_ACCESSIBLE_RELATION_ROW_INDEX_TEXT => Self::RowIndexText, ffi::GTK_ACCESSIBLE_RELATION_ROW_SPAN => Self::RowSpan, ffi::GTK_ACCESSIBLE_RELATION_SET_SIZE => Self::SetSize, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_LABEL_FOR => Self::LabelFor, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR => Self::DescriptionFor, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_CONTROLLED_BY => Self::ControlledBy, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_DETAILS_FOR => Self::DetailsFor, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR => Self::ErrorMessageFor, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_FLOW_FROM => Self::FlowFrom, value => Self::__Unknown(value), } } diff --git a/gtk4/src/auto/event_controller_focus.rs b/gtk4/src/auto/event_controller_focus.rs index 4d86b8a9a7b9..f678abb4e7b4 100644 --- a/gtk4/src/auto/event_controller_focus.rs +++ b/gtk4/src/auto/event_controller_focus.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/event_controller_key.rs b/gtk4/src/auto/event_controller_key.rs index d6c2e38dcc10..f9231449fa96 100644 --- a/gtk4/src/auto/event_controller_key.rs +++ b/gtk4/src/auto/event_controller_key.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, IMContext, PropagationLimit, PropagationPhase, Widget}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/event_controller_legacy.rs b/gtk4/src/auto/event_controller_legacy.rs index 2578d4d67ffb..4cf7c7897aec 100644 --- a/gtk4/src/auto/event_controller_legacy.rs +++ b/gtk4/src/auto/event_controller_legacy.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/event_controller_motion.rs b/gtk4/src/auto/event_controller_motion.rs index ff38cc5804c0..6c68bc0a6b16 100644 --- a/gtk4/src/auto/event_controller_motion.rs +++ b/gtk4/src/auto/event_controller_motion.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/event_controller_scroll.rs b/gtk4/src/auto/event_controller_scroll.rs index 1019fec80dcb..499d03162c48 100644 --- a/gtk4/src/auto/event_controller_scroll.rs +++ b/gtk4/src/auto/event_controller_scroll.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, EventControllerScrollFlags, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/expander.rs b/gtk4/src/auto/expander.rs index d820ad69780f..07cadc7a5886 100644 --- a/gtk4/src/auto/expander.rs +++ b/gtk4/src/auto/expander.rs @@ -7,6 +7,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -495,6 +496,14 @@ impl ExpanderBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/file_chooser_dialog.rs b/gtk4/src/auto/file_chooser_dialog.rs index f8e17d75242d..5b46241b02ae 100644 --- a/gtk4/src/auto/file_chooser_dialog.rs +++ b/gtk4/src/auto/file_chooser_dialog.rs @@ -288,6 +288,14 @@ impl FileChooserDialogBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/file_chooser_widget.rs b/gtk4/src/auto/file_chooser_widget.rs index 71aec3ed0a21..a0ac43403b5d 100644 --- a/gtk4/src/auto/file_chooser_widget.rs +++ b/gtk4/src/auto/file_chooser_widget.rs @@ -8,6 +8,7 @@ use crate::{ FileChooserAction, FileFilter, LayoutManager, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -567,6 +568,14 @@ impl FileChooserWidgetBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/file_dialog.rs b/gtk4/src/auto/file_dialog.rs index 644e88fb25fd..edc65a814c2b 100644 --- a/gtk4/src/auto/file_dialog.rs +++ b/gtk4/src/auto/file_dialog.rs @@ -233,6 +233,174 @@ impl FileDialog { })) } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gtk_file_dialog_open_multiple_text_files")] + pub fn open_multiple_text_files< + P: FnOnce(Result<(Option, glib::GString), glib::Error>) + 'static, + >( + &self, + parent: Option<&impl IsA>, + cancellable: Option<&impl IsA>, + callback: P, + ) { + let main_context = glib::MainContext::ref_thread_default(); + let is_main_context_owner = main_context.is_owner(); + let has_acquired_main_context = (!is_main_context_owner) + .then(|| main_context.acquire().ok()) + .flatten(); + assert!( + is_main_context_owner || has_acquired_main_context.is_some(), + "Async operations only allowed if the thread is owning the MainContext" + ); + + let user_data: Box_> = + Box_::new(glib::thread_guard::ThreadGuard::new(callback)); + unsafe extern "C" fn open_multiple_text_files_trampoline< + P: FnOnce(Result<(Option, glib::GString), glib::Error>) + 'static, + >( + _source_object: *mut glib::gobject_ffi::GObject, + res: *mut gio::ffi::GAsyncResult, + user_data: glib::ffi::gpointer, + ) { + let mut error = std::ptr::null_mut(); + let mut encoding = std::ptr::null(); + let ret = ffi::gtk_file_dialog_open_multiple_text_files_finish( + _source_object as *mut _, + res, + &mut encoding, + &mut error, + ); + let result = if error.is_null() { + Ok((from_glib_full(ret), from_glib_none(encoding))) + } else { + Err(from_glib_full(error)) + }; + let callback: Box_> = + Box_::from_raw(user_data as *mut _); + let callback: P = callback.into_inner(); + callback(result); + } + let callback = open_multiple_text_files_trampoline::

; + unsafe { + ffi::gtk_file_dialog_open_multiple_text_files( + self.to_glib_none().0, + parent.map(|p| p.as_ref()).to_glib_none().0, + cancellable.map(|p| p.as_ref()).to_glib_none().0, + Some(callback), + Box_::into_raw(user_data) as *mut _, + ); + } + } + + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn open_multiple_text_files_future( + &self, + parent: Option<&(impl IsA + Clone + 'static)>, + ) -> Pin< + Box_< + dyn std::future::Future< + Output = Result<(Option, glib::GString), glib::Error>, + > + 'static, + >, + > { + let parent = parent.map(ToOwned::to_owned); + Box_::pin(gio::GioFuture::new(self, move |obj, cancellable, send| { + obj.open_multiple_text_files( + parent.as_ref().map(::std::borrow::Borrow::borrow), + Some(cancellable), + move |res| { + send.resolve(res); + }, + ); + })) + } + + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gtk_file_dialog_open_text_file")] + pub fn open_text_file< + P: FnOnce(Result<(Option, glib::GString), glib::Error>) + 'static, + >( + &self, + parent: Option<&impl IsA>, + cancellable: Option<&impl IsA>, + callback: P, + ) { + let main_context = glib::MainContext::ref_thread_default(); + let is_main_context_owner = main_context.is_owner(); + let has_acquired_main_context = (!is_main_context_owner) + .then(|| main_context.acquire().ok()) + .flatten(); + assert!( + is_main_context_owner || has_acquired_main_context.is_some(), + "Async operations only allowed if the thread is owning the MainContext" + ); + + let user_data: Box_> = + Box_::new(glib::thread_guard::ThreadGuard::new(callback)); + unsafe extern "C" fn open_text_file_trampoline< + P: FnOnce(Result<(Option, glib::GString), glib::Error>) + 'static, + >( + _source_object: *mut glib::gobject_ffi::GObject, + res: *mut gio::ffi::GAsyncResult, + user_data: glib::ffi::gpointer, + ) { + let mut error = std::ptr::null_mut(); + let mut encoding = std::ptr::null(); + let ret = ffi::gtk_file_dialog_open_text_file_finish( + _source_object as *mut _, + res, + &mut encoding, + &mut error, + ); + let result = if error.is_null() { + Ok((from_glib_full(ret), from_glib_none(encoding))) + } else { + Err(from_glib_full(error)) + }; + let callback: Box_> = + Box_::from_raw(user_data as *mut _); + let callback: P = callback.into_inner(); + callback(result); + } + let callback = open_text_file_trampoline::

; + unsafe { + ffi::gtk_file_dialog_open_text_file( + self.to_glib_none().0, + parent.map(|p| p.as_ref()).to_glib_none().0, + cancellable.map(|p| p.as_ref()).to_glib_none().0, + Some(callback), + Box_::into_raw(user_data) as *mut _, + ); + } + } + + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn open_text_file_future( + &self, + parent: Option<&(impl IsA + Clone + 'static)>, + ) -> Pin< + Box_< + dyn std::future::Future< + Output = Result<(Option, glib::GString), glib::Error>, + > + 'static, + >, + > { + let parent = parent.map(ToOwned::to_owned); + Box_::pin(gio::GioFuture::new(self, move |obj, cancellable, send| { + obj.open_text_file( + parent.as_ref().map(::std::borrow::Borrow::borrow), + Some(cancellable), + move |res| { + send.resolve(res); + }, + ); + })) + } + #[doc(alias = "gtk_file_dialog_save")] pub fn save) + 'static>( &self, @@ -299,6 +467,97 @@ impl FileDialog { })) } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gtk_file_dialog_save_text_file")] + pub fn save_text_file< + P: FnOnce(Result<(Option, glib::GString, glib::GString), glib::Error>) + 'static, + >( + &self, + parent: Option<&impl IsA>, + cancellable: Option<&impl IsA>, + callback: P, + ) { + let main_context = glib::MainContext::ref_thread_default(); + let is_main_context_owner = main_context.is_owner(); + let has_acquired_main_context = (!is_main_context_owner) + .then(|| main_context.acquire().ok()) + .flatten(); + assert!( + is_main_context_owner || has_acquired_main_context.is_some(), + "Async operations only allowed if the thread is owning the MainContext" + ); + + let user_data: Box_> = + Box_::new(glib::thread_guard::ThreadGuard::new(callback)); + unsafe extern "C" fn save_text_file_trampoline< + P: FnOnce(Result<(Option, glib::GString, glib::GString), glib::Error>) + + 'static, + >( + _source_object: *mut glib::gobject_ffi::GObject, + res: *mut gio::ffi::GAsyncResult, + user_data: glib::ffi::gpointer, + ) { + let mut error = std::ptr::null_mut(); + let mut encoding = std::ptr::null(); + let mut line_ending = std::ptr::null(); + let ret = ffi::gtk_file_dialog_save_text_file_finish( + _source_object as *mut _, + res, + &mut encoding, + &mut line_ending, + &mut error, + ); + let result = if error.is_null() { + Ok(( + from_glib_full(ret), + from_glib_none(encoding), + from_glib_none(line_ending), + )) + } else { + Err(from_glib_full(error)) + }; + let callback: Box_> = + Box_::from_raw(user_data as *mut _); + let callback: P = callback.into_inner(); + callback(result); + } + let callback = save_text_file_trampoline::

; + unsafe { + ffi::gtk_file_dialog_save_text_file( + self.to_glib_none().0, + parent.map(|p| p.as_ref()).to_glib_none().0, + cancellable.map(|p| p.as_ref()).to_glib_none().0, + Some(callback), + Box_::into_raw(user_data) as *mut _, + ); + } + } + + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn save_text_file_future( + &self, + parent: Option<&(impl IsA + Clone + 'static)>, + ) -> Pin< + Box_< + dyn std::future::Future< + Output = Result<(Option, glib::GString, glib::GString), glib::Error>, + > + 'static, + >, + > { + let parent = parent.map(ToOwned::to_owned); + Box_::pin(gio::GioFuture::new(self, move |obj, cancellable, send| { + obj.save_text_file( + parent.as_ref().map(::std::borrow::Borrow::borrow), + Some(cancellable), + move |res| { + send.resolve(res); + }, + ); + })) + } + #[doc(alias = "gtk_file_dialog_select_folder")] pub fn select_folder) + 'static>( &self, diff --git a/gtk4/src/auto/filter.rs b/gtk4/src/auto/filter.rs index 4235e80c87cb..34c78a3ee66c 100644 --- a/gtk4/src/auto/filter.rs +++ b/gtk4/src/auto/filter.rs @@ -4,6 +4,7 @@ use crate::{ffi, FilterChange, FilterMatch}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/fixed.rs b/gtk4/src/auto/fixed.rs index 7aa4cde6281f..4d2fa8a6bc16 100644 --- a/gtk4/src/auto/fixed.rs +++ b/gtk4/src/auto/fixed.rs @@ -137,6 +137,14 @@ impl FixedBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/flags.rs b/gtk4/src/auto/flags.rs index 3c7cf5d8e723..c42c033164c8 100644 --- a/gtk4/src/auto/flags.rs +++ b/gtk4/src/auto/flags.rs @@ -293,8 +293,8 @@ bitflags! { const ICONTHEME = ffi::GTK_DEBUG_ICONTHEME as _; #[doc(alias = "GTK_DEBUG_PRINTING")] const PRINTING = ffi::GTK_DEBUG_PRINTING as _; - #[doc(alias = "GTK_DEBUG_BUILDER")] - const BUILDER = ffi::GTK_DEBUG_BUILDER as _; + #[doc(alias = "GTK_DEBUG_BUILDER_TRACE")] + const BUILDER_TRACE = ffi::GTK_DEBUG_BUILDER_TRACE as _; #[doc(alias = "GTK_DEBUG_SIZE_REQUEST")] const SIZE_REQUEST = ffi::GTK_DEBUG_SIZE_REQUEST as _; #[doc(alias = "GTK_DEBUG_NO_CSS_CACHE")] @@ -325,6 +325,8 @@ bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))] #[doc(alias = "GTK_DEBUG_CSS")] const CSS = ffi::GTK_DEBUG_CSS as _; + #[doc(alias = "GTK_DEBUG_BUILDER")] + const BUILDER = ffi::GTK_DEBUG_BUILDER as _; } } diff --git a/gtk4/src/auto/flow_box.rs b/gtk4/src/auto/flow_box.rs index d3d46e052005..ef2b654744fe 100644 --- a/gtk4/src/auto/flow_box.rs +++ b/gtk4/src/auto/flow_box.rs @@ -7,6 +7,7 @@ use crate::{ LayoutManager, MovementStep, Orientable, Orientation, Overflow, SelectionMode, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -953,6 +954,14 @@ impl FlowBoxBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/flow_box_child.rs b/gtk4/src/auto/flow_box_child.rs index 8708d8ae7685..14a5346d0216 100644 --- a/gtk4/src/auto/flow_box_child.rs +++ b/gtk4/src/auto/flow_box_child.rs @@ -7,6 +7,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -148,6 +149,14 @@ impl FlowBoxChildBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/font_button.rs b/gtk4/src/auto/font_button.rs index d9e15d4c57f4..c8feba3b6825 100644 --- a/gtk4/src/auto/font_button.rs +++ b/gtk4/src/auto/font_button.rs @@ -8,6 +8,7 @@ use crate::{ FontChooserLevel, LayoutManager, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -400,6 +401,14 @@ impl FontButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/font_chooser.rs b/gtk4/src/auto/font_chooser.rs index 20f7a0d09e19..27bb5c32e4f0 100644 --- a/gtk4/src/auto/font_chooser.rs +++ b/gtk4/src/auto/font_chooser.rs @@ -5,6 +5,7 @@ use crate::{ffi, FontChooserLevel}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/font_chooser_dialog.rs b/gtk4/src/auto/font_chooser_dialog.rs index 8b8952000881..501ad6ac080f 100644 --- a/gtk4/src/auto/font_chooser_dialog.rs +++ b/gtk4/src/auto/font_chooser_dialog.rs @@ -308,6 +308,14 @@ impl FontChooserDialogBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/font_chooser_widget.rs b/gtk4/src/auto/font_chooser_widget.rs index b3676506a355..4dbf6d3c209d 100644 --- a/gtk4/src/auto/font_chooser_widget.rs +++ b/gtk4/src/auto/font_chooser_widget.rs @@ -171,6 +171,14 @@ impl FontChooserWidgetBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/font_dialog_button.rs b/gtk4/src/auto/font_dialog_button.rs index 3f2fab378661..6d9f46420db1 100644 --- a/gtk4/src/auto/font_dialog_button.rs +++ b/gtk4/src/auto/font_dialog_button.rs @@ -6,6 +6,9 @@ use crate::{ ffi, Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, FontDialog, FontLevel, LayoutManager, Overflow, Widget, }; +#[cfg(feature = "v4_14")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] +use glib::object::ObjectType as _; use glib::{ prelude::*, signal::{connect_raw, SignalHandlerId}, @@ -569,6 +572,14 @@ impl FontDialogButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/frame.rs b/gtk4/src/auto/frame.rs index af23298bbaad..432711daa863 100644 --- a/gtk4/src/auto/frame.rs +++ b/gtk4/src/auto/frame.rs @@ -168,6 +168,14 @@ impl FrameBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/gesture.rs b/gtk4/src/auto/gesture.rs index 0ed6ea7e90eb..c64dfb6790d0 100644 --- a/gtk4/src/auto/gesture.rs +++ b/gtk4/src/auto/gesture.rs @@ -5,6 +5,7 @@ use crate::{ffi, EventController, EventSequenceState}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/gesture_click.rs b/gtk4/src/auto/gesture_click.rs index 58aa2367b276..d61ecaa7dcec 100644 --- a/gtk4/src/auto/gesture_click.rs +++ b/gtk4/src/auto/gesture_click.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/gesture_drag.rs b/gtk4/src/auto/gesture_drag.rs index 6660e34b97f1..8c7935912abb 100644 --- a/gtk4/src/auto/gesture_drag.rs +++ b/gtk4/src/auto/gesture_drag.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/gesture_long_press.rs b/gtk4/src/auto/gesture_long_press.rs index db998b55a93a..0fb6bd7d1328 100644 --- a/gtk4/src/auto/gesture_long_press.rs +++ b/gtk4/src/auto/gesture_long_press.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/gesture_pan.rs b/gtk4/src/auto/gesture_pan.rs index 144afa97a631..4841f3dbde5f 100644 --- a/gtk4/src/auto/gesture_pan.rs +++ b/gtk4/src/auto/gesture_pan.rs @@ -7,6 +7,7 @@ use crate::{ PropagationLimit, PropagationPhase, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/gesture_rotate.rs b/gtk4/src/auto/gesture_rotate.rs index 52d77a62e064..b7ac71c03b8c 100644 --- a/gtk4/src/auto/gesture_rotate.rs +++ b/gtk4/src/auto/gesture_rotate.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, Gesture, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/gesture_stylus.rs b/gtk4/src/auto/gesture_stylus.rs index b00822d0b13e..38485924a7ac 100644 --- a/gtk4/src/auto/gesture_stylus.rs +++ b/gtk4/src/auto/gesture_stylus.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/gesture_swipe.rs b/gtk4/src/auto/gesture_swipe.rs index 8842a5faa5a0..9477f2bd90b6 100644 --- a/gtk4/src/auto/gesture_swipe.rs +++ b/gtk4/src/auto/gesture_swipe.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/gesture_zoom.rs b/gtk4/src/auto/gesture_zoom.rs index a74396ff87c4..845975db29b9 100644 --- a/gtk4/src/auto/gesture_zoom.rs +++ b/gtk4/src/auto/gesture_zoom.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, Gesture, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/gl_area.rs b/gtk4/src/auto/gl_area.rs index fc3df951853a..d2881749d02f 100644 --- a/gtk4/src/auto/gl_area.rs +++ b/gtk4/src/auto/gl_area.rs @@ -8,6 +8,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -178,6 +179,14 @@ impl GLAreaBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/graphics_offload.rs b/gtk4/src/auto/graphics_offload.rs index a12ceaf8dea2..bce2525dc4bb 100644 --- a/gtk4/src/auto/graphics_offload.rs +++ b/gtk4/src/auto/graphics_offload.rs @@ -305,6 +305,14 @@ impl GraphicsOffloadBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/grid.rs b/gtk4/src/auto/grid.rs index 8c809de3e7f9..64ad575d4d8c 100644 --- a/gtk4/src/auto/grid.rs +++ b/gtk4/src/auto/grid.rs @@ -174,6 +174,14 @@ impl GridBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/grid_view.rs b/gtk4/src/auto/grid_view.rs index 9dc3cce36d67..0e5b1b9e52bd 100644 --- a/gtk4/src/auto/grid_view.rs +++ b/gtk4/src/auto/grid_view.rs @@ -11,6 +11,7 @@ use crate::{ #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] use crate::{ListScrollFlags, ListTabBehavior, ScrollInfo}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -540,6 +541,14 @@ impl GridViewBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/header_bar.rs b/gtk4/src/auto/header_bar.rs index 1e7c217cdff0..a74dad9a61dd 100644 --- a/gtk4/src/auto/header_bar.rs +++ b/gtk4/src/auto/header_bar.rs @@ -319,6 +319,14 @@ impl HeaderBarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/icon_theme.rs b/gtk4/src/auto/icon_theme.rs index c2107da5a19e..940cd5036478 100644 --- a/gtk4/src/auto/icon_theme.rs +++ b/gtk4/src/auto/icon_theme.rs @@ -4,6 +4,7 @@ use crate::{ffi, IconLookupFlags, IconPaintable, TextDirection}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/icon_view.rs b/gtk4/src/auto/icon_view.rs index aac3480fb53f..322625e5b498 100644 --- a/gtk4/src/auto/icon_view.rs +++ b/gtk4/src/auto/icon_view.rs @@ -10,6 +10,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -1650,6 +1651,14 @@ impl IconViewBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/im_context.rs b/gtk4/src/auto/im_context.rs index 948e11403c7d..5b32a32a574e 100644 --- a/gtk4/src/auto/im_context.rs +++ b/gtk4/src/auto/im_context.rs @@ -5,6 +5,7 @@ use crate::{ffi, InputHints, InputPurpose, Widget}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/image.rs b/gtk4/src/auto/image.rs index 9900c36b63e8..ea62dd3eabd4 100644 --- a/gtk4/src/auto/image.rs +++ b/gtk4/src/auto/image.rs @@ -609,6 +609,14 @@ impl ImageBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/info_bar.rs b/gtk4/src/auto/info_bar.rs index e9dcee89ccf4..1921d6ad71fb 100644 --- a/gtk4/src/auto/info_bar.rs +++ b/gtk4/src/auto/info_bar.rs @@ -8,6 +8,7 @@ use crate::{ MessageType, Overflow, ResponseType, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -432,6 +433,14 @@ impl InfoBarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/inscription.rs b/gtk4/src/auto/inscription.rs index 4c5599d21b63..33f4fb4432d6 100644 --- a/gtk4/src/auto/inscription.rs +++ b/gtk4/src/auto/inscription.rs @@ -680,6 +680,14 @@ impl InscriptionBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/label.rs b/gtk4/src/auto/label.rs index cb69d63576dd..23f7609c616b 100644 --- a/gtk4/src/auto/label.rs +++ b/gtk4/src/auto/label.rs @@ -13,6 +13,7 @@ use crate::{ LayoutManager, MovementStep, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -1263,6 +1264,14 @@ impl LabelBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/level_bar.rs b/gtk4/src/auto/level_bar.rs index a8cba9af79c7..8a73f314e7c4 100644 --- a/gtk4/src/auto/level_bar.rs +++ b/gtk4/src/auto/level_bar.rs @@ -10,6 +10,7 @@ use crate::{ LevelBarMode, Orientable, Orientation, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -453,6 +454,14 @@ impl LevelBarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/link_button.rs b/gtk4/src/auto/link_button.rs index 4e76b094771d..84a7c3d06615 100644 --- a/gtk4/src/auto/link_button.rs +++ b/gtk4/src/auto/link_button.rs @@ -7,6 +7,7 @@ use crate::{ LayoutManager, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -307,6 +308,14 @@ impl LinkButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/list_box.rs b/gtk4/src/auto/list_box.rs index 2e85ab75ad6a..2ed3c931faa1 100644 --- a/gtk4/src/auto/list_box.rs +++ b/gtk4/src/auto/list_box.rs @@ -10,6 +10,7 @@ use crate::{ ListBoxRow, MovementStep, Overflow, SelectionMode, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -908,6 +909,14 @@ impl ListBoxBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/list_box_row.rs b/gtk4/src/auto/list_box_row.rs index 64620461471b..d3c85575ce3b 100644 --- a/gtk4/src/auto/list_box_row.rs +++ b/gtk4/src/auto/list_box_row.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -160,6 +161,14 @@ impl ListBoxRowBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/list_view.rs b/gtk4/src/auto/list_view.rs index 9246ee3ba726..cde92e1dd1f4 100644 --- a/gtk4/src/auto/list_view.rs +++ b/gtk4/src/auto/list_view.rs @@ -11,6 +11,7 @@ use crate::{ #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] use crate::{ListScrollFlags, ListTabBehavior, ScrollInfo}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -560,6 +561,14 @@ impl ListViewBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/lock_button.rs b/gtk4/src/auto/lock_button.rs index 70011ec3aebc..606cace3e843 100644 --- a/gtk4/src/auto/lock_button.rs +++ b/gtk4/src/auto/lock_button.rs @@ -464,6 +464,14 @@ impl LockButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/media_controls.rs b/gtk4/src/auto/media_controls.rs index 7e3ea43e9993..2bd99d665ab8 100644 --- a/gtk4/src/auto/media_controls.rs +++ b/gtk4/src/auto/media_controls.rs @@ -198,6 +198,14 @@ impl MediaControlsBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/menu_button.rs b/gtk4/src/auto/menu_button.rs index afe5269323b3..e127d2164e6d 100644 --- a/gtk4/src/auto/menu_button.rs +++ b/gtk4/src/auto/menu_button.rs @@ -6,6 +6,9 @@ use crate::{ ffi, Accessible, AccessibleRole, Align, ArrowType, Buildable, ConstraintTarget, LayoutManager, Overflow, Popover, Widget, }; +#[cfg(feature = "v4_4")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] +use glib::object::ObjectType as _; use glib::{ prelude::*, signal::{connect_raw, SignalHandlerId}, @@ -807,6 +810,14 @@ impl MenuButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/message_dialog.rs b/gtk4/src/auto/message_dialog.rs index d83977c0797e..8690a295741e 100644 --- a/gtk4/src/auto/message_dialog.rs +++ b/gtk4/src/auto/message_dialog.rs @@ -545,6 +545,14 @@ impl MessageDialogBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/mod.rs b/gtk4/src/auto/mod.rs index 3659e2117bd3..37668a1eb1cb 100644 --- a/gtk4/src/auto/mod.rs +++ b/gtk4/src/auto/mod.rs @@ -849,7 +849,9 @@ pub use self::shortcut_action::ShortcutAction; mod shortcut_controller; pub use self::shortcut_controller::ShortcutController; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] mod shortcut_label; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use self::shortcut_label::ShortcutLabel; mod shortcut_manager; @@ -858,16 +860,24 @@ pub use self::shortcut_manager::ShortcutManager; mod shortcut_trigger; pub use self::shortcut_trigger::ShortcutTrigger; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] mod shortcuts_group; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use self::shortcuts_group::ShortcutsGroup; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] mod shortcuts_section; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use self::shortcuts_section::ShortcutsSection; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] mod shortcuts_shortcut; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use self::shortcuts_shortcut::ShortcutsShortcut; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] mod shortcuts_window; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use self::shortcuts_window::ShortcutsWindow; mod signal_action; @@ -1746,10 +1756,15 @@ pub(crate) mod builders { pub use super::separator::SeparatorBuilder; pub use super::settings::SettingsBuilder; pub use super::shortcut::ShortcutBuilder; + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use super::shortcut_label::ShortcutLabelBuilder; + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use super::shortcuts_group::ShortcutsGroupBuilder; + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use super::shortcuts_section::ShortcutsSectionBuilder; + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use super::shortcuts_shortcut::ShortcutsShortcutBuilder; + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub use super::shortcuts_window::ShortcutsWindowBuilder; pub use super::single_selection::SingleSelectionBuilder; pub use super::slice_list_model::SliceListModelBuilder; diff --git a/gtk4/src/auto/native_dialog.rs b/gtk4/src/auto/native_dialog.rs index bedb5270fabc..07748fcf2ddd 100644 --- a/gtk4/src/auto/native_dialog.rs +++ b/gtk4/src/auto/native_dialog.rs @@ -4,6 +4,7 @@ use crate::{ffi, ResponseType, Window}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/notebook.rs b/gtk4/src/auto/notebook.rs index 0fd688535990..2f92bbae9add 100644 --- a/gtk4/src/auto/notebook.rs +++ b/gtk4/src/auto/notebook.rs @@ -7,6 +7,7 @@ use crate::{ LayoutManager, NotebookPage, NotebookTab, Overflow, PackType, PositionType, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -959,6 +960,14 @@ impl NotebookBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/overlay.rs b/gtk4/src/auto/overlay.rs index c2a057f5749e..261b3cc7efb7 100644 --- a/gtk4/src/auto/overlay.rs +++ b/gtk4/src/auto/overlay.rs @@ -247,6 +247,14 @@ impl OverlayBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/page_setup_unix_dialog.rs b/gtk4/src/auto/page_setup_unix_dialog.rs index a22debb272a1..733236dabd58 100644 --- a/gtk4/src/auto/page_setup_unix_dialog.rs +++ b/gtk4/src/auto/page_setup_unix_dialog.rs @@ -345,6 +345,14 @@ impl PageSetupUnixDialogBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/paned.rs b/gtk4/src/auto/paned.rs index 4efee5e3ae51..83f4c330cf8f 100644 --- a/gtk4/src/auto/paned.rs +++ b/gtk4/src/auto/paned.rs @@ -10,6 +10,7 @@ use crate::{ Orientation, Overflow, ScrollType, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -789,6 +790,14 @@ impl PanedBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/password_entry.rs b/gtk4/src/auto/password_entry.rs index 33082e74f84a..de7ea2cc58e0 100644 --- a/gtk4/src/auto/password_entry.rs +++ b/gtk4/src/auto/password_entry.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -357,6 +358,14 @@ impl PasswordEntryBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/picture.rs b/gtk4/src/auto/picture.rs index 2ae7ef213617..c90955057eec 100644 --- a/gtk4/src/auto/picture.rs +++ b/gtk4/src/auto/picture.rs @@ -531,6 +531,14 @@ impl PictureBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/popover.rs b/gtk4/src/auto/popover.rs index d6512c21bf03..f03f6b19e646 100644 --- a/gtk4/src/auto/popover.rs +++ b/gtk4/src/auto/popover.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, PositionType, ShortcutManager, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -194,6 +195,14 @@ impl PopoverBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/popover_menu.rs b/gtk4/src/auto/popover_menu.rs index 2831235325ce..0aa90d311102 100644 --- a/gtk4/src/auto/popover_menu.rs +++ b/gtk4/src/auto/popover_menu.rs @@ -370,6 +370,14 @@ impl PopoverMenuBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/popover_menu_bar.rs b/gtk4/src/auto/popover_menu_bar.rs index 95d43e4e484a..77d3406582f6 100644 --- a/gtk4/src/auto/popover_menu_bar.rs +++ b/gtk4/src/auto/popover_menu_bar.rs @@ -214,6 +214,14 @@ impl PopoverMenuBarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/print_job.rs b/gtk4/src/auto/print_job.rs index 92e259df92f7..84035ae226f4 100644 --- a/gtk4/src/auto/print_job.rs +++ b/gtk4/src/auto/print_job.rs @@ -7,6 +7,7 @@ use crate::{ Printer, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/print_operation.rs b/gtk4/src/auto/print_operation.rs index 11651c6d7772..860e88cef257 100644 --- a/gtk4/src/auto/print_operation.rs +++ b/gtk4/src/auto/print_operation.rs @@ -7,6 +7,7 @@ use crate::{ PrintOperationResult, PrintSettings, PrintStatus, Unit, Widget, Window, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/print_operation_preview.rs b/gtk4/src/auto/print_operation_preview.rs index ce071e919ac5..ad6b29ea9687 100644 --- a/gtk4/src/auto/print_operation_preview.rs +++ b/gtk4/src/auto/print_operation_preview.rs @@ -4,6 +4,7 @@ use crate::{ffi, PageSetup, PrintContext}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/print_unix_dialog.rs b/gtk4/src/auto/print_unix_dialog.rs index cf65c39d4737..b59416612194 100644 --- a/gtk4/src/auto/print_unix_dialog.rs +++ b/gtk4/src/auto/print_unix_dialog.rs @@ -735,6 +735,14 @@ impl PrintUnixDialogBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/printer.rs b/gtk4/src/auto/printer.rs index 9653ddd5423e..8b121ffdd92d 100644 --- a/gtk4/src/auto/printer.rs +++ b/gtk4/src/auto/printer.rs @@ -4,6 +4,7 @@ use crate::{ffi, PageSetup, PaperSize, PrintCapabilities}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/progress_bar.rs b/gtk4/src/auto/progress_bar.rs index 81fa2d733e6b..3b2102fcba55 100644 --- a/gtk4/src/auto/progress_bar.rs +++ b/gtk4/src/auto/progress_bar.rs @@ -423,6 +423,14 @@ impl ProgressBarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/range.rs b/gtk4/src/auto/range.rs index b9a4880fd785..1b680246fcd2 100644 --- a/gtk4/src/auto/range.rs +++ b/gtk4/src/auto/range.rs @@ -9,6 +9,7 @@ use crate::{ ffi, Accessible, Adjustment, Buildable, ConstraintTarget, Orientable, ScrollType, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/recent_manager.rs b/gtk4/src/auto/recent_manager.rs index 345ef66e3c94..0f814b0211c9 100644 --- a/gtk4/src/auto/recent_manager.rs +++ b/gtk4/src/auto/recent_manager.rs @@ -4,6 +4,7 @@ use crate::{ffi, RecentData, RecentInfo}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/revealer.rs b/gtk4/src/auto/revealer.rs index 8ae6a815cad9..0b0ceb9e2c35 100644 --- a/gtk4/src/auto/revealer.rs +++ b/gtk4/src/auto/revealer.rs @@ -353,6 +353,14 @@ impl RevealerBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/scale.rs b/gtk4/src/auto/scale.rs index 5675ff8793dc..6e2098544734 100644 --- a/gtk4/src/auto/scale.rs +++ b/gtk4/src/auto/scale.rs @@ -242,6 +242,14 @@ impl ScaleBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/scale_button.rs b/gtk4/src/auto/scale_button.rs index 7aa9666912a7..277b3c621742 100644 --- a/gtk4/src/auto/scale_button.rs +++ b/gtk4/src/auto/scale_button.rs @@ -10,6 +10,7 @@ use crate::{ LayoutManager, Orientable, Orientation, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -193,6 +194,14 @@ impl ScaleButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/scrollbar.rs b/gtk4/src/auto/scrollbar.rs index 9ed2a1ea5f6a..e3aa7a53577d 100644 --- a/gtk4/src/auto/scrollbar.rs +++ b/gtk4/src/auto/scrollbar.rs @@ -209,6 +209,14 @@ impl ScrollbarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/scrolled_window.rs b/gtk4/src/auto/scrolled_window.rs index 4c78f687fc6c..d88619fbd59f 100644 --- a/gtk4/src/auto/scrolled_window.rs +++ b/gtk4/src/auto/scrolled_window.rs @@ -7,6 +7,7 @@ use crate::{ DirectionType, LayoutManager, Overflow, PolicyType, PositionType, ScrollType, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -1101,6 +1102,14 @@ impl ScrolledWindowBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/search_bar.rs b/gtk4/src/auto/search_bar.rs index 6651886ca537..a2b1fa419ead 100644 --- a/gtk4/src/auto/search_bar.rs +++ b/gtk4/src/auto/search_bar.rs @@ -354,6 +354,14 @@ impl SearchBarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/search_entry.rs b/gtk4/src/auto/search_entry.rs index 9b353e4201a0..046d5d787cf1 100644 --- a/gtk4/src/auto/search_entry.rs +++ b/gtk4/src/auto/search_entry.rs @@ -10,6 +10,7 @@ use crate::{ #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] use crate::{InputHints, InputPurpose}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -556,6 +557,14 @@ impl SearchEntryBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/section_model.rs b/gtk4/src/auto/section_model.rs index b9590b7b8ae9..19faa60fa16f 100644 --- a/gtk4/src/auto/section_model.rs +++ b/gtk4/src/auto/section_model.rs @@ -4,6 +4,7 @@ use crate::ffi; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/selection_model.rs b/gtk4/src/auto/selection_model.rs index 41d37bd5241d..f699612031e2 100644 --- a/gtk4/src/auto/selection_model.rs +++ b/gtk4/src/auto/selection_model.rs @@ -4,6 +4,7 @@ use crate::{ffi, Bitset}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/separator.rs b/gtk4/src/auto/separator.rs index 4b2ba6261061..548e5fa8b30f 100644 --- a/gtk4/src/auto/separator.rs +++ b/gtk4/src/auto/separator.rs @@ -137,6 +137,14 @@ impl SeparatorBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/shortcut_label.rs b/gtk4/src/auto/shortcut_label.rs index aada08f35b15..0f3c43e419dd 100644 --- a/gtk4/src/auto/shortcut_label.rs +++ b/gtk4/src/auto/shortcut_label.rs @@ -1,6 +1,7 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT +#![allow(deprecated)] use crate::{ ffi, Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, LayoutManager, Overflow, @@ -23,6 +24,8 @@ glib::wrapper! { } impl ShortcutLabel { + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gtk_shortcut_label_new")] pub fn new(accelerator: &str) -> ShortcutLabel { assert_initialized_main_thread!(); @@ -40,6 +43,8 @@ impl ShortcutLabel { ShortcutLabelBuilder::new() } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gtk_shortcut_label_get_accelerator")] #[doc(alias = "get_accelerator")] pub fn accelerator(&self) -> Option { @@ -50,6 +55,8 @@ impl ShortcutLabel { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gtk_shortcut_label_get_disabled_text")] #[doc(alias = "get_disabled_text")] #[doc(alias = "disabled-text")] @@ -61,6 +68,8 @@ impl ShortcutLabel { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gtk_shortcut_label_set_accelerator")] #[doc(alias = "accelerator")] pub fn set_accelerator(&self, accelerator: &str) { @@ -72,6 +81,8 @@ impl ShortcutLabel { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gtk_shortcut_label_set_disabled_text")] #[doc(alias = "disabled-text")] pub fn set_disabled_text(&self, disabled_text: &str) { @@ -83,6 +94,7 @@ impl ShortcutLabel { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "accelerator")] pub fn connect_accelerator_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_accelerator_trampoline( @@ -106,6 +118,7 @@ impl ShortcutLabel { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "disabled-text")] pub fn connect_disabled_text_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_disabled_text_trampoline( @@ -152,12 +165,14 @@ impl ShortcutLabelBuilder { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn accelerator(self, accelerator: impl Into) -> Self { Self { builder: self.builder.property("accelerator", accelerator.into()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn disabled_text(self, disabled_text: impl Into) -> Self { Self { builder: self.builder.property("disabled-text", disabled_text.into()), @@ -244,6 +259,14 @@ impl ShortcutLabelBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/shortcuts_group.rs b/gtk4/src/auto/shortcuts_group.rs index 35bb06b8f6ed..71dc24587bb5 100644 --- a/gtk4/src/auto/shortcuts_group.rs +++ b/gtk4/src/auto/shortcuts_group.rs @@ -1,6 +1,7 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT +#![allow(deprecated)] #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] @@ -34,8 +35,10 @@ impl ShortcutsGroup { ShortcutsGroupBuilder::new() } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] + #[allow(deprecated)] #[doc(alias = "gtk_shortcuts_group_add_shortcut")] pub fn add_shortcut(&self, shortcut: &ShortcutsShortcut) { unsafe { @@ -43,36 +46,44 @@ impl ShortcutsGroup { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "accel-size-group")] pub fn set_accel_size_group(&self, accel_size_group: Option<&SizeGroup>) { ObjectExt::set_property(self, "accel-size-group", accel_size_group) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn height(&self) -> u32 { ObjectExt::property(self, "height") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn title(&self) -> Option { ObjectExt::property(self, "title") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn set_title(&self, title: Option<&str>) { ObjectExt::set_property(self, "title", title) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "title-size-group")] pub fn set_title_size_group(&self, title_size_group: Option<&SizeGroup>) { ObjectExt::set_property(self, "title-size-group", title_size_group) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn view(&self) -> Option { ObjectExt::property(self, "view") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn set_view(&self, view: Option<&str>) { ObjectExt::set_property(self, "view", view) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "accel-size-group")] pub fn connect_accel_size_group_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_accel_size_group_trampoline< @@ -98,6 +109,7 @@ impl ShortcutsGroup { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "height")] pub fn connect_height_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_height_trampoline( @@ -121,6 +133,7 @@ impl ShortcutsGroup { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "title")] pub fn connect_title_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_title_trampoline( @@ -144,6 +157,7 @@ impl ShortcutsGroup { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "title-size-group")] pub fn connect_title_size_group_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_title_size_group_trampoline< @@ -169,6 +183,7 @@ impl ShortcutsGroup { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "view")] pub fn connect_view_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_view_trampoline( @@ -209,6 +224,7 @@ impl ShortcutsGroupBuilder { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn accel_size_group(self, accel_size_group: &SizeGroup) -> Self { Self { builder: self @@ -217,12 +233,14 @@ impl ShortcutsGroupBuilder { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn title(self, title: impl Into) -> Self { Self { builder: self.builder.property("title", title.into()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn title_size_group(self, title_size_group: &SizeGroup) -> Self { Self { builder: self @@ -231,6 +249,7 @@ impl ShortcutsGroupBuilder { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn view(self, view: impl Into) -> Self { Self { builder: self.builder.property("view", view.into()), @@ -345,6 +364,14 @@ impl ShortcutsGroupBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/shortcuts_section.rs b/gtk4/src/auto/shortcuts_section.rs index 475a97a34bd7..8c8b4a604d7f 100644 --- a/gtk4/src/auto/shortcuts_section.rs +++ b/gtk4/src/auto/shortcuts_section.rs @@ -1,6 +1,7 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT +#![allow(deprecated)] #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] @@ -34,8 +35,10 @@ impl ShortcutsSection { ShortcutsSectionBuilder::new() } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] + #[allow(deprecated)] #[doc(alias = "gtk_shortcuts_section_add_group")] pub fn add_group(&self, group: &ShortcutsGroup) { unsafe { @@ -43,44 +46,53 @@ impl ShortcutsSection { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "max-height")] pub fn max_height(&self) -> u32 { ObjectExt::property(self, "max-height") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "max-height")] pub fn set_max_height(&self, max_height: u32) { ObjectExt::set_property(self, "max-height", max_height) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "section-name")] pub fn section_name(&self) -> Option { ObjectExt::property(self, "section-name") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "section-name")] pub fn set_section_name(&self, section_name: Option<&str>) { ObjectExt::set_property(self, "section-name", section_name) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn title(&self) -> Option { ObjectExt::property(self, "title") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn set_title(&self, title: Option<&str>) { ObjectExt::set_property(self, "title", title) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "view-name")] pub fn view_name(&self) -> Option { ObjectExt::property(self, "view-name") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "view-name")] pub fn set_view_name(&self, view_name: Option<&str>) { ObjectExt::set_property(self, "view-name", view_name) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "max-height")] pub fn connect_max_height_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_max_height_trampoline( @@ -104,6 +116,7 @@ impl ShortcutsSection { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "section-name")] pub fn connect_section_name_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_section_name_trampoline( @@ -127,6 +140,7 @@ impl ShortcutsSection { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "title")] pub fn connect_title_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_title_trampoline( @@ -150,6 +164,7 @@ impl ShortcutsSection { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "view-name")] pub fn connect_view_name_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_view_name_trampoline( @@ -190,24 +205,28 @@ impl ShortcutsSectionBuilder { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn max_height(self, max_height: u32) -> Self { Self { builder: self.builder.property("max-height", max_height), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn section_name(self, section_name: impl Into) -> Self { Self { builder: self.builder.property("section-name", section_name.into()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn title(self, title: impl Into) -> Self { Self { builder: self.builder.property("title", title.into()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn view_name(self, view_name: impl Into) -> Self { Self { builder: self.builder.property("view-name", view_name.into()), @@ -322,6 +341,14 @@ impl ShortcutsSectionBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/shortcuts_shortcut.rs b/gtk4/src/auto/shortcuts_shortcut.rs index 7196bce20334..242c584458ba 100644 --- a/gtk4/src/auto/shortcuts_shortcut.rs +++ b/gtk4/src/auto/shortcuts_shortcut.rs @@ -31,78 +31,95 @@ impl ShortcutsShortcut { ShortcutsShortcutBuilder::new() } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "accel-size-group")] pub fn set_accel_size_group(&self, accel_size_group: Option<&SizeGroup>) { ObjectExt::set_property(self, "accel-size-group", accel_size_group) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn accelerator(&self) -> Option { ObjectExt::property(self, "accelerator") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn set_accelerator(&self, accelerator: Option<&str>) { ObjectExt::set_property(self, "accelerator", accelerator) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "action-name")] pub fn action_name(&self) -> Option { ObjectExt::property(self, "action-name") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "action-name")] pub fn set_action_name(&self, action_name: Option<&str>) { ObjectExt::set_property(self, "action-name", action_name) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn icon(&self) -> Option { ObjectExt::property(self, "icon") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn set_icon>(&self, icon: Option<&P>) { ObjectExt::set_property(self, "icon", icon) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "icon-set")] pub fn is_icon_set(&self) -> bool { ObjectExt::property(self, "icon-set") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "shortcut-type")] pub fn shortcut_type(&self) -> ShortcutType { ObjectExt::property(self, "shortcut-type") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "shortcut-type")] pub fn set_shortcut_type(&self, shortcut_type: ShortcutType) { ObjectExt::set_property(self, "shortcut-type", shortcut_type) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn subtitle(&self) -> Option { ObjectExt::property(self, "subtitle") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn set_subtitle(&self, subtitle: Option<&str>) { ObjectExt::set_property(self, "subtitle", subtitle) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "subtitle-set")] pub fn is_subtitle_set(&self) -> bool { ObjectExt::property(self, "subtitle-set") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn title(&self) -> Option { ObjectExt::property(self, "title") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn set_title(&self, title: Option<&str>) { ObjectExt::set_property(self, "title", title) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "title-size-group")] pub fn set_title_size_group(&self, title_size_group: Option<&SizeGroup>) { ObjectExt::set_property(self, "title-size-group", title_size_group) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "accel-size-group")] pub fn connect_accel_size_group_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_accel_size_group_trampoline< @@ -128,6 +145,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "accelerator")] pub fn connect_accelerator_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_accelerator_trampoline( @@ -151,6 +169,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "action-name")] pub fn connect_action_name_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_action_name_trampoline( @@ -174,6 +193,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "direction")] pub fn connect_direction_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_direction_trampoline( @@ -197,6 +217,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "icon")] pub fn connect_icon_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_icon_trampoline( @@ -220,6 +241,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "icon-set")] pub fn connect_icon_set_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_icon_set_trampoline( @@ -243,6 +265,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "shortcut-type")] pub fn connect_shortcut_type_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_shortcut_type_trampoline< @@ -268,6 +291,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "subtitle")] pub fn connect_subtitle_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_subtitle_trampoline( @@ -291,6 +315,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "subtitle-set")] pub fn connect_subtitle_set_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_subtitle_set_trampoline( @@ -314,6 +339,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "title")] pub fn connect_title_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_title_trampoline( @@ -337,6 +363,7 @@ impl ShortcutsShortcut { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "title-size-group")] pub fn connect_title_size_group_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_title_size_group_trampoline< @@ -379,6 +406,7 @@ impl ShortcutsShortcutBuilder { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn accel_size_group(self, accel_size_group: &SizeGroup) -> Self { Self { builder: self @@ -387,60 +415,70 @@ impl ShortcutsShortcutBuilder { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn accelerator(self, accelerator: impl Into) -> Self { Self { builder: self.builder.property("accelerator", accelerator.into()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn action_name(self, action_name: impl Into) -> Self { Self { builder: self.builder.property("action-name", action_name.into()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn direction(self, direction: TextDirection) -> Self { Self { builder: self.builder.property("direction", direction), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn icon(self, icon: &impl IsA) -> Self { Self { builder: self.builder.property("icon", icon.clone().upcast()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn icon_set(self, icon_set: bool) -> Self { Self { builder: self.builder.property("icon-set", icon_set), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn shortcut_type(self, shortcut_type: ShortcutType) -> Self { Self { builder: self.builder.property("shortcut-type", shortcut_type), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn subtitle(self, subtitle: impl Into) -> Self { Self { builder: self.builder.property("subtitle", subtitle.into()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn subtitle_set(self, subtitle_set: bool) -> Self { Self { builder: self.builder.property("subtitle-set", subtitle_set), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn title(self, title: impl Into) -> Self { Self { builder: self.builder.property("title", title.into()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn title_size_group(self, title_size_group: &SizeGroup) -> Self { Self { builder: self @@ -529,6 +567,14 @@ impl ShortcutsShortcutBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/shortcuts_window.rs b/gtk4/src/auto/shortcuts_window.rs index 716de80eeaa2..95d0124c4eb6 100644 --- a/gtk4/src/auto/shortcuts_window.rs +++ b/gtk4/src/auto/shortcuts_window.rs @@ -1,6 +1,7 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT +#![allow(deprecated)] #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] @@ -10,6 +11,7 @@ use crate::{ LayoutManager, Native, Overflow, Root, ShortcutManager, Widget, Window, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -34,8 +36,10 @@ impl ShortcutsWindow { ShortcutsWindowBuilder::new() } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] + #[allow(deprecated)] #[doc(alias = "gtk_shortcuts_window_add_section")] pub fn add_section(&self, section: &ShortcutsSection) { unsafe { @@ -43,26 +47,31 @@ impl ShortcutsWindow { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "section-name")] pub fn section_name(&self) -> Option { ObjectExt::property(self, "section-name") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "section-name")] pub fn set_section_name(&self, section_name: Option<&str>) { ObjectExt::set_property(self, "section-name", section_name) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "view-name")] pub fn view_name(&self) -> Option { ObjectExt::property(self, "view-name") } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "view-name")] pub fn set_view_name(&self, view_name: Option<&str>) { ObjectExt::set_property(self, "view-name", view_name) } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "close")] pub fn connect_close(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn close_trampoline( @@ -85,10 +94,12 @@ impl ShortcutsWindow { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn emit_close(&self) { self.emit_by_name::<()>("close", &[]); } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "search")] pub fn connect_search(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn search_trampoline( @@ -111,10 +122,12 @@ impl ShortcutsWindow { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn emit_search(&self) { self.emit_by_name::<()>("search", &[]); } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "section-name")] pub fn connect_section_name_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_section_name_trampoline( @@ -138,6 +151,7 @@ impl ShortcutsWindow { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[doc(alias = "view-name")] pub fn connect_view_name_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_view_name_trampoline( @@ -178,12 +192,14 @@ impl ShortcutsWindowBuilder { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn section_name(self, section_name: impl Into) -> Self { Self { builder: self.builder.property("section-name", section_name.into()), } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] pub fn view_name(self, view_name: impl Into) -> Self { Self { builder: self.builder.property("view-name", view_name.into()), @@ -426,6 +442,14 @@ impl ShortcutsWindowBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/signal_list_item_factory.rs b/gtk4/src/auto/signal_list_item_factory.rs index a22d310dd99c..12dd9aa5d667 100644 --- a/gtk4/src/auto/signal_list_item_factory.rs +++ b/gtk4/src/auto/signal_list_item_factory.rs @@ -5,7 +5,10 @@ use crate::{ffi, ListItemFactory}; #[cfg(feature = "v4_8")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] -use glib::signal::{connect_raw, SignalHandlerId}; +use glib::{ + object::ObjectType as _, + signal::{connect_raw, SignalHandlerId}, +}; use glib::{prelude::*, translate::*}; #[cfg(feature = "v4_8")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] diff --git a/gtk4/src/auto/snapshot.rs b/gtk4/src/auto/snapshot.rs index d59ad6bfad95..99508d54d865 100644 --- a/gtk4/src/auto/snapshot.rs +++ b/gtk4/src/auto/snapshot.rs @@ -300,6 +300,27 @@ pub trait SnapshotExt: IsA + sealed::Sealed + 'static { } } + #[doc(alias = "gtk_snapshot_free_to_node")] + #[doc(alias = "free_to_node")] + fn to_node(self) -> Option { + unsafe { + from_glib_full(ffi::gtk_snapshot_free_to_node( + self.upcast().into_glib_ptr(), + )) + } + } + + #[doc(alias = "gtk_snapshot_free_to_paintable")] + #[doc(alias = "free_to_paintable")] + fn to_paintable(self, size: Option<&graphene::Size>) -> Option { + unsafe { + from_glib_full(ffi::gtk_snapshot_free_to_paintable( + self.upcast().into_glib_ptr(), + size.to_glib_none().0, + )) + } + } + #[cfg_attr(feature = "v4_16", deprecated = "Since 4.16")] #[allow(deprecated)] #[doc(alias = "gtk_snapshot_gl_shader_pop_texture")] @@ -622,21 +643,6 @@ pub trait SnapshotExt: IsA + sealed::Sealed + 'static { } } - #[doc(alias = "gtk_snapshot_to_node")] - fn to_node(self) -> Option { - unsafe { from_glib_full(ffi::gtk_snapshot_to_node(self.upcast().into_glib_ptr())) } - } - - #[doc(alias = "gtk_snapshot_to_paintable")] - fn to_paintable(self, size: Option<&graphene::Size>) -> Option { - unsafe { - from_glib_full(ffi::gtk_snapshot_to_paintable( - self.upcast().into_glib_ptr(), - size.to_glib_none().0, - )) - } - } - #[doc(alias = "gtk_snapshot_transform")] fn transform(&self, transform: Option<&gsk::Transform>) { unsafe { diff --git a/gtk4/src/auto/sorter.rs b/gtk4/src/auto/sorter.rs index 74d6ee7a12e2..65f25990e13d 100644 --- a/gtk4/src/auto/sorter.rs +++ b/gtk4/src/auto/sorter.rs @@ -4,6 +4,7 @@ use crate::{ffi, Ordering, SorterChange, SorterOrder}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/spin_button.rs b/gtk4/src/auto/spin_button.rs index 8251a2caee58..9b2fd39abcce 100644 --- a/gtk4/src/auto/spin_button.rs +++ b/gtk4/src/auto/spin_button.rs @@ -11,6 +11,7 @@ use crate::{ SpinType, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -818,6 +819,14 @@ impl SpinButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/spinner.rs b/gtk4/src/auto/spinner.rs index 36820a9764b1..69707c727644 100644 --- a/gtk4/src/auto/spinner.rs +++ b/gtk4/src/auto/spinner.rs @@ -198,6 +198,14 @@ impl SpinnerBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/stack.rs b/gtk4/src/auto/stack.rs index 029d7d6f73a3..8e6abf17ba5f 100644 --- a/gtk4/src/auto/stack.rs +++ b/gtk4/src/auto/stack.rs @@ -606,6 +606,14 @@ impl StackBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/stack_sidebar.rs b/gtk4/src/auto/stack_sidebar.rs index c11464b85250..bfb3fdfbdf61 100644 --- a/gtk4/src/auto/stack_sidebar.rs +++ b/gtk4/src/auto/stack_sidebar.rs @@ -183,6 +183,14 @@ impl StackSidebarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/stack_switcher.rs b/gtk4/src/auto/stack_switcher.rs index 753a7fec0175..cba5617f384c 100644 --- a/gtk4/src/auto/stack_switcher.rs +++ b/gtk4/src/auto/stack_switcher.rs @@ -183,6 +183,14 @@ impl StackSwitcherBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/statusbar.rs b/gtk4/src/auto/statusbar.rs index 1213a24a2942..b14e4cf5c171 100644 --- a/gtk4/src/auto/statusbar.rs +++ b/gtk4/src/auto/statusbar.rs @@ -8,6 +8,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -248,6 +249,14 @@ impl StatusbarBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/style_provider.rs b/gtk4/src/auto/style_provider.rs index 8a64b8b86a29..6dcab2e94560 100644 --- a/gtk4/src/auto/style_provider.rs +++ b/gtk4/src/auto/style_provider.rs @@ -4,6 +4,7 @@ use crate::ffi; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/switch.rs b/gtk4/src/auto/switch.rs index 75dac6580831..f8c36fdb0ba1 100644 --- a/gtk4/src/auto/switch.rs +++ b/gtk4/src/auto/switch.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -281,6 +282,14 @@ impl SwitchBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/text.rs b/gtk4/src/auto/text.rs index 9447d22e0d54..e7862c6ee124 100644 --- a/gtk4/src/auto/text.rs +++ b/gtk4/src/auto/text.rs @@ -1016,6 +1016,14 @@ impl TextBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/text_buffer.rs b/gtk4/src/auto/text_buffer.rs index 668e71e69384..a9f23e264904 100644 --- a/gtk4/src/auto/text_buffer.rs +++ b/gtk4/src/auto/text_buffer.rs @@ -4,6 +4,7 @@ use crate::{ffi, TextChildAnchor, TextIter, TextMark, TextTag, TextTagTable}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/text_tag_table.rs b/gtk4/src/auto/text_tag_table.rs index ca714730f1b7..660b9fc3d140 100644 --- a/gtk4/src/auto/text_tag_table.rs +++ b/gtk4/src/auto/text_tag_table.rs @@ -4,6 +4,7 @@ use crate::{ffi, Buildable, TextTag}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/text_view.rs b/gtk4/src/auto/text_view.rs index ed8914235500..e70cfabdcd03 100644 --- a/gtk4/src/auto/text_view.rs +++ b/gtk4/src/auto/text_view.rs @@ -12,6 +12,7 @@ use crate::{ TextMark, TextWindowType, Widget, WrapMode, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -305,6 +306,14 @@ impl TextViewBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/toggle_button.rs b/gtk4/src/auto/toggle_button.rs index d1dbb70abef6..fa82c1e393cf 100644 --- a/gtk4/src/auto/toggle_button.rs +++ b/gtk4/src/auto/toggle_button.rs @@ -8,6 +8,7 @@ use crate::{ LayoutManager, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -217,6 +218,14 @@ impl ToggleButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/tree_expander.rs b/gtk4/src/auto/tree_expander.rs index 9f2875707e03..5d77286cf70c 100644 --- a/gtk4/src/auto/tree_expander.rs +++ b/gtk4/src/auto/tree_expander.rs @@ -436,6 +436,14 @@ impl TreeExpanderBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/tree_model.rs b/gtk4/src/auto/tree_model.rs index be73754f2f64..cef234d22414 100644 --- a/gtk4/src/auto/tree_model.rs +++ b/gtk4/src/auto/tree_model.rs @@ -5,6 +5,7 @@ use crate::{ffi, TreeIter, TreeModelFlags, TreePath}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/tree_selection.rs b/gtk4/src/auto/tree_selection.rs index 0cfe357f6ed5..7a23c91f018a 100644 --- a/gtk4/src/auto/tree_selection.rs +++ b/gtk4/src/auto/tree_selection.rs @@ -5,6 +5,7 @@ use crate::{ffi, SelectionMode, TreeIter, TreeModel, TreePath, TreeView}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/tree_sortable.rs b/gtk4/src/auto/tree_sortable.rs index 0d3ce6d03c15..1616c425f244 100644 --- a/gtk4/src/auto/tree_sortable.rs +++ b/gtk4/src/auto/tree_sortable.rs @@ -5,6 +5,7 @@ use crate::{ffi, TreeModel}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/tree_view.rs b/gtk4/src/auto/tree_view.rs index bbf8cf59a135..c3301f57076f 100644 --- a/gtk4/src/auto/tree_view.rs +++ b/gtk4/src/auto/tree_view.rs @@ -10,6 +10,7 @@ use crate::{ TreeViewGridLines, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -277,6 +278,14 @@ impl TreeViewBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/tree_view_column.rs b/gtk4/src/auto/tree_view_column.rs index 9f0aca1d6fbf..6bae16d710c2 100644 --- a/gtk4/src/auto/tree_view_column.rs +++ b/gtk4/src/auto/tree_view_column.rs @@ -8,6 +8,7 @@ use crate::{ TreeViewColumnSizing, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/versions.txt b/gtk4/src/auto/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gtk4/src/auto/versions.txt +++ b/gtk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd) diff --git a/gtk4/src/auto/video.rs b/gtk4/src/auto/video.rs index 81c2b783b2a4..4fa85703003b 100644 --- a/gtk4/src/auto/video.rs +++ b/gtk4/src/auto/video.rs @@ -443,6 +443,14 @@ impl VideoBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/viewport.rs b/gtk4/src/auto/viewport.rs index 9cccb0e0d6fa..75e0a7c99897 100644 --- a/gtk4/src/auto/viewport.rs +++ b/gtk4/src/auto/viewport.rs @@ -258,6 +258,14 @@ impl ViewportBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/volume_button.rs b/gtk4/src/auto/volume_button.rs index 5d96feccd0bb..2ab548ac6d59 100644 --- a/gtk4/src/auto/volume_button.rs +++ b/gtk4/src/auto/volume_button.rs @@ -229,6 +229,14 @@ impl VolumeButtonBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/widget.rs b/gtk4/src/auto/widget.rs index b0bd2304f458..6a975da57d5c 100644 --- a/gtk4/src/auto/widget.rs +++ b/gtk4/src/auto/widget.rs @@ -9,6 +9,7 @@ use crate::{ Settings, SizeRequestMode, Snapshot, StateFlags, StyleContext, TextDirection, Tooltip, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -561,6 +562,19 @@ pub trait WidgetExt: IsA + sealed::Sealed + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gtk_widget_get_limit_events")] + #[doc(alias = "get_limit_events")] + #[doc(alias = "limit-events")] + fn is_limit_events(&self) -> bool { + unsafe { + from_glib(ffi::gtk_widget_get_limit_events( + self.as_ref().to_glib_none().0, + )) + } + } + #[doc(alias = "gtk_widget_get_mapped")] #[doc(alias = "get_mapped")] fn is_mapped(&self) -> bool { @@ -1269,6 +1283,19 @@ pub trait WidgetExt: IsA + sealed::Sealed + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gtk_widget_set_limit_events")] + #[doc(alias = "limit-events")] + fn set_limit_events(&self, limit_events: bool) { + unsafe { + ffi::gtk_widget_set_limit_events( + self.as_ref().to_glib_none().0, + limit_events.into_glib(), + ); + } + } + #[doc(alias = "gtk_widget_set_margin_bottom")] #[doc(alias = "margin-bottom")] fn set_margin_bottom(&self, margin: i32) { @@ -2234,6 +2261,31 @@ pub trait WidgetExt: IsA + sealed::Sealed + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "limit-events")] + fn connect_limit_events_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_limit_events_trampoline, F: Fn(&P) + 'static>( + this: *mut ffi::GtkWidget, + _param_spec: glib::ffi::gpointer, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f(Widget::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"notify::limit-events\0".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( + notify_limit_events_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + #[doc(alias = "margin-bottom")] fn connect_margin_bottom_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_margin_bottom_trampoline< diff --git a/gtk4/src/auto/window.rs b/gtk4/src/auto/window.rs index 5f52d4dc951d..9db19a10bbf3 100644 --- a/gtk4/src/auto/window.rs +++ b/gtk4/src/auto/window.rs @@ -8,6 +8,7 @@ use crate::{ LayoutManager, Native, Overflow, Root, ShortcutManager, Widget, WindowGroup, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, @@ -343,6 +344,14 @@ impl WindowBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/window_controls.rs b/gtk4/src/auto/window_controls.rs index 81c6082997b3..3d5c85b266b1 100644 --- a/gtk4/src/auto/window_controls.rs +++ b/gtk4/src/auto/window_controls.rs @@ -273,6 +273,14 @@ impl WindowControlsBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/auto/window_handle.rs b/gtk4/src/auto/window_handle.rs index 27793f11c48e..e5bb183607f7 100644 --- a/gtk4/src/auto/window_handle.rs +++ b/gtk4/src/auto/window_handle.rs @@ -186,6 +186,14 @@ impl WindowHandleBuilder { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn limit_events(self, limit_events: bool) -> Self { + Self { + builder: self.builder.property("limit-events", limit_events), + } + } + pub fn margin_bottom(self, margin_bottom: i32) -> Self { Self { builder: self.builder.property("margin-bottom", margin_bottom), diff --git a/gtk4/src/lib.rs b/gtk4/src/lib.rs index 4fa96f711e04..1306bf03930e 100644 --- a/gtk4/src/lib.rs +++ b/gtk4/src/lib.rs @@ -2,6 +2,7 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![allow(deprecated)] +#![allow(clippy::manual_c_str_literals)] #![doc = include_str!("../README.md")] // Re-export gtk dependencies @@ -88,6 +89,7 @@ where #[allow(clippy::derived_hash_with_manual_eq)] #[allow(clippy::too_many_arguments)] #[allow(clippy::type_complexity)] +#[allow(unused_imports)] mod auto; #[macro_use] diff --git a/gtk4/sys/src/lib.rs b/gtk4/sys/src/lib.rs index dbe2f18aed72..f71bfcf27eea 100644 --- a/gtk4/sys/src/lib.rs +++ b/gtk4/sys/src/lib.rs @@ -105,6 +105,24 @@ pub const GTK_ACCESSIBLE_RELATION_ROW_INDEX: GtkAccessibleRelation = 14; pub const GTK_ACCESSIBLE_RELATION_ROW_INDEX_TEXT: GtkAccessibleRelation = 15; pub const GTK_ACCESSIBLE_RELATION_ROW_SPAN: GtkAccessibleRelation = 16; pub const GTK_ACCESSIBLE_RELATION_SET_SIZE: GtkAccessibleRelation = 17; +#[cfg(feature = "v4_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] +pub const GTK_ACCESSIBLE_RELATION_LABEL_FOR: GtkAccessibleRelation = 18; +#[cfg(feature = "v4_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] +pub const GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR: GtkAccessibleRelation = 19; +#[cfg(feature = "v4_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] +pub const GTK_ACCESSIBLE_RELATION_CONTROLLED_BY: GtkAccessibleRelation = 20; +#[cfg(feature = "v4_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] +pub const GTK_ACCESSIBLE_RELATION_DETAILS_FOR: GtkAccessibleRelation = 21; +#[cfg(feature = "v4_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] +pub const GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR: GtkAccessibleRelation = 22; +#[cfg(feature = "v4_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] +pub const GTK_ACCESSIBLE_RELATION_FLOW_FROM: GtkAccessibleRelation = 23; pub type GtkAccessibleRole = c_int; pub const GTK_ACCESSIBLE_ROLE_ALERT: GtkAccessibleRole = 0; @@ -1029,7 +1047,7 @@ pub const GTK_DEBUG_MODULES: GtkDebugFlags = 8; pub const GTK_DEBUG_GEOMETRY: GtkDebugFlags = 16; pub const GTK_DEBUG_ICONTHEME: GtkDebugFlags = 32; pub const GTK_DEBUG_PRINTING: GtkDebugFlags = 64; -pub const GTK_DEBUG_BUILDER: GtkDebugFlags = 128; +pub const GTK_DEBUG_BUILDER_TRACE: GtkDebugFlags = 128; pub const GTK_DEBUG_SIZE_REQUEST: GtkDebugFlags = 256; pub const GTK_DEBUG_NO_CSS_CACHE: GtkDebugFlags = 512; pub const GTK_DEBUG_INTERACTIVE: GtkDebugFlags = 1024; @@ -1048,6 +1066,7 @@ pub const GTK_DEBUG_INVERT_TEXT_DIR: GtkDebugFlags = 524288; #[cfg(feature = "v4_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))] pub const GTK_DEBUG_CSS: GtkDebugFlags = 1048576; +pub const GTK_DEBUG_BUILDER: GtkDebugFlags = 2097152; pub type GtkDialogFlags = c_uint; pub const GTK_DIALOG_MODAL: GtkDialogFlags = 1; @@ -13995,6 +14014,40 @@ extern "C" { result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut gio::GListModel; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gtk_file_dialog_open_multiple_text_files( + self_: *mut GtkFileDialog, + parent: *mut GtkWindow, + cancellable: *mut gio::GCancellable, + callback: gio::GAsyncReadyCallback, + user_data: gpointer, + ); + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gtk_file_dialog_open_multiple_text_files_finish( + self_: *mut GtkFileDialog, + result: *mut gio::GAsyncResult, + encoding: *mut *const c_char, + error: *mut *mut glib::GError, + ) -> *mut gio::GListModel; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gtk_file_dialog_open_text_file( + self_: *mut GtkFileDialog, + parent: *mut GtkWindow, + cancellable: *mut gio::GCancellable, + callback: gio::GAsyncReadyCallback, + user_data: gpointer, + ); + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gtk_file_dialog_open_text_file_finish( + self_: *mut GtkFileDialog, + result: *mut gio::GAsyncResult, + encoding: *mut *const c_char, + error: *mut *mut glib::GError, + ) -> *mut gio::GFile; #[cfg(feature = "v4_10")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_save( @@ -14011,6 +14064,24 @@ extern "C" { result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut gio::GFile; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gtk_file_dialog_save_text_file( + self_: *mut GtkFileDialog, + parent: *mut GtkWindow, + cancellable: *mut gio::GCancellable, + callback: gio::GAsyncReadyCallback, + user_data: gpointer, + ); + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gtk_file_dialog_save_text_file_finish( + self_: *mut GtkFileDialog, + result: *mut gio::GAsyncResult, + encoding: *mut *const c_char, + line_ending: *mut *const c_char, + error: *mut *mut glib::GError, + ) -> *mut gio::GFile; #[cfg(feature = "v4_10")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_dialog_select_folder( @@ -20142,6 +20213,9 @@ extern "C" { pub fn gtk_widget_get_hexpand_set(widget: *mut GtkWidget) -> gboolean; pub fn gtk_widget_get_last_child(widget: *mut GtkWidget) -> *mut GtkWidget; pub fn gtk_widget_get_layout_manager(widget: *mut GtkWidget) -> *mut GtkLayoutManager; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gtk_widget_get_limit_events(widget: *mut GtkWidget) -> gboolean; pub fn gtk_widget_get_mapped(widget: *mut GtkWidget) -> gboolean; pub fn gtk_widget_get_margin_bottom(widget: *mut GtkWidget) -> c_int; pub fn gtk_widget_get_margin_end(widget: *mut GtkWidget) -> c_int; @@ -20277,6 +20351,9 @@ extern "C" { widget: *mut GtkWidget, layout_manager: *mut GtkLayoutManager, ); + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gtk_widget_set_limit_events(widget: *mut GtkWidget, limit_events: gboolean); pub fn gtk_widget_set_margin_bottom(widget: *mut GtkWidget, margin: c_int); pub fn gtk_widget_set_margin_end(widget: *mut GtkWidget, margin: c_int); pub fn gtk_widget_set_margin_start(widget: *mut GtkWidget, margin: c_int); @@ -20514,6 +20591,12 @@ extern "C" { self_: *mut GtkAccessible, new_sibling: *mut GtkAccessible, ); + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gtk_accessible_update_platform_state( + self_: *mut GtkAccessible, + state: GtkAccessiblePlatformState, + ); pub fn gtk_accessible_update_property( self_: *mut GtkAccessible, first_property: GtkAccessibleProperty, diff --git a/gtk4/sys/tests/abi.rs b/gtk4/sys/tests/abi.rs index 265a949f793b..200e4a4ea981 100644 --- a/gtk4/sys/tests/abi.rs +++ b/gtk4/sys/tests/abi.rs @@ -2664,12 +2664,18 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) GTK_ACCESSIBLE_RELATION_COL_INDEX", "2"), ("(gint) GTK_ACCESSIBLE_RELATION_COL_INDEX_TEXT", "3"), ("(gint) GTK_ACCESSIBLE_RELATION_COL_SPAN", "4"), + ("(gint) GTK_ACCESSIBLE_RELATION_CONTROLLED_BY", "20"), ("(gint) GTK_ACCESSIBLE_RELATION_CONTROLS", "5"), ("(gint) GTK_ACCESSIBLE_RELATION_DESCRIBED_BY", "6"), + ("(gint) GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR", "19"), ("(gint) GTK_ACCESSIBLE_RELATION_DETAILS", "7"), + ("(gint) GTK_ACCESSIBLE_RELATION_DETAILS_FOR", "21"), ("(gint) GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE", "8"), + ("(gint) GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR", "22"), + ("(gint) GTK_ACCESSIBLE_RELATION_FLOW_FROM", "23"), ("(gint) GTK_ACCESSIBLE_RELATION_FLOW_TO", "9"), ("(gint) GTK_ACCESSIBLE_RELATION_LABELLED_BY", "10"), + ("(gint) GTK_ACCESSIBLE_RELATION_LABEL_FOR", "18"), ("(gint) GTK_ACCESSIBLE_RELATION_OWNS", "11"), ("(gint) GTK_ACCESSIBLE_RELATION_POS_IN_SET", "12"), ("(gint) GTK_ACCESSIBLE_RELATION_ROW_COUNT", "13"), @@ -2910,8 +2916,9 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) GTK_CSS_PARSER_WARNING_UNIMPLEMENTED", "2"), ("(guint) GTK_DEBUG_A11Y", "131072"), ("(guint) GTK_DEBUG_ACTIONS", "4096"), - ("(guint) GTK_DEBUG_BUILDER", "128"), + ("(guint) GTK_DEBUG_BUILDER", "2097152"), ("(guint) GTK_DEBUG_BUILDER_OBJECTS", "65536"), + ("(guint) GTK_DEBUG_BUILDER_TRACE", "128"), ("(guint) GTK_DEBUG_CONSTRAINTS", "32768"), ("(guint) GTK_DEBUG_CSS", "1048576"), ("(guint) GTK_DEBUG_GEOMETRY", "16"), diff --git a/gtk4/sys/tests/constant.c b/gtk4/sys/tests/constant.c index 5d73094b8c68..30bd9d230fb7 100644 --- a/gtk4/sys/tests/constant.c +++ b/gtk4/sys/tests/constant.c @@ -102,12 +102,18 @@ int main() { PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_COL_INDEX); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_COL_INDEX_TEXT); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_COL_SPAN); + PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_CONTROLLED_BY); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_CONTROLS); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_DESCRIBED_BY); + PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_DETAILS); + PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_DETAILS_FOR); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE); + PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR); + PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_FLOW_FROM); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_FLOW_TO); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_LABELLED_BY); + PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_LABEL_FOR); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_OWNS); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_POS_IN_SET); PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_ROW_COUNT); @@ -341,6 +347,7 @@ int main() { PRINT_CONSTANT((guint) GTK_DEBUG_ACTIONS); PRINT_CONSTANT((guint) GTK_DEBUG_BUILDER); PRINT_CONSTANT((guint) GTK_DEBUG_BUILDER_OBJECTS); + PRINT_CONSTANT((guint) GTK_DEBUG_BUILDER_TRACE); PRINT_CONSTANT((guint) GTK_DEBUG_CONSTRAINTS); PRINT_CONSTANT((guint) GTK_DEBUG_CSS); PRINT_CONSTANT((guint) GTK_DEBUG_GEOMETRY); diff --git a/gtk4/sys/versions.txt b/gtk4/sys/versions.txt index bba14f1d708d..06f50dbf182f 100644 --- a/gtk4/sys/versions.txt +++ b/gtk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a) -from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926) +Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95) +from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)