Skip to content

Commit 146a85b

Browse files
authored
Merge pull request #796 from marhkb/build/upddeps
build: Update dependencies
2 parents ba95092 + 3eb375d commit 146a85b

12 files changed

+480
-546
lines changed

Cargo.lock

+435-525
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ authors = ["Marcus Behrendt <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
adw = { version = "0.6", package = "libadwaita", features = ["v1_4"] }
8+
adw = { version = "0.7", package = "libadwaita", features = ["v1_5"] }
99
anyhow = "1"
10-
ashpd = { version = "0.8", default-features = false, features = ["gtk4", "tokio"] }
10+
ashpd = { version = "0.9", default-features = false, features = ["gtk4", "tokio"] }
1111
futures = { version = "0.3", default-features = false }
1212
gettext-rs = { version = "0.7", features = ["gettext-system"] }
13-
gtk = { version = "0.8", package = "gtk4", features = ["gnome_45"] }
13+
gtk = { version = "0.9", package = "gtk4", features = ["gnome_46"] }
1414
indexmap = { version = "2", features = ["serde"] }
1515
log = "0.4"
1616
multi_log = "0.1"
@@ -21,12 +21,12 @@ podman-api = { git = "https://github.com/vv9k/podman-api-rs.git", commit = "363d
2121
serde = "1"
2222
serde_json = "1"
2323
simplelog = { version = "0.12", features = ["paris"] }
24-
sourceview5 = { version = "0.8", features = ["gtk_v4_12"] }
25-
syslog = "6"
24+
sourceview5 = { version = "0.9" }
25+
syslog = "7"
2626
tokio = "1"
2727
tokio-tar = { version = "0.3", default-features = false }
2828
vte = { version = "0.13", default-features = false }
29-
vte4 = "0.7"
29+
vte4 = "0.8"
3030

3131
[profile.release]
3232
lto = true

build-aux/com.github.marhkb.Pods.Devel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
{
6363
"type": "git",
6464
"url": "https://gitlab.gnome.org/GNOME/vte.git",
65-
"tag": "0.76.0"
65+
"tag": "0.76.4"
6666
}
6767
]
6868
},

data/com.github.marhkb.Pods.metainfo.xml.in.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
<li>If a container is in a pod, it will now get a badge with the pod name in the container list.</li>
279279
<li>Logs, the result of the inspection of images, containers, and pods, and the result Kubernetes YAML generation can now be saved directly as a file.</li>
280280
<li>Headerbar titles were adjusted to be shorter and more concise</li>
281-
<li>Many minor internal code improvements habe landed</li>
281+
<li>Many minor internal code improvements have landed</li>
282282
<li>Dependencies and translations have been updated.</li>
283283
</ul>
284284
</description>

src/model/abstract_container_list.rs

