1
0
Fork 0

Updating 46/middleclickclose to version 31 [2bac2aa].

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-24 19:44:05 +01:00
parent c43e98fb64
commit 45c8870e45
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
17 changed files with 382 additions and 159 deletions

View file

@ -1,24 +1,34 @@
Quick Close in Overview Quick Close in Overview
================ -----------------------
GNOME shell extension for quickly closing apps in the overview.
Gnome shell extension for closing apps in overview with a middle (or other) click. [![Download from extensions.gnome.org](img/ego.svg)](https://extensions.gnome.org/extension/352/middle-click-to-close-in-overview/)
All credit goes to Paolo Tranquilli (http://cs.unibo.it/~tranquil/en/hacking.html), I've merely ## Features
copied its code here to provide Gnome Shell 3.10+ compatibility
This extension is installable from - **Middle click to close**: Just hover over the app you want to close in the overview, and middle
https://extensions.gnome.org/extension/352/middle-click-to-close-in-overview/. click. The mouse button that will trigger closing can be adjusted in the settings.
- **`Alt+F4` in the overview**: When triggering the close action (typically `Alt+F4`), the focused
window will be closed. This can be turned off in the settings.
- **Adjustable rearrange delay**: After closing an application, GNOME will wait a bit before
rearranging the remaining windows. This extension allows configuring that delay.
Otherwise you may ## Building
* download a [zip](https://github.com/p91paul/middleclickclose/archive/master.zip) of this extension Make sure `gettext` is installed on your system and the `gnome-extensions` executable is available
* extract it on your `PATH` (It is typically bundled with `gnome-shell`).
* run the following command
``` Afterwards, simply run `make` to build a zip suitable for submition to
make install [EGO](https://extensions.gnome.org/).
```
* reload gnome-shell (Alt-F2, r, Enter) -> on Wayland you need to log out and log in again, there is no in-place reload `make install` can also be used to install the extension for the current user.
* activate it through the Gnome Extensions application.
## Debugging tips & tricks
- `journalctl -f --user` is your friend.
- `make install && dbus-run-session -- gnome-shell --nested --wayland` allows for quick prototyping
without having to log out and back in every single time when running under wayland.
- `make install`, then `Alt+F2`, `r` and `Enter` allow for quick prototyping under X11.
## Translations ## Translations
@ -26,4 +36,4 @@ If you're interested in contributing a translation, import the translation templ
`src/po/template.pot` to your favourite po-editing software and create a `*.po` file under `src/po`. `src/po/template.pot` to your favourite po-editing software and create a `*.po` file under `src/po`.
To update all existing translations after changing the code, run `make po`. To regenerate only the To update all existing translations after changing the code, run `make po`. To regenerate only the
`template.pot` file, run `make pot` `template.pot` file, run `make pot`.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -19,9 +19,13 @@
import GLib from 'gi://GLib'; import GLib from 'gi://GLib';
import GObject from 'gi://GObject'; import GObject from 'gi://GObject';
import Meta from 'gi://Meta';
import { Extension, InjectionManager } from 'resource:///org/gnome/shell/extensions/extension.js'; import { Extension, InjectionManager }
from 'resource:///org/gnome/shell/extensions/extension.js';
import { Workspace } from 'resource:///org/gnome/shell/ui/workspace.js'; import { Workspace } from 'resource:///org/gnome/shell/ui/workspace.js';
import { WindowPreview } from 'resource:///org/gnome/shell/ui/windowPreview.js';
import { ControlsState } from 'resource:///org/gnome/shell/ui/overviewControls.js';
import { SettingsWatch } from './settingsWatch.js'; import { SettingsWatch } from './settingsWatch.js';
@ -29,21 +33,29 @@ export default class MiddleClickClose extends Extension {
#settings; #settings;
#injectionManager; #injectionManager;
#refocusOnClose;
enable() { enable() {
this.#settings = new SettingsWatch(this.getSettings(), { this.#settings = new SettingsWatch(this.getSettings(), {
close_button: { get: v => v.value, }, close_button: { get: v => v.value, },
rearrange_delay: {}, rearrange_delay: {},
keyboard_close: {},
}); });
this.#refocusOnClose = new WeakSet();
this.#injectionManager = new InjectionManager(); this.#injectionManager = new InjectionManager();
this.#patchClickHandler(); this.#patchClickHandler();
this.#patchWindowRepositioningDelay(); this.#patchWindowRepositioningDelay();
this.#patchKeyClose();
} }
disable() { disable() {
this.#injectionManager.clear(); this.#injectionManager.clear();
this.#injectionManager = null; this.#injectionManager = null;
this.#refocusOnClose = null;
this.#settings.clear(); this.#settings.clear();
this.#settings = null; this.#settings = null;
} }
@ -81,23 +93,90 @@ export default class MiddleClickClose extends Extension {
// apparently that is impossible with the switch to ESM. Instead, we'll monkey-patch // apparently that is impossible with the switch to ESM. Instead, we'll monkey-patch
// _doRemoveWindow() and change the timeout after the fact. // _doRemoveWindow() and change the timeout after the fact.
const settings = this.#settings; const settings = this.#settings;
const refocusOnClose = this.#refocusOnClose;
const lastLayoutFrozenIds = new WeakMap(); const lastLayoutFrozenIds = new WeakMap();
this.#injectionManager.overrideMethod(Workspace.prototype, '_doRemoveWindow', this.#injectionManager.overrideMethod(Workspace.prototype, '_doRemoveWindow',
original => function () { original => function (metaWin) {
// Grab the old window's focus chain index.
let focus_idx = this.get_focus_chain()
.findIndex(clone => clone.metaWindow == metaWin);
// Call the original method.
const ret = original.apply(this, arguments); const ret = original.apply(this, arguments);
if (refocusOnClose.has(metaWin)) {
// Find a "nearby" window to refocus to, based on the old index
const chain = this.get_focus_chain();
if (focus_idx >= chain.length) {
focus_idx = chain.length - 1;
}
// Focus on the selected window.
if (focus_idx >= 0) {
global.stage.key_focus = chain[focus_idx];
}
}
// Adjust the freeze delay. // Adjust the freeze delay.
if (this._layoutFrozenId > 0 if (this._layoutFrozenId > 0
&& this._layoutFrozenId != lastLayoutFrozenIds.get(this) && this._layoutFrozenId != lastLayoutFrozenIds.get(this)
) { ) {
const source = GLib.MainContext.default().find_source_by_id(this._layoutFrozenId); const src = GLib.MainContext.default().find_source_by_id(this._layoutFrozenId);
source.set_ready_time(source.get_time() + settings.rearrange_delay * 1000); src.set_ready_time(src.get_time() + settings.rearrange_delay * 1000);
} }
// Need to keep the last id to avoid adjusting the layout freeze delay more than once. // Need to keep the last id to avoid adjusting the layout freeze delay more than
// once.
lastLayoutFrozenIds.set(this, this._layoutFrozenId); lastLayoutFrozenIds.set(this, this._layoutFrozenId);
return ret; return ret;
}) })
} }
#patchKeyClose() {
// If Meta.KeyBindingAction.CLOSE is fired in while a WindowPreview is focused, close it.
const settings = this.#settings;
const refocusOnClose = this.#refocusOnClose;
function handleKeyPress(event) {
// Keyboard close disabled in settings.
if (!settings.keyboard_close) {
return false;
}
// We only care about window picker mode.
if (this._workspace._overviewAdjustment.value !== ControlsState.WINDOW_PICKER) {
return false;
}
const action = global.display.get_keybinding_action(
event.get_key_code(), event.get_state());
if (action == Meta.KeyBindingAction.CLOSE) {
if (this._workspace.metaWorkspace?.active) {
// Imediately refocus on another window when closing via keyboard.
refocusOnClose.add(this.metaWindow);
// Close the window.
this._deleteAll();
} else {
// Switch to the workspace the focused window is in.
this._workspace.metaWorkspace?.activate(global.get_current_time())
}
return true;
}
return false;
}
this.#injectionManager.overrideMethod(WindowPreview.prototype, 'vfunc_key_press_event',
original => function () {
return handleKeyPress.apply(this, arguments)
|| original.apply(this, arguments);
}
)
}
}; };

