[gnome] Fix extension locations

This commit is contained in:
2024-01-23 15:31:15 -05:00
parent 2f029aee37
commit 5ac7107501
331 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1,49 @@
import Adw from 'gi://Adw';
import GLib from 'gi://GLib';
import GObject from 'gi://GObject';
import Gio from 'gi://Gio';
export const Other = GObject.registerClass({
GTypeName: 'Other',
Template: GLib.uri_resolve_relative(import.meta.url, '../ui/other.ui', GLib.UriFlags.NONE),
InternalChildren: [
'lockscreen_blur',
'lockscreen_customize',
'screenshot_blur',
'screenshot_customize',
'window_list_blur',
'window_list_customize',
],
}, class Overview extends Adw.PreferencesPage {
constructor(preferences) {
super({});
this.preferences = preferences;
this.preferences.lockscreen.settings.bind(
'blur', this._lockscreen_blur, 'active',
Gio.SettingsBindFlags.DEFAULT
);
this._lockscreen_customize.connect_to(this.preferences, this.preferences.lockscreen);
this.preferences.screenshot.settings.bind(
'blur', this._screenshot_blur, 'active',
Gio.SettingsBindFlags.DEFAULT
);
this._screenshot_customize.connect_to(this.preferences, this.preferences.screenshot);
this.preferences.window_list.settings.bind(
'blur', this._window_list_blur, 'active',
Gio.SettingsBindFlags.DEFAULT
);
this._window_list_customize.connect_to(
this.preferences, this.preferences.window_list, false
);
}
});