about summary refs log tree commit diff
path: root/src/ui/report.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/report.rs')
-rw-r--r--src/ui/report.rs10
1 files changed, 3 insertions, 7 deletions
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);