View file

@ -4,7 +4,8 @@
"url": "https://github.com/p91paul/middleclickclose", "url": "https://github.com/p91paul/middleclickclose",
"shell-version": [ "shell-version": [
"45", "45",
"46" "46",
"47"
], ],
"uuid": "middleclickclose@paolo.tranquilli.gmail.com", "uuid": "middleclickclose@paolo.tranquilli.gmail.com",
"settings-schema": "org.gnome.shell.extensions.middleclickclose", "settings-schema": "org.gnome.shell.extensions.middleclickclose",

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions-middleclickclose\n" "Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-30 18:29+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2019-06-17 20:44+0200\n" "PO-Revision-Date: 2019-06-17 20:44+0200\n"
"Last-Translator: Onno Giesmann <nutzer3105@gmail.com>\n" "Last-Translator: Onno Giesmann <nutzer3105@gmail.com>\n"
"Language-Team: German <--->\n" "Language-Team: German <--->\n"
@ -18,39 +18,39 @@ msgstr ""
"X-Generator: Gtranslator 3.32.1\n" "X-Generator: Gtranslator 3.32.1\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Linke" msgstr "Linke"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Mittlere" msgstr "Mittlere"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Rechte" msgstr "Rechte"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Taste 4" msgstr "Taste 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Taste 5" msgstr "Taste 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Taste 6" msgstr "Taste 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Taste 7" msgstr "Taste 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Taste 8" msgstr "Taste 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Taste 9" msgstr "Taste 9"
@ -62,11 +62,19 @@ msgstr "Maustaste zum Schließen"
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "Gibt an, welche Maustaste das Schließen in der Übersicht auslöst." msgstr "Gibt an, welche Maustaste das Schließen in der Übersicht auslöst."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Verzögerung bis zur Neuanordnung" msgstr "Verzögerung bis zur Neuanordnung"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."

