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 / 4.14 features in the 3 examples that actually need them.
  • Loading branch information
sdroege committed Oct 11, 2023
1 parent 8270e05 commit a41fbba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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,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"
Expand Down Expand Up @@ -66,6 +68,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 +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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a41fbba

Please sign in to comment.