diff options
author | Vika <vika@fireburn.ru> | 2024-08-25 15:32:33 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-08-25 15:32:33 +0300 |
commit | d6a9055f77df057d1dfd48c45d18ee1cf8012b82 (patch) | |
tree | c4fbd67e362b446bbc8d8d9e972c30770c1c4ec7 | |
parent | 3d7e143ec9dfce5ed97e238d5304e900ad67bb8d (diff) | |
download | bowl-d6a9055f77df057d1dfd48c45d18ee1cf8012b82.tar.zst |
Properly mount loading widgets
Whoops
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index d178e07..4cd388b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -171,12 +171,17 @@ impl AsyncComponent for App { fn init_loading_widgets(_root: Self::Root) -> Option<relm4::loading_widgets::LoadingWidgets> { let root = gtk::Box::default(); + root.set_hexpand(true); + root.set_vexpand(true); + root.set_halign(gtk::Align::Center); + root.set_valign(gtk::Align::Center); let spinner = gtk::Spinner::builder() .spinning(true) .halign(gtk::Align::Center) .valign(gtk::Align::Center) .build(); + _root.set_content(Some(&root)); root.append(&spinner); Some(LoadingWidgets::new(root, spinner)) } |