From a41fbba93e67fee2aaa3be9b9d0a564fb148bbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 11 Oct 2023 10:00:43 +0300 Subject: [PATCH] examples: Only require GTK 4.10 for the examples And opt-in to 4.12 / 4.14 features in the 3 examples that actually need them. --- examples/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 457c102cd1c6..99a7e256f0af 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -17,7 +17,7 @@ im-rc = { version = "15", optional = true } [dependencies.gtk] path = "../gtk4" package = "gtk4" -features = ["v4_14"] +features = ["v4_10"] # used by gif-paintable example [dependencies.image] @@ -30,6 +30,8 @@ optional = true default = [] femtovg-support = ["epoxy", "femtovg", "glow", "libloading"] glium-support = ["glium", "epoxy", "libloading"] +v4_12 = ["gtk/v4_12"] +v4_14 = ["gtk/v4_14"] [[bin]] name = "basics" @@ -66,6 +68,7 @@ path = "content_provider/main.rs" [[bin]] name = "css" path = "css/main.rs" +required-features = ["v4_12"] [[bin]] name = "custom_application" @@ -78,6 +81,7 @@ path = "custom_buildable/main.rs" [[bin]] name = "custom_editable" path = "custom_editable/main.rs" +required-features = ["v4_12"] [[bin]] name = "custom_layout_manager" @@ -170,6 +174,7 @@ path = "squeezer_bin/main.rs" [[bin]] name = "fill_and_stroke" path = "fill_and_stroke/main.rs" +required-features = ["v4_14"] [[bin]] name = "text_viewer"