From 7c4011146e508adfb8da40075f42c02095f730c3 Mon Sep 17 00:00:00 2001 From: Aryan Kaushik Date: Mon, 22 Jul 2024 22:52:18 +0530 Subject: [PATCH 1/6] Add GNOME 47 support --- metadata.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metadata.json b/metadata.json index 79ee70d..444fd87 100644 --- a/metadata.json +++ b/metadata.json @@ -6,9 +6,9 @@ "gettext-domain": "logo-menu", "name": "Logo Menu", "settings-schema": "org.gnome.shell.extensions.logo-menu", - "shell-version": ["45", "46"], + "shell-version": ["45", "46", "47"], "url": "https://github.com/Aryan20/Logomenu", "uuid": "logomenu@aryan_k", - "version": 31, - "version-name": "23.0" + "version": 32, + "version-name": "23.2" } From 52a5a53d5b7bd1a3741b444d3517fbeade40d9dd Mon Sep 17 00:00:00 2001 From: Aryan Kaushik Date: Mon, 22 Jul 2024 23:14:24 +0530 Subject: [PATCH 2/6] Fix Force Quit on GNOME >= 46 --- display_module.js | 6 ++++-- metadata.json | 2 +- selection.js | 31 ++++++++++++++++--------------- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/display_module.js b/display_module.js index 039c82e..7119069 100644 --- a/display_module.js +++ b/display_module.js @@ -2,7 +2,7 @@ This file has been copied from EasyScreenCast/display_module.js [1], with no edits. We primarily need the set_cursor method as it is used in selection.js -[1]: https://github.com/EasyScreenCast/EasyScreenCast/blob/e3a359f/display_module.js +[1]: https://github.com/EasyScreenCast/EasyScreenCast/blob/e2ec24d/display_module.js */ 'use strict'; @@ -10,7 +10,7 @@ edits. We primarily need the set_cursor method as it is used in selection.js /** * @type {{_display(): Meta_Display, number_of_displays(): int}} */ -export const DisplayApi = { +const DisplayApi = { /** * Returns the Wayland display or screen * @@ -43,3 +43,5 @@ export const DisplayApi = { this._display().set_cursor(cursor); }, }; + +export {DisplayApi}; \ No newline at end of file diff --git a/metadata.json b/metadata.json index 444fd87..c9577c6 100644 --- a/metadata.json +++ b/metadata.json @@ -6,7 +6,7 @@ "gettext-domain": "logo-menu", "name": "Logo Menu", "settings-schema": "org.gnome.shell.extensions.logo-menu", - "shell-version": ["45", "46", "47"], + "shell-version": ["46", "47"], "url": "https://github.com/Aryan20/Logomenu", "uuid": "logomenu@aryan_k", "version": 32, diff --git a/selection.js b/selection.js index d9b1f95..aa689ab 100644 --- a/selection.js +++ b/selection.js @@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. This file has been copied from force-quit/selection.js [1], with edits. Edits primarily involves removing graphical feedback and logging. -[1]: https://github.com/meghprkh/force-quit/blob/master/selection.js +[1]: https://github.com/meghprkh/force-quit/blob/e2ec24d/selection.js */ 'use strict'; @@ -43,10 +43,11 @@ import * as Signals from 'resource:///org/gnome/shell/misc/signals.js'; import {DisplayApi} from './display_module.js'; +/** + * @type {Capture} + */ class Capture extends Signals.EventEmitter { - /** - * @private - */ + constructor() { super(); @@ -63,7 +64,7 @@ class Capture extends Signals.EventEmitter { y: -10, }); - Main.uiGroup.add_actor(this._areaSelection); + Main.uiGroup.add_child(this._areaSelection); this._grab = Main.pushModal(this._areaSelection); @@ -110,9 +111,9 @@ class Capture extends Signals.EventEmitter { * @private */ _stop() { - global.stage.disconnect(this._signalCapturedEvent); + this._areaSelection.disconnect(this._signalCapturedEvent); this._setDefaultCursor(); - Main.uiGroup.remove_actor(this._areaSelection); + Main.uiGroup.remove_child(this._areaSelection); Main.popModal(this._grab); this._areaSelection.destroy(); this.emit('stop'); @@ -124,17 +125,16 @@ class Capture extends Signals.EventEmitter { } } -export class SelectionWindow extends Signals.EventEmitter { - /** - * @private - */ +class SelectionWindow extends Signals.EventEmitter { constructor() { - super() + super(); this._windows = global.get_window_actors(); this._capture = new Capture(); this._capture.connect('captured-event', this._onEvent.bind(this)); - this._capture.connect('stop', this.emit.bind(this, 'stop')); + this._capture.connect('stop', () => { + this.emit('stop'); + }); } /** @@ -152,9 +152,8 @@ export class SelectionWindow extends Signals.EventEmitter { if (event.get_button() === Clutter.BUTTON_SECONDARY) { this._capture._stop(); } else if (this._selectedWindow) { + this._selectedWindow.get_meta_window().kill(); this._capture._stop(); - - this._selectedWindow.get_meta_window().kill() } } } @@ -195,3 +194,5 @@ function _selectWindow(windows, x, y) { return filtered[0]; } + +export {SelectionWindow}; \ No newline at end of file From 95d309dc4eba475fbac2e26e859d65d84576ccbf Mon Sep 17 00:00:00 2001 From: Aryan Kaushik Date: Mon, 22 Jul 2024 23:31:52 +0530 Subject: [PATCH 3/6] Revert GNOME 47 support On reccommendation of EGO review team, revert GNOME 47 support as there could be changes in 47.Beta --- metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.json b/metadata.json index c9577c6..1d5b236 100644 --- a/metadata.json +++ b/metadata.json @@ -6,7 +6,7 @@ "gettext-domain": "logo-menu", "name": "Logo Menu", "settings-schema": "org.gnome.shell.extensions.logo-menu", - "shell-version": ["46", "47"], + "shell-version": ["46"], "url": "https://github.com/Aryan20/Logomenu", "uuid": "logomenu@aryan_k", "version": 32, From 832caa33147dd556148011588398d076180be471 Mon Sep 17 00:00:00 2001 From: Aryan Kaushik Date: Sat, 27 Jul 2024 07:13:05 +0530 Subject: [PATCH 4/6] translation: Add hungarian --- po/hu.po | 208 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 po/hu.po diff --git a/po/hu.po b/po/hu.po new file mode 100644 index 0000000..6393896 --- /dev/null +++ b/po/hu.po @@ -0,0 +1,208 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2023 Aryan Kaushik (Aryan20) +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Logo Menu 23.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-06-17 05:04+0530\n" +"PO-Revision-Date: 2024-07-22 22:08+0200\n" +"Last-Translator: Tamás\n" +"Language-Team: \n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.4.2\n" + +#: extension.js:75 +msgid "About My System" +msgstr "Gépem névjegye" + +#: extension.js:80 +msgid "Activities" +msgstr "Tevékenységek" + +#: extension.js:82 +msgid "App Grid" +msgstr "Alkalmazás rács" + +#: extension.js:86 +msgid "Software Center..." +msgstr "Alkalmazás Áruház" + +#: extension.js:88 PrefsLib/adw.js:332 +msgid "System Monitor" +msgstr "Rendszerfigyelő" + +#: extension.js:89 PrefsLib/adw.js:294 +msgid "Terminal" +msgstr "Terminál" + +#: extension.js:90 +msgid "Extensions" +msgstr "Kiegészítők" + +#: extension.js:94 +msgid "Force Quit App" +msgstr "Kilépésre kényszerítés" + +#: extension.js:99 +msgid "Sleep" +msgstr "Felfüggesztés" + +#: extension.js:100 +msgid "Restart..." +msgstr "Újraindítás..." + +#: extension.js:101 +msgid "Shut Down..." +msgstr "Kikapcsolás..." + +#: extension.js:105 extension.js:110 +msgid "Lock Screen" +msgstr "Zárolás" + +#: extension.js:107 +msgid "Log Out..." +msgstr "Kijelentkezés..." + +#: PrefsLib/adw.js:41 +msgid "Symbolic Icons" +msgstr "Szimbolikus ikonok" + +#: PrefsLib/adw.js:45 +msgid "Coloured Icons" +msgstr "Színes ikonok" + +#: PrefsLib/adw.js:49 +msgid "Icon Settings" +msgstr "Ikonok beállítása" + +#: PrefsLib/adw.js:123 +msgid "Icon Size" +msgstr "Ikon méret" + +#: PrefsLib/adw.js:156 +msgid "Use Custom Icon" +msgstr "Egyedi ikon használata" + +#: PrefsLib/adw.js:170 +msgid "Selected Icon" +msgstr "Kiválasztott ikon" + +#: PrefsLib/adw.js:195 +msgid "Select a Custom Icon" +msgstr "Válassz egyedi ikont" + +#: PrefsLib/adw.js:238 +msgid "Change Defaults" +msgstr "Alapértelmezettre állítás" + +#: PrefsLib/adw.js:242 +msgid "Show/Hide Options" +msgstr "Opció Elrejtése/Megjelenítése" + +#: PrefsLib/adw.js:246 +msgid "Top Panel Options" +msgstr "Felső panel opciók" + +#: PrefsLib/adw.js:254 +msgid "Icon Click Type to open Activities" +msgstr "Ikonra kattintás típusai a Tevékenység megnyitásához" + +#: PrefsLib/adw.js:260 +msgid "Left Click " +msgstr "Bal kattintás" + +#: PrefsLib/adw.js:261 +msgid "Middle Click " +msgstr "Középső kattintás" + +#: PrefsLib/adw.js:262 +msgid "Right Click " +msgstr "Jobb kattintás" + +#: PrefsLib/adw.js:275 +msgid "Preferred Extensions Application" +msgstr "Kedvenc kiegészítők alkalmazás" + +#: PrefsLib/adw.js:281 +msgid "GNOME Extensions" +msgstr "GNOME kiegészítők" + +#: PrefsLib/adw.js:282 +msgid "Extensions Manager" +msgstr "Kiegészítők Kezelő" + +#: PrefsLib/adw.js:314 +msgid "Software Center" +msgstr "Alkalmazás Áruház" + +#: PrefsLib/adw.js:350 +msgid "Enable Power Options" +msgstr "Energia opciók engedélyezése" + +#: PrefsLib/adw.js:365 +msgid "Hide Force Quit option" +msgstr "Kilépésre kényszerítés opció elrejtése" + +#: PrefsLib/adw.js:382 +msgid "Show Lock Screen option" +msgstr "Zárolás opció megjelenítése" + +#: PrefsLib/adw.js:398 +msgid "Hide Software Centre option" +msgstr "Alkalmazás Áruház opció elrejtése" + +#: PrefsLib/adw.js:414 +msgid "Show Activities Button" +msgstr "Tevékenysége gomb megjelenítése" + +#: PrefsLib/adw.js:430 +msgid "Hide Icon Shadow" +msgstr "Ikon árnyék elrejtése" + +#: PrefsLib/adw.js:471 PrefsLib/adw.js:476 +msgid "About" +msgstr "A programról" + +#: PrefsLib/adw.js:500 +msgid "Logo Menu" +msgstr "Logo Menü" + +#: PrefsLib/adw.js:507 +msgid "Quick access menu for GNOME" +msgstr "Gyors elérési menü a GNOME-hoz" + +#: PrefsLib/adw.js:524 +msgid "Logo Menu Version" +msgstr "Logo Menü verzió" + +#: PrefsLib/adw.js:536 +msgid "GNOME Version" +msgstr "GNOME verzió" + +#: PrefsLib/adw.js:543 +msgid "Created with love by" +msgstr "Szeretettel készítette" + +#: PrefsLib/adw.js:550 +msgid "Matrix/Element room" +msgstr "Matrix/Element szoba" + +#: PrefsLib/adw.js:566 +msgid "Contributors" +msgstr "Közreműködők" + +#: PrefsLib/adw.js:583 +msgid "This program comes with absolutely no warranty." +msgstr "Ez a program semmilyen szavatossággal nem rendelkezik." + +#: PrefsLib/adw.js:584 +#, javascript-format +msgid "See the %sGNU General Public License, version 2 or later%s for details." +msgstr "Lásd a %sGNU General Public License 2-es verziót vagy későbbit%s a részletekért." From 29e889077fb0fc3b17af3fd6fe4e41d12109342c Mon Sep 17 00:00:00 2001 From: Aryan Kaushik Date: Mon, 23 Sep 2024 02:14:43 +0530 Subject: [PATCH 5/6] metadata: support GNOME 47 --- metadata.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metadata.json b/metadata.json index 1d5b236..c5f74bc 100644 --- a/metadata.json +++ b/metadata.json @@ -6,9 +6,9 @@ "gettext-domain": "logo-menu", "name": "Logo Menu", "settings-schema": "org.gnome.shell.extensions.logo-menu", - "shell-version": ["46"], + "shell-version": ["46", "47"], "url": "https://github.com/Aryan20/Logomenu", "uuid": "logomenu@aryan_k", - "version": 32, - "version-name": "23.2" + "version": 33, + "version-name": "23.4" } From d2b08f235bbabfc53f19849d23bd8d80146d9802 Mon Sep 17 00:00:00 2001 From: Fabian Esposito Date: Mon, 21 Oct 2024 13:26:09 +0200 Subject: [PATCH 6/6] Update it.po (#85) --- po/it.po | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/po/it.po b/po/it.po index 3188526..fbe3d03 100644 --- a/po/it.po +++ b/po/it.po @@ -36,7 +36,7 @@ msgstr "Centro software..." #: extension.js:88 PrefsLib/adw.js:332 msgid "System Monitor" -msgstr "" +msgstr "Monitor di sistema" #: extension.js:89 PrefsLib/adw.js:294 msgid "Terminal" @@ -72,11 +72,11 @@ msgstr "Termina sessione..." #: PrefsLib/adw.js:41 msgid "Symbolic Icons" -msgstr "" +msgstr "Icone simboliche" #: PrefsLib/adw.js:45 msgid "Coloured Icons" -msgstr "" +msgstr "Icone colorate" #: PrefsLib/adw.js:49 msgid "Icon Settings" @@ -88,15 +88,15 @@ msgstr "Dimensioni icona" #: PrefsLib/adw.js:156 msgid "Use Custom Icon" -msgstr "" +msgstr "Usa icona personalizzata" #: PrefsLib/adw.js:170 msgid "Selected Icon" -msgstr "" +msgstr "Icona selezionata" #: PrefsLib/adw.js:195 msgid "Select a Custom Icon" -msgstr "" +msgstr "Seleziona un'icona personalizzata" #: PrefsLib/adw.js:238 msgid "Change Defaults" @@ -108,35 +108,35 @@ msgstr "Mostra/Nascondi le opzioni" #: PrefsLib/adw.js:246 msgid "Top Panel Options" -msgstr "" +msgstr "Opzioni panello superiore" #: PrefsLib/adw.js:254 msgid "Icon Click Type to open Activities" -msgstr "Tipologia click per lanciare le Attività" +msgstr "Tipologia clic per lanciare le Attività" #: PrefsLib/adw.js:260 msgid "Left Click " -msgstr "" +msgstr "Clic sinistro " #: PrefsLib/adw.js:261 msgid "Middle Click " -msgstr "Pulsante centrale " +msgstr "Clic centrale " #: PrefsLib/adw.js:262 msgid "Right Click " -msgstr "Pulsante destro " +msgstr "Clic destro " #: PrefsLib/adw.js:275 msgid "Preferred Extensions Application" -msgstr "" +msgstr "Applicazione estensioni preferita" #: PrefsLib/adw.js:281 msgid "GNOME Extensions" -msgstr "" +msgstr "Estensioni" #: PrefsLib/adw.js:282 msgid "Extensions Manager" -msgstr "" +msgstr "Gestore di estensioni" #: PrefsLib/adw.js:314 msgid "Software Center" @@ -161,11 +161,11 @@ msgstr "Nascondi l'opzione Centro Software" #: PrefsLib/adw.js:414 #, fuzzy msgid "Show Activities Button" -msgstr "Attività" +msgstr "Mostra pulsante Attività" #: PrefsLib/adw.js:430 msgid "Hide Icon Shadow" -msgstr "" +msgstr "Nascondi l'ombra dell'icona" #: PrefsLib/adw.js:471 PrefsLib/adw.js:476 msgid "About" @@ -181,7 +181,7 @@ msgstr "Menu rapido per GNOME" #: PrefsLib/adw.js:524 msgid "Logo Menu Version" -msgstr "Versiobe di Logo Menu" +msgstr "Versione di Logo Menu" #: PrefsLib/adw.js:536 msgid "GNOME Version" @@ -189,24 +189,24 @@ msgstr "Versione GNOME" #: PrefsLib/adw.js:543 msgid "Created with love by" -msgstr "" +msgstr "Creato con amore da" #: PrefsLib/adw.js:550 msgid "Matrix/Element room" -msgstr "" +msgstr "Stanza Matrix/Element" #: PrefsLib/adw.js:566 msgid "Contributors" -msgstr "" +msgstr "Contributori" #: PrefsLib/adw.js:583 msgid "This program comes with absolutely no warranty." -msgstr "" +msgstr "Questo programma è fornito senza alcuna garanzia." #: PrefsLib/adw.js:584 #, javascript-format msgid "See the %sGNU General Public License, version 2 or later%s for details." -msgstr "" +msgstr "Consultare la %sGNU General Public License, versione 2 o successive%s per i dettagli." #~ msgid "Github" #~ msgstr "Github" @@ -222,8 +222,8 @@ msgstr "" #~ msgstr "" #~ "Questo programma viene fornito senza alcuna " #~ "garanzia.\n" -#~ "See the GNU General Public License, versione 2 o successiva per " +#~ "Consultare la GNU General Public License, versione 2 o successive per " #~ "dettagli." #~ msgid "Lock Orientation"