mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
quickSettings: Add getFirstItem() method
We will need some more access to the menu's underlying grid to provide extension API for adding additional quick items. Expose a new getFirstItem() method that (surprise!) returns the first item. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2894>
This commit is contained in:
parent
30a36c970b
commit
96bf9e700f
1 changed files with 4 additions and 0 deletions
|
|
@ -802,6 +802,10 @@ export const QuickSettingsMenu = class extends PopupMenu.PopupMenu {
|
|||
}
|
||||
}
|
||||
|
||||
getFirstItem() {
|
||||
return this._grid.get_first_child();
|
||||
}
|
||||
|
||||
open(animate) {
|
||||
this.actor.show();
|
||||
super.open(animate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue