From ce43c2e2634073479a0b1c09a461fedfe4fc3f77 Mon Sep 17 00:00:00 2001 From: Gabriel Brand Date: Fri, 3 May 2024 16:22:18 +0200 Subject: report: Port AdwWindow to AdwDialog - Use AdwToolbarView - Use AdwHeaderBar Instead of GtkHeaderBar - Remove unused style class 'report' --- src/application.rs | 3 +- src/gtk/report.ui | 286 +++++++++++++++++++++++++---------------------------- src/ui/report.rs | 10 +- 3 files changed, 142 insertions(+), 157 deletions(-) diff --git a/src/application.rs b/src/application.rs index d03fe97..661e8f2 100644 --- a/src/application.rs +++ b/src/application.rs @@ -125,7 +125,8 @@ impl FurtheranceApplication { let report_action = gio::SimpleAction::new("report", None); report_action.connect_activate(clone!(@weak self as app => move |_, _| { - FurReport::new().show(); + let window = FurtheranceWindow::default(); + FurReport::new().present(&window); })); self.set_accels_for_action("app.report", &["R"]); self.add_action(&report_action); diff --git a/src/gtk/report.ui b/src/gtk/report.ui index db4b651..29f0f95 100644 --- a/src/gtk/report.ui +++ b/src/gtk/report.ui @@ -1,34 +1,22 @@ -