From 36f50ab2602929b9c028d76c7686415ebd42ca1a Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval R Date: Mon, 10 Apr 2023 12:50:57 +0200 Subject: [PATCH] spinner_button: Stop spinners when idle --- data/resources/ui/spinner-button.ui | 3 +-- src/components/spinner_button.rs | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/resources/ui/spinner-button.ui b/data/resources/ui/spinner-button.ui index 98733d81..4363a88c 100644 --- a/data/resources/ui/spinner-button.ui +++ b/data/resources/ui/spinner-button.ui @@ -14,8 +14,7 @@ - - True + center center diff --git a/src/components/spinner_button.rs b/src/components/spinner_button.rs index 03153a36..d7530a64 100644 --- a/src/components/spinner_button.rs +++ b/src/components/spinner_button.rs @@ -1,6 +1,8 @@ use adw::subclass::prelude::*; use gtk::{glib, prelude::*, CompositeTemplate}; +use super::Spinner; + mod imp { use glib::subclass::InitializingObject; @@ -14,7 +16,7 @@ mod imp { #[template_child] pub label: TemplateChild, #[template_child] - pub spinner: TemplateChild, + pub spinner: TemplateChild, } #[glib::object_subclass]