[gnome-shell/gbsneto/custom-icon-positions: 20/40] pageIndicator: Add getter for current number of pages
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/custom-icon-positions: 20/40] pageIndicator: Add getter for current number of pages
- Date: Wed, 27 May 2020 22:42:47 +0000 (UTC)
commit 4500d06b2444e0e99219d5f685ecce49e482da20
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon May 25 16:51:26 2020 -0300
pageIndicator: Add getter for current number of pages
Add a getter to PageIndicators to retrieve the number of pages
it currently displays.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1271
js/ui/pageIndicators.js | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/js/ui/pageIndicators.js b/js/ui/pageIndicators.js
index 09186ed2c1..8ac44d4b2b 100644
--- a/js/ui/pageIndicators.js
+++ b/js/ui/pageIndicators.js
@@ -120,6 +120,10 @@ var PageIndicators = GObject.registerClass({
for (let i = 0; i < children.length; i++)
this._updateIndicator(children[i], i);
}
+
+ get nPages() {
+ return this._nPages;
+ }
});
var AnimatedPageIndicators = GObject.registerClass(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]