+9-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ mod imp {
1414

1515
#[allow(dead_code)]
1616
#[derive(Copy, Clone, Debug)]
17-
pub(crate) struct AbstractContainerList(glib::gobject_ffi::GTypeInterface);
17+
pub(crate) struct AbstractContainerListClass(glib::gobject_ffi::GTypeInterface);
18+
19+
unsafe impl InterfaceStruct for AbstractContainerListClass {
20+
type Type = AbstractContainerList;
21+
}
22+
23+
pub(crate) struct AbstractContainerList;
1824

1925
#[glib::object_interface]
20-
unsafe impl ObjectInterface for AbstractContainerList {
26+
impl ObjectInterface for AbstractContainerList {
2127
const NAME: &'static str = "AbstractContainerList";
2228
type Prerequisites = (gio::ListModel,);
29+
type Interface = AbstractContainerListClass;
2330

2431
fn signals() -> &'static [Signal] {
2532
static SIGNALS: OnceLock<Vec<Signal>> = OnceLock::new();

src/model/selectable.rs

+9-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ mod imp {
99

1010
#[allow(dead_code)]
1111
#[derive(Copy, Clone, Debug)]
12-
pub(crate) struct Selectable(glib::gobject_ffi::GTypeInterface);
12+
pub(crate) struct SelectableClass(glib::gobject_ffi::GTypeInterface);
13+
14+
unsafe impl InterfaceStruct for SelectableClass {
15+
type Type = Selectable;
16+
}
17+
18+
pub(crate) struct Selectable;
1319

1420
#[glib::object_interface]
15-
unsafe impl ObjectInterface for Selectable {
21+
impl ObjectInterface for Selectable {
1622
const NAME: &'static str = "Selectable";
23+
type Interface = SelectableClass;
1724

1825
fn properties() -> &'static [glib::ParamSpec] {
1926
static PROPERTIES: OnceLock<Vec<glib::ParamSpec>> = OnceLock::new();

src/model/selectable_list.rs

+11-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ mod imp {
1414

1515
#[allow(dead_code)]
1616
#[derive(Copy, Clone, Debug)]
17-
pub(crate) struct SelectableList(glib::gobject_ffi::GTypeInterface);
17+
pub(crate) struct SelectableListClass(glib::gobject_ffi::GTypeInterface);
18+
19+
unsafe impl InterfaceStruct for SelectableListClass {
20+
type Type = SelectableList;
21+
}
22+
23+
pub(crate) struct SelectableList;
1824

1925
#[glib::object_interface]
20-
unsafe impl ObjectInterface for SelectableList {
26+
impl ObjectInterface for SelectableList {
2127
const NAME: &'static str = "SelectableList";
2228
type Prerequisites = (gio::ListModel,);
29+
type Interface = SelectableListClass;
2330

2431
fn properties() -> &'static [glib::ParamSpec] {
2532
static PROPERTIES: OnceLock<Vec<glib::ParamSpec>> = OnceLock::new();
@@ -58,8 +65,10 @@ impl SelectableList {
5865
pub(crate) trait SelectableListExt: IsA<SelectableList> {
5966
fn is_selection_mode(&self) -> bool;
6067

68+
#[allow(dead_code)]
6169
fn set_selection_mode(&self, value: bool);
6270

71+
#[allow(dead_code)]
6372
fn select_all(&self) {
6473
self.select(true);
6574
}

src/utils.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -256,18 +256,18 @@ where
256256
gettext("<none>"))
257257
}
258258

259-
pub(crate) fn format_iter<'a, I, T: ?Sized>(iter: I, sep: &str) -> String
259+
pub(crate) fn format_iter<'a, I, T>(iter: I, sep: &str) -> String
260260
where
261261
I: IntoIterator<Item = &'a T>,
262-
T: AsRef<str> + 'a,
262+
T: AsRef<str> + ?Sized + 'a,
263263
{
264264
format_option(format_iter_or_none(iter, sep))
265265
}
266266

267-
pub(crate) fn format_iter_or_none<'a, I, T: ?Sized + 'a>(iter: I, sep: &str) -> Option<String>
267+
pub(crate) fn format_iter_or_none<'a, I, T>(iter: I, sep: &str) -> Option<String>
268268
where
269269
I: IntoIterator<Item = &'a T>,
270-
T: AsRef<str> + 'a,
270+
T: AsRef<str> + ?Sized + 'a,
271271
{
272272
let mut iter = iter.into_iter();
273273
iter.next().map(|first| {

src/view/container_card.rs

+1
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ mod imp {
413413
gesture_click.set_state(gtk::EventSequenceState::Claimed);
414414
gesture_click
415415
.widget()
416+
.unwrap()
416417
.downcast::<<Self as ObjectSubclass>::Type>()
417418
.unwrap()
418419
.activate();

src/widget/circular_progress_bar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ mod imp {
226226
snapshot.pop();
227227
snapshot.pop();
228228

229-
snapshot.append_node(&child_snapshot.to_node().unwrap());
229+
snapshot.append_node(child_snapshot.to_node().unwrap());
230230
snapshot.pop();
231231

232232
widget.snapshot_child(&*self.image, snapshot);

src/widget/count_badge.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ mod imp {
116116
widget.snapshot_child(&*self.count_mask, snapshot);
117117
snapshot.pop();
118118

119-
snapshot.append_node(&child_snapshot.to_node().unwrap());
119+
snapshot.append_node(child_snapshot.to_node().unwrap());
120120
snapshot.pop();
121121

122122
widget.snapshot_child(&*self.count_badge, snapshot);

src/widget/spinner.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ mod imp {
183183
snapshot.pop();
184184
snapshot.pop();
185185

186-
snapshot.append_node(&child_snapshot.to_node().unwrap());
186+
snapshot.append_node(child_snapshot.to_node().unwrap());
187187
snapshot.pop();
188188

189189
widget.snapshot_child(&*self.image, snapshot);

0 commit comments

Comments
 (0)