mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-11 16:53:51 +01:00
Refactor: Move GObject.registerClass calls into static init. blocks
Do that since it standardizes the code and also is just cleaner.
This commit is contained in:
parent
a77c6d2f2b
commit
5ea8f4aabe
4 changed files with 54 additions and 46 deletions
|
|
@ -10,11 +10,15 @@ import * as Main from "resource:///org/gnome/shell/ui/main.js";
|
|||
* what is really useable by the other extension code.
|
||||
* It's basically a heavy wrapper around the box orders stored in the settings.
|
||||
*/
|
||||
const BoxOrderManager = GObject.registerClass({
|
||||
Signals: {
|
||||
"appIndicatorReady": {}
|
||||
export default class BoxOrderManager extends GObject.Object {
|
||||
static {
|
||||
GObject.registerClass({
|
||||
Signals: {
|
||||
"appIndicatorReady": {}
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
}, class BoxOrderManager extends GObject.Object {
|
||||
|
||||
#appIndicatorReadyHandlerIdMap;
|
||||
#appIndicatorItemApplicationRoleMap;
|
||||
#settings;
|
||||
|
|
@ -267,6 +271,4 @@ const BoxOrderManager = GObject.registerClass({
|
|||
saveBoxOrderToSettings(boxOrders.center, "center");
|
||||
saveBoxOrderToSettings(boxOrders.right, "right");
|
||||
}
|
||||
});
|
||||
|
||||
export default BoxOrderManager;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue