From ce43c2e2634073479a0b1c09a461fedfe4fc3f77 Mon Sep 17 00:00:00 2001
From: Gabriel Brand <gabr.brand@gmail.com>
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/ui/report.rs | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

(limited to 'src/ui')

diff --git a/src/ui/report.rs b/src/ui/report.rs
index 998012f..434514e 100644
--- a/src/ui/report.rs
+++ b/src/ui/report.rs
@@ -68,7 +68,7 @@ mod imp {
     #[glib::object_subclass]
     impl ObjectSubclass for FurReport {
         const NAME: &'static str = "FurReport";
-        type ParentType = adw::Window;
+        type ParentType = adw::Dialog;
         type Type = super::FurReport;
 
         fn class_init(klass: &mut Self::Class) {
@@ -90,14 +90,12 @@ mod imp {
 
     impl WidgetImpl for FurReport {}
 
-    impl WindowImpl for FurReport {}
-
-    impl AdwWindowImpl for FurReport {}
+    impl AdwDialogImpl for FurReport {}
 }
 
 glib::wrapper! {
     pub struct FurReport(ObjectSubclass<imp::FurReport>)
-        @extends gtk::Widget, gtk::Window, adw::Window;
+        @extends gtk::Widget, adw::Dialog;
 }
 
 impl FurReport {
@@ -105,8 +103,6 @@ impl FurReport {
         let dialog: Self = glib::Object::new::<FurReport>();
 
         let window = FurtheranceWindow::default();
-        dialog.set_transient_for(Some(&window));
-
         let app = FurtheranceApplication::default();
         app.add_window(&window);
 
-- 
cgit 1.4.1