diff options
author | Gabriel Brand <gabr.brand@gmail.com> | 2024-05-03 16:22:18 +0200 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2025-01-02 02:41:43 +0300 |
commit | ce43c2e2634073479a0b1c09a461fedfe4fc3f77 (patch) | |
tree | d92beb9cd31078a6e0c1f4956ebc46f1e7bbf9a4 /src/ui/report.rs | |
parent | 987f3d96c087231efb96aefafed688d9944f94ed (diff) | |
download | Furtherance-ce43c2e2634073479a0b1c09a461fedfe4fc3f77.tar.zst |
report: Port AdwWindow to AdwDialog
- Use AdwToolbarView - Use AdwHeaderBar Instead of GtkHeaderBar - Remove unused style class 'report'
Diffstat (limited to 'src/ui/report.rs')
-rw-r--r-- | src/ui/report.rs | 10 |
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); |