diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 24df45178677..9d2816a34689 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -23,7 +23,7 @@ on: jobs: ci-macos: name: macOS - runs-on: macos-12 + runs-on: macos-14 steps: - uses: actions/checkout@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index cba836846dd4..739c0fb6751d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -93,6 +93,7 @@ yuraiz: ```rust #[derive(Debug, Default, gtk::CompositeTemplate)] #[template(string = " +using Gtk 4.0; template $MyWidget : Widget { Label label { label: 'foobar'; diff --git a/Cargo.lock b/Cargo.lock index 602da4388af6..851b28c06b16 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,9 +109,9 @@ checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "bytemuck" -version = "1.19.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8334215b81e418a0a7bdb8ef0849474f40bb10c8b71f1c4ed315cff49f32494d" +checksum = "8b37c88a63ffd85d15b406896cc343916d7cf57838a847b3a6f2ca5d39a5695a" dependencies = [ "bytemuck_derive", ] @@ -141,14 +141,14 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" [[package]] name = "bytes" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" +checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" [[package]] name = "cairo-rs" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "bitflags 2.6.0", "cairo-sys-rs", @@ -159,7 +159,7 @@ dependencies = [ [[package]] name = "cairo-sys-rs" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "glib-sys", "libc", @@ -168,18 +168,18 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.1" +version = "1.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" +checksum = "9157bbaa6b165880c27a4293a474c91cdcf265cc68cc829bf10be0964a391caf" dependencies = [ "shlex", ] [[package]] name = "cfg-expr" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c360837f8f19e2e4468275138f1c0dec1647d1e17bb7c0215fe3cd7530e93c25" +checksum = "8d4ba6e40bd1184518716a6e1a781bf9160e286d219ccdb8ab2612e74cfe4789" dependencies = [ "smallvec", "target-lexicon", @@ -199,9 +199,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" -version = "0.4.38" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" dependencies = [ "android-tzdata", "iana-time-zone", @@ -243,9 +243,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.20" +version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" [[package]] name = "displaydoc" @@ -293,12 +293,12 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -314,9 +314,9 @@ dependencies = [ [[package]] name = "event-listener-strategy" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" +checksum = "3c3e4e0dd3673c1139bf041f3008816d9cf2946bbfac2945c09e523b8d7b05b2" dependencies = [ "event-listener", "pin-project-lite", @@ -324,9 +324,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "femtovg" @@ -441,7 +441,7 @@ dependencies = [ [[package]] name = "gdk-pixbuf" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "gdk-pixbuf-sys", "gio", @@ -452,7 +452,7 @@ dependencies = [ [[package]] name = "gdk-pixbuf-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "gio-sys", "glib-sys", @@ -627,7 +627,7 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "gio" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "futures-channel", "futures-core", @@ -643,7 +643,7 @@ dependencies = [ [[package]] name = "gio-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "glib-sys", "gobject-sys", @@ -686,13 +686,13 @@ checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d" dependencies = [ "khronos_api 3.1.0", "log", - "xml-rs 0.8.23", + "xml-rs 0.8.24", ] [[package]] name = "glib" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "bitflags 2.6.0", "futures-channel", @@ -712,7 +712,7 @@ dependencies = [ [[package]] name = "glib-macros" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "heck", "proc-macro-crate", @@ -724,7 +724,7 @@ dependencies = [ [[package]] name = "glib-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "libc", "system-deps", @@ -764,7 +764,7 @@ dependencies = [ [[package]] name = "gobject-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "glib-sys", "libc", @@ -774,7 +774,7 @@ dependencies = [ [[package]] name = "graphene-rs" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "glib", "graphene-sys", @@ -784,7 +784,7 @@ dependencies = [ [[package]] name = "graphene-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "glib-sys", "libc", @@ -897,9 +897,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.15.1" +version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" [[package]] name = "heck" @@ -907,17 +907,11 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" -[[package]] -name = "hermit-abi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" - [[package]] name = "http" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" +checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" dependencies = [ "bytes", "fnv", @@ -955,9 +949,9 @@ checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" [[package]] name = "hyper" -version = "1.5.0" +version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbbff0a806a4728c99295b254c8838933b5b082d75e3cb70c8dab21fdfbcfa9a" +checksum = "256fb8d4bd6413123cc9d91832d78325c48ff41677595be797d90f42969beae0" dependencies = [ "bytes", "futures-channel", @@ -1206,9 +1200,9 @@ checksum = "d0263a3d970d5c054ed9312c0057b4f3bde9c0b33836d3637361d4a9e6e7a408" [[package]] name = "indexmap" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" +checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" dependencies = [ "equivalent", "hashbrown", @@ -1222,16 +1216,17 @@ checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" [[package]] name = "itoa" -version = "1.0.11" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" [[package]] name = "js-sys" -version = "0.3.72" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" +checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" dependencies = [ + "once_cell", "wasm-bindgen", ] @@ -1264,9 +1259,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.167" +version = "0.2.168" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc" +checksum = "5aaeb2981e0606ca11d79718f8bb01164f1d6ed75080182d3abf017e6d244b6d" [[package]] name = "libloading" @@ -1292,9 +1287,9 @@ checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[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" @@ -1341,20 +1336,19 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniz_oxide" -version = "0.8.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" +checksum = "4ffbe83022cedc1d264172192511ae958937694cd57ce297164951b8b3568394" dependencies = [ "adler2", ] [[package]] name = "mio" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ - "hermit-abi", "libc", "wasi", "windows-sys 0.52.0", @@ -1387,7 +1381,7 @@ checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "pango" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "gio", "glib", @@ -1398,7 +1392,7 @@ dependencies = [ [[package]] name = "pango-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#c940ecde9ec13552a3e797e7a4352ba2edf23a0b" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" dependencies = [ "glib-sys", "gobject-sys", @@ -1544,9 +1538,9 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d5a626c6807713b15cac82a6acaccd6043c9a5408c24baae07611fec3f243da" +checksum = "52cd4b1eff68bf27940dd39811292c49e007f4d0b4c357358dc9b0197be6b527" dependencies = [ "cfg_aliases", "libc", @@ -1606,9 +1600,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" dependencies = [ "bitflags 2.6.0", ] @@ -1687,9 +1681,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" [[package]] name = "rustc_version" @@ -1702,22 +1696,22 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.40" +version = "0.38.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99e4ea3e1cdc4b559b8e5650f9c8e5998e3e5c1343b4eaf034565f32318d63c0" +checksum = "f93dc38ecbab2eb790ff964bb77fa94faf256fd3e73285fd7ba0903b76bedb85" dependencies = [ "bitflags 2.6.0", "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "rustls" -version = "0.23.17" +version = "0.23.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f1a745511c54ba6d4465e8d5dfbd81b45791756de28d4981af70d6dca128f1e" +checksum = "5065c3f250cbd332cd894be57c40fa52387247659b14a2d6041d121547903b1b" dependencies = [ "once_cell", "ring", @@ -1738,9 +1732,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.10.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" +checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" dependencies = [ "web-time", ] @@ -1794,24 +1788,24 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "semver" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" +checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba" [[package]] name = "serde" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" +checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" +checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" dependencies = [ "proc-macro2", "quote", @@ -1918,9 +1912,9 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "socket2" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" +checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" dependencies = [ "libc", "windows-sys 0.52.0", @@ -1946,9 +1940,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" -version = "2.0.87" +version = "2.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" +checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" dependencies = [ "proc-macro2", "quote", @@ -1957,9 +1951,9 @@ dependencies = [ [[package]] name = "sync_wrapper" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" dependencies = [ "futures-core", ] @@ -2018,18 +2012,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.3" +version = "2.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +checksum = "08f5383f3e0071702bf93ab5ee99b52d26936be9dedd9413067cbdcddcb6141a" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "2.0.3" +version = "2.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" +checksum = "f2f357fcec90b3caef6623a099691be676d033b40a058ac95d2a6ade6fa0c943" dependencies = [ "proc-macro2", "quote", @@ -2063,9 +2057,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.41.1" +version = "1.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" +checksum = "5cec9b21b0450273377fc97bd4c33a8acffc8c996c987a7c5b319a0083707551" dependencies = [ "backtrace", "bytes", @@ -2092,12 +2086,11 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.26.0" +version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" +checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37" dependencies = [ "rustls", - "rustls-pki-types", "tokio", ] @@ -2143,9 +2136,9 @@ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "pin-project-lite", "tracing-core", @@ -2153,9 +2146,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.32" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" dependencies = [ "once_cell", ] @@ -2183,9 +2176,9 @@ dependencies = [ [[package]] name = "ttf-parser" -version = "0.25.0" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5902c5d130972a0000f60860bfbf46f7ca3db5391eddfedd1b8728bd9dc96c0e" +checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" dependencies = [ "core_maths", ] @@ -2198,9 +2191,9 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicode-bidi" -version = "0.3.17" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ab17db44d7388991a428b2ee655ce0c212e862eff1768a455c58f9aad6e7893" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" [[package]] name = "unicode-bidi-mirroring" @@ -2216,9 +2209,9 @@ checksum = "ce61d488bcdc9bc8b5d1772c404828b17fc481c0a582b5581e95fb233aef503e" [[package]] name = "unicode-ident" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" [[package]] name = "unicode-properties" @@ -2246,9 +2239,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.3" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", "idna", @@ -2296,9 +2289,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" +checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" dependencies = [ "cfg-if", "once_cell", @@ -2307,13 +2300,12 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" +checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", "syn", @@ -2322,21 +2314,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.45" +version = "0.4.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" +checksum = "38176d9b44ea84e9184eff0bc34cc167ed044f816accfe5922e54d84cf48eca2" dependencies = [ "cfg-if", "js-sys", + "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" +checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2344,9 +2337,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" +checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" dependencies = [ "proc-macro2", "quote", @@ -2357,9 +2350,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" +checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" [[package]] name = "wayland-backend" @@ -2411,9 +2404,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.72" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" +checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" dependencies = [ "js-sys", "wasm-bindgen", @@ -2431,9 +2424,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.26.6" +version = "0.26.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841c67bff177718f1d4dfefde8d8f0e78f9b6589319ba88312f567fc5841a958" +checksum = "5d642ff16b7e79272ae451b7322067cdc17cadf68c23264be9d94a32319efe7e" dependencies = [ "rustls-pki-types", ] @@ -2661,15 +2654,15 @@ dependencies = [ [[package]] name = "xml-rs" -version = "0.8.23" +version = "0.8.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af310deaae937e48a26602b730250b4949e125f468f11e6990be3e5304ddd96f" +checksum = "ea8b391c9a790b496184c29f7f93b9ed5b16abb306c05415b68bcc16e4d06432" [[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", @@ -2679,9 +2672,9 @@ dependencies = [ [[package]] name = "yoke-derive" -version = "0.7.4" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" dependencies = [ "proc-macro2", "quote", @@ -2712,18 +2705,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/deny.toml b/deny.toml index 5fc2001c97a2..7c9926dfe1b5 100644 --- a/deny.toml +++ b/deny.toml @@ -16,8 +16,8 @@ allow = [ "MIT", "Apache-2.0", "Apache-2.0 WITH LLVM-exception", - "Unicode-DFS-2016", "ISC", + "Unicode-3.0" ] confidence-threshold = 0.8 @@ -33,11 +33,6 @@ allow-git = [ "https://github.com/gtk-rs/gtk-rs-core", ] -# rustix/errno depends on an older version -[[bans.skip]] -name = "windows-sys" -version = "0.52.0" - # wayland-scanner depends on an older version [[bans.skip]] name = "quick-xml" diff --git a/examples/custom_orientable/custom_orientable/imp.rs b/examples/custom_orientable/custom_orientable/imp.rs index a97c8a29345b..800cd4e0fd43 100644 --- a/examples/custom_orientable/custom_orientable/imp.rs +++ b/examples/custom_orientable/custom_orientable/imp.rs @@ -62,7 +62,7 @@ impl ObjectImpl for CustomOrientable { } fn dispose(&self) { - // Child widgets need to be manually unparented in `dispose()`. + // Child widgets need to be manually un-parented in `dispose()`. if let Some(child) = self.first_label.borrow_mut().take() { child.unparent(); } diff --git a/examples/custom_widget/ex_button/imp.rs b/examples/custom_widget/ex_button/imp.rs index 2a44901e7c61..d985b53f02cd 100644 --- a/examples/custom_widget/ex_button/imp.rs +++ b/examples/custom_widget/ex_button/imp.rs @@ -66,7 +66,7 @@ impl ObjectImpl for ExButton { } fn dispose(&self) { - // Child widgets need to be manually unparented in `dispose()`. + // Child widgets need to be manually un-parented in `dispose()`. if let Some(child) = self.child.borrow_mut().take() { child.unparent(); } diff --git a/gdk4-macos/src/auto/macos_surface.rs b/gdk4-macos/src/auto/macos_surface.rs index 8dc628bd49ec..dfd1615d78c7 100644 --- a/gdk4-macos/src/auto/macos_surface.rs +++ b/gdk4-macos/src/auto/macos_surface.rs @@ -46,7 +46,7 @@ impl MacosSurface { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::native\0".as_ptr() as *const _, + c"notify::native".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_native_trampoline:: as *const (), )), diff --git a/gdk4-macos/src/auto/versions.txt b/gdk4-macos/src/auto/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-macos/sys/versions.txt b/gdk4-macos/sys/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-x11/src/auto/x11_screen.rs b/gdk4-x11/src/auto/x11_screen.rs index 85fec0dd5422..855fba40018e 100644 --- a/gdk4-x11/src/auto/x11_screen.rs +++ b/gdk4-x11/src/auto/x11_screen.rs @@ -71,7 +71,7 @@ impl X11Screen { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"window-manager-changed\0".as_ptr() as *const _, + c"window-manager-changed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( window_manager_changed_trampoline:: as *const (), )), diff --git a/gdk4-x11/src/x11_display.rs b/gdk4-x11/src/x11_display.rs index 55e6006e4ec5..7f43ebf46c6f 100644 --- a/gdk4-x11/src/x11_display.rs +++ b/gdk4-x11/src/x11_display.rs @@ -89,7 +89,7 @@ impl X11Display { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"xevent\0".as_ptr() as *const _, + c"xevent".as_ptr() as *const _, Some(transmute::<*const (), unsafe extern "C" fn()>( xevent_trampoline:: as *const (), )), diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4/src/auto/cicp_params.rs b/gdk4/src/auto/cicp_params.rs index a6807d7ec998..9d68f1eadc44 100644 --- a/gdk4/src/auto/cicp_params.rs +++ b/gdk4/src/auto/cicp_params.rs @@ -27,7 +27,7 @@ impl CicpParams { } #[doc(alias = "gdk_cicp_params_build_color_state")] - pub fn build_color_state(&self) -> Result, glib::Error> { + pub fn build_color_state(&self) -> Result { unsafe { let mut error = std::ptr::null_mut(); let ret = ffi::gdk_cicp_params_build_color_state(self.to_glib_none().0, &mut error); @@ -117,7 +117,7 @@ impl CicpParams { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::color-primaries\0".as_ptr() as *const _, + c"notify::color-primaries".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_color_primaries_trampoline:: as *const (), )), @@ -145,7 +145,7 @@ impl CicpParams { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::matrix-coefficients\0".as_ptr() as *const _, + c"notify::matrix-coefficients".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_matrix_coefficients_trampoline:: as *const (), )), @@ -170,7 +170,7 @@ impl CicpParams { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::range\0".as_ptr() as *const _, + c"notify::range".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_range_trampoline:: as *const (), )), @@ -198,7 +198,7 @@ impl CicpParams { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::transfer-function\0".as_ptr() as *const _, + c"notify::transfer-function".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_transfer_function_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/clipboard.rs b/gdk4/src/auto/clipboard.rs index 91fe1874e7be..ae75dc47736e 100644 --- a/gdk4/src/auto/clipboard.rs +++ b/gdk4/src/auto/clipboard.rs @@ -340,7 +340,7 @@ impl Clipboard { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"changed\0".as_ptr() as *const _, + c"changed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( changed_trampoline:: as *const (), )), @@ -363,7 +363,7 @@ impl Clipboard { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::content\0".as_ptr() as *const _, + c"notify::content".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_content_trampoline:: as *const (), )), @@ -386,7 +386,7 @@ impl Clipboard { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::formats\0".as_ptr() as *const _, + c"notify::formats".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_formats_trampoline:: as *const (), )), @@ -409,7 +409,7 @@ impl Clipboard { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::local\0".as_ptr() as *const _, + c"notify::local".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_local_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/content_formats.rs b/gdk4/src/auto/content_formats.rs index 2cef38f3a6df..67ec0bbf66b5 100644 --- a/gdk4/src/auto/content_formats.rs +++ b/gdk4/src/auto/content_formats.rs @@ -73,6 +73,13 @@ impl ContentFormats { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gdk_content_formats_is_empty")] + pub fn is_empty(&self) -> bool { + unsafe { from_glib(ffi::gdk_content_formats_is_empty(self.to_glib_none().0)) } + } + #[doc(alias = "gdk_content_formats_match")] #[doc(alias = "match")] pub fn match_(&self, second: &ContentFormats) -> bool { diff --git a/gdk4/src/auto/content_provider.rs b/gdk4/src/auto/content_provider.rs index bea48c3f8af7..45d32462c4c2 100644 --- a/gdk4/src/auto/content_provider.rs +++ b/gdk4/src/auto/content_provider.rs @@ -182,7 +182,7 @@ pub trait ContentProviderExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"content-changed\0".as_ptr() as *const _, + c"content-changed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( content_changed_trampoline:: as *const (), )), @@ -208,7 +208,7 @@ pub trait ContentProviderExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::formats\0".as_ptr() as *const _, + c"notify::formats".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_formats_trampoline:: as *const (), )), @@ -234,7 +234,7 @@ pub trait ContentProviderExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::storable-formats\0".as_ptr() as *const _, + c"notify::storable-formats".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_storable_formats_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/device.rs b/gdk4/src/auto/device.rs index ef71d92f8c8c..4726ee0868c3 100644 --- a/gdk4/src/auto/device.rs +++ b/gdk4/src/auto/device.rs @@ -215,7 +215,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"changed\0".as_ptr() as *const _, + c"changed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( changed_trampoline:: as *const (), )), @@ -244,7 +244,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"tool-changed\0".as_ptr() as *const _, + c"tool-changed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( tool_changed_trampoline:: as *const (), )), @@ -270,7 +270,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::caps-lock-state\0".as_ptr() as *const _, + c"notify::caps-lock-state".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_caps_lock_state_trampoline:: as *const (), )), @@ -293,7 +293,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::direction\0".as_ptr() as *const _, + c"notify::direction".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_direction_trampoline:: as *const (), )), @@ -319,7 +319,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::has-bidi-layouts\0".as_ptr() as *const _, + c"notify::has-bidi-layouts".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_has_bidi_layouts_trampoline:: as *const (), )), @@ -345,7 +345,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::modifier-state\0".as_ptr() as *const _, + c"notify::modifier-state".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_modifier_state_trampoline:: as *const (), )), @@ -368,7 +368,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::n-axes\0".as_ptr() as *const _, + c"notify::n-axes".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_n_axes_trampoline:: as *const (), )), @@ -394,7 +394,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::num-lock-state\0".as_ptr() as *const _, + c"notify::num-lock-state".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_num_lock_state_trampoline:: as *const (), )), @@ -420,7 +420,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::scroll-lock-state\0".as_ptr() as *const _, + c"notify::scroll-lock-state".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_scroll_lock_state_trampoline:: as *const (), )), @@ -443,7 +443,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::seat\0".as_ptr() as *const _, + c"notify::seat".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_seat_trampoline:: as *const (), )), @@ -466,7 +466,7 @@ pub trait DeviceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::tool\0".as_ptr() as *const _, + c"notify::tool".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_tool_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/display.rs b/gdk4/src/auto/display.rs index 3e165b9e25f4..2393ccc11ff9 100644 --- a/gdk4/src/auto/display.rs +++ b/gdk4/src/auto/display.rs @@ -307,7 +307,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"closed\0".as_ptr() as *const _, + c"closed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( closed_trampoline:: as *const (), )), @@ -329,7 +329,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"opened\0".as_ptr() as *const _, + c"opened".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( opened_trampoline:: as *const (), )), @@ -355,7 +355,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"seat-added\0".as_ptr() as *const _, + c"seat-added".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( seat_added_trampoline:: as *const (), )), @@ -384,7 +384,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"seat-removed\0".as_ptr() as *const _, + c"seat-removed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( seat_removed_trampoline:: as *const (), )), @@ -413,7 +413,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"setting-changed\0".as_ptr() as *const _, + c"setting-changed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( setting_changed_trampoline:: as *const (), )), @@ -436,7 +436,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::composited\0".as_ptr() as *const _, + c"notify::composited".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_composited_trampoline:: as *const (), )), @@ -464,7 +464,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::dmabuf-formats\0".as_ptr() as *const _, + c"notify::dmabuf-formats".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_dmabuf_formats_trampoline:: as *const (), )), @@ -490,7 +490,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::input-shapes\0".as_ptr() as *const _, + c"notify::input-shapes".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_input_shapes_trampoline:: as *const (), )), @@ -513,7 +513,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::rgba\0".as_ptr() as *const _, + c"notify::rgba".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_rgba_trampoline:: as *const (), )), @@ -541,7 +541,7 @@ pub trait DisplayExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::shadow-width\0".as_ptr() as *const _, + c"notify::shadow-width".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_shadow_width_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/display_manager.rs b/gdk4/src/auto/display_manager.rs index b059894cd767..898355ea900b 100644 --- a/gdk4/src/auto/display_manager.rs +++ b/gdk4/src/auto/display_manager.rs @@ -86,7 +86,7 @@ impl DisplayManager { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"display-opened\0".as_ptr() as *const _, + c"display-opened".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( display_opened_trampoline:: as *const (), )), @@ -109,7 +109,7 @@ impl DisplayManager { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::default-display\0".as_ptr() as *const _, + c"notify::default-display".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_default_display_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/dmabuf_texture_builder.rs b/gdk4/src/auto/dmabuf_texture_builder.rs index f53242bb08b4..b8b92c518c3a 100644 --- a/gdk4/src/auto/dmabuf_texture_builder.rs +++ b/gdk4/src/auto/dmabuf_texture_builder.rs @@ -270,7 +270,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::color-state\0".as_ptr() as *const _, + c"notify::color-state".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_color_state_trampoline:: as *const (), )), @@ -295,7 +295,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::display\0".as_ptr() as *const _, + c"notify::display".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_display_trampoline:: as *const (), )), @@ -320,7 +320,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::fourcc\0".as_ptr() as *const _, + c"notify::fourcc".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_fourcc_trampoline:: as *const (), )), @@ -345,7 +345,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::height\0".as_ptr() as *const _, + c"notify::height".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_height_trampoline:: as *const (), )), @@ -370,7 +370,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::modifier\0".as_ptr() as *const _, + c"notify::modifier".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_modifier_trampoline:: as *const (), )), @@ -395,7 +395,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::n-planes\0".as_ptr() as *const _, + c"notify::n-planes".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_n_planes_trampoline:: as *const (), )), @@ -422,7 +422,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::premultiplied\0".as_ptr() as *const _, + c"notify::premultiplied".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_premultiplied_trampoline:: as *const (), )), @@ -449,7 +449,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::update-region\0".as_ptr() as *const _, + c"notify::update-region".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_update_region_trampoline:: as *const (), )), @@ -476,7 +476,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::update-texture\0".as_ptr() as *const _, + c"notify::update-texture".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_update_texture_trampoline:: as *const (), )), @@ -501,7 +501,7 @@ impl DmabufTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::width\0".as_ptr() as *const _, + c"notify::width".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_width_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/drag.rs b/gdk4/src/auto/drag.rs index d003ec28bd05..0a826a66d9a4 100644 --- a/gdk4/src/auto/drag.rs +++ b/gdk4/src/auto/drag.rs @@ -148,7 +148,7 @@ pub trait DragExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"cancel\0".as_ptr() as *const _, + c"cancel".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( cancel_trampoline:: as *const (), )), @@ -170,7 +170,7 @@ pub trait DragExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"dnd-finished\0".as_ptr() as *const _, + c"dnd-finished".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( dnd_finished_trampoline:: as *const (), )), @@ -192,7 +192,7 @@ pub trait DragExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"drop-performed\0".as_ptr() as *const _, + c"drop-performed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( drop_performed_trampoline:: as *const (), )), @@ -215,7 +215,7 @@ pub trait DragExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::actions\0".as_ptr() as *const _, + c"notify::actions".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_actions_trampoline:: as *const (), )), @@ -238,7 +238,7 @@ pub trait DragExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::display\0".as_ptr() as *const _, + c"notify::display".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_display_trampoline:: as *const (), )), @@ -264,7 +264,7 @@ pub trait DragExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::selected-action\0".as_ptr() as *const _, + c"notify::selected-action".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_selected_action_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/drop.rs b/gdk4/src/auto/drop.rs index db441535deb2..c2755010ccbb 100644 --- a/gdk4/src/auto/drop.rs +++ b/gdk4/src/auto/drop.rs @@ -153,7 +153,7 @@ impl Drop { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::display\0".as_ptr() as *const _, + c"notify::display".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_display_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/frame_clock.rs b/gdk4/src/auto/frame_clock.rs index 774c61a9ee2a..aa72dbdcc715 100644 --- a/gdk4/src/auto/frame_clock.rs +++ b/gdk4/src/auto/frame_clock.rs @@ -118,7 +118,7 @@ impl FrameClock { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"after-paint\0".as_ptr() as *const _, + c"after-paint".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( after_paint_trampoline:: as *const (), )), @@ -140,7 +140,7 @@ impl FrameClock { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"before-paint\0".as_ptr() as *const _, + c"before-paint".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( before_paint_trampoline:: as *const (), )), @@ -162,7 +162,7 @@ impl FrameClock { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"flush-events\0".as_ptr() as *const _, + c"flush-events".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( flush_events_trampoline:: as *const (), )), @@ -184,7 +184,7 @@ impl FrameClock { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"layout\0".as_ptr() as *const _, + c"layout".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( layout_trampoline:: as *const (), )), @@ -206,7 +206,7 @@ impl FrameClock { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"paint\0".as_ptr() as *const _, + c"paint".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( paint_trampoline:: as *const (), )), @@ -228,7 +228,7 @@ impl FrameClock { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"resume-events\0".as_ptr() as *const _, + c"resume-events".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( resume_events_trampoline:: as *const (), )), @@ -250,7 +250,7 @@ impl FrameClock { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"update\0".as_ptr() as *const _, + c"update".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( update_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/gl_context.rs b/gdk4/src/auto/gl_context.rs index 7337fdc51ef5..fda34a61730b 100644 --- a/gdk4/src/auto/gl_context.rs +++ b/gdk4/src/auto/gl_context.rs @@ -264,7 +264,7 @@ pub trait GLContextExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::allowed-apis\0".as_ptr() as *const _, + c"notify::allowed-apis".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_allowed_apis_trampoline:: as *const (), )), @@ -289,7 +289,7 @@ pub trait GLContextExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::api\0".as_ptr() as *const _, + c"notify::api".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_api_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/gl_texture_builder.rs b/gdk4/src/auto/gl_texture_builder.rs index 8275c471d2e7..160fa999e68f 100644 --- a/gdk4/src/auto/gl_texture_builder.rs +++ b/gdk4/src/auto/gl_texture_builder.rs @@ -151,7 +151,7 @@ impl GLTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::color-state\0".as_ptr() as *const _, + c"notify::color-state".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_color_state_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/memory_texture_builder.rs b/gdk4/src/auto/memory_texture_builder.rs index 07a6b36f50fe..cedd638964a6 100644 --- a/gdk4/src/auto/memory_texture_builder.rs +++ b/gdk4/src/auto/memory_texture_builder.rs @@ -199,7 +199,7 @@ impl MemoryTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::bytes\0".as_ptr() as *const _, + c"notify::bytes".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_bytes_trampoline:: as *const (), )), @@ -229,7 +229,7 @@ impl MemoryTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::color-state\0".as_ptr() as *const _, + c"notify::color-state".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_color_state_trampoline:: as *const (), )), @@ -259,7 +259,7 @@ impl MemoryTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::format\0".as_ptr() as *const _, + c"notify::format".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_format_trampoline:: as *const (), )), @@ -289,7 +289,7 @@ impl MemoryTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::height\0".as_ptr() as *const _, + c"notify::height".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_height_trampoline:: as *const (), )), @@ -319,7 +319,7 @@ impl MemoryTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::stride\0".as_ptr() as *const _, + c"notify::stride".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_stride_trampoline:: as *const (), )), @@ -349,7 +349,7 @@ impl MemoryTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::update-region\0".as_ptr() as *const _, + c"notify::update-region".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_update_region_trampoline:: as *const (), )), @@ -379,7 +379,7 @@ impl MemoryTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::update-texture\0".as_ptr() as *const _, + c"notify::update-texture".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_update_texture_trampoline:: as *const (), )), @@ -409,7 +409,7 @@ impl MemoryTextureBuilder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::width\0".as_ptr() as *const _, + c"notify::width".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_width_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/monitor.rs b/gdk4/src/auto/monitor.rs index bf0d16447751..e8af1cef552f 100644 --- a/gdk4/src/auto/monitor.rs +++ b/gdk4/src/auto/monitor.rs @@ -147,7 +147,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"invalidate\0".as_ptr() as *const _, + c"invalidate".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( invalidate_trampoline:: as *const (), )), @@ -170,7 +170,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::connector\0".as_ptr() as *const _, + c"notify::connector".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_connector_trampoline:: as *const (), )), @@ -195,7 +195,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::description\0".as_ptr() as *const _, + c"notify::description".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_description_trampoline:: as *const (), )), @@ -218,7 +218,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::geometry\0".as_ptr() as *const _, + c"notify::geometry".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_geometry_trampoline:: as *const (), )), @@ -241,7 +241,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::height-mm\0".as_ptr() as *const _, + c"notify::height-mm".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_height_mm_trampoline:: as *const (), )), @@ -267,7 +267,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::manufacturer\0".as_ptr() as *const _, + c"notify::manufacturer".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_manufacturer_trampoline:: as *const (), )), @@ -290,7 +290,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::model\0".as_ptr() as *const _, + c"notify::model".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_model_trampoline:: as *const (), )), @@ -316,7 +316,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::refresh-rate\0".as_ptr() as *const _, + c"notify::refresh-rate".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_refresh_rate_trampoline:: as *const (), )), @@ -341,7 +341,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::scale\0".as_ptr() as *const _, + c"notify::scale".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_scale_trampoline:: as *const (), )), @@ -367,7 +367,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::scale-factor\0".as_ptr() as *const _, + c"notify::scale-factor".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_scale_factor_trampoline:: as *const (), )), @@ -393,7 +393,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::subpixel-layout\0".as_ptr() as *const _, + c"notify::subpixel-layout".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_subpixel_layout_trampoline:: as *const (), )), @@ -416,7 +416,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::valid\0".as_ptr() as *const _, + c"notify::valid".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_valid_trampoline:: as *const (), )), @@ -439,7 +439,7 @@ pub trait MonitorExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::width-mm\0".as_ptr() as *const _, + c"notify::width-mm".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_width_mm_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/paintable.rs b/gdk4/src/auto/paintable.rs index 04f4a43dc02f..739a7aa6dab6 100644 --- a/gdk4/src/auto/paintable.rs +++ b/gdk4/src/auto/paintable.rs @@ -136,7 +136,7 @@ pub trait PaintableExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"invalidate-contents\0".as_ptr() as *const _, + c"invalidate-contents".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( invalidate_contents_trampoline:: as *const (), )), @@ -158,7 +158,7 @@ pub trait PaintableExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"invalidate-size\0".as_ptr() as *const _, + c"invalidate-size".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( invalidate_size_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/seat.rs b/gdk4/src/auto/seat.rs index 02f29335687d..8ad5f4db4a54 100644 --- a/gdk4/src/auto/seat.rs +++ b/gdk4/src/auto/seat.rs @@ -90,7 +90,7 @@ pub trait SeatExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"device-added\0".as_ptr() as *const _, + c"device-added".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( device_added_trampoline:: as *const (), )), @@ -119,7 +119,7 @@ pub trait SeatExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"device-removed\0".as_ptr() as *const _, + c"device-removed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( device_removed_trampoline:: as *const (), )), @@ -148,7 +148,7 @@ pub trait SeatExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"tool-added\0".as_ptr() as *const _, + c"tool-added".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( tool_added_trampoline:: as *const (), )), @@ -177,7 +177,7 @@ pub trait SeatExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"tool-removed\0".as_ptr() as *const _, + c"tool-removed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( tool_removed_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/surface.rs b/gdk4/src/auto/surface.rs index f5cba7d9e6db..c2e56358593d 100644 --- a/gdk4/src/auto/surface.rs +++ b/gdk4/src/auto/surface.rs @@ -287,7 +287,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"enter-monitor\0".as_ptr() as *const _, + c"enter-monitor".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( enter_monitor_trampoline:: as *const (), )), @@ -317,7 +317,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"event\0".as_ptr() as *const _, + c"event".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( event_trampoline:: as *const (), )), @@ -345,7 +345,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"layout\0".as_ptr() as *const _, + c"layout".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( layout_trampoline:: as *const (), )), @@ -374,7 +374,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"leave-monitor\0".as_ptr() as *const _, + c"leave-monitor".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( leave_monitor_trampoline:: as *const (), )), @@ -407,7 +407,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"render\0".as_ptr() as *const _, + c"render".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( render_trampoline:: as *const (), )), @@ -430,7 +430,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::cursor\0".as_ptr() as *const _, + c"notify::cursor".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_cursor_trampoline:: as *const (), )), @@ -453,7 +453,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::height\0".as_ptr() as *const _, + c"notify::height".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_height_trampoline:: as *const (), )), @@ -476,7 +476,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::mapped\0".as_ptr() as *const _, + c"notify::mapped".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_mapped_trampoline:: as *const (), )), @@ -501,7 +501,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::scale\0".as_ptr() as *const _, + c"notify::scale".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_scale_trampoline:: as *const (), )), @@ -527,7 +527,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::scale-factor\0".as_ptr() as *const _, + c"notify::scale-factor".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_scale_factor_trampoline:: as *const (), )), @@ -550,7 +550,7 @@ pub trait SurfaceExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::width\0".as_ptr() as *const _, + c"notify::width".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_width_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/toplevel.rs b/gdk4/src/auto/toplevel.rs index 2e418a207652..035a740b3d2b 100644 --- a/gdk4/src/auto/toplevel.rs +++ b/gdk4/src/auto/toplevel.rs @@ -270,7 +270,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::decorated\0".as_ptr() as *const _, + c"notify::decorated".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_decorated_trampoline:: as *const (), )), @@ -293,7 +293,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::deletable\0".as_ptr() as *const _, + c"notify::deletable".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_deletable_trampoline:: as *const (), )), @@ -319,7 +319,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::fullscreen-mode\0".as_ptr() as *const _, + c"notify::fullscreen-mode".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_fullscreen_mode_trampoline:: as *const (), )), @@ -342,7 +342,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::icon-list\0".as_ptr() as *const _, + c"notify::icon-list".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_icon_list_trampoline:: as *const (), )), @@ -365,7 +365,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::modal\0".as_ptr() as *const _, + c"notify::modal".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_modal_trampoline:: as *const (), )), @@ -391,7 +391,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::shortcuts-inhibited\0".as_ptr() as *const _, + c"notify::shortcuts-inhibited".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_shortcuts_inhibited_trampoline:: as *const (), )), @@ -414,7 +414,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::startup-id\0".as_ptr() as *const _, + c"notify::startup-id".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_startup_id_trampoline:: as *const (), )), @@ -437,7 +437,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::state\0".as_ptr() as *const _, + c"notify::state".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_state_trampoline:: as *const (), )), @@ -460,7 +460,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::title\0".as_ptr() as *const _, + c"notify::title".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_title_trampoline:: as *const (), )), @@ -486,7 +486,7 @@ pub trait ToplevelExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::transient-for\0".as_ptr() as *const _, + c"notify::transient-for".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_transient_for_trampoline:: as *const (), )), diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4/src/auto/vulkan_context.rs b/gdk4/src/auto/vulkan_context.rs index 9beacf914a87..24e73a210a51 100644 --- a/gdk4/src/auto/vulkan_context.rs +++ b/gdk4/src/auto/vulkan_context.rs @@ -33,7 +33,7 @@ impl VulkanContext { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"images-updated\0".as_ptr() as *const _, + c"images-updated".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( images_updated_trampoline:: as *const (), )), diff --git a/gdk4/src/drag_surface.rs b/gdk4/src/drag_surface.rs index 489ab4b8530a..67e36c811d2b 100644 --- a/gdk4/src/drag_surface.rs +++ b/gdk4/src/drag_surface.rs @@ -37,7 +37,7 @@ pub trait DragSurfaceExtManual: IsA { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"compute-size\0".as_ptr() as *const _, + c"compute-size".as_ptr() as *const _, Some(transmute::<*const (), unsafe extern "C" fn()>( compute_size_trampoline:: as *const (), )), diff --git a/gdk4/src/toplevel.rs b/gdk4/src/toplevel.rs index d5568ba1be84..1917a224d91a 100644 --- a/gdk4/src/toplevel.rs +++ b/gdk4/src/toplevel.rs @@ -31,7 +31,7 @@ pub trait ToplevelExtManual: IsA { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"compute-size\0".as_ptr() as *const _, + c"compute-size".as_ptr() as *const _, Some(transmute::<*const (), unsafe extern "C" fn()>( compute_size_trampoline:: as *const (), )), diff --git a/gdk4/sys/src/lib.rs b/gdk4/sys/src/lib.rs index df07ed285c69..030cac15fd2b 100644 --- a/gdk4/sys/src/lib.rs +++ b/gdk4/sys/src/lib.rs @@ -4080,6 +4080,9 @@ extern "C" { formats: *const GdkContentFormats, n_mime_types: *mut size_t, ) -> *const *const c_char; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gdk_content_formats_is_empty(formats: *mut GdkContentFormats) -> gboolean; pub fn gdk_content_formats_match( first: *const GdkContentFormats, second: *const GdkContentFormats, diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index 5af8e497d2f0..1a56b9ecf195 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gir b/gir index 1b34ebba86cb..be3ecc201d39 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 1b34ebba86cb5c5c6b474b1693f8aeb55b88477d +Subproject commit be3ecc201d39c77befa1eb3abad2a3eed3c83eb0 diff --git a/gir-files b/gir-files index c05f5cc23cb7..3ede86d6a218 160000 --- a/gir-files +++ b/gir-files @@ -1 +1 @@ -Subproject commit c05f5cc23cb7344ba67d9ed20e9c153b3b06e120 +Subproject commit 3ede86d6a21889d58809d8bdaab33e995fda8c15 diff --git a/gsk4/src/auto/renderer.rs b/gsk4/src/auto/renderer.rs index 7025bdfea9a9..ccc407412d36 100644 --- a/gsk4/src/auto/renderer.rs +++ b/gsk4/src/auto/renderer.rs @@ -136,7 +136,7 @@ pub trait GskRendererExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::realized\0".as_ptr() as *const _, + c"notify::realized".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_realized_trampoline:: as *const (), )), @@ -159,7 +159,7 @@ pub trait GskRendererExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::surface\0".as_ptr() as *const _, + c"notify::surface".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_surface_trampoline:: as *const (), )), diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index 5af8e497d2f0..1a56b9ecf195 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 @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index 5af8e497d2f0..1a56b9ecf195 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb) -from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7) +Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gtk4-macros/src/blueprint.rs b/gtk4-macros/src/blueprint.rs index a10e0a59c502..d704c66f6bc1 100644 --- a/gtk4-macros/src/blueprint.rs +++ b/gtk4-macros/src/blueprint.rs @@ -1,28 +1,33 @@ // Take a look at the license at the top of the repository in the LICENSE file. use std::{ - io::{Error, ErrorKind, Read, Result, Write}, + io::Write, process::{Command, Stdio}, }; -pub(crate) fn compile_blueprint(blueprint: &[u8]) -> Result { +pub(crate) fn compile_blueprint(blueprint: &[u8]) -> Result { let mut compiler = Command::new("blueprint-compiler") .args(["compile", "-"]) .stdin(Stdio::piped()) .stdout(Stdio::piped()) .spawn() - .unwrap_or_else(|_| panic!("blueprint-compiler not found")); - + .map_err(|e| format!("blueprint-compiler couldn't be spawned: {e}"))?; let mut stdin = compiler.stdin.take().unwrap(); - stdin.write_all(b"using Gtk 4.0;\n")?; - stdin.write_all(blueprint)?; + if let Err(e) = stdin.write_all(blueprint) { + let _ = compiler.wait(); + return Err(format!( + "Couldn't send blueprint to blueprint-compiler: {e}" + )); + } drop(stdin); - let mut buf = String::new(); - compiler.stdout.unwrap().read_to_string(&mut buf)?; + let output = compiler + .wait_with_output() + .map_err(|e| format!("blueprint-compiler process failed: {e}"))?; + let buf = String::from_utf8(output.stdout).unwrap(); if !buf.starts_with('<') { - return Err(Error::new(ErrorKind::Other, buf)); + return Err(format!("blueprint-compiler failed: {buf}")); } Ok(buf) diff --git a/gtk4-macros/src/lib.rs b/gtk4-macros/src/lib.rs index fba40903e36a..458de2e657ef 100644 --- a/gtk4-macros/src/lib.rs +++ b/gtk4-macros/src/lib.rs @@ -158,6 +158,7 @@ pub fn include_blueprint(input: TokenStream) -> TokenStream { /// /// #[derive(Debug, Default, gtk::CompositeTemplate)] /// #[template(string = " +/// using Gtk 4.0; /// template $MyWidget : Widget { /// Label label { /// label: 'foobar'; diff --git a/gtk4-macros/tests/my_widget.blp b/gtk4-macros/tests/my_widget.blp index 31daaa24e956..792dd5ceb30b 100644 --- a/gtk4-macros/tests/my_widget.blp +++ b/gtk4-macros/tests/my_widget.blp @@ -1,3 +1,4 @@ +using Gtk 4.0; template $MyWidget5 { Label label { label: 'foobar'; diff --git a/gtk4-macros/tests/templates.rs b/gtk4-macros/tests/templates.rs index 4e5813b88676..cb6d273fb6b2 100644 --- a/gtk4-macros/tests/templates.rs +++ b/gtk4-macros/tests/templates.rs @@ -212,6 +212,7 @@ mod imp4 { #[derive(Debug, Default, gtk::CompositeTemplate)] #[template(string = " + using Gtk 4.0; template $MyWidget4 : Widget { Label label { label: 'foobar'; diff --git a/gtk4/src/auto/about_dialog.rs b/gtk4/src/auto/about_dialog.rs index fcdc48b3ca77..812069353c11 100644 --- a/gtk4/src/auto/about_dialog.rs +++ b/gtk4/src/auto/about_dialog.rs @@ -360,7 +360,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"activate-link\0".as_ptr() as *const _, + c"activate-link".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( activate_link_trampoline:: as *const (), )), @@ -383,7 +383,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::artists\0".as_ptr() as *const _, + c"notify::artists".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_artists_trampoline:: as *const (), )), @@ -406,7 +406,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::authors\0".as_ptr() as *const _, + c"notify::authors".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_authors_trampoline:: as *const (), )), @@ -429,7 +429,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::comments\0".as_ptr() as *const _, + c"notify::comments".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_comments_trampoline:: as *const (), )), @@ -452,7 +452,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::copyright\0".as_ptr() as *const _, + c"notify::copyright".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_copyright_trampoline:: as *const (), )), @@ -475,7 +475,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::documenters\0".as_ptr() as *const _, + c"notify::documenters".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_documenters_trampoline:: as *const (), )), @@ -498,7 +498,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::license\0".as_ptr() as *const _, + c"notify::license".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_license_trampoline:: as *const (), )), @@ -521,7 +521,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::license-type\0".as_ptr() as *const _, + c"notify::license-type".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_license_type_trampoline:: as *const (), )), @@ -544,7 +544,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::logo\0".as_ptr() as *const _, + c"notify::logo".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_logo_trampoline:: as *const (), )), @@ -567,7 +567,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::logo-icon-name\0".as_ptr() as *const _, + c"notify::logo-icon-name".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_logo_icon_name_trampoline:: as *const (), )), @@ -590,7 +590,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::program-name\0".as_ptr() as *const _, + c"notify::program-name".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_program_name_trampoline:: as *const (), )), @@ -616,7 +616,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::system-information\0".as_ptr() as *const _, + c"notify::system-information".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_system_information_trampoline:: as *const (), )), @@ -642,7 +642,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::translator-credits\0".as_ptr() as *const _, + c"notify::translator-credits".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_translator_credits_trampoline:: as *const (), )), @@ -665,7 +665,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::version\0".as_ptr() as *const _, + c"notify::version".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_version_trampoline:: as *const (), )), @@ -688,7 +688,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::website\0".as_ptr() as *const _, + c"notify::website".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_website_trampoline:: as *const (), )), @@ -711,7 +711,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::website-label\0".as_ptr() as *const _, + c"notify::website-label".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_website_label_trampoline:: as *const (), )), @@ -734,7 +734,7 @@ impl AboutDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::wrap-license\0".as_ptr() as *const _, + c"notify::wrap-license".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_wrap_license_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/accessible.rs b/gtk4/src/auto/accessible.rs index 8b971495683d..e42ba9c80a25 100644 --- a/gtk4/src/auto/accessible.rs +++ b/gtk4/src/auto/accessible.rs @@ -226,7 +226,7 @@ pub trait AccessibleExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::accessible-role\0".as_ptr() as *const _, + c"notify::accessible-role".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_accessible_role_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/action_bar.rs b/gtk4/src/auto/action_bar.rs index d9d1d0d99054..20d5a4648519 100644 --- a/gtk4/src/auto/action_bar.rs +++ b/gtk4/src/auto/action_bar.rs @@ -103,7 +103,7 @@ impl ActionBar { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::revealed\0".as_ptr() as *const _, + c"notify::revealed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_revealed_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/actionable.rs b/gtk4/src/auto/actionable.rs index b2848705be46..3d79f93c079f 100644 --- a/gtk4/src/auto/actionable.rs +++ b/gtk4/src/auto/actionable.rs @@ -95,7 +95,7 @@ pub trait ActionableExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::action-name\0".as_ptr() as *const _, + c"notify::action-name".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_action_name_trampoline:: as *const (), )), @@ -121,7 +121,7 @@ pub trait ActionableExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::action-target\0".as_ptr() as *const _, + c"notify::action-target".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_action_target_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/adjustment.rs b/gtk4/src/auto/adjustment.rs index 0143b5a8b2f2..c9eefff656d0 100644 --- a/gtk4/src/auto/adjustment.rs +++ b/gtk4/src/auto/adjustment.rs @@ -257,7 +257,7 @@ pub trait AdjustmentExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"changed\0".as_ptr() as *const _, + c"changed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( changed_trampoline:: as *const (), )), @@ -279,7 +279,7 @@ pub trait AdjustmentExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"value-changed\0".as_ptr() as *const _, + c"value-changed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( value_changed_trampoline:: as *const (), )), @@ -302,7 +302,7 @@ pub trait AdjustmentExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::lower\0".as_ptr() as *const _, + c"notify::lower".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_lower_trampoline:: as *const (), )), @@ -328,7 +328,7 @@ pub trait AdjustmentExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::page-increment\0".as_ptr() as *const _, + c"notify::page-increment".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_page_increment_trampoline:: as *const (), )), @@ -354,7 +354,7 @@ pub trait AdjustmentExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::page-size\0".as_ptr() as *const _, + c"notify::page-size".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_page_size_trampoline:: as *const (), )), @@ -380,7 +380,7 @@ pub trait AdjustmentExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::step-increment\0".as_ptr() as *const _, + c"notify::step-increment".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_step_increment_trampoline:: as *const (), )), @@ -403,7 +403,7 @@ pub trait AdjustmentExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::upper\0".as_ptr() as *const _, + c"notify::upper".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_upper_trampoline:: as *const (), )), @@ -426,7 +426,7 @@ pub trait AdjustmentExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::value\0".as_ptr() as *const _, + c"notify::value".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_value_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/alert_dialog.rs b/gtk4/src/auto/alert_dialog.rs index 3c280423875e..cb8b57c3254a 100644 --- a/gtk4/src/auto/alert_dialog.rs +++ b/gtk4/src/auto/alert_dialog.rs @@ -215,7 +215,7 @@ impl AlertDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::buttons\0".as_ptr() as *const _, + c"notify::buttons".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_buttons_trampoline:: as *const (), )), @@ -240,7 +240,7 @@ impl AlertDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::cancel-button\0".as_ptr() as *const _, + c"notify::cancel-button".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_cancel_button_trampoline:: as *const (), )), @@ -265,7 +265,7 @@ impl AlertDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::default-button\0".as_ptr() as *const _, + c"notify::default-button".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_default_button_trampoline:: as *const (), )), @@ -290,7 +290,7 @@ impl AlertDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::detail\0".as_ptr() as *const _, + c"notify::detail".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_detail_trampoline:: as *const (), )), @@ -315,7 +315,7 @@ impl AlertDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::message\0".as_ptr() as *const _, + c"notify::message".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_message_trampoline:: as *const (), )), @@ -340,7 +340,7 @@ impl AlertDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::modal\0".as_ptr() as *const _, + c"notify::modal".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_modal_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/app_chooser_button.rs b/gtk4/src/auto/app_chooser_button.rs index 357a937aacbe..c81fe748ed44 100644 --- a/gtk4/src/auto/app_chooser_button.rs +++ b/gtk4/src/auto/app_chooser_button.rs @@ -191,7 +191,7 @@ impl AppChooserButton { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"activate\0".as_ptr() as *const _, + c"activate".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( activate_trampoline:: as *const (), )), @@ -219,7 +219,7 @@ impl AppChooserButton { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"changed\0".as_ptr() as *const _, + c"changed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( changed_trampoline:: as *const (), )), @@ -279,7 +279,7 @@ impl AppChooserButton { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::heading\0".as_ptr() as *const _, + c"notify::heading".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_heading_trampoline:: as *const (), )), @@ -302,7 +302,7 @@ impl AppChooserButton { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::modal\0".as_ptr() as *const _, + c"notify::modal".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_modal_trampoline:: as *const (), )), @@ -330,7 +330,7 @@ impl AppChooserButton { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::show-default-item\0".as_ptr() as *const _, + c"notify::show-default-item".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_show_default_item_trampoline:: as *const (), )), @@ -355,7 +355,7 @@ impl AppChooserButton { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::show-dialog-item\0".as_ptr() as *const _, + c"notify::show-dialog-item".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_show_dialog_item_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/app_chooser_dialog.rs b/gtk4/src/auto/app_chooser_dialog.rs index 0b9b8f52fab5..fbce25a4eb8b 100644 --- a/gtk4/src/auto/app_chooser_dialog.rs +++ b/gtk4/src/auto/app_chooser_dialog.rs @@ -118,7 +118,7 @@ impl AppChooserDialog { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::heading\0".as_ptr() as *const _, + c"notify::heading".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_heading_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/app_chooser_widget.rs b/gtk4/src/auto/app_chooser_widget.rs index 9aea93dbb953..f5a2b0346e38 100644 --- a/gtk4/src/auto/app_chooser_widget.rs +++ b/gtk4/src/auto/app_chooser_widget.rs @@ -214,7 +214,7 @@ impl AppChooserWidget { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"application-activated\0".as_ptr() as *const _, + c"application-activated".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( application_activated_trampoline:: as *const (), )), @@ -242,7 +242,7 @@ impl AppChooserWidget { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"application-selected\0".as_ptr() as *const _, + c"application-selected".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( application_selected_trampoline:: as *const (), )), @@ -265,7 +265,7 @@ impl AppChooserWidget { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::default-text\0".as_ptr() as *const _, + c"notify::default-text".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_default_text_trampoline:: as *const (), )), @@ -288,7 +288,7 @@ impl AppChooserWidget { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::show-all\0".as_ptr() as *const _, + c"notify::show-all".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_show_all_trampoline:: as *const (), )), @@ -311,7 +311,7 @@ impl AppChooserWidget { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::show-default\0".as_ptr() as *const _, + c"notify::show-default".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_show_default_trampoline:: as *const (), )), @@ -334,7 +334,7 @@ impl AppChooserWidget { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::show-fallback\0".as_ptr() as *const _, + c"notify::show-fallback".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_show_fallback_trampoline:: as *const (), )), @@ -357,7 +357,7 @@ impl AppChooserWidget { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::show-other\0".as_ptr() as *const _, + c"notify::show-other".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_show_other_trampoline:: as *const (), )), @@ -382,7 +382,7 @@ impl AppChooserWidget { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::show-recommended\0".as_ptr() as *const _, + c"notify::show-recommended".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_show_recommended_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/application.rs b/gtk4/src/auto/application.rs index 5e58259f827d..f4ee2cb88585 100644 --- a/gtk4/src/auto/application.rs +++ b/gtk4/src/auto/application.rs @@ -288,7 +288,7 @@ pub trait GtkApplicationExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"query-end\0".as_ptr() as *const _, + c"query-end".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( query_end_trampoline:: as *const (), )), @@ -317,7 +317,7 @@ pub trait GtkApplicationExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"window-added\0".as_ptr() as *const _, + c"window-added".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( window_added_trampoline:: as *const (), )), @@ -346,7 +346,7 @@ pub trait GtkApplicationExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"window-removed\0".as_ptr() as *const _, + c"window-removed".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( window_removed_trampoline:: as *const (), )), @@ -372,7 +372,7 @@ pub trait GtkApplicationExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::active-window\0".as_ptr() as *const _, + c"notify::active-window".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_active_window_trampoline:: as *const (), )), @@ -395,7 +395,7 @@ pub trait GtkApplicationExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::menubar\0".as_ptr() as *const _, + c"notify::menubar".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_menubar_trampoline:: as *const (), )), @@ -421,7 +421,7 @@ pub trait GtkApplicationExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::register-session\0".as_ptr() as *const _, + c"notify::register-session".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_register_session_trampoline:: as *const (), )), @@ -447,7 +447,7 @@ pub trait GtkApplicationExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::screensaver-active\0".as_ptr() as *const _, + c"notify::screensaver-active".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_screensaver_active_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/application_window.rs b/gtk4/src/auto/application_window.rs index 349e7ca927cd..4353d6e6e0dd 100644 --- a/gtk4/src/auto/application_window.rs +++ b/gtk4/src/auto/application_window.rs @@ -488,7 +488,7 @@ pub trait ApplicationWindowExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::show-menubar\0".as_ptr() as *const _, + c"notify::show-menubar".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_show_menubar_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/aspect_frame.rs b/gtk4/src/auto/aspect_frame.rs index bbf8c91fa25b..acf82f5f482e 100644 --- a/gtk4/src/auto/aspect_frame.rs +++ b/gtk4/src/auto/aspect_frame.rs @@ -133,7 +133,7 @@ impl AspectFrame { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::child\0".as_ptr() as *const _, + c"notify::child".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_child_trampoline:: as *const (), )), @@ -156,7 +156,7 @@ impl AspectFrame { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::obey-child\0".as_ptr() as *const _, + c"notify::obey-child".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_obey_child_trampoline:: as *const (), )), @@ -179,7 +179,7 @@ impl AspectFrame { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::ratio\0".as_ptr() as *const _, + c"notify::ratio".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_ratio_trampoline:: as *const (), )), @@ -202,7 +202,7 @@ impl AspectFrame { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::xalign\0".as_ptr() as *const _, + c"notify::xalign".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_xalign_trampoline:: as *const (), )), @@ -225,7 +225,7 @@ impl AspectFrame { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::yalign\0".as_ptr() as *const _, + c"notify::yalign".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_yalign_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/assistant.rs b/gtk4/src/auto/assistant.rs index 9323ff2d84c1..c3d95ff1c944 100644 --- a/gtk4/src/auto/assistant.rs +++ b/gtk4/src/auto/assistant.rs @@ -326,7 +326,7 @@ impl Assistant { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"apply\0".as_ptr() as *const _, + c"apply".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( apply_trampoline:: as *const (), )), @@ -349,7 +349,7 @@ impl Assistant { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"cancel\0".as_ptr() as *const _, + c"cancel".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( cancel_trampoline:: as *const (), )), @@ -372,7 +372,7 @@ impl Assistant { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"close\0".as_ptr() as *const _, + c"close".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( close_trampoline:: as *const (), )), @@ -395,7 +395,7 @@ impl Assistant { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"escape\0".as_ptr() as *const _, + c"escape".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( escape_trampoline:: as *const (), )), @@ -424,7 +424,7 @@ impl Assistant { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"prepare\0".as_ptr() as *const _, + c"prepare".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( prepare_trampoline:: as *const (), )), @@ -447,7 +447,7 @@ impl Assistant { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::pages\0".as_ptr() as *const _, + c"notify::pages".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_pages_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/assistant_page.rs b/gtk4/src/auto/assistant_page.rs index cd6befbe54b5..b184a8447ea9 100644 --- a/gtk4/src/auto/assistant_page.rs +++ b/gtk4/src/auto/assistant_page.rs @@ -76,7 +76,7 @@ impl AssistantPage { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::complete\0".as_ptr() as *const _, + c"notify::complete".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_complete_trampoline:: as *const (), )), @@ -100,7 +100,7 @@ impl AssistantPage { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::page-type\0".as_ptr() as *const _, + c"notify::page-type".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_page_type_trampoline:: as *const (), )), @@ -124,7 +124,7 @@ impl AssistantPage { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::title\0".as_ptr() as *const _, + c"notify::title".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_title_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/at_context.rs b/gtk4/src/auto/at_context.rs index 34e79926e6f4..832e19b982f2 100644 --- a/gtk4/src/auto/at_context.rs +++ b/gtk4/src/auto/at_context.rs @@ -79,7 +79,7 @@ impl ATContext { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"state-change\0".as_ptr() as *const _, + c"state-change".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( state_change_trampoline:: as *const (), )), @@ -102,7 +102,7 @@ impl ATContext { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::accessible-role\0".as_ptr() as *const _, + c"notify::accessible-role".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_accessible_role_trampoline:: as *const (), )), @@ -125,7 +125,7 @@ impl ATContext { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::display\0".as_ptr() as *const _, + c"notify::display".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_display_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/bookmark_list.rs b/gtk4/src/auto/bookmark_list.rs index 57acb0a13bc7..e9cbc816b34d 100644 --- a/gtk4/src/auto/bookmark_list.rs +++ b/gtk4/src/auto/bookmark_list.rs @@ -77,7 +77,7 @@ impl BookmarkList { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::attributes\0".as_ptr() as *const _, + c"notify::attributes".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_attributes_trampoline:: as *const (), )), @@ -100,7 +100,7 @@ impl BookmarkList { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::io-priority\0".as_ptr() as *const _, + c"notify::io-priority".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_io_priority_trampoline:: as *const (), )), @@ -123,7 +123,7 @@ impl BookmarkList { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::loading\0".as_ptr() as *const _, + c"notify::loading".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_loading_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/bool_filter.rs b/gtk4/src/auto/bool_filter.rs index 4856234c9e0f..c0d9115ba18b 100644 --- a/gtk4/src/auto/bool_filter.rs +++ b/gtk4/src/auto/bool_filter.rs @@ -86,7 +86,7 @@ impl BoolFilter { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::expression\0".as_ptr() as *const _, + c"notify::expression".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_expression_trampoline:: as *const (), )), @@ -109,7 +109,7 @@ impl BoolFilter { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::invert\0".as_ptr() as *const _, + c"notify::invert".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_invert_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/box_.rs b/gtk4/src/auto/box_.rs index cb16f488c261..0dd9beb6f94e 100644 --- a/gtk4/src/auto/box_.rs +++ b/gtk4/src/auto/box_.rs @@ -430,7 +430,7 @@ pub trait BoxExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::baseline-child\0".as_ptr() as *const _, + c"notify::baseline-child".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_baseline_child_trampoline:: as *const (), )), @@ -456,7 +456,7 @@ pub trait BoxExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::baseline-position\0".as_ptr() as *const _, + c"notify::baseline-position".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_baseline_position_trampoline:: as *const (), )), @@ -479,7 +479,7 @@ pub trait BoxExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::homogeneous\0".as_ptr() as *const _, + c"notify::homogeneous".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_homogeneous_trampoline:: as *const (), )), @@ -502,7 +502,7 @@ pub trait BoxExt: IsA + 'static { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::spacing\0".as_ptr() as *const _, + c"notify::spacing".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_spacing_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/box_layout.rs b/gtk4/src/auto/box_layout.rs index 21f00ebc5c87..d62f7268730b 100644 --- a/gtk4/src/auto/box_layout.rs +++ b/gtk4/src/auto/box_layout.rs @@ -120,7 +120,7 @@ impl BoxLayout { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::baseline-child\0".as_ptr() as *const _, + c"notify::baseline-child".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_baseline_child_trampoline:: as *const (), )), @@ -146,7 +146,7 @@ impl BoxLayout { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::baseline-position\0".as_ptr() as *const _, + c"notify::baseline-position".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_baseline_position_trampoline:: as *const (), )), @@ -169,7 +169,7 @@ impl BoxLayout { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::homogeneous\0".as_ptr() as *const _, + c"notify::homogeneous".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_homogeneous_trampoline:: as *const (), )), @@ -192,7 +192,7 @@ impl BoxLayout { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::spacing\0".as_ptr() as *const _, + c"notify::spacing".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_spacing_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/builder.rs b/gtk4/src/auto/builder.rs index 9bf1e521d604..fea67fead0ec 100644 --- a/gtk4/src/auto/builder.rs +++ b/gtk4/src/auto/builder.rs @@ -353,7 +353,7 @@ impl Builder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::current-object\0".as_ptr() as *const _, + c"notify::current-object".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_current_object_trampoline:: as *const (), )), @@ -376,7 +376,7 @@ impl Builder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::scope\0".as_ptr() as *const _, + c"notify::scope".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_scope_trampoline:: as *const (), )), @@ -402,7 +402,7 @@ impl Builder { let f: Box_ = Box_::new(f); connect_raw( self.as_ptr() as *mut _, - b"notify::translation-domain\0".as_ptr() as *const _, + c"notify::translation-domain".as_ptr() as *const _, Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( notify_translation_domain_trampoline:: as *const (), )), diff --git a/gtk4/src/auto/button.rs b/gtk4/src/auto/button.rs index 538b6d4c920c..cf72c3e8324d 100644 --- a/gtk4/src/auto/button.rs +++ b/gtk4/src/auto/button.rs @@ -470,7 +470,7 @@ pub trait ButtonExt: IsA