[gnome-shell/gbsneto/pagination: 3/4] 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: 3/4] pageIndicator: Add getter for current number of pages
- Date: Thu,  4 Jun 2020 18:58:24 +0000 (UTC)
commit c0e1f1bd621e9b79f7b94f87f64c86f0f93a4055
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]