[gnome-maps/wip/mlundblad/smaller-spinners: 7/8] placePopover: Make the load spinner not fill all space




commit 9fd76170e500ec09404a3bcacfa147bf599e5862
Author: Marcus Lundblad <ml dfupdate se>
Date:   Mon Aug 29 22:36:13 2022 +0200

    placePopover: Make the load spinner not fill all space
    
    Also set the spinning property on by default and use
    the correct property to check active state.

 data/ui/place-popover.ui | 2 ++
 src/placePopover.js      | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/place-popover.ui b/data/ui/place-popover.ui
index 5c45f8db..2fe41fea 100644
--- a/data/ui/place-popover.ui
+++ b/data/ui/place-popover.ui
@@ -33,6 +33,8 @@
             <property name="valign">center</property>
             <property name="width_request">16</property>
             <property name="height_request">16</property>
+            <property name="valign">GTK_ALIGN_CENTER</property>
+            <property name="spinning">True</property>
           </object>
         </child>
         <child>
diff --git a/src/placePopover.js b/src/placePopover.js
index 36e59561..9f967f41 100644
--- a/src/placePopover.js
+++ b/src/placePopover.js
@@ -80,7 +80,7 @@ export class PlacePopover extends SearchPopover {
     }
 
     showNoResult() {
-        if (this._spinner.active)
+        if (this._spinner.spinning)
             this._spinner.stop();
 
         this._stack.visible_child = this._noResultsLabel;
@@ -88,7 +88,7 @@ export class PlacePopover extends SearchPopover {
     }
 
     showError() {
-        if (this._spinner.active)
+        if (this._spinner.spinning)
             this._spinner.stop();
 
         this._stack.visible_child = this._errorLabel;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]