Skip to content

Commit 39262e1

Browse files
sdroegebilelmoussaoui
authored andcommitted
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.
1 parent 1bcb23f commit 39262e1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ im-rc = { version = "15", optional = true }
1717
[dependencies.gtk]
1818
path = "../gtk4"
1919
package = "gtk4"
20-
features = ["v4_14"]
20+
features = ["v4_10"]
2121

2222
# used by gif-paintable example
2323
[dependencies.image]
@@ -30,6 +30,8 @@ optional = true
3030
default = []
3131
femtovg-support = ["epoxy", "femtovg", "glow", "libloading"]
3232
glium-support = ["glium", "epoxy", "libloading"]
33+
v4_12 = ["gtk/v4_12"]
34+
v4_14 = ["gtk/v4_14"]
3335

3436
[[bin]]
3537
name = "basics"
@@ -66,6 +68,7 @@ path = "content_provider/main.rs"
6668
[[bin]]
6769
name = "css"
6870
path = "css/main.rs"
71+
required-features = ["v4_12"]
6972

7073
[[bin]]
7174
name = "custom_application"
@@ -78,6 +81,7 @@ path = "custom_buildable/main.rs"
7881
[[bin]]
7982
name = "custom_editable"
8083
path = "custom_editable/main.rs"
84+
required-features = ["v4_12"]
8185

8286
[[bin]]
8387
name = "custom_layout_manager"
@@ -170,6 +174,7 @@ path = "squeezer_bin/main.rs"
170174
[[bin]]
171175
name = "fill_and_stroke"
172176
path = "fill_and_stroke/main.rs"
177+
required-features = ["v4_14"]
173178

174179
[[bin]]
175180
name = "text_viewer"

0 commit comments

Comments
 (0)