[gnome-shell/gbsneto/pagination: 69/70] 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/pagination: 69/70] pageIndicator: Add getter for current number of pages
- Date: Tue, 16 Jun 2020 00:37:43 +0000 (UTC)
commit ce318b87dc0580413576d087203fc6742d2ac812
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]