Skip to content

Commit

Permalink
examples: Only require GTK 4.10 for the examples
Browse files Browse the repository at this point in the history
And opt-in to 4.12 features in the 3 examples that actually need them.
Nothing actually required 4.14 features.
  • Loading branch information
sdroege committed Oct 11, 2023
1 parent 8270e05 commit 6e6d352
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -30,6 +30,7 @@ optional = true
default = []
femtovg-support = ["epoxy", "femtovg", "glow", "libloading"]
glium-support = ["glium", "epoxy", "libloading"]
v4_12 = ["gtk/v4_12"]

[[bin]]
name = "basics"
Expand Down Expand Up @@ -66,6 +67,7 @@ path = "content_provider/main.rs"
[[bin]]
name = "css"
path = "css/main.rs"
required-features = ["v4_12"]

[[bin]]
name = "custom_application"
Expand All @@ -78,6 +80,7 @@ path = "custom_buildable/main.rs"
[[bin]]
name = "custom_editable"
path = "custom_editable/main.rs"
required-features = ["v4_12"]

[[bin]]
name = "custom_layout_manager"
Expand Down Expand Up @@ -170,6 +173,7 @@ path = "squeezer_bin/main.rs"
[[bin]]
name = "fill_and_stroke"
path = "fill_and_stroke/main.rs"
required-features = ["v4_12"]

[[bin]]
name = "text_viewer"
Expand Down

0 comments on commit 6e6d352

Please sign in to comment.