summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-25 15:32:33 +0300
committerVika <vika@fireburn.ru>2024-08-25 15:32:33 +0300
commitd6a9055f77df057d1dfd48c45d18ee1cf8012b82 (patch)
treec4fbd67e362b446bbc8d8d9e972c30770c1c4ec7
parent3d7e143ec9dfce5ed97e238d5304e900ad67bb8d (diff)
downloadbowl-d6a9055f77df057d1dfd48c45d18ee1cf8012b82.tar.zst
Properly mount loading widgets
Whoops
-rw-r--r--src/lib.rs5
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))
     }