diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2022-08-29 22:36:13 +0200 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2022-08-31 21:29:51 +0200 |
commit | 9fd76170e500ec09404a3bcacfa147bf599e5862 (patch) | |
tree | 73fa2c2826f796bf7613e18c88ea00843e13ba50 | |
parent | 93f7a6eaac33cbef82efd77421e7b58164731f5b (diff) | |
download | gnome-maps-9fd76170e500ec09404a3bcacfa147bf599e5862.tar.gz |
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.
-rw-r--r-- | data/ui/place-popover.ui | 2 | ||||
-rw-r--r-- | 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; |