[gnome-tour/wip/cdavis/use-libadwaita-beta-release: 2/2] Use libadwaita beta crate
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tour/wip/cdavis/use-libadwaita-beta-release: 2/2] Use libadwaita beta crate
- Date: Fri, 10 Dec 2021 00:24:15 +0000 (UTC)
commit e3b360afe1fa88685d11b909a6e5ae39e62aadfe
Author: Christopher Davis <christopherdavis gnome org>
Date: Thu Dec 9 16:23:51 2021 -0800
Use libadwaita beta crate
Cargo.lock | 12 +++++-------
Cargo.toml | 2 +-
build-aux/org.gnome.TourDevel.json | 11 +++++++++++
src/widgets/paginator.rs | 2 +-
4 files changed, 18 insertions(+), 9 deletions(-)
---
diff --git a/Cargo.lock b/Cargo.lock
index 6b901f0..f9a96d6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -649,9 +649,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "libadwaita"
-version = "0.1.0-alpha-6"
+version = "0.1.0-beta-1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8d01ba5036df1c3e09be88b4b8e0906af977bb7ec28d5faec81a1de94bc775c"
+checksum = "cef1e2d4b5490caff8a1d44648f68721ab917f765a7fa1d0226fcdac42d86552"
dependencies = [
"gdk-pixbuf",
"gdk4",
@@ -666,19 +666,17 @@ dependencies = [
[[package]]
name = "libadwaita-sys"
-version = "0.1.0-alpha-6"
+version = "0.1.0-beta-1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3127d83c55f64c466925b9d1e27a964187f193e94c7c8820ad6b29d6e5f487d8"
+checksum = "7a165d8c96824753ec072b70a9149790efa3d5abb07e130cda7eb04ef2006d4c"
dependencies = [
- "gdk-pixbuf-sys",
"gdk4-sys",
"gio-sys",
"glib-sys",
"gobject-sys",
"gtk4-sys",
"libc",
- "pango-sys",
- "system-deps 4.0.0",
+ "system-deps 3.2.0",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index e054143..fe6bc86 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,7 +11,7 @@ video = ["gst_player", "gst"]
gtk = { 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 = "0.1.0-beta-1"
pretty_env_logger = "0.4"
[dependencies.gst_player]
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/paginator.rs b/src/widgets/paginator.rs
index 5db2bd5..035f48c 100644
--- a/src/widgets/paginator.rs
+++ b/src/widgets/paginator.rs
@@ -171,7 +171,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]