View file

@ -7,49 +7,49 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions-middleclickclose\n" "Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-30 18:33+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2023-08-30 18:41+0300\n" "PO-Revision-Date: 2024-07-09 16:01+0300\n"
"Last-Translator: George Tsiamasiotis <gtsiam@windowslive.com>\n" "Last-Translator: George Tsiamasiotis <gtsiam@windowslive.com>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: el\n" "Language: el\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.3.2\n" "X-Generator: Poedit 3.4.2\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Αριστερό" msgstr "Αριστερό"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Μεσαίο" msgstr "Μεσαίο"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Δεξί" msgstr "Δεξί"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Κουμπί 4" msgstr "Κουμπί 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Κουμπί 5" msgstr "Κουμπί 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Κουμπί 6" msgstr "Κουμπί 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Κουμπί 7" msgstr "Κουμπί 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Κουμπί 8" msgstr "Κουμπί 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Κουμπί 9" msgstr "Κουμπί 9"
@ -61,14 +61,24 @@ msgstr "Κουμπί ποντικιού για κλείσιμο"
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "Ποιό κουμπί του ποντικιού κλείνει παράθυρα στην επισκόπηση." msgstr "Ποιό κουμπί του ποντικιού κλείνει παράθυρα στην επισκόπηση."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr "Κλείσιμο με πληκτρολόγιο"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
"Επιτρέπει το κλείσιμο παραθύρων στην επισκόπηση μέσω συντομεύσεων "
"πληκτρολογίου."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Καθυστέρηση ανακατονομής" msgstr "Καθυστέρηση ανακατονομής"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."
msgstr "" msgstr ""
"Πόσος χρόνος πρέπει να περάσει με τον κέρσορα αδρανή στην επισκόπηση μετά " "Πόσος χρόνος πρέπει να περάσει με τον κέρσορα αδρανή στην επισκόπηση μετά το "
"το κλείσιμο ενός παραθύρου για να γίνει ανακατανομή." "κλείσιμο ενός παραθύρου για να γίνει ανακατανομή."

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions-middleclickclose\n" "Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-30 18:29+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2015-12-30 07:08+0100\n" "PO-Revision-Date: 2015-12-30 07:08+0100\n"
"Last-Translator: DAEM Q.\n" "Last-Translator: DAEM Q.\n"
"Language-Team: \n" "Language-Team: \n"
@ -18,39 +18,39 @@ msgstr ""
"X-Generator: Poedit 1.8.5\n" "X-Generator: Poedit 1.8.5\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Gauche" msgstr "Gauche"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Milieu" msgstr "Milieu"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Droit" msgstr "Droit"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Bouton 4" msgstr "Bouton 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Bouton 5" msgstr "Bouton 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Bouton 6" msgstr "Bouton 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Bouton 7" msgstr "Bouton 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Bouton 8" msgstr "Bouton 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Bouton 9" msgstr "Bouton 9"
@ -64,11 +64,19 @@ msgstr ""
"Le bouton de la souris qui déclenche la fermeture d'une fenêtre dans la Vue " "Le bouton de la souris qui déclenche la fermeture d'une fenêtre dans la Vue "
"d'ensemble." "d'ensemble."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Délai avant réarrangement" msgstr "Délai avant réarrangement"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions-middleclickclose\n" "Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-30 18:29+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2017-04-21 10:06+0200\n" "PO-Revision-Date: 2017-04-21 10:06+0200\n"
"Last-Translator: Jimmy Scionti <jimmy.scionti@gmail.com>\n" "Last-Translator: Jimmy Scionti <jimmy.scionti@gmail.com>\n"
"Language-Team: Jimmy Scionti <jimmy.scionti@gmail.com>\n" "Language-Team: Jimmy Scionti <jimmy.scionti@gmail.com>\n"
@ -18,39 +18,39 @@ msgstr ""
"X-Generator: Poedit 1.8.7.1\n" "X-Generator: Poedit 1.8.7.1\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Sinistro" msgstr "Sinistro"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Centrale" msgstr "Centrale"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Destro" msgstr "Destro"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Pulsante 4" msgstr "Pulsante 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Pulsante 5" msgstr "Pulsante 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Pulsante 6" msgstr "Pulsante 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Pulsante 7" msgstr "Pulsante 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Pulsante 8" msgstr "Pulsante 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Pulsante 9" msgstr "Pulsante 9"
@ -62,11 +62,19 @@ msgstr "Pulsante del mouse per chiudere la finestra"
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "Seleziona quale pulsante del mouse premere per chiudere una finestra." msgstr "Seleziona quale pulsante del mouse premere per chiudere una finestra."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Ritardo del riordinamento" msgstr "Ritardo del riordinamento"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."

