mirror of
https://github.com/FranP-code/wintile.git
synced 2025-10-13 00:33:46 +00:00
Add event to disable sub option
This commit is contained in:
7
prefs.js
7
prefs.js
@@ -110,7 +110,7 @@ function buildPrefsWidget() {
|
|||||||
|
|
||||||
// Double width previews
|
// Double width previews
|
||||||
let doubleWidthLabel = new Gtk.Label({
|
let doubleWidthLabel = new Gtk.Label({
|
||||||
label: _(" Use double width previews on sides in 4 column mode"),
|
label: _(" Use double width previews on sides in 4 column mode"),
|
||||||
visible: true,
|
visible: true,
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
halign: Gtk.Align.START
|
halign: Gtk.Align.START
|
||||||
@@ -123,6 +123,11 @@ function buildPrefsWidget() {
|
|||||||
layout.attach(doubleWidthLabel, 0, row, 1, 1);
|
layout.attach(doubleWidthLabel, 0, row, 1, 1);
|
||||||
layout.attach(doubleWidthInput, 1, row++, 1, 1);
|
layout.attach(doubleWidthInput, 1, row++, 1, 1);
|
||||||
|
|
||||||
|
previewInput.connect('state-set', function(widget, state) {
|
||||||
|
doubleWidthLabel.set_sensitive(state);
|
||||||
|
doubleWidthInput.set_sensitive(state);
|
||||||
|
});
|
||||||
|
|
||||||
// Debug setting
|
// Debug setting
|
||||||
let debugLabel = new Gtk.Label({
|
let debugLabel = new Gtk.Label({
|
||||||
label: _("Turn on debugging"),
|
label: _("Turn on debugging"),
|
||||||
|
|||||||
Reference in New Issue
Block a user