[gnome-tour/wip/cdavis/use-git-rust-deps: 7/7] general: Use git gtk-rs dependencies
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tour/wip/cdavis/use-git-rust-deps: 7/7] general: Use git gtk-rs dependencies
- Date: Wed, 8 Dec 2021 20:01:42 +0000 (UTC)
commit 4e9ab3c4c45c020a7ab741ace526791ce0b2ba49
Author: Christopher Davis <christopherdavis gnome org>
Date: Wed Dec 8 11:59:08 2021 -0800
general: Use git gtk-rs dependencies
Because of an API change in libadwaita,
we need to use the latest version of
libadwaita-rs.
Temporarily bundles libadwaita, as the nightly
SDK doesn't have a new enough libadwaita because
we block the build.
Cargo.lock | 273 +++++++++++++------------------------
Cargo.toml | 8 +-
build-aux/org.gnome.TourDevel.json | 11 ++
src/widgets/pages/image.rs | 8 +-
src/widgets/pages/welcome.rs | 4 +-
src/widgets/paginator.rs | 5 +-
6 files changed, 121 insertions(+), 188 deletions(-)
---
diff --git a/Cargo.lock b/Cargo.lock
index 6b901f0..9246f12 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -36,9 +36,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "bitflags"
-version = "1.2.1"
+version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "block"
@@ -48,9 +48,8 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
[[package]]
name = "cairo-rs"
-version = "0.14.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f859ade407c19810ae920b4fafab92189ed312adad490d08fb16b5f49f1e2207"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"bitflags",
"cairo-sys-rs",
@@ -61,13 +60,12 @@ dependencies = [
[[package]]
name = "cairo-sys-rs"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7c9c3928781e8a017ece15eace05230f04b647457d170d2d9641c94a444ff80"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"glib-sys",
"libc",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
@@ -76,15 +74,6 @@ version = "1.0.66"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48"
-[[package]]
-name = "cfg-expr"
-version = "0.8.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b412e83326147c2bb881f8b40edfbf9905b9b8abaebd0e47ca190ba62fda8f0e"
-dependencies = [
- "smallvec",
-]
-
[[package]]
name = "cfg-expr"
version = "0.9.0"
@@ -100,12 +89,6 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
-[[package]]
-name = "either"
-version = "1.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
-
[[package]]
name = "env_logger"
version = "0.7.1"
@@ -129,6 +112,12 @@ dependencies = [
"rustc_version",
]
+[[package]]
+name = "fragile"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69a039c3498dc930fe810151a34ba0c1c70b02b8625035592e74432f678591f2"
+
[[package]]
name = "futures-channel"
version = "0.3.12"
@@ -185,10 +174,10 @@ dependencies = [
[[package]]
name = "gdk-pixbuf"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "534192cb8f01daeb8fab2c8d4baa8f9aae5b7a39130525779f5c2608e235b10f"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
+ "bitflags",
"gdk-pixbuf-sys",
"gio",
"glib",
@@ -197,22 +186,20 @@ dependencies = [
[[package]]
name = "gdk-pixbuf-sys"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f097c0704201fbc8f69c1762dc58c6947c8bb188b8ed0bc7e65259f1894fe590"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"gio-sys",
"glib-sys",
"gobject-sys",
"libc",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
name = "gdk4"
version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c0f7f98ad25b81ac9462f74a091b0e4c0983ed1e74d19a38230c772b4dcef81"
+source = "git+https://github.com/gtk-rs/gtk4-rs.git#9479180bb6c2115cf3907607911332e8e29be5d8"
dependencies = [
"bitflags",
"cairo-rs",
@@ -227,18 +214,16 @@ dependencies = [
[[package]]
name = "gdk4-sys"
version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "262a79666b42e1884577f11a050439a964b95dec55343ac6ace7930e1415fa18"
+source = "git+https://github.com/gtk-rs/gtk4-rs.git#9479180bb6c2115cf3907607911332e8e29be5d8"
dependencies = [
"cairo-sys-rs",
"gdk-pixbuf-sys",
"gio-sys",
"glib-sys",
"gobject-sys",
- "graphene-sys",
"libc",
"pango-sys",
- "system-deps 4.0.0",
+ "system-deps",
]
[[package]]
@@ -274,9 +259,8 @@ dependencies = [
[[package]]
name = "gio"
-version = "0.14.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81a4c12fcba7a6402ae843a0085ec16d3658a87901763b6a7f0a7c5d60e555a5"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"bitflags",
"futures-channel",
@@ -291,22 +275,20 @@ dependencies = [
[[package]]
name = "gio-sys"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c0a41df66e57fcc287c4bcf74fc26b884f31901ea9792ec75607289b456f48fa"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"glib-sys",
"gobject-sys",
"libc",
- "system-deps 3.2.0",
+ "system-deps",
"winapi",
]
[[package]]
name = "glib"
-version = "0.14.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4a930b7208e6e0ab839eea5f65ac2b82109f729621430d47fe905e2e09d33f4"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"bitflags",
"futures-channel",
@@ -323,9 +305,8 @@ dependencies = [
[[package]]
name = "glib-macros"
-version = "0.14.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2aad66361f66796bfc73f530c51ef123970eb895ffba991a234fcf7bea89e518"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"anyhow",
"heck",
@@ -338,12 +319,11 @@ dependencies = [
[[package]]
name = "glib-sys"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1c1d60554a212445e2a858e42a0e48cece1bd57b311a19a9468f70376cf554ae"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"libc",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
@@ -361,20 +341,18 @@ dependencies = [
[[package]]
name = "gobject-sys"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa92cae29759dae34ab5921d73fff5ad54b3d794ab842c117e36cafc7994c3f5"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"glib-sys",
"libc",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
name = "graphene-rs"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f1460a39f06e491e6112f27e71e51435c833ba370723224dd1743dfd1f201f19"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"glib",
"graphene-sys",
@@ -383,21 +361,19 @@ dependencies = [
[[package]]
name = "graphene-sys"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e7d23fb7a9547e5f072a7e0cd49cd648fedeb786d122b106217511980cbb8962"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"glib-sys",
"libc",
"pkg-config",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
name = "gsk4"
version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20b71f2e2cc699c2e0fbfa22899eeaffd84f9c1dc01e9263deac8664eec22dc0"
+source = "git+https://github.com/gtk-rs/gtk4-rs.git#9479180bb6c2115cf3907607911332e8e29be5d8"
dependencies = [
"bitflags",
"cairo-rs",
@@ -412,8 +388,7 @@ dependencies = [
[[package]]
name = "gsk4-sys"
version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "30468aff80e4faadf22f9ba164ea17511a69a9995d7a13827a13424ef47b2472"
+source = "git+https://github.com/gtk-rs/gtk4-rs.git#9479180bb6c2115cf3907607911332e8e29be5d8"
dependencies = [
"cairo-sys-rs",
"gdk4-sys",
@@ -422,17 +397,17 @@ dependencies = [
"graphene-sys",
"libc",
"pango-sys",
- "system-deps 4.0.0",
+ "system-deps",
]
[[package]]
name = "gstreamer"
-version = "0.17.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "810e68483c27518ec8491d71ee163f9fc03dcc4ebacee98caa348e8a064898ef"
+version = "0.18.0"
+source =
"git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git#d1cc8d12984b6ce7ad1c24b7f2ca7009b301cda4"
dependencies = [
"bitflags",
"cfg-if",
+ "fragile",
"futures-channel",
"futures-core",
"futures-util",
@@ -443,6 +418,7 @@ dependencies = [
"num-integer",
"num-rational",
"once_cell",
+ "option-operations",
"paste",
"pretty-hex",
"thiserror",
@@ -450,9 +426,8 @@ dependencies = [
[[package]]
name = "gstreamer-base"
-version = "0.17.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c0c1d8c62eb5d08fb80173609f2eea71d385393363146e4e78107facbd67715"
+version = "0.18.0"
+source =
"git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git#d1cc8d12984b6ce7ad1c24b7f2ca7009b301cda4"
dependencies = [
"bitflags",
"cfg-if",
@@ -464,22 +439,20 @@ dependencies = [
[[package]]
name = "gstreamer-base-sys"
-version = "0.17.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28169a7b58edb93ad8ac766f0fa12dcd36a2af4257a97ee10194c7103baf3e27"
+version = "0.18.0"
+source =
"git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git#d1cc8d12984b6ce7ad1c24b7f2ca7009b301cda4"
dependencies = [
"glib-sys",
"gobject-sys",
"gstreamer-sys",
"libc",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
name = "gstreamer-player"
-version = "0.17.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c503dba6f79b5cd8a4be5329119892c196db013ce66fce16079a7df8ce819a3a"
+version = "0.18.0"
+source =
"git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git#d1cc8d12984b6ce7ad1c24b7f2ca7009b301cda4"
dependencies = [
"bitflags",
"glib",
@@ -492,38 +465,36 @@ dependencies = [
[[package]]
name = "gstreamer-player-sys"
-version = "0.17.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e50bed2a120574750ea1370163df21b50762d0b4967f569fdc58232f4c930d5"
+version = "0.18.0"
+source =
"git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git#d1cc8d12984b6ce7ad1c24b7f2ca7009b301cda4"
dependencies = [
"glib-sys",
"gobject-sys",
"gstreamer-sys",
"gstreamer-video-sys",
"libc",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
name = "gstreamer-sys"
-version = "0.17.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a81704feeb3e8599913bdd1e738455c2991a01ff4a1780cb62200993e454cc3e"
+version = "0.18.0"
+source =
"git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git#d1cc8d12984b6ce7ad1c24b7f2ca7009b301cda4"
dependencies = [
"glib-sys",
"gobject-sys",
"libc",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
name = "gstreamer-video"
-version = "0.17.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3447ee95c8e79daec0b163260cf6a3de9bc19ff47a01b533787f900074a3476"
+version = "0.18.0"
+source =
"git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git#d1cc8d12984b6ce7ad1c24b7f2ca7009b301cda4"
dependencies = [
"bitflags",
"cfg-if",
+ "fragile",
"futures-channel",
"glib",
"gstreamer",
@@ -535,23 +506,21 @@ dependencies = [
[[package]]
name = "gstreamer-video-sys"
-version = "0.17.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b81608f4182bdddd5bd33aaaa341d5544eda12b067a3dab75b1b7d2de01a3ba7"
+version = "0.18.0"
+source =
"git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git#d1cc8d12984b6ce7ad1c24b7f2ca7009b301cda4"
dependencies = [
"glib-sys",
"gobject-sys",
"gstreamer-base-sys",
"gstreamer-sys",
"libc",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
name = "gtk4"
version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "906f9308d15789d96a736881582181d710ae0937197119df459f3d2b46ef6776"
+source = "git+https://github.com/gtk-rs/gtk4-rs.git#9479180bb6c2115cf3907607911332e8e29be5d8"
dependencies = [
"bitflags",
"cairo-rs",
@@ -573,12 +542,9 @@ dependencies = [
[[package]]
name = "gtk4-macros"
version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4d0d008cdf23214c697482415dd20f666bdf3cc9f5e803b017223c17c5b59a6e"
+source = "git+https://github.com/gtk-rs/gtk4-rs.git#9479180bb6c2115cf3907607911332e8e29be5d8"
dependencies = [
"anyhow",
- "heck",
- "itertools",
"proc-macro-crate",
"proc-macro-error",
"proc-macro2",
@@ -589,8 +555,7 @@ dependencies = [
[[package]]
name = "gtk4-sys"
version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d06be0a6322aa77dd372f726e97efbcbb192d9a824a414a8874f238effd7747c"
+source = "git+https://github.com/gtk-rs/gtk4-rs.git#9479180bb6c2115cf3907607911332e8e29be5d8"
dependencies = [
"cairo-sys-rs",
"gdk-pixbuf-sys",
@@ -602,7 +567,7 @@ dependencies = [
"gsk4-sys",
"libc",
"pango-sys",
- "system-deps 4.0.0",
+ "system-deps",
]
[[package]]
@@ -632,15 +597,6 @@ dependencies = [
"quick-error",
]
-[[package]]
-name = "itertools"
-version = "0.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf"
-dependencies = [
- "either",
-]
-
[[package]]
name = "lazy_static"
version = "1.4.0"
@@ -650,8 +606,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "libadwaita"
version = "0.1.0-alpha-6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8d01ba5036df1c3e09be88b4b8e0906af977bb7ec28d5faec81a1de94bc775c"
+source = "git+https://gitlab.gnome.org/World/Rust/libadwaita-rs.git#add3cc01b8b3bd2e564fef6dfc43c696a61d3a44"
dependencies = [
"gdk-pixbuf",
"gdk4",
@@ -667,18 +622,15 @@ dependencies = [
[[package]]
name = "libadwaita-sys"
version = "0.1.0-alpha-6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3127d83c55f64c466925b9d1e27a964187f193e94c7c8820ad6b29d6e5f487d8"
+source = "git+https://gitlab.gnome.org/World/Rust/libadwaita-rs.git#add3cc01b8b3bd2e564fef6dfc43c696a61d3a44"
dependencies = [
- "gdk-pixbuf-sys",
"gdk4-sys",
"gio-sys",
"glib-sys",
"gobject-sys",
"gtk4-sys",
"libc",
- "pango-sys",
- "system-deps 4.0.0",
+ "system-deps",
]
[[package]]
@@ -800,15 +752,23 @@ dependencies = [
[[package]]
name = "once_cell"
-version = "1.5.2"
+version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0"
+checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"
[[package]]
-name = "pango"
-version = "0.14.3"
+name = "option-operations"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e1fc88307d9797976ea62722ff2ec5de3fae279c6e20100ed3f49ca1a4bf3f96"
+checksum = "95d6113415f41b268f1195907427519769e40ee6f28cbb053795098a2c16f447"
+dependencies = [
+ "paste",
+]
+
+[[package]]
+name = "pango"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"bitflags",
"glib",
@@ -819,14 +779,13 @@ dependencies = [
[[package]]
name = "pango-sys"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2367099ca5e761546ba1d501955079f097caa186bb53ce0f718dca99ac1942fe"
+version = "0.15.0"
+source = "git+https://github.com/gtk-rs/gtk-rs-core#9e06f9420118968b3d95ae245050e8e2ecc69912"
dependencies = [
"glib-sys",
"gobject-sys",
"libc",
- "system-deps 3.2.0",
+ "system-deps",
]
[[package]]
@@ -1063,29 +1022,11 @@ version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"
-[[package]]
-name = "strum"
-version = "0.21.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aaf86bbcfd1fa9670b7a129f64fc0c9fcbbfe4f1bc4210e9e98fe71ffc12cde2"
-
-[[package]]
-name = "strum_macros"
-version = "0.21.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d06aaeeee809dbc59eb4556183dd927df67db1540de5be8d3ec0b6636358a5ec"
-dependencies = [
- "heck",
- "proc-macro2",
- "quote",
- "syn",
-]
-
[[package]]
name = "syn"
-version = "1.0.60"
+version = "1.0.67"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081"
+checksum = "6498a9efc342871f91cc2d0d694c674368b4ceb40f62b65a7a08c3792935e702"
dependencies = [
"proc-macro2",
"quote",
@@ -1094,29 +1035,11 @@ dependencies = [
[[package]]
name = "system-deps"
-version = "3.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "480c269f870722b3b08d2f13053ce0c2ab722839f472863c3e2d61ff3a1c2fa6"
-dependencies = [
- "anyhow",
- "cfg-expr 0.8.1",
- "heck",
- "itertools",
- "pkg-config",
- "strum",
- "strum_macros",
- "thiserror",
- "toml",
- "version-compare",
-]
-
-[[package]]
-name = "system-deps"
-version = "4.0.0"
+version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c1889ab44c2a423ba9ba4d64cd04989b25c0280ca7ade813f05368418722a04"
+checksum = "7b1487aaddaacbc5d60a2a507ba1617c5ca66c57dd0dd07d0c5efd5b693841d4"
dependencies = [
- "cfg-expr 0.9.0",
+ "cfg-expr",
"heck",
"pkg-config",
"toml",
@@ -1204,9 +1127,9 @@ checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
[[package]]
name = "version-compare"
-version = "0.0.11"
+version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1c18c859eead79d8b95d09e4678566e8d70105c4e7b251f707a03df32442661b"
+checksum = "fe88247b92c1df6b6de80ddc290f3976dbdf2f5f5d3fd049a9fb598c6dd5ca73"
[[package]]
name = "version_check"
diff --git a/Cargo.toml b/Cargo.toml
index e054143..b54ff01 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,19 +8,19 @@ edition = "2018"
video = ["gst_player", "gst"]
[dependencies]
-gtk = { package = "gtk4", version = "0.3", features= ["v4_2"]}
+gtk = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gtk4", version = "0.3", features= ["v4_2"]}
log = "0.4"
gettext-rs = { version = "0.6", features = ["gettext-system"] }
-libadwaita = "0.1.0-alpha-6"
+libadwaita = { git = "https://gitlab.gnome.org/World/Rust/libadwaita-rs.git" }
pretty_env_logger = "0.4"
[dependencies.gst_player]
-version = "0.17"
+git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git"
package = "gstreamer-player"
optional = true
[dependencies.gst]
-version = "0.17"
+git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git"
package = "gstreamer"
optional = true
diff --git a/build-aux/org.gnome.TourDevel.json b/build-aux/org.gnome.TourDevel.json
index fe2ce42..e8010b8 100644
--- a/build-aux/org.gnome.TourDevel.json
+++ b/build-aux/org.gnome.TourDevel.json
@@ -28,6 +28,17 @@
}
},
"modules" : [
+ {
+ "name" : "libadwaita",
+ "buildsystem" : "meson",
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://gitlab.gnome.org/GNOME/libadwaita.git",
+ "branch" : "main"
+ }
+ ]
+ },
{
"name" : "gnome-tour",
"buildsystem" : "meson",
diff --git a/src/widgets/pages/image.rs b/src/widgets/pages/image.rs
index 81ec185..bf39647 100644
--- a/src/widgets/pages/image.rs
+++ b/src/widgets/pages/image.rs
@@ -21,7 +21,7 @@ impl ImagePageWidget {
self.widget.set_halign(gtk::Align::Fill);
self.widget.set_valign(gtk::Align::Fill);
- let container = gtk::BoxBuilder::new()
+ let container = gtk::builders::BoxBuilder::new()
.orientation(gtk::Orientation::Vertical)
.spacing(12)
.halign(gtk::Align::Center)
@@ -35,14 +35,14 @@ impl ImagePageWidget {
let clamp = libadwaita::Clamp::new();
clamp.set_child(Some(&container));
- let picture = gtk::PictureBuilder::new()
+ let picture = gtk::builders::PictureBuilder::new()
.can_shrink(false)
.keep_aspect_ratio(true)
.build();
picture.set_resource(Some(resource_uri));
container.append(&picture);
- let head_label = gtk::LabelBuilder::new()
+ let head_label = gtk::builders::LabelBuilder::new()
.label(&head)
.justify(gtk::Justification::Center)
.valign(gtk::Align::Center)
@@ -51,7 +51,7 @@ impl ImagePageWidget {
head_label.add_css_class("page-title");
container.append(&head_label);
- let body_label = gtk::LabelBuilder::new()
+ let body_label = gtk::builders::LabelBuilder::new()
.label(&body)
.lines(2)
.wrap(true)
diff --git a/src/widgets/pages/welcome.rs b/src/widgets/pages/welcome.rs
index 1483ce7..ccb7d24 100644
--- a/src/widgets/pages/welcome.rs
+++ b/src/widgets/pages/welcome.rs
@@ -65,7 +65,7 @@ impl WelcomePageWidget {
}
fn init(&self) {
- let container = gtk::BoxBuilder::new()
+ let container = gtk::builders::BoxBuilder::new()
.orientation(gtk::Orientation::Vertical)
.spacing(0)
.hexpand(true)
@@ -83,7 +83,7 @@ impl WelcomePageWidget {
#[cfg(not(feature = "video"))]
let header = {
- let logo = gtk::PictureBuilder::new()
+ let logo = gtk::builders::PictureBuilder::new()
.can_shrink(false)
.keep_aspect_ratio(true)
.build();
diff --git a/src/widgets/paginator.rs b/src/widgets/paginator.rs
index f3bdbc7..cf08bb2 100644
--- a/src/widgets/paginator.rs
+++ b/src/widgets/paginator.rs
@@ -27,7 +27,7 @@ impl PaginatorWidget {
widget,
carousel: libadwaita::Carousel::new(),
carousel_dots: libadwaita::CarouselIndicatorDots::new(),
- headerbar: gtk::HeaderBarBuilder::new()
+ headerbar: gtk::builders::HeaderBarBuilder::new()
.show_title_buttons(false)
.build(),
start_btn: gtk::Button::with_label(&gettext("_Start")),
@@ -115,7 +115,6 @@ impl PaginatorWidget {
self.carousel_dots.set_carousel(Some(&self.carousel));
self.carousel.set_hexpand(true);
self.carousel.set_vexpand(true);
- self.carousel.set_animation_duration(300);
self.carousel
.connect_position_notify(clone!(@weak p => move |_| {
@@ -170,7 +169,7 @@ impl PaginatorWidget {
if page_nr < self.carousel.n_pages() {
let pages = &self.pages.borrow();
let page = pages.get(page_nr as usize).unwrap();
- self.carousel.scroll_to(page);
+ self.carousel.scroll_to(page, true);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]