View file

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions-middleclickclose\n" "Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-30 18:29+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2019-09-15 20:17+0200\n" "PO-Revision-Date: 2019-09-15 20:17+0200\n"
"Last-Translator: Heimen Stoffels <vistausss@outlook.com>\n" "Last-Translator: Heimen Stoffels <vistausss@outlook.com>\n"
"Language-Team: Dutch <kde-i18n-doc@kde.org>\n" "Language-Team: Dutch <kde-i18n-doc@kde.org>\n"
@ -17,39 +17,39 @@ msgstr ""
"X-Generator: Poedit 2.2.1\n" "X-Generator: Poedit 2.2.1\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Links" msgstr "Links"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Scrollwiel" msgstr "Scrollwiel"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Rechts" msgstr "Rechts"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Knop 4" msgstr "Knop 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Knop 5" msgstr "Knop 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Knop 6" msgstr "Knop 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Knop 7" msgstr "Knop 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Knop 8" msgstr "Knop 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Knop 9" msgstr "Knop 9"
@ -61,11 +61,19 @@ msgstr "Muisknop om vensters mee te sluiten"
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "Met welke muisknop je vensters kunt sluiten op het overzicht." msgstr "Met welke muisknop je vensters kunt sluiten op het overzicht."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Vertraging bij herschikken" msgstr "Vertraging bij herschikken"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."

