ui: migrate to the new AdwDialog

This commit is contained in:
zefr0x 2025-03-26 22:09:21 +03:00
parent 980bb139e9
commit b9c241ea9d
2 changed files with 3 additions and 4 deletions

View file

@ -15,7 +15,7 @@ categories = ["gui", "multimedia"]
[dependencies]
pipewire = "0.8.0"
adw = { version = "0.6", package = "libadwaita", features = ["v1_4"] }
adw = { version = "0.6", package = "libadwaita", features = ["v1_5"] }
glib = { version = "0.19", features = ["log"] }
async-channel = "2.2"

View file

@ -120,8 +120,7 @@ mod imp {
let window = obj.active_window().unwrap();
let authors: Vec<&str> = AUTHORS.split(':').collect();
let about_window = adw::AboutWindow::builder()
.transient_for(&window)
let about_window = adw::AboutDialog::builder()
.application_icon(APP_ID)
.application_name("Helvum")
.developer_name("Tom Wagner")
@ -132,7 +131,7 @@ mod imp {
.license_type(gtk::License::Gpl30Only)
.build();
about_window.present();
about_window.present(&window);
}
pub(super) fn setup_options(&self, pw_sender: Sender<GtkMessage>) {