From ccd95ce1f8ef61049d0bcf9af9f5cff907f80374 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 6 Aug 2023 15:42:30 +0200 Subject: [PATCH 1/5] Update gir submodule --- gir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gir b/gir index ef087c070d5b..77bac6e42112 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit ef087c070d5beaa53ef97568e638679952bc1f96 +Subproject commit 77bac6e42112a8b563913a8db2db34299f8c2410 From cf254ce7beef7e34e5db01a39b2182c4e5eddc81 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 6 Aug 2023 15:46:02 +0200 Subject: [PATCH 2/5] Regenerate with latest gir --- gdk4-wayland/src/auto/versions.txt | 2 +- gdk4-wayland/sys/versions.txt | 2 +- gdk4-win32/src/auto/versions.txt | 2 +- gdk4-win32/sys/versions.txt | 2 +- gdk4-x11/src/auto/versions.txt | 2 +- gdk4-x11/sys/versions.txt | 2 +- gdk4/src/auto/versions.txt | 2 +- gdk4/sys/versions.txt | 2 +- gsk4/src/auto/versions.txt | 2 +- gsk4/sys/versions.txt | 2 +- gtk4/src/auto/versions.txt | 2 +- gtk4/sys/versions.txt | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index dd6ac754e173..e1bb18d7b3cf 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 @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index dd6ac754e173..e1bb18d7b3cf 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 @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index dd6ac754e173..e1bb18d7b3cf 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 @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index dd6ac754e173..e1bb18d7b3cf 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 @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index dd6ac754e173..e1bb18d7b3cf 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 @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index dd6ac754e173..e1bb18d7b3cf 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 @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index dd6ac754e173..e1bb18d7b3cf 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 @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index dd6ac754e173..e1bb18d7b3cf 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index dd6ac754e173..e1bb18d7b3cf 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 @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index dd6ac754e173..e1bb18d7b3cf 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gtk4/src/auto/versions.txt b/gtk4/src/auto/versions.txt index dd6ac754e173..e1bb18d7b3cf 100644 --- a/gtk4/src/auto/versions.txt +++ b/gtk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) diff --git a/gtk4/sys/versions.txt b/gtk4/sys/versions.txt index dd6ac754e173..e1bb18d7b3cf 100644 --- a/gtk4/sys/versions.txt +++ b/gtk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b) +Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) From cd16cea7cc81ee42ff931e80a3032b22a0a78e92 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 6 Aug 2023 15:46:16 +0200 Subject: [PATCH 3/5] sys: Remove settings features to empty list --- gdk4-wayland/sys/Cargo.toml | 3 +-- gdk4-win32/sys/Cargo.toml | 3 +-- gdk4-x11/sys/Cargo.toml | 3 +-- gdk4/sys/Cargo.toml | 1 - gsk4/sys/Cargo.toml | 3 +-- gtk4/sys/Cargo.toml | 3 +-- 6 files changed, 5 insertions(+), 11 deletions(-) diff --git a/gdk4-wayland/sys/Cargo.toml b/gdk4-wayland/sys/Cargo.toml index 193b01aa9e78..df3150517639 100644 --- a/gdk4-wayland/sys/Cargo.toml +++ b/gdk4-wayland/sys/Cargo.toml @@ -26,10 +26,9 @@ version = "4.10" version = "4.11" [package.metadata.docs.rs] -all-features = true +all-features = "true" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] -features = [] [lib] name = "gdk4_wayland_sys" diff --git a/gdk4-win32/sys/Cargo.toml b/gdk4-win32/sys/Cargo.toml index 4b8b5ccdd87e..ad7497b4dd7f 100644 --- a/gdk4-win32/sys/Cargo.toml +++ b/gdk4-win32/sys/Cargo.toml @@ -23,10 +23,9 @@ version = "4.4" version = "4.8" [package.metadata.docs.rs] -all-features = true +all-features = "true" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] -features = [] [lib] name = "gdk4_win32_sys" diff --git a/gdk4-x11/sys/Cargo.toml b/gdk4-x11/sys/Cargo.toml index cdedc20984d3..97ed282a702d 100644 --- a/gdk4-x11/sys/Cargo.toml +++ b/gdk4-x11/sys/Cargo.toml @@ -23,10 +23,9 @@ version = "4.4" version = "4.10" [package.metadata.docs.rs] -all-features = true +all-features = "true" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] -features = [] [lib] name = "gdk4_x11_sys" diff --git a/gdk4/sys/Cargo.toml b/gdk4/sys/Cargo.toml index 503ed812801f..ae14474e98a8 100644 --- a/gdk4/sys/Cargo.toml +++ b/gdk4/sys/Cargo.toml @@ -16,7 +16,6 @@ rust-version = "1.70" all-features = true rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] -features = [] [package.metadata.system-deps.gtk4] name = "gtk4" diff --git a/gsk4/sys/Cargo.toml b/gsk4/sys/Cargo.toml index b7796edef7ac..ebad889e5b47 100644 --- a/gsk4/sys/Cargo.toml +++ b/gsk4/sys/Cargo.toml @@ -13,10 +13,9 @@ version = "0.8.0" rust-version = "1.70" [package.metadata.docs.rs] -all-features = true +all-features = "true" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] -features = [] [package.metadata.system-deps.gtk4] name = "gtk4" diff --git a/gtk4/sys/Cargo.toml b/gtk4/sys/Cargo.toml index a2e4e3e478b1..8c471f1a43e2 100644 --- a/gtk4/sys/Cargo.toml +++ b/gtk4/sys/Cargo.toml @@ -14,10 +14,9 @@ version = "0.8.0" rust-version = "1.70" [package.metadata.docs.rs] -all-features = true +all-features = "true" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] -features = [] [package.metadata.system-deps.gtk4] name = "gtk4" From e363ec02839883a5bbc1baec235a9706441c9b4b Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 6 Aug 2023 15:46:44 +0200 Subject: [PATCH 4/5] Update gir-files submodule --- gir-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gir-files b/gir-files index 1dc6c3826666..060b114d8edb 160000 --- a/gir-files +++ b/gir-files @@ -1 +1 @@ -Subproject commit 1dc6c38266669e491bcabdc807172414ad1037da +Subproject commit 060b114d8edb20c4041abb1e95acccb2cb2302be From ef71706e749e9c041f278ef1efd0581a2cb5f988 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 6 Aug 2023 15:49:03 +0200 Subject: [PATCH 5/5] Regenerate with latest gir-files --- gdk4-wayland/src/auto/versions.txt | 2 +- gdk4-wayland/sys/versions.txt | 2 +- gdk4-win32/src/auto/versions.txt | 2 +- gdk4-win32/sys/versions.txt | 2 +- gdk4-x11/src/auto/versions.txt | 2 +- gdk4-x11/sys/versions.txt | 2 +- gdk4/Gir.toml | 8 +++++- gdk4/src/auto/flags.rs | 4 +++ gdk4/src/auto/versions.txt | 2 +- gdk4/sys/Cargo.toml | 2 +- gdk4/sys/src/lib.rs | 1 + gdk4/sys/tests/abi.rs | 1 + gdk4/sys/tests/constant.c | 1 + gdk4/sys/versions.txt | 2 +- gsk4/src/auto/versions.txt | 2 +- gsk4/sys/versions.txt | 2 +- gtk4/src/auto/file_launcher.rs | 42 ++++++++++++++++++++++++++++++ gtk4/src/auto/versions.txt | 2 +- gtk4/src/auto/window.rs | 32 +++++++++++++++++++++++ gtk4/sys/src/lib.rs | 9 +++++++ gtk4/sys/versions.txt | 2 +- 21 files changed, 110 insertions(+), 14 deletions(-) diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index e1bb18d7b3cf..c81d9d689020 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 @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index e1bb18d7b3cf..c81d9d689020 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 @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index e1bb18d7b3cf..c81d9d689020 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 @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index e1bb18d7b3cf..c81d9d689020 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 @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index e1bb18d7b3cf..c81d9d689020 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 @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index e1bb18d7b3cf..c81d9d689020 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 @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gdk4/Gir.toml b/gdk4/Gir.toml index 13ee78599c3a..7b5339c3f635 100644 --- a/gdk4/Gir.toml +++ b/gdk4/Gir.toml @@ -58,7 +58,6 @@ generate = [ "Gdk.TextureError", "Gdk.TitlebarGesture", "Gdk.ToplevelLayout", - "Gdk.ToplevelState", "Gdk.TouchEvent", "Gdk.TouchpadEvent", "Gdk.TouchpadGesturePhase", @@ -658,3 +657,10 @@ manual_traits = ["ToplevelExtManual"] name = "compute-size" manual = true doc_trait_name = "ToplevelExtManual" + +[[object]] +name = "Gdk.ToplevelState" +status = "generate" + [[object.member]] + name = "suspended" + version = "4.12" \ No newline at end of file diff --git a/gdk4/src/auto/flags.rs b/gdk4/src/auto/flags.rs index 79a5625921cf..40cbc075d68c 100644 --- a/gdk4/src/auto/flags.rs +++ b/gdk4/src/auto/flags.rs @@ -877,6 +877,10 @@ bitflags! { const LEFT_TILED = ffi::GDK_TOPLEVEL_STATE_LEFT_TILED as _; #[doc(alias = "GDK_TOPLEVEL_STATE_LEFT_RESIZABLE")] const LEFT_RESIZABLE = ffi::GDK_TOPLEVEL_STATE_LEFT_RESIZABLE as _; + #[cfg(feature = "v4_12")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] + #[doc(alias = "GDK_TOPLEVEL_STATE_SUSPENDED")] + const SUSPENDED = ffi::GDK_TOPLEVEL_STATE_SUSPENDED as _; } } diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index e1bb18d7b3cf..c81d9d689020 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 @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gdk4/sys/Cargo.toml b/gdk4/sys/Cargo.toml index ae14474e98a8..5547ca95f835 100644 --- a/gdk4/sys/Cargo.toml +++ b/gdk4/sys/Cargo.toml @@ -13,7 +13,7 @@ version = "0.8.0" rust-version = "1.70" [package.metadata.docs.rs] -all-features = true +all-features = "true" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] diff --git a/gdk4/sys/src/lib.rs b/gdk4/sys/src/lib.rs index 670c5dc7f9d6..9ebd07689fe3 100644 --- a/gdk4/sys/src/lib.rs +++ b/gdk4/sys/src/lib.rs @@ -2604,6 +2604,7 @@ pub const GDK_TOPLEVEL_STATE_BOTTOM_TILED: GdkToplevelState = 4096; pub const GDK_TOPLEVEL_STATE_BOTTOM_RESIZABLE: GdkToplevelState = 8192; pub const GDK_TOPLEVEL_STATE_LEFT_TILED: GdkToplevelState = 16384; pub const GDK_TOPLEVEL_STATE_LEFT_RESIZABLE: GdkToplevelState = 32768; +pub const GDK_TOPLEVEL_STATE_SUSPENDED: GdkToplevelState = 65536; // Callbacks pub type GdkContentDeserializeFunc = Option; diff --git a/gdk4/sys/tests/abi.rs b/gdk4/sys/tests/abi.rs index 315749a10c01..09d888a431f3 100644 --- a/gdk4/sys/tests/abi.rs +++ b/gdk4/sys/tests/abi.rs @@ -2971,6 +2971,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(guint) GDK_TOPLEVEL_STATE_RIGHT_RESIZABLE", "2048"), ("(guint) GDK_TOPLEVEL_STATE_RIGHT_TILED", "1024"), ("(guint) GDK_TOPLEVEL_STATE_STICKY", "4"), + ("(guint) GDK_TOPLEVEL_STATE_SUSPENDED", "65536"), ("(guint) GDK_TOPLEVEL_STATE_TILED", "128"), ("(guint) GDK_TOPLEVEL_STATE_TOP_RESIZABLE", "512"), ("(guint) GDK_TOPLEVEL_STATE_TOP_TILED", "256"), diff --git a/gdk4/sys/tests/constant.c b/gdk4/sys/tests/constant.c index 57a59760afc0..3b7120773050 100644 --- a/gdk4/sys/tests/constant.c +++ b/gdk4/sys/tests/constant.c @@ -2533,6 +2533,7 @@ int main() { PRINT_CONSTANT((guint) GDK_TOPLEVEL_STATE_RIGHT_RESIZABLE); PRINT_CONSTANT((guint) GDK_TOPLEVEL_STATE_RIGHT_TILED); PRINT_CONSTANT((guint) GDK_TOPLEVEL_STATE_STICKY); + PRINT_CONSTANT((guint) GDK_TOPLEVEL_STATE_SUSPENDED); PRINT_CONSTANT((guint) GDK_TOPLEVEL_STATE_TILED); PRINT_CONSTANT((guint) GDK_TOPLEVEL_STATE_TOP_RESIZABLE); PRINT_CONSTANT((guint) GDK_TOPLEVEL_STATE_TOP_TILED); diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index e1bb18d7b3cf..c81d9d689020 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index e1bb18d7b3cf..c81d9d689020 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 @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index e1bb18d7b3cf..c81d9d689020 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gtk4/src/auto/file_launcher.rs b/gtk4/src/auto/file_launcher.rs index 3725003ae4c5..6bdafb19f26f 100644 --- a/gtk4/src/auto/file_launcher.rs +++ b/gtk4/src/auto/file_launcher.rs @@ -30,6 +30,14 @@ impl FileLauncher { } } + #[cfg(feature = "v4_12")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] + #[doc(alias = "gtk_file_launcher_get_always_ask")] + #[doc(alias = "get_always_ask")] + pub fn must_always_ask(&self) -> bool { + unsafe { from_glib(ffi::gtk_file_launcher_get_always_ask(self.to_glib_none().0)) } + } + #[doc(alias = "gtk_file_launcher_get_file")] #[doc(alias = "get_file")] pub fn file(&self) -> Option { @@ -170,6 +178,15 @@ impl FileLauncher { })) } + #[cfg(feature = "v4_12")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] + #[doc(alias = "gtk_file_launcher_set_always_ask")] + pub fn set_always_ask(&self, always_ask: bool) { + unsafe { + ffi::gtk_file_launcher_set_always_ask(self.to_glib_none().0, always_ask.into_glib()); + } + } + #[doc(alias = "gtk_file_launcher_set_file")] pub fn set_file(&self, file: Option<&impl IsA>) { unsafe { @@ -180,6 +197,31 @@ impl FileLauncher { } } + #[cfg(feature = "v4_12")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] + #[doc(alias = "always-ask")] + pub fn connect_always_ask_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_always_ask_trampoline( + this: *mut ffi::GtkFileLauncher, + _param_spec: glib::ffi::gpointer, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f(&from_glib_borrow(this)) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"notify::always-ask\0".as_ptr() as *const _, + Some(transmute::<_, unsafe extern "C" fn()>( + notify_always_ask_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + #[cfg(feature = "v4_10")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "file")] diff --git a/gtk4/src/auto/versions.txt b/gtk4/src/auto/versions.txt index e1bb18d7b3cf..c81d9d689020 100644 --- a/gtk4/src/auto/versions.txt +++ b/gtk4/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb) diff --git a/gtk4/src/auto/window.rs b/gtk4/src/auto/window.rs index 720a3dd0f726..253a17ff2bd1 100644 --- a/gtk4/src/auto/window.rs +++ b/gtk4/src/auto/window.rs @@ -689,6 +689,13 @@ pub trait GtkWindowExt: IsA + sealed::Sealed + 'static { unsafe { from_glib(ffi::gtk_window_is_maximized(self.as_ref().to_glib_none().0)) } } + #[cfg(feature = "v4_12")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] + #[doc(alias = "gtk_window_is_suspended")] + fn is_suspended(&self) -> bool { + unsafe { from_glib(ffi::gtk_window_is_suspended(self.as_ref().to_glib_none().0)) } + } + #[doc(alias = "gtk_window_maximize")] fn maximize(&self) { unsafe { @@ -1604,6 +1611,31 @@ pub trait GtkWindowExt: IsA + sealed::Sealed + 'static { } } + #[cfg(feature = "v4_12")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] + #[doc(alias = "suspended")] + fn connect_suspended_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_suspended_trampoline, F: Fn(&P) + 'static>( + this: *mut ffi::GtkWindow, + _param_spec: glib::ffi::gpointer, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f(Window::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"notify::suspended\0".as_ptr() as *const _, + Some(transmute::<_, unsafe extern "C" fn()>( + notify_suspended_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + #[doc(alias = "title")] fn connect_title_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_title_trampoline, F: Fn(&P) + 'static>( diff --git a/gtk4/sys/src/lib.rs b/gtk4/sys/src/lib.rs index c63ce414d594..01aafc93c4b5 100644 --- a/gtk4/sys/src/lib.rs +++ b/gtk4/sys/src/lib.rs @@ -13294,6 +13294,9 @@ extern "C" { #[cfg(feature = "v4_10")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_new(file: *mut gio::GFile) -> *mut GtkFileLauncher; + #[cfg(feature = "v4_12")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] + pub fn gtk_file_launcher_get_always_ask(self_: *mut GtkFileLauncher) -> gboolean; #[cfg(feature = "v4_10")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_get_file(self_: *mut GtkFileLauncher) -> *mut gio::GFile; @@ -13329,6 +13332,9 @@ extern "C" { result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> gboolean; + #[cfg(feature = "v4_12")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] + pub fn gtk_file_launcher_set_always_ask(self_: *mut GtkFileLauncher, always_ask: gboolean); #[cfg(feature = "v4_10")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_file_launcher_set_file(self_: *mut GtkFileLauncher, file: *mut gio::GFile); @@ -19278,6 +19284,9 @@ extern "C" { pub fn gtk_window_is_active(window: *mut GtkWindow) -> gboolean; pub fn gtk_window_is_fullscreen(window: *mut GtkWindow) -> gboolean; pub fn gtk_window_is_maximized(window: *mut GtkWindow) -> gboolean; + #[cfg(feature = "v4_12")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] + pub fn gtk_window_is_suspended(window: *mut GtkWindow) -> gboolean; pub fn gtk_window_maximize(window: *mut GtkWindow); pub fn gtk_window_minimize(window: *mut GtkWindow); pub fn gtk_window_present(window: *mut GtkWindow); diff --git a/gtk4/sys/versions.txt b/gtk4/sys/versions.txt index e1bb18d7b3cf..c81d9d689020 100644 --- a/gtk4/sys/versions.txt +++ b/gtk4/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 77bac6e42112) -from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666) +from gir-files (https://github.com/gtk-rs/gir-files @ 060b114d8edb)