View file

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions-middleclickclose\n" "Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-11 23:56+0100\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2023-10-11 23:56+0100\n" "PO-Revision-Date: 2023-10-11 23:56+0100\n"
"Last-Translator: Tomás Marques <tomasm576@gmail.com>\n" "Last-Translator: Tomás Marques <tomasm576@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
@ -15,39 +15,39 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Esquerda" msgstr "Esquerda"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Meio" msgstr "Meio"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Direita" msgstr "Direita"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Botão 4" msgstr "Botão 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Botão 5" msgstr "Botão 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Botão 6" msgstr "Botão 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Botão 7" msgstr "Botão 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Botão 8" msgstr "Botão 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Botão 9" msgstr "Botão 9"
@ -59,14 +59,22 @@ msgstr "Botão do meio do rato"
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "Qual o botão do rato que fecha uma janela na vista geral." msgstr "Qual o botão do rato que fecha uma janela na vista geral."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Duração de reorganizar" msgstr "Duração de reorganizar"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."
msgstr "" msgstr ""
"Quanto tempo tem de passar sem que o cursor se mova para que as janelas na visão geral " "Quanto tempo tem de passar sem que o cursor se mova para que as janelas na "
"se reorganizem depois de uma ter sido fechada." "visão geral se reorganizem depois de uma ter sido fechada."

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions-middleclickclose\n" "Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-30 18:29+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2015-10-30 07:08+0100\n" "PO-Revision-Date: 2015-10-30 07:08+0100\n"
"Last-Translator: Juraj Fiala <doctorjellyface@riseup.net>\n" "Last-Translator: Juraj Fiala <doctorjellyface@riseup.net>\n"
"Language-Team: \n" "Language-Team: \n"
@ -18,39 +18,39 @@ msgstr ""
"X-Generator: Poedit 1.8.5\n" "X-Generator: Poedit 1.8.5\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Ľavé" msgstr "Ľavé"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Stredné" msgstr "Stredné"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Pravé" msgstr "Pravé"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Tlačidlo 4" msgstr "Tlačidlo 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Tlačidlo 5" msgstr "Tlačidlo 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Tlačidlo 6" msgstr "Tlačidlo 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Tlačidlo 7" msgstr "Tlačidlo 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Tlačidlo 8" msgstr "Tlačidlo 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Tlačidlo 9" msgstr "Tlačidlo 9"
@ -62,11 +62,19 @@ msgstr "Tlačidlo myši na zavretie"
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "Ktoré tlačidlo myši spustí zavretie v prehľade aktivít." msgstr "Ktoré tlačidlo myši spustí zavretie v prehľade aktivít."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Oneskorenie preskúpenia" msgstr "Oneskorenie preskúpenia"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-02 18:28+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2023-10-15 18:51+0200\n" "PO-Revision-Date: 2023-10-15 18:51+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -17,39 +17,39 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4\n" "X-Generator: Poedit 3.4\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Лево" msgstr "Лево"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Средње" msgstr "Средње"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Десно" msgstr "Десно"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Дугме 4" msgstr "Дугме 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Дугме 5" msgstr "Дугме 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Дугме 6" msgstr "Дугме 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Дугме 7" msgstr "Дугме 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Дугме 8" msgstr "Дугме 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Дугме 9" msgstr "Дугме 9"
@ -61,11 +61,19 @@ msgstr "Дугме на мишу за затварање апликација"
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "Које дугме на мишу затвара апликацију у прегледнику." msgstr "Које дугме на мишу затвара апликацију у прегледнику."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Задршка у распоређивању" msgstr "Задршка у распоређивању"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-02 18:28+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2023-10-15 18:52+0200\n" "PO-Revision-Date: 2023-10-15 18:52+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -17,39 +17,39 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4\n" "X-Generator: Poedit 3.4\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Levo" msgstr "Levo"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Srednje" msgstr "Srednje"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Desno" msgstr "Desno"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Dugme 4" msgstr "Dugme 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Dugme 5" msgstr "Dugme 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Dugme 6" msgstr "Dugme 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Dugme 7" msgstr "Dugme 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Dugme 8" msgstr "Dugme 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Dugme 9" msgstr "Dugme 9"
@ -61,15 +61,23 @@ msgstr "Dugme na mišu za zatvaranje aplikacija"
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "Koje dugme na mišu zatvara aplikaciju u pregledniku." msgstr "Koje dugme na mišu zatvara aplikaciju u pregledniku."
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Zadrška u raspoređivanju" msgstr "Zadrška u raspoređivanju"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."
msgstr "" msgstr ""
"Koliko vremena mora da prođe prilikom nepomeranja pokazivača miša za " "Koliko vremena mora da prođe prilikom nepomeranja pokazivača miša za prozore "
"prozore aplikacija u pregledniku, kako bi se prozori rasporedili nakon " "aplikacija u pregledniku, kako bi se prozori rasporedili nakon zatvaranja "
"zatvaranja aplikacije." "aplikacije."

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-02 18:28+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,39 +17,39 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "" msgstr ""
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "" msgstr ""
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "" msgstr ""
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "" msgstr ""
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "" msgstr ""
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "" msgstr ""
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "" msgstr ""
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "" msgstr ""
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "" msgstr ""
@ -61,11 +61,19 @@ msgstr ""
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "" msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "" msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions-middleclickclose\n" "Project-Id-Version: gnome-shell-extensions-middleclickclose\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-22 00:00+0300\n" "POT-Creation-Date: 2024-07-09 15:57+0300\n"
"PO-Revision-Date: 2023-10-22 00:00+0300\n" "PO-Revision-Date: 2023-10-22 00:00+0300\n"
"Last-Translator: Artem Prokop <artem.prokop.dev@gmail.com>\n" "Last-Translator: Artem Prokop <artem.prokop.dev@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
@ -16,39 +16,39 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: src/prefs.js:30 #: src/prefs.js:31
msgid "Left" msgid "Left"
msgstr "Ліва" msgstr "Ліва"
#: src/prefs.js:31 #: src/prefs.js:32
msgid "Middle" msgid "Middle"
msgstr "Середня" msgstr "Середня"
#: src/prefs.js:32 #: src/prefs.js:33
msgid "Right" msgid "Right"
msgstr "Права" msgstr "Права"
#: src/prefs.js:33 #: src/prefs.js:34
msgid "Button 4" msgid "Button 4"
msgstr "Кнопка 4" msgstr "Кнопка 4"
#: src/prefs.js:34 #: src/prefs.js:35
msgid "Button 5" msgid "Button 5"
msgstr "Кнопка 5" msgstr "Кнопка 5"
#: src/prefs.js:35 #: src/prefs.js:36
msgid "Button 6" msgid "Button 6"
msgstr "Кнопка 6" msgstr "Кнопка 6"
#: src/prefs.js:36 #: src/prefs.js:37
msgid "Button 7" msgid "Button 7"
msgstr "Кнопка 7" msgstr "Кнопка 7"
#: src/prefs.js:37 #: src/prefs.js:38
msgid "Button 8" msgid "Button 8"
msgstr "Кнопка 8" msgstr "Кнопка 8"
#: src/prefs.js:38 #: src/prefs.js:39
msgid "Button 9" msgid "Button 9"
msgstr "Кнопка 9" msgstr "Кнопка 9"
@ -60,14 +60,22 @@ msgstr "Кнопка миші для закриття"
msgid "Which mouse button triggers closing in overview." msgid "Which mouse button triggers closing in overview."
msgstr "Яка кнопка миші закриває вікно в оверв'ю" msgstr "Яка кнопка миші закриває вікно в оверв'ю"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:22
msgid "Close with keyboard"
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:23
msgid "Allow closing windows in overview via keyboard shortcuts."
msgstr ""
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:28
msgid "Rearrange delay" msgid "Rearrange delay"
msgstr "Затримка перерозташування" msgstr "Затримка перерозташування"
#: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:24 #: src/schemas/org.gnome.shell.extensions.middleclickclose.gschema.xml:29
msgid "" msgid ""
"How much time must pass with the pointer not moving for windows in overview " "How much time must pass with the pointer not moving for windows in overview "
"to rearrange after one was closed." "to rearrange after one was closed."
msgstr "" msgstr ""
"Скільки часу курсор має не рухатись щоб вікна в оверв'ю перерозташувалися" "Скільки часу курсор має не рухатись щоб вікна в оверв'ю перерозташувалися "
" після закриття вікна." "після закриття вікна."

