-
Notifications
You must be signed in to change notification settings - Fork 27
/
prefs.js
35 lines (27 loc) · 1.05 KB
/
prefs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// SPDX-FileCopyrightText: 2020 Aleksandr Mezin <mezin.alexander@gmail.com>
//
// SPDX-License-Identifier: GPL-3.0-or-later
import {
ExtensionPreferences,
} from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js';
import {
WindowPage,
TerminalPage,
ShortcutsPage,
MiscPage,
} from './ddterm/pref/adw.js';
import { DisplayConfig } from './ddterm/util/displayconfig.js';
export default class extends ExtensionPreferences {
fillPreferencesWindow(win) {
const settings = this.getSettings();
const gettext_context = this;
const window_page = new WindowPage({ settings, gettext_context });
win.add(window_page);
win.add(new TerminalPage({ settings, gettext_context }));
win.add(new ShortcutsPage({ settings, gettext_context }));
win.add(new MiscPage({ settings, gettext_context }));
const display_config = DisplayConfig.new();
win.connect('destroy', () => display_config.unwatch());
window_page.monitors = display_config.create_monitor_list();
}
}