♻ update deps
This commit is contained in:
parent
dbb6b85ee3
commit
f43471d257
File diff suppressed because it is too large
Load Diff
34
Cargo.toml
34
Cargo.toml
|
@ -6,24 +6,24 @@ license = "GPLv3"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
alpm = { default-features = false, version = "2.2.2" }
|
||||
alpm-utils = { features = ["conf"], default-features = false, version = "2.0.0" }
|
||||
pacmanconf = "2.0.0"
|
||||
alpm = { default-features = false, version = "2" }
|
||||
alpm-utils = { features = ["conf"], default-features = false, version = "2" }
|
||||
pacmanconf = "2"
|
||||
|
||||
subprocess = "0.2.9"
|
||||
once_cell = { default-features = false, version = "1.18.0" }
|
||||
i18n-embed = { version = "0.13.9", features = ["fluent-system", "desktop-requester"] }
|
||||
i18n-embed-fl = "0.6.7"
|
||||
rust-embed = { version = "6.7.0", features = ["debug-embed", "include-exclude"] }
|
||||
gtk = { version = "0.17.1", default-features = false }
|
||||
gio = { version = "0.17.10", default-features = false }
|
||||
gdk = "0.17.1"
|
||||
gdk-pixbuf = "0.17.10"
|
||||
glib = { default-features = false, version = "0.17.10" }
|
||||
serde = { version = "1.0.164", default-features = false }
|
||||
serde_json = "1.0.97"
|
||||
reqwest = { version = "0.11.18", features = ["blocking"] }
|
||||
unic-langid = "0.9.1"
|
||||
subprocess = "0.2"
|
||||
once_cell = { default-features = false, version = "1.18" }
|
||||
i18n-embed = { version = "0.14", features = ["fluent-system", "desktop-requester"] }
|
||||
i18n-embed-fl = "0.7"
|
||||
rust-embed = { version = "8", features = ["debug-embed", "include-exclude"] }
|
||||
gtk = { version = "0.18", default-features = false }
|
||||
gio = { version = "0.18", default-features = false }
|
||||
gdk = "0.18"
|
||||
gdk-pixbuf = "0.18"
|
||||
glib = { default-features = false, version = "0.18" }
|
||||
serde = { version = "1", default-features = false }
|
||||
serde_json = "1"
|
||||
reqwest = { version = "0.11", features = ["blocking"] }
|
||||
unic-langid = "0.9"
|
||||
|
||||
[profile.release]
|
||||
strip = "symbols"
|
||||
|
|
|
@ -394,13 +394,13 @@ fn on_query_tooltip_tree_view(
|
|||
fn on_button_press_event_tree_view(
|
||||
treeview: >k::TreeView,
|
||||
event_btn: &gdk::EventButton,
|
||||
) -> gtk::glib::signal::Inhibit {
|
||||
) -> glib::Propagation {
|
||||
if event_btn.button() == 1 && event_btn.event_type() == gdk::EventType::DoubleButtonPress {
|
||||
if let Some(coords) = event_btn.coords() {
|
||||
let (x, y) = coords;
|
||||
let path_info = treeview.path_at_pos(x as i32, y as i32);
|
||||
if path_info.is_none() {
|
||||
return gtk::glib::signal::Inhibit(true);
|
||||
return glib::Propagation::Stop;
|
||||
}
|
||||
|
||||
let (path, ..) = path_info.unwrap();
|
||||
|
@ -419,7 +419,7 @@ fn on_button_press_event_tree_view(
|
|||
}
|
||||
}
|
||||
|
||||
gtk::glib::signal::Inhibit(false)
|
||||
glib::Propagation::Proceed
|
||||
}
|
||||
|
||||
fn on_app_toggle(_cell: >k::CellRendererToggle, path: gtk::TreePath) {
|
||||
|
|
12
src/pages.rs
12
src/pages.rs
|
@ -133,7 +133,7 @@ fn create_fixes_section() -> gtk::Box {
|
|||
}
|
||||
|
||||
// Create context channel.
|
||||
let (dialog_tx, dialog_rx) = glib::MainContext::channel(glib::PRIORITY_DEFAULT);
|
||||
let (dialog_tx, dialog_rx) = glib::MainContext::channel(glib::Priority::default());
|
||||
|
||||
// Connect signals.
|
||||
let dialog_tx_clone = dialog_tx.clone();
|
||||
|
@ -230,7 +230,7 @@ fn create_fixes_section() -> gtk::Box {
|
|||
.modal(true)
|
||||
.build();
|
||||
dialog.show();
|
||||
glib::Continue(true)
|
||||
glib::ControlFlow::Continue
|
||||
});
|
||||
|
||||
topbox.pack_start(&label, true, false, 1);
|
||||
|
@ -525,7 +525,7 @@ fn on_servbtn_clicked(button: >k::CheckButton) {
|
|||
};
|
||||
|
||||
// Create context channel.
|
||||
let (tx, rx) = glib::MainContext::channel(glib::PRIORITY_DEFAULT);
|
||||
let (tx, rx) = glib::MainContext::channel(glib::Priority::default());
|
||||
|
||||
// Spawn child process in separate thread.
|
||||
std::thread::spawn(move || {
|
||||
|
@ -568,7 +568,7 @@ fn on_servbtn_clicked(button: >k::CheckButton) {
|
|||
.build();
|
||||
dialog.show();
|
||||
}
|
||||
glib::Continue(true)
|
||||
glib::ControlFlow::Continue
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -665,7 +665,7 @@ fn on_appbtn_clicked(button: >k::Button) {
|
|||
let bash_cmd = format!("{} {}", &envs, &exe_path);
|
||||
|
||||
// Create context channel.
|
||||
let (tx, rx) = glib::MainContext::channel(glib::PRIORITY_DEFAULT);
|
||||
let (tx, rx) = glib::MainContext::channel(glib::Priority::default());
|
||||
|
||||
// Spawn child process in separate thread.
|
||||
std::thread::spawn(move || {
|
||||
|
@ -680,7 +680,7 @@ fn on_appbtn_clicked(button: >k::Button) {
|
|||
|
||||
rx.attach(None, move |text| {
|
||||
println!("{text}");
|
||||
glib::Continue(true)
|
||||
glib::ControlFlow::Continue
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue