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
This commit is contained in:
parent
68203e7091
commit
1e77e6fc79
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user