View file

@ -18,7 +18,8 @@ import Gtk from 'gi://Gtk';
import GLib from 'gi://GLib'; import GLib from 'gi://GLib';
import GObject from 'gi://GObject'; import GObject from 'gi://GObject';
import { ExtensionPreferences, gettext as _ } from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js'; import { ExtensionPreferences, gettext as _ }
from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js';
export default class MiddleClickClosePreferences extends ExtensionPreferences { export default class MiddleClickClosePreferences extends ExtensionPreferences {
getPreferencesWidget() { getPreferencesWidget() {
@ -43,6 +44,8 @@ export default class MiddleClickClosePreferences extends ExtensionPreferences {
step: 50, step: 50,
})); }));
group.add(this.buildPreference("keyboard-close"))
page.add(group); page.add(group);
return page; return page;
} }
@ -70,7 +73,7 @@ export default class MiddleClickClosePreferences extends ExtensionPreferences {
}); });
row.connect('notify::selected', () => { row.connect('notify::selected', () => {
setting.activate(GLib.Variant.new_string(range[row.selected])); setting.change_state(GLib.Variant.new_string(range[row.selected]));
}); });
return row; return row;
@ -79,7 +82,20 @@ export default class MiddleClickClosePreferences extends ExtensionPreferences {
opts.upper ??= range[1] opts.upper ??= range[1]
} }
if (["i"].includes(ty)) { if (ty == "b") {
let row = new Adw.SwitchRow({
title: opts.title,
subtitle: opts.subtitle,
active: setting.state.unpack()
});
row.connect('notify::active', () => {
setting.change_state(GLib.Variant.new_boolean(row.active));
});
return row;
} else if (ty == "i") {
let adjustment = new Gtk.Adjustment({ let adjustment = new Gtk.Adjustment({
lower: opts.lower, lower: opts.lower,
upper: opts.upper, upper: opts.upper,
@ -95,7 +111,7 @@ export default class MiddleClickClosePreferences extends ExtensionPreferences {
}); });
adjustment.connect("value-changed", adj => { adjustment.connect("value-changed", adj => {
setting.activate(GLib.Variant.new_int32(adj.value)); setting.change_state(GLib.Variant.new_int32(adj.value));
}); });
return row; return row;

View file

@ -17,6 +17,11 @@
<summary>Mouse button to close</summary> <summary>Mouse button to close</summary>
<description>Which mouse button triggers closing in overview.</description> <description>Which mouse button triggers closing in overview.</description>
</key> </key>
<key type="b" name="keyboard-close">
<default>true</default>
<summary>Close with keyboard</summary>
<description>Allow closing windows in overview via keyboard shortcuts.</description>
</key>
<key type="i" name="rearrange-delay"> <key type="i" name="rearrange-delay">
<default>750</default> <default>750</default>
<range min="0" max="5000" /> <range min="0" max="5000" />