[gnome] Update extensions for v46
This commit is contained in:
@ -10,6 +10,8 @@ export const Dash = GObject.registerClass({
|
||||
InternalChildren: [
|
||||
'blur',
|
||||
'customize',
|
||||
'static_blur',
|
||||
'corner_radius',
|
||||
'override_background',
|
||||
'style_dash_to_dock',
|
||||
'unblur_in_overview'
|
||||
@ -24,6 +26,16 @@ export const Dash = GObject.registerClass({
|
||||
'blur', this._blur, 'active',
|
||||
Gio.SettingsBindFlags.DEFAULT
|
||||
);
|
||||
this.preferences.dash_to_dock.settings.bind(
|
||||
'static-blur',
|
||||
this._static_blur, 'active',
|
||||
Gio.SettingsBindFlags.DEFAULT
|
||||
);
|
||||
this.preferences.dash_to_dock.settings.bind(
|
||||
'corner-radius',
|
||||
this._corner_radius, 'value',
|
||||
Gio.SettingsBindFlags.DEFAULT
|
||||
);
|
||||
this.preferences.dash_to_dock.settings.bind(
|
||||
'override-background',
|
||||
this._override_background, 'enable-expansion',
|
||||
|
||||
@ -12,6 +12,7 @@ export const Panel = GObject.registerClass({
|
||||
'customize',
|
||||
'static_blur',
|
||||
'unblur_in_overview',
|
||||
'force_light_text',
|
||||
'override_background',
|
||||
'style_panel',
|
||||
'override_background_dynamically',
|
||||
@ -36,6 +37,10 @@ export const Panel = GObject.registerClass({
|
||||
'unblur-in-overview', this._unblur_in_overview, 'active',
|
||||
Gio.SettingsBindFlags.DEFAULT
|
||||
);
|
||||
this.preferences.panel.settings.bind(
|
||||
'force-light-text', this._force_light_text, 'active',
|
||||
Gio.SettingsBindFlags.DEFAULT
|
||||
);
|
||||
this.preferences.panel.settings.bind(
|
||||
'override-background',
|
||||
this._override_background, 'enable-expansion',
|
||||
|
||||
@ -7,14 +7,14 @@ import Gtk from 'gi://Gtk';
|
||||
import { pick, on_picking, on_picked } from '../dbus/client.js';
|
||||
|
||||
|
||||
|
||||
export const WindowRow = GObject.registerClass({
|
||||
GTypeName: 'WindowRow',
|
||||
Template: GLib.uri_resolve_relative(import.meta.url, '../ui/window-row.ui', GLib.UriFlags.NONE),
|
||||
InternalChildren: [
|
||||
'window_picker',
|
||||
'window_class',
|
||||
'picking_failure_toast'
|
||||
'picking_failure_toast',
|
||||
'window_not_found_toast'
|
||||
],
|
||||
}, class WindowRow extends Adw.ExpanderRow {
|
||||
constructor(list, app_page, app_name) {
|
||||
@ -88,7 +88,7 @@ export const WindowRow = GObject.registerClass({
|
||||
if (remove_if_failed)
|
||||
this._remove_row();
|
||||
}
|
||||
}, 15);
|
||||
}, 250);
|
||||
|
||||
on_picking(_ =>
|
||||
has_responded = true
|
||||
@ -98,6 +98,9 @@ export const WindowRow = GObject.registerClass({
|
||||
if (should_take_answer) {
|
||||
if (wm_class == 'window-not-found') {
|
||||
console.warn("Can't pick window from here");
|
||||
this._app_page._preferences_window.add_toast(
|
||||
this._window_not_found_toast
|
||||
);
|
||||
return;
|
||||
}
|
||||
this._window_class.buffer.text = wm_class;
|
||||
|
||||
Reference in New Issue
Block a user