From d6a9055f77df057d1dfd48c45d18ee1cf8012b82 Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 25 Aug 2024 15:32:33 +0300 Subject: Properly mount loading widgets Whoops --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 { 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)) } -- cgit 1.4.1