mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue