Compare commits

...

46 Commits

Author SHA1 Message Date
Florian Müllner a36331522f Bump version to 3.33.2
Update NEWS.
2019-05-22 18:58:31 +00:00
Florian Müllner 25e43a5d08 lint: Remove legacy configuration
After the last batch of indentation changes, the whole code base
conforms to the new style now, so we can drop the legacy eslint
configuration.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
2019-05-22 20:40:19 +02:00
Florian Müllner ad914441a2 window-list: Reindent to conform with new style
Instead of aligning arguments like we used to do, use a consistent
four-space indent as mandated by gjs' current style guide.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
2019-05-22 20:40:19 +02:00
Florian Müllner 200d337769 apps-menu: Reindent to conform with new style
Instead of aligning arguments like we used to do, use a consistent
four-space indent as mandated by gjs' current style guide.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
2019-05-22 20:40:19 +02:00
Florian Müllner e56f1a976e native-window-placement: Reindent to conform with new style
Instead of aligning arguments like we used to do, use a consistent
four-space indent as mandated by gjs' current style guide.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
2019-05-22 20:40:19 +02:00
Florian Müllner 6a66cd4fa6 places-menu: Reindent to conform with new style
Instead of aligning arguments like we used to do, use a consistent
four-space indent as mandated by gjs' current style guide.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
2019-05-22 20:40:19 +02:00
Florian Müllner 55c493389a auto-move-windows: Reindent to conform with new style
Instead of aligning arguments like we used to do, use a consistent
four-space indent as mandated by gjs' current style guide.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
2019-05-22 20:40:18 +02:00
Florian Müllner 06f1303834 drive-menu: Reindent to conform with new style
Instead of aligning arguments like we used to do, use a consistent
four-space indent as mandated by gjs' current style guide.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
2019-05-22 20:40:18 +02:00
Florian Müllner 3d5687ae3c workspace-indicator: Reindent to conform with new style
Instead of aligning arguments like we used to do, use a consistent
four-space indent as mandated by gjs' current style guide.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
2019-05-22 20:40:18 +02:00
Florian Müllner cdd3fba593 screenshot-window-sizer: Reindent to conform with new style
Instead of aligning arguments like we used to do, use a consistent
four-space indent as mandated by gjs' current style guide.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
2019-05-22 20:40:18 +02:00
Florian Müllner f11c101878 Bump version to 3.33.1
Update NEWS.
2019-05-14 17:53:56 +00:00
Florian Müllner 7c412ca7d9 window-list: Don't use anchor point
It is deprecated and we can easily replace it with a translation.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/64
2019-04-28 11:08:02 +00:00
Florian Müllner e3a6e8f82c Bump version to 3.32.1
Update NEWS.
2019-04-17 22:09:40 +02:00
Florian Müllner ce10ad64c4 Update sass submodule 2019-04-17 22:06:50 +02:00
Adrien Plazas 5b43d4733c screenshot-window-sizer: Add phone screenshot sizes
This is going to be convenient to take fake screenshots for phones like
the Librem 5.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/65
2019-04-12 14:31:53 +02:00
Florian Müllner 3671d5a299 cleanup: Use an extension object instead of globals
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/143
2019-04-08 06:00:29 +00:00
Florian Müllner a024d9f005 windowsNavigator: Use subclasses instead of injections
gnome-shell moved to ES6 classes, which means the constructor is
no longer a regular method that we can swap out with an injected
version.

Instead, do our modifications in subclasses and use them to replace
the original classes.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/143
2019-04-08 06:00:29 +00:00
Fabian P. Schmidt d94a3500f6 README: Re-add extension alternate-tab with obsolescence notice
This commit adds a short notice about the former extension
alternate-tab to the README. This notice should be removed once
the traffic of users searching for this obsolete extension settled
down.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/62
2019-03-20 12:00:08 +01:00
Florian Müllner 78141e6433 Bump version to 3.32.0
Update NEWS.
2019-03-12 00:02:14 +01:00
Florian Müllner dd53fb8eb7 Update sass submodule 2019-03-12 00:01:26 +01:00
Mart Raudsepp 6cd2be452b Update Estonian translation 2019-03-10 17:27:41 +00:00
Kristjan SCHMIDT 36abd576b5 Update Esperanto translation 2019-03-06 21:15:21 +00:00
Victor Ibragimov 730547b3e1 Update Tajik Translation 2019-03-06 21:03:41 +05:00
Florian Müllner e7e6b882a3 Bump version to 3.31.92
Update NEWS.
2019-03-05 06:07:01 +01:00
Florian Müllner 53f92f2910 Update sass submodule 2019-03-05 06:05:05 +01:00
Florian Müllner a26380d56e user-theme: Clarify some code
Commit 2582ab accidentally pointed out that the current theme loading code
obfuscates which directories are searched for themes. Rewrite it with modern
JS features to make it more obvious.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:18 +01:00
Florian Müllner ab334d95e0 Revert "User theme: compatibility with XDG Base Directory"
We already handled themes in XDG_DATA_HOME before commit 2582ab
by prepending it to the system dirs.

This reverts commit 2582ab4fd0.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner 7e5726e632 apps-menu: Promisify marking file as trusted
Use async/await to make nested operations easier to read.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner 95b40069bf apps-menu: Remove unnecessary check
The function is always called with an array parameter (albeit it may
be empty), so remove the unnecessary check and cut down on indentation.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner bd9f1cfd91 apps-menu: Avoid deep nesting
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner 81548ced69 native-window-placement: Clarify some code
Add some intermediate variables for better legibility.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner a378e5fc34 placesDisplay: Promisify launching
Use async/await to make nested async operations easier to read.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner 56d19ad480 placesMenu: Add early return to reduce indentation level
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner a071685c13 auto-move-windows: Clarify some code
Apply some tricks to align column numbers with their corresponding
values for better legibility.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner 599428d292 auto-move-windows: De-duplicate row appending
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner 1f1f9664a6 cleanup: Share unmount/eject arugments
Besides the callback, eject and unmount share the same arguments.
Make this explicit by sharing the common arguments between branches.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner fb039c0fb5 cleanup: Use Meta.MaximizeFlags.BOTH
This shorthand has been around for a long time, use it make (un)maximize
code more readable.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/60
2019-03-04 19:35:10 +01:00
Florian Müllner 6e63edd737 lint: Sync with gjs
Some of our custom rules have been upstreamed[0], update the
rule sets accordingly.

[0] https://gitlab.gnome.org/GNOME/gjs/merge_requests/272
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/59
2019-03-03 05:54:58 +01:00
Florian Müllner 55ecd3939e ci: Switch to extension-ci image
gnome-shell now provides a docker image with useful tools for extension CI;
as it contains everything we need, we can speed up CI by not running the
package manager.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/58
2019-02-28 23:54:46 +01:00
Florian Müllner d83d6e857a style: Use single-quotes for translated strings
The coding style of using double quotes for translatable strings
and single quotes otherwise is unnecessarily complex and cannot
be enforced with an eslint rule.

Simply use single quotes consistently for all strings.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/57
2019-02-28 23:29:31 +01:00
Florian Müllner db35d7ae7c style: Change indentation style of object literals
Instead of keeping the first property on the same line as the opening
brace and aligning the properties, use a four-space indent. This brings
us closer to gjs' coding style, and as a bonus helps keeping lines in
the soft 80 character limit.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/57
2019-02-28 23:29:24 +01:00
Florian Müllner d34b5030b9 style: Use a consistent style for array literals
Most array literals already use a four-space indent, except the ones in
GObject metainfo and function parameters. Reindent those as well to make
the style consistent and bring it closer to gjs' coding style.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/57
2019-02-28 23:29:14 +01:00
Florian Müllner 7f8f1234ae style: Stop using braces for single-line arrow functions
Braces are optional for single-line arrow functions, but there's a
subtle difference:
Without braces, the expression is implicitly used as return value; with
braces, the function returns nothing unless there's an explicit return.

We currently reflect that in our style by only omitting braces when the
function is expected to have a return value, but that's not very obvious,
not an important differentiation to make, and not easy to express in an
automatic rule.

So just omit braces consistently as mandated by gjs' coding style.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/57
2019-02-28 23:29:05 +01:00
Florian Müllner 9b25a227c6 style: Don't exempt ternary expressions from indent rule
It turns out we can comply with gjs' coding style and still align the
branches if line breaks are required, so do that to reduce diversion
from the canonical GNOME style.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/57
2019-02-28 23:28:55 +01:00
Florian Müllner 78580bc3a8 lint: Remove unused rules
We picked those up from Polari, which had those for

 - object arrays:
    let foo = [
        { bar: 42,
          quz: true },
        { bar: 23,
          quz: false }
    ];

 - "enums":

    let Options = {
        ONE:   0,
        TWO:   1,
        THREE: 2
    };

We don't have either of those, so drop the rules to minimise divergence
with gjs.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/57
2019-02-28 23:28:44 +01:00
Florian Müllner b50074fd37 lint: Restrict deprecated Lang API
Now that we moved to ES standard replacements, let's make sure they
don't creep back in accidentally.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/57
2019-02-28 23:28:33 +01:00
26 changed files with 1290 additions and 1247 deletions
+3 -5
View File
@@ -21,10 +21,10 @@ check_commit_log:
- merge_requests - merge_requests
eslint: eslint:
image: registry.gitlab.gnome.org/gnome/gjs:fedora.static-analysis image: registry.gitlab.gnome.org/gnome/gnome-shell/extension-ci:v1
stage: source_check stage: source_check
script: script:
- sh lint/generate-report.sh -o $LINT_LOG || { cat $LINT_LOG; false; } - eslint -o $LINT_LOG --no-color || { cat $LINT_LOG; false; }
<<: *only_default <<: *only_default
artifacts: artifacts:
paths: paths:
@@ -32,10 +32,8 @@ eslint:
when: on_failure when: on_failure
build-shell-extensions: build-shell-extensions:
image: fedora:latest image: registry.gitlab.gnome.org/gnome/gnome-shell/extension-ci:v1
stage: build stage: build
before_script:
- dnf install -y meson gettext mozjs60-devel
script: script:
- meson _build . - meson _build .
- ninja -C _build test install - ninja -C _build test install
+39
View File
@@ -1,3 +1,42 @@
3.33.2
======
* Misc. bug fixes and cleanups [Florian; !66]
Contributors:
Florian Müllner
3.33.1
======
* Misc. bug fixes [Florian; !64]
Contributors:
Florian Müllner
3.32.1
======
* Fix windowsNavigator extension after ES6 port [Florian; #143]
* screenshot-window-sizer: Add phone screenshot sizes [Adrien; !65]
* Misc. bug fixes and cleanups [Fabian; !62]
Contributors:
Florian Müllner, Adrien Plazas, Fabian P. Schmidt
3.32.0
======
Contributors:
Florian Müllner
Translations:
Victor Ibragimov [tg], Kristjan SCHMIDT [eo], Mart Raudsepp [et]
3.31.92
=======
* Misc. bug fixes and cleanups [Florian; !57, !58, !59, !60]
Contributors:
Florian Müllner
3.31.91 3.31.91
======= =======
* apps-menu: Remove outdated legacy-tray handling [Florian; !53] * apps-menu: Remove outdated legacy-tray handling [Florian; !53]
+7
View File
@@ -15,6 +15,12 @@ Bugs should be reported to the GNOME [bug tracking system][bug-tracker].
## Extensions ## Extensions
* alternate-tab (**OBSOLETE**)
Lets you use classic Alt+Tab (window-based instead of app-based) in GNOME Shell.
This extension is obsolete since GNOME 3.30, see [this blogpost][alternatetab-post]
for further details.
* apps-menu * apps-menu
Lets you reach an application using gnome 2.x style menu on the panel. Lets you reach an application using gnome 2.x style menu on the panel.
@@ -74,3 +80,4 @@ file for details.
[shell-page]: https://wiki.gnome.org/Projects/GnomeShell [shell-page]: https://wiki.gnome.org/Projects/GnomeShell
[bug-tracker]: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues [bug-tracker]: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues
[license]: COPYING [license]: COPYING
[alternatetab-post]: https://blogs.gnome.org/fmuellner/2018/10/11/the-future-of-alternatetab-and-why-you-need-not-worry/
+116 -103
View File
@@ -1,8 +1,9 @@
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
/* exported init enable disable */ /* exported init enable disable */
const { Atk, Clutter, Gio, GLib, GMenu, const {
GObject, Gtk, Meta, Shell, St } = imports.gi; Atk, Clutter, Gio, GLib, GMenu, GObject, Gtk, Meta, Shell, St
} = imports.gi;
const DND = imports.ui.dnd; const DND = imports.ui.dnd;
const Main = imports.ui.main; const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu; const PanelMenu = imports.ui.panelMenu;
@@ -21,11 +22,14 @@ const HORIZ_FACTOR = 5;
const MENU_HEIGHT_OFFSET = 132; const MENU_HEIGHT_OFFSET = 132;
const NAVIGATION_REGION_OVERSHOOT = 50; const NAVIGATION_REGION_OVERSHOOT = 50;
Gio._promisify(Gio._LocalFilePrototype, 'query_info_async', 'query_info_finish');
Gio._promisify(Gio._LocalFilePrototype, 'set_attributes_async', 'set_attributes_finish');
class ActivitiesMenuItem extends PopupMenu.PopupBaseMenuItem { class ActivitiesMenuItem extends PopupMenu.PopupBaseMenuItem {
constructor(button) { constructor(button) {
super(); super();
this._button = button; this._button = button;
this.actor.add_child(new St.Label({ text: _("Activities Overview") })); this.actor.add_child(new St.Label({ text: _('Activities Overview') }));
} }
activate(event) { activate(event) {
@@ -44,14 +48,17 @@ class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
this._iconBin = new St.Bin(); this._iconBin = new St.Bin();
this.actor.add_child(this._iconBin); this.actor.add_child(this._iconBin);
let appLabel = new St.Label({ text: app.get_name(), y_expand: true, let appLabel = new St.Label({
y_align: Clutter.ActorAlign.CENTER }); text: app.get_name(),
y_expand: true,
y_align: Clutter.ActorAlign.CENTER
});
this.actor.add_child(appLabel); this.actor.add_child(appLabel);
this.actor.label_actor = appLabel; this.actor.label_actor = appLabel;
let textureCache = St.TextureCache.get_default(); let textureCache = St.TextureCache.get_default();
let iconThemeChangedId = textureCache.connect('icon-theme-changed', let iconThemeChangedId = textureCache.connect('icon-theme-changed',
this._updateIcon.bind(this)); this._updateIcon.bind(this));
this.actor.connect('destroy', () => { this.actor.connect('destroy', () => {
textureCache.disconnect(iconThemeChangedId); textureCache.disconnect(iconThemeChangedId);
}); });
@@ -111,7 +118,7 @@ class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem {
if (this._category) if (this._category)
name = this._category.get_name(); name = this._category.get_name();
else else
name = _("Favorites"); name = _('Favorites');
this.actor.add_child(new St.Label({ text: name })); this.actor.add_child(new St.Label({ text: name }));
this.actor.connect('motion-event', this._onMotionEvent.bind(this)); this.actor.connect('motion-event', this._onMotionEvent.bind(this));
@@ -255,7 +262,7 @@ class DesktopTarget {
this._windowAddedId = this._windowAddedId =
global.window_group.connect('actor-added', global.window_group.connect('actor-added',
this._onWindowAdded.bind(this)); this._onWindowAdded.bind(this));
global.get_window_actors().forEach(a => { global.get_window_actors().forEach(a => {
this._onWindowAdded(a.get_parent(), a); this._onWindowAdded(a.get_parent(), a);
@@ -299,48 +306,32 @@ class DesktopTarget {
return source._app.app_info; return source._app.app_info;
} }
_touchFile(file) { async _markTrusted(file) {
let queryFlags = Gio.FileQueryInfoFlags.NONE;
let ioPriority = GLib.PRIORITY_DEFAULT;
let info = new Gio.FileInfo();
info.set_attribute_uint64(Gio.FILE_ATTRIBUTE_TIME_ACCESS,
GLib.get_real_time());
file.set_attributes_async (info, queryFlags, ioPriority, null,
(o, res) => {
try {
o.set_attributes_finish(res);
} catch (e) {
log(`Failed to update access time: ${e.message}`);
}
});
}
_markTrusted(file) {
let modeAttr = Gio.FILE_ATTRIBUTE_UNIX_MODE; let modeAttr = Gio.FILE_ATTRIBUTE_UNIX_MODE;
let trustedAttr = 'metadata::trusted'; let trustedAttr = 'metadata::trusted';
let queryFlags = Gio.FileQueryInfoFlags.NONE; let queryFlags = Gio.FileQueryInfoFlags.NONE;
let ioPriority = GLib.PRIORITY_DEFAULT; let ioPriority = GLib.PRIORITY_DEFAULT;
file.query_info_async(modeAttr, queryFlags, ioPriority, null, try {
(o, res) => { let info = await file.query_info_async(modeAttr, queryFlags, ioPriority, null);
try {
let info = o.query_info_finish(res);
let mode = info.get_attribute_uint32(modeAttr) | 0o100;
info.set_attribute_uint32(modeAttr, mode); let mode = info.get_attribute_uint32(modeAttr) | 0o100;
info.set_attribute_string(trustedAttr, 'yes'); info.set_attribute_uint32(modeAttr, mode);
file.set_attributes_async (info, queryFlags, ioPriority, null, info.set_attribute_string(trustedAttr, 'yes');
(o, res) => { await file.set_attributes_async(info, queryFlags, ioPriority, null);
o.set_attributes_finish(res);
// Hack: force nautilus to reload file info // Hack: force nautilus to reload file info
this._touchFile(file); info = new Gio.FileInfo();
}); info.set_attribute_uint64(
} catch (e) { Gio.FILE_ATTRIBUTE_TIME_ACCESS, GLib.get_real_time());
log(`Failed to mark file as trusted: ${e.message}`); try {
} await file.set_attributes_async(info, queryFlags, ioPriority, null);
}); } catch (e) {
log(`Failed to update access time: ${e.message}`);
}
} catch (e) {
log(`Failed to mark file as trusted: ${e.message}`);
}
} }
destroy() { destroy() {
@@ -399,9 +390,11 @@ class ApplicationsButton extends PanelMenu.Button {
let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' }); let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
this._label = new St.Label({ text: _("Applications"), this._label = new St.Label({
y_expand: true, text: _('Applications'),
y_align: Clutter.ActorAlign.CENTER }); y_expand: true,
y_align: Clutter.ActorAlign.CENTER
});
hbox.add_child(this._label); hbox.add_child(this._label);
hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM)); hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM));
@@ -418,7 +411,7 @@ class ApplicationsButton extends PanelMenu.Button {
this.remove_accessible_state (Atk.StateType.CHECKED); this.remove_accessible_state (Atk.StateType.CHECKED);
}); });
Main.layoutManager.connect('startup-complete', Main.layoutManager.connect('startup-complete',
this._setKeybinding.bind(this)); this._setKeybinding.bind(this));
this._setKeybinding(); this._setKeybinding();
this._desktopTarget = new DesktopTarget(); this._desktopTarget = new DesktopTarget();
@@ -433,14 +426,14 @@ class ApplicationsButton extends PanelMenu.Button {
this._tree = new GMenu.Tree({ menu_basename: 'applications.menu' }); this._tree = new GMenu.Tree({ menu_basename: 'applications.menu' });
this._treeChangedId = this._tree.connect('changed', this._treeChangedId = this._tree.connect('changed',
this._onTreeChanged.bind(this)); this._onTreeChanged.bind(this));
this._applicationsButtons = new Map(); this._applicationsButtons = new Map();
this.reloadFlag = false; this.reloadFlag = false;
this._createLayout(); this._createLayout();
this._display(); this._display();
this._installedChangedId = appSys.connect('installed-changed', this._installedChangedId = appSys.connect('installed-changed',
this._onTreeChanged.bind(this)); this._onTreeChanged.bind(this));
} }
_onTreeChanged() { _onTreeChanged() {
@@ -457,8 +450,10 @@ class ApplicationsButton extends PanelMenu.Button {
} }
_createVertSeparator() { _createVertSeparator() {
let separator = new St.DrawingArea({ style_class: 'calendar-vertical-separator', let separator = new St.DrawingArea({
pseudo_class: 'highlighted' }); style_class: 'calendar-vertical-separator',
pseudo_class: 'highlighted'
});
separator.connect('repaint', this._onVertSepRepaint.bind(this)); separator.connect('repaint', this._onVertSepRepaint.bind(this));
return separator; return separator;
} }
@@ -471,11 +466,10 @@ class ApplicationsButton extends PanelMenu.Button {
this._tree = null; this._tree = null;
Main.wm.setCustomKeybindingHandler('panel-main-menu', Main.wm.setCustomKeybindingHandler('panel-main-menu',
Shell.ActionMode.NORMAL | Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,
Shell.ActionMode.OVERVIEW, Main.sessionMode.hasOverview
Main.sessionMode.hasOverview ? ? Main.overview.toggle.bind(Main.overview)
Main.overview.toggle.bind(Main.overview) : : null);
null);
this._desktopTarget.destroy(); this._desktopTarget.destroy();
} }
@@ -491,8 +485,8 @@ class ApplicationsButton extends PanelMenu.Button {
_onMenuKeyPress(actor, event) { _onMenuKeyPress(actor, event) {
let symbol = event.get_key_symbol(); let symbol = event.get_key_symbol();
if (symbol == Clutter.KEY_Left || symbol == Clutter.KEY_Right) { if (symbol == Clutter.KEY_Left || symbol == Clutter.KEY_Right) {
let direction = symbol == Clutter.KEY_Left ? Gtk.DirectionType.LEFT let direction = symbol == Clutter.KEY_Left ?
: Gtk.DirectionType.RIGHT; Gtk.DirectionType.LEFT : Gtk.DirectionType.RIGHT;
if (this.menu.actor.navigate_focus(global.stage.key_focus, direction, false)) if (this.menu.actor.navigate_focus(global.stage.key_focus, direction, false))
return true; return true;
} }
@@ -527,9 +521,8 @@ class ApplicationsButton extends PanelMenu.Button {
_setKeybinding() { _setKeybinding() {
Main.wm.setCustomKeybindingHandler('panel-main-menu', Main.wm.setCustomKeybindingHandler('panel-main-menu',
Shell.ActionMode.NORMAL | Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,
Shell.ActionMode.OVERVIEW, () => this.menu.toggle());
() => { this.menu.toggle(); });
} }
_redisplay() { _redisplay() {
@@ -600,9 +593,12 @@ class ApplicationsButton extends PanelMenu.Button {
this.menu.addMenuItem(section); this.menu.addMenuItem(section);
this.mainBox = new St.BoxLayout({ vertical: false }); this.mainBox = new St.BoxLayout({ vertical: false });
this.leftBox = new St.BoxLayout({ vertical: true }); this.leftBox = new St.BoxLayout({ vertical: true });
this.applicationsScrollBox = new St.ScrollView({ x_fill: true, y_fill: false, this.applicationsScrollBox = new St.ScrollView({
y_align: St.Align.START, x_fill: true,
style_class: 'apps-menu vfade' }); y_fill: false,
y_align: St.Align.START,
style_class: 'apps-menu vfade'
});
this.applicationsScrollBox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); this.applicationsScrollBox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
let vscroll = this.applicationsScrollBox.get_vscroll_bar(); let vscroll = this.applicationsScrollBox.get_vscroll_bar();
vscroll.connect('scroll-start', () => { vscroll.connect('scroll-start', () => {
@@ -611,21 +607,30 @@ class ApplicationsButton extends PanelMenu.Button {
vscroll.connect('scroll-stop', () => { vscroll.connect('scroll-stop', () => {
this.menu.passEvents = false; this.menu.passEvents = false;
}); });
this.categoriesScrollBox = new St.ScrollView({ x_fill: true, y_fill: false, this.categoriesScrollBox = new St.ScrollView({
y_align: St.Align.START, x_fill: true,
style_class: 'vfade' }); y_fill: false,
y_align: St.Align.START,
style_class: 'vfade'
});
this.categoriesScrollBox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); this.categoriesScrollBox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
vscroll = this.categoriesScrollBox.get_vscroll_bar(); vscroll = this.categoriesScrollBox.get_vscroll_bar();
vscroll.connect('scroll-start', () => { this.menu.passEvents = true; }); vscroll.connect('scroll-start', () => this.menu.passEvents = true);
vscroll.connect('scroll-stop', () => { this.menu.passEvents = false; }); vscroll.connect('scroll-stop', () => this.menu.passEvents = false);
this.leftBox.add(this.categoriesScrollBox, { expand: true, this.leftBox.add(this.categoriesScrollBox, {
x_fill: true, y_fill: true, expand: true,
y_align: St.Align.START }); x_fill: true,
y_fill: true,
y_align: St.Align.START
});
let activities = new ActivitiesMenuItem(this); let activities = new ActivitiesMenuItem(this);
this.leftBox.add(activities.actor, { expand: false, this.leftBox.add(activities.actor, {
x_fill: true, y_fill: false, expand: false,
y_align: St.Align.START }); x_fill: true,
y_fill: false,
y_align: St.Align.START
});
this.applicationsBox = new St.BoxLayout({ vertical: true }); this.applicationsBox = new St.BoxLayout({ vertical: true });
this.applicationsScrollBox.add_actor(this.applicationsBox); this.applicationsScrollBox.add_actor(this.applicationsBox);
@@ -633,8 +638,16 @@ class ApplicationsButton extends PanelMenu.Button {
this.categoriesScrollBox.add_actor(this.categoriesBox); this.categoriesScrollBox.add_actor(this.categoriesBox);
this.mainBox.add(this.leftBox); this.mainBox.add(this.leftBox);
this.mainBox.add(this._createVertSeparator(), { expand: false, x_fill: false, y_fill: true }); this.mainBox.add(this._createVertSeparator(), {
this.mainBox.add(this.applicationsScrollBox, { expand: true, x_fill: true, y_fill: true }); expand: false,
x_fill: false,
y_fill: true
});
this.mainBox.add(this.applicationsScrollBox, {
expand: true,
x_fill: true,
y_fill: true
});
section.actor.add_actor(this.mainBox); section.actor.add_actor(this.mainBox);
} }
@@ -652,17 +665,19 @@ class ApplicationsButton extends PanelMenu.Button {
let iter = root.iter(); let iter = root.iter();
let nextType; let nextType;
while ((nextType = iter.next()) != GMenu.TreeItemType.INVALID) { while ((nextType = iter.next()) != GMenu.TreeItemType.INVALID) {
if (nextType == GMenu.TreeItemType.DIRECTORY) { if (nextType != GMenu.TreeItemType.DIRECTORY)
let dir = iter.get_directory(); continue;
if (!dir.get_is_nodisplay()) {
let categoryId = dir.get_menu_id(); let dir = iter.get_directory();
this.applicationsByCategory[categoryId] = []; if (dir.get_is_nodisplay())
this._loadCategory(categoryId, dir); continue;
if (this.applicationsByCategory[categoryId].length > 0) {
let categoryMenuItem = new CategoryMenuItem(this, dir); let categoryId = dir.get_menu_id();
this.categoriesBox.add_actor(categoryMenuItem.actor); this.applicationsByCategory[categoryId] = [];
} this._loadCategory(categoryId, dir);
} if (this.applicationsByCategory[categoryId].length > 0) {
let categoryMenuItem = new CategoryMenuItem(this, dir);
this.categoriesBox.add_actor(categoryMenuItem.actor);
} }
} }
@@ -691,22 +706,20 @@ class ApplicationsButton extends PanelMenu.Button {
} }
_displayButtons(apps) { _displayButtons(apps) {
if (apps) { for (let i = 0; i < apps.length; i++) {
for (let i = 0; i < apps.length; i++) { let app = apps[i];
let app = apps[i]; let item;
let item; if (app instanceof Shell.App)
if (app instanceof Shell.App) item = this._applicationsButtons.get(app);
item = this._applicationsButtons.get(app); else
else item = new PopupMenu.PopupSeparatorMenuItem();
item = new PopupMenu.PopupSeparatorMenuItem(); if (!item) {
if (!item) { item = new ApplicationMenuItem(this, app);
item = new ApplicationMenuItem(this, app); item.setDragEnabled(this._desktopTarget.hasDesktop);
item.setDragEnabled(this._desktopTarget.hasDesktop); this._applicationsButtons.set(app, item);
this._applicationsButtons.set(app, item);
}
if (!item.actor.get_parent())
this.applicationsBox.add_actor(item.actor);
} }
if (!item.actor.get_parent())
this.applicationsBox.add_actor(item.actor);
} }
} }
+4 -4
View File
@@ -17,7 +17,7 @@ class WindowMover {
this._appsChangedId = this._appsChangedId =
this._appSystem.connect('installed-changed', this._appSystem.connect('installed-changed',
this._updateAppData.bind(this)); this._updateAppData.bind(this));
this._settings.connect('changed', this._updateAppConfigs.bind(this)); this._settings.connect('changed', this._updateAppConfigs.bind(this));
this._updateAppConfigs(); this._updateAppConfigs();
@@ -50,7 +50,7 @@ class WindowMover {
addedApps.forEach(app => { addedApps.forEach(app => {
let data = { let data = {
windowsChangedId: app.connect('windows-changed', windowsChangedId: app.connect('windows-changed',
this._appWindowsChanged.bind(this)), this._appWindowsChanged.bind(this)),
moveWindowsId: 0, moveWindowsId: 0,
windows: app.get_windows() windows: app.get_windows()
}; };
@@ -125,9 +125,9 @@ function myCheckWorkspaces() {
} }
// make sure the original method only removes empty workspaces at the end // make sure the original method only removes empty workspaces at the end
keepAliveWorkspaces.forEach(ws => { ws._keepAliveId = 1; }); keepAliveWorkspaces.forEach(ws => ws._keepAliveId = 1);
prevCheckWorkspaces.call(this); prevCheckWorkspaces.call(this);
keepAliveWorkspaces.forEach(ws => { delete ws._keepAliveId; }); keepAliveWorkspaces.forEach(ws => delete ws._keepAliveId);
return false; return false;
} }
+74 -47
View File
@@ -34,35 +34,48 @@ const Widget = GObject.registerClass({
this._changedPermitted = false; this._changedPermitted = false;
this._store = new Gtk.ListStore(); this._store = new Gtk.ListStore();
this._store.set_column_types([Gio.AppInfo, GObject.TYPE_STRING, Gio.Icon, GObject.TYPE_INT, this._store.set_column_types([
Gtk.Adjustment]); Gio.AppInfo,
GObject.TYPE_STRING,
Gio.Icon,
GObject.TYPE_INT,
Gtk.Adjustment
]);
let scrolled = new Gtk.ScrolledWindow({ shadow_type: Gtk.ShadowType.IN }); let scrolled = new Gtk.ScrolledWindow({ shadow_type: Gtk.ShadowType.IN });
scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
this.add(scrolled); this.add(scrolled);
this._treeView = new Gtk.TreeView({ model: this._store, this._treeView = new Gtk.TreeView({
hexpand: true, vexpand: true }); model: this._store,
hexpand: true,
vexpand: true
});
this._treeView.get_selection().set_mode(Gtk.SelectionMode.SINGLE); this._treeView.get_selection().set_mode(Gtk.SelectionMode.SINGLE);
let appColumn = new Gtk.TreeViewColumn({ expand: true, sort_column_id: Columns.DISPLAY_NAME, let appColumn = new Gtk.TreeViewColumn({
title: _("Application") }); expand: true,
sort_column_id: Columns.DISPLAY_NAME,
title: _('Application')
});
let iconRenderer = new Gtk.CellRendererPixbuf; let iconRenderer = new Gtk.CellRendererPixbuf;
appColumn.pack_start(iconRenderer, false); appColumn.pack_start(iconRenderer, false);
appColumn.add_attribute(iconRenderer, "gicon", Columns.ICON); appColumn.add_attribute(iconRenderer, 'gicon', Columns.ICON);
let nameRenderer = new Gtk.CellRendererText; let nameRenderer = new Gtk.CellRendererText;
appColumn.pack_start(nameRenderer, true); appColumn.pack_start(nameRenderer, true);
appColumn.add_attribute(nameRenderer, "text", Columns.DISPLAY_NAME); appColumn.add_attribute(nameRenderer, 'text', Columns.DISPLAY_NAME);
this._treeView.append_column(appColumn); this._treeView.append_column(appColumn);
let workspaceColumn = new Gtk.TreeViewColumn({ title: _("Workspace"), let workspaceColumn = new Gtk.TreeViewColumn({
sort_column_id: Columns.WORKSPACE }); title: _('Workspace'),
sort_column_id: Columns.WORKSPACE
});
let workspaceRenderer = new Gtk.CellRendererSpin({ editable: true }); let workspaceRenderer = new Gtk.CellRendererSpin({ editable: true });
workspaceRenderer.connect('edited', this._workspaceEdited.bind(this)); workspaceRenderer.connect('edited', this._workspaceEdited.bind(this));
workspaceColumn.pack_start(workspaceRenderer, true); workspaceColumn.pack_start(workspaceRenderer, true);
workspaceColumn.add_attribute(workspaceRenderer, "adjustment", Columns.ADJUSTMENT); workspaceColumn.add_attribute(workspaceRenderer, 'adjustment', Columns.ADJUSTMENT);
workspaceColumn.add_attribute(workspaceRenderer, "text", Columns.WORKSPACE); workspaceColumn.add_attribute(workspaceRenderer, 'text', Columns.WORKSPACE);
this._treeView.append_column(workspaceColumn); this._treeView.append_column(workspaceColumn);
scrolled.add(this._treeView); scrolled.add(this._treeView);
@@ -71,13 +84,15 @@ const Widget = GObject.registerClass({
toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_INLINE_TOOLBAR); toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_INLINE_TOOLBAR);
this.add(toolbar); this.add(toolbar);
let newButton = new Gtk.ToolButton({ icon_name: 'bookmark-new-symbolic', let newButton = new Gtk.ToolButton({
label: _("Add Rule"), icon_name: 'bookmark-new-symbolic',
is_important: true }); label: _('Add Rule'),
is_important: true
});
newButton.connect('clicked', this._createNew.bind(this)); newButton.connect('clicked', this._createNew.bind(this));
toolbar.add(newButton); toolbar.add(newButton);
let delButton = new Gtk.ToolButton({ icon_name: 'edit-delete-symbolic' }); let delButton = new Gtk.ToolButton({ icon_name: 'edit-delete-symbolic' });
delButton.connect('clicked', this._deleteSelected.bind(this)); delButton.connect('clicked', this._deleteSelected.bind(this));
toolbar.add(delButton); toolbar.add(delButton);
@@ -92,17 +107,21 @@ const Widget = GObject.registerClass({
} }
_createNew() { _createNew() {
let dialog = new Gtk.Dialog({ title: _("Create new matching rule"), let dialog = new Gtk.Dialog({
transient_for: this.get_toplevel(), title: _('Create new matching rule'),
use_header_bar: true, transient_for: this.get_toplevel(),
modal: true }); use_header_bar: true,
modal: true
});
dialog.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL); dialog.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL);
let addButton = dialog.add_button(_("Add"), Gtk.ResponseType.OK); let addButton = dialog.add_button(_('Add'), Gtk.ResponseType.OK);
dialog.set_default_response(Gtk.ResponseType.OK); dialog.set_default_response(Gtk.ResponseType.OK);
let grid = new Gtk.Grid({ column_spacing: 10, let grid = new Gtk.Grid({
row_spacing: 15, column_spacing: 10,
margin: 10 }); row_spacing: 15,
margin: 10
});
dialog._appChooser = new Gtk.AppChooserWidget({ show_all: true }); dialog._appChooser = new Gtk.AppChooserWidget({ show_all: true });
dialog._appChooser.connect('application-selected', (w, appInfo) => { dialog._appChooser.connect('application-selected', (w, appInfo) => {
addButton.sensitive = appInfo && this._checkId(appInfo.get_id()); addButton.sensitive = appInfo && this._checkId(appInfo.get_id());
@@ -111,13 +130,19 @@ const Widget = GObject.registerClass({
addButton.sensitive = appInfo && this._checkId(appInfo.get_id()); addButton.sensitive = appInfo && this._checkId(appInfo.get_id());
grid.attach(dialog._appChooser, 0, 0, 2, 1); grid.attach(dialog._appChooser, 0, 0, 2, 1);
grid.attach(new Gtk.Label({ label: _("Workspace"), grid.attach(new Gtk.Label({
halign: Gtk.Align.END }), 0, 1, 1, 1); label: _('Workspace'),
let adjustment = new Gtk.Adjustment({ lower: 1, halign: Gtk.Align.END
upper: WORKSPACE_MAX, }), 0, 1, 1, 1);
step_increment: 1 }); let adjustment = new Gtk.Adjustment({
dialog._spin = new Gtk.SpinButton({ adjustment: adjustment, lower: 1,
snap_to_ticks: true }); upper: WORKSPACE_MAX,
step_increment: 1
});
dialog._spin = new Gtk.SpinButton({
adjustment: adjustment,
snap_to_ticks: true
});
dialog._spin.set_value(1); dialog._spin.set_value(1);
grid.attach(dialog._spin, 1, 1, 1, 1); grid.attach(dialog._spin, 1, 1, 1, 1);
dialog.get_content_area().add(grid); dialog.get_content_area().add(grid);
@@ -139,14 +164,7 @@ const Widget = GObject.registerClass({
this._appendItem(appInfo.get_id(), index); this._appendItem(appInfo.get_id(), index);
this._changedPermitted = true; this._changedPermitted = true;
let iter = this._store.append(); this._appendRow(appInfo, index);
let adj = new Gtk.Adjustment({ lower: 1,
upper: WORKSPACE_MAX,
step_increment: 1,
value: index });
this._store.set(iter,
[Columns.APPINFO, Columns.ICON, Columns.DISPLAY_NAME, Columns.WORKSPACE, Columns.ADJUSTMENT],
[appInfo, appInfo.get_icon(), appInfo.get_display_name(), index, adj]);
dialog.destroy(); dialog.destroy();
}); });
@@ -196,20 +214,29 @@ const Widget = GObject.registerClass({
continue; continue;
validItems.push(currentItems[i]); validItems.push(currentItems[i]);
let iter = this._store.append(); this._appendRow(appInfo, parseInt(index));
let adj = new Gtk.Adjustment({ lower: 1,
upper: WORKSPACE_MAX,
step_increment: 1,
value: index });
this._store.set(iter,
[Columns.APPINFO, Columns.ICON, Columns.DISPLAY_NAME, Columns.WORKSPACE, Columns.ADJUSTMENT],
[appInfo, appInfo.get_icon(), appInfo.get_display_name(), parseInt(index), adj]);
} }
if (validItems.length != currentItems.length) // some items were filtered out if (validItems.length != currentItems.length) // some items were filtered out
this._settings.set_strv(SETTINGS_KEY, validItems); this._settings.set_strv(SETTINGS_KEY, validItems);
} }
_appendRow(appInfo, workspace) {
let iter = this._store.append();
let icon = appInfo.get_icon();
let displayName = appInfo.get_display_name();
let adj = new Gtk.Adjustment({
lower: 1,
upper: WORKSPACE_MAX,
step_increment: 1,
value: workspace
});
let { APPINFO, ICON, DISPLAY_NAME, WORKSPACE, ADJUSTMENT } = Columns;
this._store.set(iter,
[APPINFO, ICON, DISPLAY_NAME, WORKSPACE, ADJUSTMENT],
[appInfo, icon, displayName, workspace, adj]);
}
_checkId(id) { _checkId(id) {
let items = this._settings.get_strv(SETTINGS_KEY); let items = this._settings.get_strv(SETTINGS_KEY);
return !items.some(i => i.startsWith(`${id}:`)); return !items.some(i => i.startsWith(`${id}:`));
+22 -18
View File
@@ -22,8 +22,10 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem {
this.mount = mount; this.mount = mount;
let ejectIcon = new St.Icon({ icon_name: 'media-eject-symbolic', let ejectIcon = new St.Icon({
style_class: 'popup-menu-icon ' }); icon_name: 'media-eject-symbolic',
style_class: 'popup-menu-icon'
});
let ejectButton = new St.Button({ child: ejectIcon }); let ejectButton = new St.Button({ child: ejectIcon });
ejectButton.connect('clicked', this._eject.bind(this)); ejectButton.connect('clicked', this._eject.bind(this));
this.actor.add(ejectButton); this.actor.add(ejectButton);
@@ -63,18 +65,18 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem {
} }
_eject() { _eject() {
let mountOp = new ShellMountOperation.ShellMountOperation(this.mount); let unmountArgs = [
Gio.MountUnmountFlags.NONE,
(new ShellMountOperation.ShellMountOperation(this.mount)).mountOp,
null // Gio.Cancellable
];
if (this.mount.can_eject()) if (this.mount.can_eject())
this.mount.eject_with_operation(Gio.MountUnmountFlags.NONE, this.mount.eject_with_operation(...unmountArgs,
mountOp.mountOp, this._ejectFinish.bind(this));
null, // Gio.Cancellable
this._ejectFinish.bind(this));
else else
this.mount.unmount_with_operation(Gio.MountUnmountFlags.NONE, this.mount.unmount_with_operation(...unmountArgs,
mountOp.mountOp, this._unmountFinish.bind(this));
null, // Gio.Cancellable
this._unmountFinish.bind(this));
} }
_unmountFinish(mount, result) { _unmountFinish(mount, result) {
@@ -95,14 +97,14 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem {
_reportFailure(exception) { _reportFailure(exception) {
// TRANSLATORS: %s is the filesystem name // TRANSLATORS: %s is the filesystem name
let msg = _("Ejecting drive “%s” failed:").format(this.mount.get_name()); let msg = _('Ejecting drive “%s” failed:').format(this.mount.get_name());
Main.notifyError(msg, exception.message); Main.notifyError(msg, exception.message);
} }
activate(event) { activate(event) {
let uri = this.mount.get_root().get_uri();
let context = global.create_app_launch_context(event.get_time(), -1); let context = global.create_app_launch_context(event.get_time(), -1);
Gio.AppInfo.launch_default_for_uri(this.mount.get_root().get_uri(), Gio.AppInfo.launch_default_for_uri(uri, context);
context);
super.activate(event); super.activate(event);
} }
@@ -111,11 +113,13 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem {
let DriveMenu = GObject.registerClass( let DriveMenu = GObject.registerClass(
class DriveMenu extends PanelMenu.Button { class DriveMenu extends PanelMenu.Button {
_init() { _init() {
super._init(0.0, _("Removable devices")); super._init(0.0, _('Removable devices'));
let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' }); let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
let icon = new St.Icon({ icon_name: 'media-eject-symbolic', let icon = new St.Icon({
style_class: 'system-status-icon' }); icon_name: 'media-eject-symbolic',
style_class: 'system-status-icon'
});
hbox.add_child(icon); hbox.add_child(icon);
hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM)); hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM));
@@ -136,7 +140,7 @@ class DriveMenu extends PanelMenu.Button {
this._monitor.get_mounts().forEach(this._addMount.bind(this)); this._monitor.get_mounts().forEach(this._addMount.bind(this));
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
this.menu.addAction(_("Open Files"), event => { this.menu.addAction(_('Open Files'), event => {
let appSystem = Shell.AppSystem.get_default(); let appSystem = Shell.AppSystem.get_default();
let app = appSystem.lookup_app('org.gnome.Nautilus.desktop'); let app = appSystem.lookup_app('org.gnome.Nautilus.desktop');
app.activate_full(-1, event.get_time()); app.activate_full(-1, event.get_time());
@@ -112,10 +112,11 @@ class NaturalLayoutStrategy extends Workspace.LayoutStrategy {
overlap = false; overlap = false;
for (let i = 0; i < rects.length; i++) { for (let i = 0; i < rects.length; i++) {
for (let j = 0; j < rects.length; j++) { for (let j = 0; j < rects.length; j++) {
if (i != j && rects[i].adjusted(-WINDOW_PLACEMENT_NATURAL_GAPS, -WINDOW_PLACEMENT_NATURAL_GAPS, let adjustments = [-1, -1, 1, 1]
WINDOW_PLACEMENT_NATURAL_GAPS, WINDOW_PLACEMENT_NATURAL_GAPS) .map(v => v *= WINDOW_PLACEMENT_NATURAL_GAPS);
.overlap(rects[j].adjusted(-WINDOW_PLACEMENT_NATURAL_GAPS, -WINDOW_PLACEMENT_NATURAL_GAPS, let iAdjusted = rects[i].adjusted(...adjustments);
WINDOW_PLACEMENT_NATURAL_GAPS, WINDOW_PLACEMENT_NATURAL_GAPS))) { let jAdjusted = rects[j].adjusted(...adjustments);
if (i != j && iAdjusted.overlap(jAdjusted)) {
loopCounter++; loopCounter++;
overlap = true; overlap = true;
@@ -202,9 +203,10 @@ class NaturalLayoutStrategy extends Workspace.LayoutStrategy {
// Work out scaling by getting the most top-left and most bottom-right window coords. // Work out scaling by getting the most top-left and most bottom-right window coords.
let scale; let scale;
scale = Math.min(areaRect.width / bounds.width, scale = Math.min(
areaRect.height / bounds.height, areaRect.width / bounds.width,
1.0); areaRect.height / bounds.height,
1.0);
// Make bounding rect fill the screen size for later steps // Make bounding rect fill the screen size for later steps
bounds.x = bounds.x - (areaRect.width - bounds.width * scale) / 2; bounds.x = bounds.x - (areaRect.width - bounds.width * scale) / 2;
+15 -9
View File
@@ -22,23 +22,27 @@ class PlaceMenuItem extends PopupMenu.PopupBaseMenuItem {
super(); super();
this._info = info; this._info = info;
this._icon = new St.Icon({ gicon: info.icon, this._icon = new St.Icon({
icon_size: PLACE_ICON_SIZE }); gicon: info.icon,
icon_size: PLACE_ICON_SIZE
});
this.actor.add_child(this._icon); this.actor.add_child(this._icon);
this._label = new St.Label({ text: info.name, x_expand: true }); this._label = new St.Label({ text: info.name, x_expand: true });
this.actor.add_child(this._label); this.actor.add_child(this._label);
if (info.isRemovable()) { if (info.isRemovable()) {
this._ejectIcon = new St.Icon({ icon_name: 'media-eject-symbolic', this._ejectIcon = new St.Icon({
style_class: 'popup-menu-icon ' }); icon_name: 'media-eject-symbolic',
style_class: 'popup-menu-icon'
});
this._ejectButton = new St.Button({ child: this._ejectIcon }); this._ejectButton = new St.Button({ child: this._ejectIcon });
this._ejectButton.connect('clicked', info.eject.bind(info)); this._ejectButton.connect('clicked', info.eject.bind(info));
this.actor.add_child(this._ejectButton); this.actor.add_child(this._ejectButton);
} }
this._changedId = info.connect('changed', this._changedId = info.connect('changed',
this._propertiesChanged.bind(this)); this._propertiesChanged.bind(this));
} }
destroy() { destroy() {
@@ -72,12 +76,14 @@ const SECTIONS = [
let PlacesMenu = GObject.registerClass( let PlacesMenu = GObject.registerClass(
class PlacesMenu extends PanelMenu.Button { class PlacesMenu extends PanelMenu.Button {
_init() { _init() {
super._init(0.0, _("Places")); super._init(0.0, _('Places'));
let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' }); let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
let label = new St.Label({ text: _("Places"), let label = new St.Label({
y_expand: true, text: _('Places'),
y_align: Clutter.ActorAlign.CENTER }); y_expand: true,
y_align: Clutter.ActorAlign.CENTER
});
hbox.add_child(label); hbox.add_child(label);
hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM)); hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM));
this.add_actor(hbox); this.add_actor(hbox);
+104 -80
View File
@@ -38,65 +38,54 @@ class PlaceInfo {
return false; return false;
} }
_createLaunchCallback(launchContext, tryMount) { async _ensureMountAndLaunch(context, tryMount) {
return (_ignored, result) => { try {
try { await this._launchDefaultForUri(this.file.get_uri(), context, null);
Gio.AppInfo.launch_default_for_uri_finish(result); } catch (e) {
} catch (e) { if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.NOT_MOUNTED)) {
if (e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.NOT_MOUNTED)) { Main.notifyError(_('Failed to launch “%s”').format(this.name), e.message);
let source = { return;
get_icon: () => { return this.icon; }
};
let op = new ShellMountOperation.ShellMountOperation(source);
this.file.mount_enclosing_volume(0, op.mountOp, null, (file, result) => {
try {
op.close();
file.mount_enclosing_volume_finish(result);
} catch (e) {
if (e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED_HANDLED))
// e.g. user canceled the password dialog
return;
Main.notifyError(_("Failed to mount volume for “%s”").format(this.name), e.message);
return;
}
if (tryMount) {
let callback = this._createLaunchCallback(launchContext, false);
Gio.AppInfo.launch_default_for_uri_async(file.get_uri(),
launchContext,
null,
callback);
}
});
} else {
Main.notifyError(_("Failed to launch “%s”").format(this.name), e.message);
}
} }
};
let source = {
get_icon: () => this.icon
};
let op = new ShellMountOperation.ShellMountOperation(source);
try {
await this._mountEnclosingVolume(0, op.mountOp, null);
if (tryMount)
this._ensureMountAndLaunch(context, false);
} catch (e) {
if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED_HANDLED))
Main.notifyError(_('Failed to mount volume for “%s”').format(this.name), e.message);
} finally {
op.close();
}
}
} }
launch(timestamp) { launch(timestamp) {
let launchContext = global.create_app_launch_context(timestamp, -1); let launchContext = global.create_app_launch_context(timestamp, -1);
let callback = this._createLaunchCallback(launchContext, true); this._ensureMountAndLaunch(launchContext, true);
Gio.AppInfo.launch_default_for_uri_async(this.file.get_uri(),
launchContext,
null,
callback);
} }
getIcon() { getIcon() {
this.file.query_info_async('standard::symbolic-icon', 0, 0, null, this.file.query_info_async('standard::symbolic-icon',
(file, result) => { Gio.FileQueryInfoFlags.NONE,
try { 0,
let info = file.query_info_finish(result); null,
this.icon = info.get_symbolic_icon(); (file, result) => {
this.emit('changed'); try {
} catch (e) { let info = file.query_info_finish(result);
if (e instanceof Gio.IOErrorEnum) this.icon = info.get_symbolic_icon();
return; this.emit('changed');
throw e; } catch (e) {
} if (e instanceof Gio.IOErrorEnum)
}); return;
throw e;
}
});
// return a generic icon for this kind for now, until we have the // return a generic icon for this kind for now, until we have the
// icon from the query info above // icon from the query info above
@@ -125,12 +114,38 @@ class PlaceInfo {
throw e; throw e;
} }
} }
_launchDefaultForUri(uri, context, cancel) {
return new Promise((resolve, reject) => {
Gio.AppInfo.launch_default_for_uri_async(uri, context, cancel, (o, res) => {
try {
Gio.AppInfo.launch_default_for_uri_finish(res);
resolve();
} catch (e) {
reject(e);
}
});
});
}
_mountEnclosingVolume(flags, mountOp, cancel) {
return new Promise((resolve, reject) => {
this.file.mount_enclosing_volume(flags, mountOp, cancel, (o, res) => {
try {
this.file.mount_enclosing_volume_finish(res);
resolve();
} catch (e) {
reject(e);
}
});
});
}
} }
Signals.addSignalMethods(PlaceInfo.prototype); Signals.addSignalMethods(PlaceInfo.prototype);
class RootInfo extends PlaceInfo { class RootInfo extends PlaceInfo {
_init() { _init() {
super._init('devices', Gio.File.new_for_path('/'), _("Computer")); super._init('devices', Gio.File.new_for_path('/'), _('Computer'));
let busName = 'org.freedesktop.hostname1'; let busName = 'org.freedesktop.hostname1';
let objPath = '/org/freedesktop/hostname1'; let objPath = '/org/freedesktop/hostname1';
@@ -140,7 +155,7 @@ class RootInfo extends PlaceInfo {
this._proxy = obj; this._proxy = obj;
this._proxy.connect('g-properties-changed', this._proxy.connect('g-properties-changed',
this._propertiesChanged.bind(this)); this._propertiesChanged.bind(this));
this._propertiesChanged(obj); this._propertiesChanged(obj);
}); });
} }
@@ -153,7 +168,7 @@ class RootInfo extends PlaceInfo {
// GDBusProxy will emit a g-properties-changed when hostname1 goes down // GDBusProxy will emit a g-properties-changed when hostname1 goes down
// ignore it // ignore it
if (proxy.g_name_owner) { if (proxy.g_name_owner) {
this.name = proxy.PrettyHostname || _("Computer"); this.name = proxy.PrettyHostname || _('Computer');
this.emit('changed'); this.emit('changed');
} }
} }
@@ -183,18 +198,18 @@ class PlaceDeviceInfo extends PlaceInfo {
} }
eject() { eject() {
let mountOp = new ShellMountOperation.ShellMountOperation(this._mount); let unmountArgs = [
Gio.MountUnmountFlags.NONE,
(new ShellMountOperation.ShellMountOperation(this._mount)).mountOp,
null // Gio.Cancellable
];
if (this._mount.can_eject()) if (this._mount.can_eject())
this._mount.eject_with_operation(Gio.MountUnmountFlags.NONE, this._mount.eject_with_operation(...unmountArgs,
mountOp.mountOp, this._ejectFinish.bind(this));
null, // Gio.Cancellable
this._ejectFinish.bind(this));
else else
this._mount.unmount_with_operation(Gio.MountUnmountFlags.NONE, this._mount.unmount_with_operation(...unmountArgs,
mountOp.mountOp, this._unmountFinish.bind(this));
null, // Gio.Cancellable
this._unmountFinish.bind(this));
} }
_ejectFinish(mount, result) { _ejectFinish(mount, result) {
@@ -214,7 +229,7 @@ class PlaceDeviceInfo extends PlaceInfo {
} }
_reportFailure(exception) { _reportFailure(exception) {
let msg = _("Ejecting drive “%s” failed:").format(this._mount.get_name()); let msg = _('Ejecting drive “%s” failed:').format(this._mount.get_name());
Main.notifyError(msg, exception.message); Main.notifyError(msg, exception.message);
} }
} }
@@ -263,9 +278,8 @@ var PlacesManager = class {
}; };
this._settings = new Gio.Settings({ schema_id: BACKGROUND_SCHEMA }); this._settings = new Gio.Settings({ schema_id: BACKGROUND_SCHEMA });
this._showDesktopIconsChangedId = this._showDesktopIconsChangedId = this._settings.connect(
this._settings.connect('changed::show-desktop-icons', 'changed::show-desktop-icons', this._updateSpecials.bind(this));
this._updateSpecials.bind(this));
this._updateSpecials(); this._updateSpecials();
/* /*
@@ -298,9 +312,17 @@ var PlacesManager = class {
} }
_connectVolumeMonitorSignals() { _connectVolumeMonitorSignals() {
const signals = ['volume-added', 'volume-removed', 'volume-changed', const signals = [
'mount-added', 'mount-removed', 'mount-changed', 'volume-added',
'drive-connected', 'drive-disconnected', 'drive-changed']; 'volume-removed',
'volume-changed',
'mount-added',
'mount-removed',
'mount-changed',
'drive-connected',
'drive-disconnected',
'drive-changed'
];
this._volumeMonitorSignals = []; this._volumeMonitorSignals = [];
let func = this._updateMounts.bind(this); let func = this._updateMounts.bind(this);
@@ -325,14 +347,15 @@ var PlacesManager = class {
} }
_updateSpecials() { _updateSpecials() {
this._places.special.forEach(p => { p.destroy(); }); this._places.special.forEach(p => p.destroy());
this._places.special = []; this._places.special = [];
let homePath = GLib.get_home_dir(); let homePath = GLib.get_home_dir();
this._places.special.push(new PlaceInfo('special', this._places.special.push(new PlaceInfo(
Gio.File.new_for_path(homePath), 'special',
_("Home"))); Gio.File.new_for_path(homePath),
_('Home')));
let specials = []; let specials = [];
let dirs = DEFAULT_DIRECTORIES.slice(); let dirs = DEFAULT_DIRECTORIES.slice();
@@ -367,17 +390,18 @@ var PlacesManager = class {
let networkMounts = []; let networkMounts = [];
let networkVolumes = []; let networkVolumes = [];
this._places.devices.forEach(p => { p.destroy(); }); this._places.devices.forEach(p => p.destroy());
this._places.devices = []; this._places.devices = [];
this._places.network.forEach(p => { p.destroy(); }); this._places.network.forEach(p => p.destroy());
this._places.network = []; this._places.network = [];
/* Add standard places */ /* Add standard places */
this._places.devices.push(new RootInfo()); this._places.devices.push(new RootInfo());
this._places.network.push(new PlaceInfo('network', this._places.network.push(new PlaceInfo(
Gio.File.new_for_uri('network:///'), 'network',
_("Browse Network"), Gio.File.new_for_uri('network:///'),
'network-workgroup-symbolic')); _('Browse Network'),
'network-workgroup-symbolic'));
/* first go through all connected drives */ /* first go through all connected drives */
let drives = this._volumeMonitor.get_connected_drives(); let drives = this._volumeMonitor.get_connected_drives();
+26 -21
View File
@@ -47,14 +47,16 @@ function flashMessage(message) {
text.opacity = 255; text.opacity = 255;
let monitor = Main.layoutManager.primaryMonitor; let monitor = Main.layoutManager.primaryMonitor;
text.set_position(monitor.x + Math.floor(monitor.width / 2 - text.width / 2), text.set_position(
monitor.y + Math.floor(monitor.height / 2 - text.height / 2)); monitor.x + Math.floor(monitor.width / 2 - text.width / 2),
monitor.y + Math.floor(monitor.height / 2 - text.height / 2));
Tweener.addTween(text, Tweener.addTween(text, {
{ opacity: 0, opacity: 0,
time: MESSAGE_FADE_TIME, time: MESSAGE_FADE_TIME,
transition: 'easeOutQuad', transition: 'easeOutQuad',
onComplete: hideMessage }); onComplete: hideMessage
});
} }
let SIZES = [ let SIZES = [
@@ -62,7 +64,9 @@ let SIZES = [
[800, 450], [800, 450],
[1024, 576], [1024, 576],
[1200, 675], [1200, 675],
[1600, 900] [1600, 900],
[360, 654], // Phone portrait maximized
[720, 360] // Phone landscape fullscreen
]; ];
function cycleScreenshotSizes(display, window, binding) { function cycleScreenshotSizes(display, window, binding) {
@@ -72,8 +76,8 @@ function cycleScreenshotSizes(display, window, binding) {
let backwards = (modifiers & Meta.VirtualModifier.SHIFT_MASK) != 0; let backwards = (modifiers & Meta.VirtualModifier.SHIFT_MASK) != 0;
// Unmaximize first // Unmaximize first
if (window.maximized_horizontally || window.maximizedVertically) if (window.get_maximized() != 0)
window.unmaximize(Meta.MaximizeFlags.HORIZONTAL | Meta.MaximizeFlags.VERTICAL); window.unmaximize(Meta.MaximizeFlags.BOTH);
let workArea = window.get_work_area_current_monitor(); let workArea = window.get_work_area_current_monitor();
let outerRect = window.get_frame_rect(); let outerRect = window.get_frame_rect();
@@ -134,17 +138,18 @@ function cycleScreenshotSizes(display, window, binding) {
} }
function enable() { function enable() {
Main.wm.addKeybinding('cycle-screenshot-sizes', Main.wm.addKeybinding(
ExtensionUtils.getSettings(), 'cycle-screenshot-sizes',
Meta.KeyBindingFlags.PER_WINDOW, ExtensionUtils.getSettings(),
Shell.ActionMode.NORMAL, Meta.KeyBindingFlags.PER_WINDOW,
cycleScreenshotSizes); Shell.ActionMode.NORMAL,
Main.wm.addKeybinding('cycle-screenshot-sizes-backward', cycleScreenshotSizes);
ExtensionUtils.getSettings(), Main.wm.addKeybinding(
Meta.KeyBindingFlags.PER_WINDOW | 'cycle-screenshot-sizes-backward',
Meta.KeyBindingFlags.IS_REVERSED, ExtensionUtils.getSettings(),
Shell.ActionMode.NORMAL, Meta.KeyBindingFlags.PER_WINDOW | Meta.KeyBindingFlags.IS_REVERSED,
cycleScreenshotSizes); Shell.ActionMode.NORMAL,
cycleScreenshotSizes);
} }
function disable() { function disable() {
+18 -32
View File
@@ -30,43 +30,29 @@ class ThemeManager {
} }
_changeTheme() { _changeTheme() {
let _stylesheet = null; let stylesheet = null;
let _themeName = this._settings.get_string(SETTINGS_KEY); let themeName = this._settings.get_string(SETTINGS_KEY);
if (_themeName) { if (themeName) {
let _userCssStylesheetCompat = GLib.build_filenamev([ let stylesheetPaths = [
GLib.get_home_dir(), '.themes', _themeName, 'gnome-shell', 'gnome-shell.css' [GLib.get_home_dir(), '.themes'],
]); [GLib.get_user_data_dir(), 'themes'],
let fileCompat = Gio.file_new_for_path(_userCssStylesheetCompat); ...GLib.get_system_data_dirs().map(dir => [dir, 'themes'])
let _userCssStylesheet = GLib.build_filenamev([ ].map(themeDir => GLib.build_filenamev([
GLib.get_user_data_dir(), 'themes', _themeName, 'gnome-shell', 'gnome-shell.css' ...themeDir, themeName, 'gnome-shell', 'gnome-shell.css'
]); ]));
let file = Gio.file_new_for_path(_userCssStylesheet);
if (fileCompat.query_exists(null)) stylesheet = stylesheetPaths.find(path => {
_stylesheet = _userCssStylesheetCompat; let file = Gio.file_new_for_path(path);
else if (file.query_exists(null)) return file.query_exists(null);
_stylesheet = _userCssStylesheet; });
else {
let sysdirs = GLib.get_system_data_dirs();
sysdirs.unshift(GLib.get_user_data_dir());
for (let i = 0; i < sysdirs.length; i++) {
_userCssStylesheet = GLib.build_filenamev([
sysdirs[i], 'themes', _themeName, 'gnome-shell', 'gnome-shell.css'
]);
let file = Gio.file_new_for_path(_userCssStylesheet);
if (file.query_exists(null)) {
_stylesheet = _userCssStylesheet;
break;
}
}
}
} }
if (_stylesheet) if (stylesheet)
global.log(`loading user theme: ${_stylesheet}`); global.log(`loading user theme: ${stylesheet}`);
else else
global.log('loading default theme (Adwaita)'); global.log('loading default theme (Adwaita)');
Main.setThemeStylesheet(_stylesheet); Main.setThemeStylesheet(stylesheet);
Main.loadTheme(); Main.loadTheme();
} }
} }
+191 -192
View File
@@ -72,32 +72,28 @@ class WindowContextMenu extends PopupMenu.PopupMenu {
}); });
this.addMenuItem(this._minimizeItem); this.addMenuItem(this._minimizeItem);
this._notifyMinimizedId = this._notifyMinimizedId = this._metaWindow.connect(
this._metaWindow.connect('notify::minimized', 'notify::minimized', this._updateMinimizeItem.bind(this));
this._updateMinimizeItem.bind(this));
this._updateMinimizeItem(); this._updateMinimizeItem();
this._maximizeItem = new PopupMenu.PopupMenuItem(''); this._maximizeItem = new PopupMenu.PopupMenuItem('');
this._maximizeItem.connect('activate', () => { this._maximizeItem.connect('activate', () => {
if (this._metaWindow.maximized_vertically && if (this._metaWindow.get_maximized() == Meta.MaximizeFlags.BOTH)
this._metaWindow.maximized_horizontally) this._metaWindow.unmaximize(Meta.MaximizeFlags.BOTH);
this._metaWindow.unmaximize(Meta.MaximizeFlags.HORIZONTAL |
Meta.MaximizeFlags.VERTICAL);
else else
this._metaWindow.maximize(Meta.MaximizeFlags.HORIZONTAL | this._metaWindow.maximize(Meta.MaximizeFlags.BOTH);
Meta.MaximizeFlags.VERTICAL);
}); });
this.addMenuItem(this._maximizeItem); this.addMenuItem(this._maximizeItem);
this._notifyMaximizedHId = this._notifyMaximizedHId = this._metaWindow.connect(
this._metaWindow.connect('notify::maximized-horizontally', 'notify::maximized-horizontally',
this._updateMaximizeItem.bind(this)); this._updateMaximizeItem.bind(this));
this._notifyMaximizedVId = this._notifyMaximizedVId = this._metaWindow.connect(
this._metaWindow.connect('notify::maximized-vertically', 'notify::maximized-vertically',
this._updateMaximizeItem.bind(this)); this._updateMaximizeItem.bind(this));
this._updateMaximizeItem(); this._updateMaximizeItem();
this._closeItem = new PopupMenu.PopupMenuItem(_("Close")); this._closeItem = new PopupMenu.PopupMenuItem(_('Close'));
this._closeItem.connect('activate', () => { this._closeItem.connect('activate', () => {
this._metaWindow.delete(global.get_current_time()); this._metaWindow.delete(global.get_current_time());
}); });
@@ -116,15 +112,15 @@ class WindowContextMenu extends PopupMenu.PopupMenu {
} }
_updateMinimizeItem() { _updateMinimizeItem() {
this._minimizeItem.label.text = this._metaWindow.minimized ? _("Unminimize") this._minimizeItem.label.text = this._metaWindow.minimized ?
: _("Minimize"); _('Unminimize') : _('Minimize');
} }
_updateMaximizeItem() { _updateMaximizeItem() {
let maximized = this._metaWindow.maximized_vertically && let maximized = this._metaWindow.maximized_vertically &&
this._metaWindow.maximized_horizontally; this._metaWindow.maximized_horizontally;
this._maximizeItem.label.text = maximized ? _("Unmaximize") this._maximizeItem.label.text = maximized ?
: _("Maximize"); _('Unmaximize') : _('Maximize');
} }
_onDestroy() { _onDestroy() {
@@ -137,8 +133,11 @@ class WindowContextMenu extends PopupMenu.PopupMenu {
class WindowTitle { class WindowTitle {
constructor(metaWindow) { constructor(metaWindow) {
this._metaWindow = metaWindow; this._metaWindow = metaWindow;
this.actor = new St.BoxLayout({ style_class: 'window-button-box', this.actor = new St.BoxLayout({
x_expand: true, y_expand: true }); style_class: 'window-button-box',
x_expand: true,
y_expand: true
});
this._icon = new St.Bin({ style_class: 'window-button-icon' }); this._icon = new St.Bin({ style_class: 'window-button-icon' });
this.actor.add(this._icon); this.actor.add(this._icon);
@@ -146,25 +145,20 @@ class WindowTitle {
this.actor.add(this.label_actor); this.actor.add(this.label_actor);
this._textureCache = St.TextureCache.get_default(); this._textureCache = St.TextureCache.get_default();
this._iconThemeChangedId = this._iconThemeChangedId = this._textureCache.connect(
this._textureCache.connect('icon-theme-changed', 'icon-theme-changed', this._updateIcon.bind(this));
this._updateIcon.bind(this)); this._notifyWmClass = this._metaWindow.connect_after(
this._notifyWmClass = 'notify::wm-class', this._updateIcon.bind(this));
this._metaWindow.connect_after('notify::wm-class', this._notifyAppId = this._metaWindow.connect_after(
this._updateIcon.bind(this)); 'notify::gtk-application-id', this._updateIcon.bind(this));
this._notifyAppId =
this._metaWindow.connect_after('notify::gtk-application-id',
this._updateIcon.bind(this));
this._updateIcon(); this._updateIcon();
this.actor.connect('destroy', this._onDestroy.bind(this)); this.actor.connect('destroy', this._onDestroy.bind(this));
this._notifyTitleId = this._notifyTitleId = this._metaWindow.connect(
this._metaWindow.connect('notify::title', 'notify::title', this._updateTitle.bind(this));
this._updateTitle.bind(this)); this._notifyMinimizedId = this._metaWindow.connect(
this._notifyMinimizedId = 'notify::minimized', this._minimizedChanged.bind(this));
this._metaWindow.connect('notify::minimized',
this._minimizedChanged.bind(this));
this._minimizedChanged(); this._minimizedChanged();
} }
@@ -188,8 +182,10 @@ class WindowTitle {
if (app) if (app)
this._icon.child = app.create_icon_texture(ICON_TEXTURE_SIZE); this._icon.child = app.create_icon_texture(ICON_TEXTURE_SIZE);
else else
this._icon.child = new St.Icon({ icon_name: 'icon-missing', this._icon.child = new St.Icon({
icon_size: ICON_TEXTURE_SIZE }); icon_name: 'icon-missing',
icon_size: ICON_TEXTURE_SIZE
});
} }
_onDestroy() { _onDestroy() {
@@ -210,33 +206,33 @@ class BaseButton {
this._perMonitor = perMonitor; this._perMonitor = perMonitor;
this._monitorIndex = monitorIndex; this._monitorIndex = monitorIndex;
this.actor = new St.Button({ style_class: 'window-button', this.actor = new St.Button({
x_fill: true, style_class: 'window-button',
y_fill: true, x_fill: true,
can_focus: true, y_fill: true,
button_mask: St.ButtonMask.ONE | can_focus: true,
St.ButtonMask.THREE }); button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE
});
this.actor._delegate = this; this.actor._delegate = this;
this.actor.connect('allocation-changed', this.actor.connect('allocation-changed',
this._updateIconGeometry.bind(this)); this._updateIconGeometry.bind(this));
this.actor.connect('clicked', this._onClicked.bind(this)); this.actor.connect('clicked', this._onClicked.bind(this));
this.actor.connect('destroy', this._onDestroy.bind(this)); this.actor.connect('destroy', this._onDestroy.bind(this));
this.actor.connect('popup-menu', this._onPopupMenu.bind(this)); this.actor.connect('popup-menu', this._onPopupMenu.bind(this));
this._contextMenuManager = new PopupMenu.PopupMenuManager(this); this._contextMenuManager = new PopupMenu.PopupMenuManager(this);
this._switchWorkspaceId = this._switchWorkspaceId = global.window_manager.connect(
global.window_manager.connect('switch-workspace', 'switch-workspace', this._updateVisibility.bind(this));
this._updateVisibility.bind(this));
if (this._perMonitor) { if (this._perMonitor) {
this._windowEnteredMonitorId = this._windowEnteredMonitorId = global.display.connect(
global.display.connect('window-entered-monitor', 'window-entered-monitor',
this._windowEnteredOrLeftMonitor.bind(this)); this._windowEnteredOrLeftMonitor.bind(this));
this._windowLeftMonitorId = this._windowLeftMonitorId = global.display.connect(
global.display.connect('window-left-monitor', 'window-left-monitor',
this._windowEnteredOrLeftMonitor.bind(this)); this._windowEnteredOrLeftMonitor.bind(this));
} }
} }
@@ -336,13 +332,11 @@ class WindowButton extends BaseButton {
this._contextMenuManager.addMenu(this._contextMenu); this._contextMenuManager.addMenu(this._contextMenu);
Main.uiGroup.add_actor(this._contextMenu.actor); Main.uiGroup.add_actor(this._contextMenu.actor);
this._workspaceChangedId = this._workspaceChangedId = this.metaWindow.connect(
this.metaWindow.connect('workspace-changed', 'workspace-changed', this._updateVisibility.bind(this));
this._updateVisibility.bind(this));
this._notifyFocusId = this._notifyFocusId = global.display.connect(
global.display.connect('notify::focus-window', 'notify::focus-window', this._updateStyle.bind(this));
this._updateStyle.bind(this));
this._updateStyle(); this._updateStyle();
} }
@@ -399,37 +393,35 @@ class AppContextMenu extends PopupMenu.PopupMenu {
this._appButton = appButton; this._appButton = appButton;
this._minimizeItem = new PopupMenu.PopupMenuItem(_("Minimize all")); this._minimizeItem = new PopupMenu.PopupMenuItem(_('Minimize all'));
this._minimizeItem.connect('activate', () => { this._minimizeItem.connect('activate', () => {
this._appButton.getWindowList().forEach(w => { w.minimize(); }); this._appButton.getWindowList().forEach(w => w.minimize());
}); });
this.addMenuItem(this._minimizeItem); this.addMenuItem(this._minimizeItem);
this._unminimizeItem = new PopupMenu.PopupMenuItem(_("Unminimize all")); this._unminimizeItem = new PopupMenu.PopupMenuItem(_('Unminimize all'));
this._unminimizeItem.connect('activate', () => { this._unminimizeItem.connect('activate', () => {
this._appButton.getWindowList().forEach(w => { w.unminimize(); }); this._appButton.getWindowList().forEach(w => w.unminimize());
}); });
this.addMenuItem(this._unminimizeItem); this.addMenuItem(this._unminimizeItem);
this._maximizeItem = new PopupMenu.PopupMenuItem(_("Maximize all")); this._maximizeItem = new PopupMenu.PopupMenuItem(_('Maximize all'));
this._maximizeItem.connect('activate', () => { this._maximizeItem.connect('activate', () => {
this._appButton.getWindowList().forEach(w => { this._appButton.getWindowList().forEach(w => {
w.maximize(Meta.MaximizeFlags.HORIZONTAL | w.maximize(Meta.MaximizeFlags.BOTH);
Meta.MaximizeFlags.VERTICAL);
}); });
}); });
this.addMenuItem(this._maximizeItem); this.addMenuItem(this._maximizeItem);
this._unmaximizeItem = new PopupMenu.PopupMenuItem(_("Unmaximize all")); this._unmaximizeItem = new PopupMenu.PopupMenuItem(_('Unmaximize all'));
this._unmaximizeItem.connect('activate', () => { this._unmaximizeItem.connect('activate', () => {
this._appButton.getWindowList().forEach(w => { this._appButton.getWindowList().forEach(w => {
w.unmaximize(Meta.MaximizeFlags.HORIZONTAL | w.unmaximize(Meta.MaximizeFlags.BOTH);
Meta.MaximizeFlags.VERTICAL);
}); });
}); });
this.addMenuItem(this._unmaximizeItem); this.addMenuItem(this._unmaximizeItem);
let item = new PopupMenu.PopupMenuItem(_("Close all")); let item = new PopupMenu.PopupMenuItem(_('Close all'));
item.connect('activate', () => { item.connect('activate', () => {
this._appButton.getWindowList().forEach(w => { this._appButton.getWindowList().forEach(w => {
w.delete(global.get_current_time()); w.delete(global.get_current_time());
@@ -443,10 +435,10 @@ class AppContextMenu extends PopupMenu.PopupMenu {
this._minimizeItem.actor.visible = windows.some(w => !w.minimized); this._minimizeItem.actor.visible = windows.some(w => !w.minimized);
this._unminimizeItem.actor.visible = windows.some(w => w.minimized); this._unminimizeItem.actor.visible = windows.some(w => w.minimized);
this._maximizeItem.actor.visible = windows.some(w => { this._maximizeItem.actor.visible = windows.some(w => {
return !(w.maximized_horizontally && w.maximized_vertically); return w.get_maximized() != Meta.MaximizeFlags.BOTH;
}); });
this._unmaximizeItem.actor.visible = windows.some(w => { this._unmaximizeItem.actor.visible = windows.some(w => {
return w.maximized_horizontally && w.maximized_vertically; return w.get_maximized() == Meta.MaximizeFlags.BOTH;
}); });
super.open(animate); super.open(animate);
@@ -463,21 +455,29 @@ class AppButton extends BaseButton {
let stack = new St.Widget({ layout_manager: new Clutter.BinLayout() }); let stack = new St.Widget({ layout_manager: new Clutter.BinLayout() });
this.actor.set_child(stack); this.actor.set_child(stack);
this._singleWindowTitle = new St.Bin({ x_expand: true, this._singleWindowTitle = new St.Bin({
y_fill: true, x_expand: true,
x_align: St.Align.START }); y_fill: true,
x_align: St.Align.START
});
stack.add_actor(this._singleWindowTitle); stack.add_actor(this._singleWindowTitle);
this._multiWindowTitle = new St.BoxLayout({ style_class: 'window-button-box', this._multiWindowTitle = new St.BoxLayout({
x_expand: true }); style_class: 'window-button-box',
x_expand: true
});
stack.add_actor(this._multiWindowTitle); stack.add_actor(this._multiWindowTitle);
this._icon = new St.Bin({ style_class: 'window-button-icon', this._icon = new St.Bin({
child: app.create_icon_texture(ICON_TEXTURE_SIZE) }); style_class: 'window-button-icon',
child: app.create_icon_texture(ICON_TEXTURE_SIZE)
});
this._multiWindowTitle.add(this._icon); this._multiWindowTitle.add(this._icon);
let label = new St.Label({ text: app.get_name(), let label = new St.Label({
y_align: Clutter.ActorAlign.CENTER }); text: app.get_name(),
y_align: Clutter.ActorAlign.CENTER
});
this._multiWindowTitle.add(label); this._multiWindowTitle.add(label);
this._multiWindowTitle.label_actor = label; this._multiWindowTitle.label_actor = label;
@@ -500,15 +500,13 @@ class AppButton extends BaseButton {
this._icon.child = app.create_icon_texture(ICON_TEXTURE_SIZE); this._icon.child = app.create_icon_texture(ICON_TEXTURE_SIZE);
}); });
this._windowsChangedId = this._windowsChangedId = this.app.connect(
this.app.connect('windows-changed', 'windows-changed', this._windowsChanged.bind(this));
this._windowsChanged.bind(this));
this._windowsChanged(); this._windowsChanged();
this._windowTracker = Shell.WindowTracker.get_default(); this._windowTracker = Shell.WindowTracker.get_default();
this._notifyFocusId = this._notifyFocusId = this._windowTracker.connect(
this._windowTracker.connect('notify::focus-app', 'notify::focus-app', this._updateStyle.bind(this));
this._updateStyle.bind(this));
this._updateStyle(); this._updateStyle();
} }
@@ -538,7 +536,7 @@ class AppButton extends BaseButton {
let rect = this._getIconGeometry(); let rect = this._getIconGeometry();
let windows = this.app.get_windows(); let windows = this.app.get_windows();
windows.forEach(w => { w.set_icon_geometry(rect); }); windows.forEach(w => w.set_icon_geometry(rect));
} }
getWindowList() { getWindowList() {
@@ -556,8 +554,8 @@ class AppButton extends BaseButton {
this._windowTitle = new WindowTitle(this.metaWindow); this._windowTitle = new WindowTitle(this.metaWindow);
this._singleWindowTitle.child = this._windowTitle.actor; this._singleWindowTitle.child = this._windowTitle.actor;
this._windowContextMenu = new WindowContextMenu(this.actor, this.metaWindow); this._windowContextMenu = new WindowContextMenu(this.actor, this.metaWindow);
this._windowContextMenu.connect('open-state-changed', this._windowContextMenu.connect(
_onMenuStateChanged); 'open-state-changed', _onMenuStateChanged);
Main.uiGroup.add_actor(this._windowContextMenu.actor); Main.uiGroup.add_actor(this._windowContextMenu.actor);
this._windowContextMenu.actor.hide(); this._windowContextMenu.actor.hide();
this._contextMenuManager.addMenu(this._windowContextMenu); this._contextMenuManager.addMenu(this._windowContextMenu);
@@ -638,38 +636,43 @@ class AppButton extends BaseButton {
let WorkspaceIndicator = GObject.registerClass( let WorkspaceIndicator = GObject.registerClass(
class WorkspaceIndicator extends PanelMenu.Button { class WorkspaceIndicator extends PanelMenu.Button {
_init() { _init() {
super._init(0.0, _("Workspace Indicator"), true); super._init(0.0, _('Workspace Indicator'), true);
this.setMenu(new PopupMenu.PopupMenu(this, 0.0, St.Side.BOTTOM)); this.setMenu(new PopupMenu.PopupMenu(this, 0.0, St.Side.BOTTOM));
this.add_style_class_name('window-list-workspace-indicator'); this.add_style_class_name('window-list-workspace-indicator');
this.menu.actor.remove_style_class_name('panel-menu'); this.menu.actor.remove_style_class_name('panel-menu');
let container = new St.Widget({ layout_manager: new Clutter.BinLayout(), let container = new St.Widget({
x_expand: true, y_expand: true }); layout_manager: new Clutter.BinLayout(),
x_expand: true,
y_expand: true
});
this.add_actor(container); this.add_actor(container);
let workspaceManager = global.workspace_manager; let workspaceManager = global.workspace_manager;
this._currentWorkspace = workspaceManager.get_active_workspace().index(); this._currentWorkspace = workspaceManager.get_active_workspace().index();
this.statusLabel = new St.Label({ text: this._getStatusText(), this.statusLabel = new St.Label({
x_align: Clutter.ActorAlign.CENTER, text: this._getStatusText(),
y_align: Clutter.ActorAlign.CENTER }); x_align: Clutter.ActorAlign.CENTER,
y_align: Clutter.ActorAlign.CENTER
});
container.add_actor(this.statusLabel); container.add_actor(this.statusLabel);
this.workspacesItems = []; this.workspacesItems = [];
this._workspaceManagerSignals = []; this._workspaceManagerSignals = [
this._workspaceManagerSignals.push(workspaceManager.connect('notify::n-workspaces', workspaceManager.connect('notify::n-workspaces',
this._updateMenu.bind(this))); this._updateMenu.bind(this)),
this._workspaceManagerSignals.push(workspaceManager.connect_after('workspace-switched', workspaceManager.connect_after('workspace-switched',
this._updateIndicator.bind(this))); this._updateIndicator.bind(this))
];
this.connect('scroll-event', this._onScrollEvent.bind(this)); this.connect('scroll-event', this._onScrollEvent.bind(this));
this._updateMenu(); this._updateMenu();
this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.wm.preferences' }); this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.wm.preferences' });
this._settingsChangedId = this._settingsChangedId = this._settings.connect(
this._settings.connect('changed::workspace-names', 'changed::workspace-names', this._updateMenu.bind(this));
this._updateMenu.bind(this));
} }
_onDestroy() { _onDestroy() {
@@ -761,23 +764,27 @@ class WindowList {
this._perMonitor = perMonitor; this._perMonitor = perMonitor;
this._monitor = monitor; this._monitor = monitor;
this.actor = new St.Widget({ name: 'panel', this.actor = new St.Widget({
style_class: 'bottom-panel solid', name: 'panel',
reactive: true, style_class: 'bottom-panel solid',
track_hover: true, reactive: true,
layout_manager: new Clutter.BinLayout() }); track_hover: true,
layout_manager: new Clutter.BinLayout()
});
this.actor.connect('destroy', this._onDestroy.bind(this)); this.actor.connect('destroy', this._onDestroy.bind(this));
let box = new St.BoxLayout({ x_expand: true, y_expand: true }); let box = new St.BoxLayout({ x_expand: true, y_expand: true });
this.actor.add_actor(box); this.actor.add_actor(box);
let layout = new Clutter.BoxLayout({ homogeneous: true }); let layout = new Clutter.BoxLayout({ homogeneous: true });
this._windowList = new St.Widget({ style_class: 'window-list', this._windowList = new St.Widget({
reactive: true, style_class: 'window-list',
layout_manager: layout, reactive: true,
x_align: Clutter.ActorAlign.START, layout_manager: layout,
x_expand: true, x_align: Clutter.ActorAlign.START,
y_expand: true }); x_expand: true,
y_expand: true
});
box.add(this._windowList, { expand: true }); box.add(this._windowList, { expand: true });
this._windowList.connect('style-changed', () => { this._windowList.connect('style-changed', () => {
@@ -794,80 +801,77 @@ class WindowList {
indicatorsBox.add(this._workspaceIndicator.container, { expand: false, y_fill: true }); indicatorsBox.add(this._workspaceIndicator.container, { expand: false, y_fill: true });
this._mutterSettings = new Gio.Settings({ schema_id: 'org.gnome.mutter' }); this._mutterSettings = new Gio.Settings({ schema_id: 'org.gnome.mutter' });
this._workspacesOnlyOnPrimaryChangedId = this._workspacesOnlyOnPrimaryChangedId = this._mutterSettings.connect(
this._mutterSettings.connect('changed::workspaces-only-on-primary', 'changed::workspaces-only-on-primary',
this._updateWorkspaceIndicatorVisibility.bind(this)); this._updateWorkspaceIndicatorVisibility.bind(this));
this._dynamicWorkspacesChangedId = this._dynamicWorkspacesChangedId = this._mutterSettings.connect(
this._mutterSettings.connect('changed::dynamic-workspaces', 'changed::dynamic-workspaces',
this._updateWorkspaceIndicatorVisibility.bind(this)); this._updateWorkspaceIndicatorVisibility.bind(this));
this._updateWorkspaceIndicatorVisibility(); this._updateWorkspaceIndicatorVisibility();
this._menuManager = new PopupMenu.PopupMenuManager(this); this._menuManager = new PopupMenu.PopupMenuManager(this);
this._menuManager.addMenu(this._workspaceIndicator.menu); this._menuManager.addMenu(this._workspaceIndicator.menu);
Main.layoutManager.addChrome(this.actor, { affectsStruts: true, Main.layoutManager.addChrome(this.actor, {
trackFullscreen: true }); affectsStruts: true,
trackFullscreen: true
});
Main.uiGroup.set_child_above_sibling(this.actor, Main.layoutManager.panelBox); Main.uiGroup.set_child_above_sibling(this.actor, Main.layoutManager.panelBox);
Main.ctrlAltTabManager.addGroup(this.actor, _("Window List"), 'start-here-symbolic'); Main.ctrlAltTabManager.addGroup(this.actor, _('Window List'), 'start-here-symbolic');
this.actor.width = this._monitor.width; this.actor.width = this._monitor.width;
this.actor.connect('notify::height', this._updatePosition.bind(this)); this.actor.connect('notify::height', this._updatePosition.bind(this));
this._updatePosition(); this._updatePosition();
this._appSystem = Shell.AppSystem.get_default(); this._appSystem = Shell.AppSystem.get_default();
this._appStateChangedId = this._appStateChangedId = this._appSystem.connect(
this._appSystem.connect('app-state-changed', 'app-state-changed', this._onAppStateChanged.bind(this));
this._onAppStateChanged.bind(this));
this._keyboardVisiblechangedId = this._keyboardVisiblechangedId = Main.layoutManager.connect(
Main.layoutManager.connect('keyboard-visible-changed', 'keyboard-visible-changed',
(o, state) => { (o, state) => {
Main.layoutManager.keyboardBox.visible = state; Main.layoutManager.keyboardBox.visible = state;
let keyboardBox = Main.layoutManager.keyboardBox; let keyboardBox = Main.layoutManager.keyboardBox;
keyboardBox.visible = state; keyboardBox.visible = state;
if (state) if (state) {
Main.uiGroup.set_child_above_sibling(this.actor, keyboardBox); Main.uiGroup.set_child_above_sibling(
else this.actor, keyboardBox);
Main.uiGroup.set_child_above_sibling(this.actor, } else {
Main.layoutManager.panelBox); Main.uiGroup.set_child_above_sibling(
this._updateKeyboardAnchor(); this.actor, Main.layoutManager.panelBox);
}); }
this._updateKeyboardAnchor();
});
let workspaceManager = global.workspace_manager; let workspaceManager = global.workspace_manager;
this._workspaceSignals = new Map(); this._workspaceSignals = new Map();
this._nWorkspacesChangedId = this._nWorkspacesChangedId = workspaceManager.connect(
workspaceManager.connect('notify::n-workspaces', 'notify::n-workspaces', this._onWorkspacesChanged.bind(this));
this._onWorkspacesChanged.bind(this));
this._onWorkspacesChanged(); this._onWorkspacesChanged();
this._switchWorkspaceId = this._switchWorkspaceId = global.window_manager.connect(
global.window_manager.connect('switch-workspace', 'switch-workspace', this._checkGrouping.bind(this));
this._checkGrouping.bind(this));
this._overviewShowingId = this._overviewShowingId = Main.overview.connect('showing', () => {
Main.overview.connect('showing', () => { this.actor.hide();
this.actor.hide(); this._updateKeyboardAnchor();
this._updateKeyboardAnchor(); });
});
this._overviewHidingId = this._overviewHidingId = Main.overview.connect('hiding', () => {
Main.overview.connect('hiding', () => { this.actor.visible = !Main.layoutManager.primaryMonitor.inFullscreen;
this.actor.visible = !Main.layoutManager.primaryMonitor.inFullscreen; this._updateKeyboardAnchor();
this._updateKeyboardAnchor(); });
});
this._fullscreenChangedId = this._fullscreenChangedId =
global.display.connect('in-fullscreen-changed', () => { global.display.connect('in-fullscreen-changed', () => {
this._updateKeyboardAnchor(); this._updateKeyboardAnchor();
}); });
this._dragBeginId = this._dragBeginId = Main.xdndHandler.connect('drag-begin',
Main.xdndHandler.connect('drag-begin', this._onDragBegin.bind(this));
this._onDragBegin.bind(this)); this._dragEndId = Main.xdndHandler.connect('drag-end',
this._dragEndId = this._onDragEnd.bind(this));
Main.xdndHandler.connect('drag-end',
this._onDragEnd.bind(this));
this._dragMonitor = { this._dragMonitor = {
dragMotion: this._onDragMotion.bind(this) dragMotion: this._onDragMotion.bind(this)
}; };
@@ -876,9 +880,8 @@ class WindowList {
this._dndWindow = null; this._dndWindow = null;
this._settings = ExtensionUtils.getSettings(); this._settings = ExtensionUtils.getSettings();
this._groupingModeChangedId = this._groupingModeChangedId = this._settings.connect(
this._settings.connect('changed::grouping-mode', 'changed::grouping-mode', this._groupingModeChanged.bind(this));
this._groupingModeChanged.bind(this));
this._grouped = undefined; this._grouped = undefined;
this._groupingModeChanged(); this._groupingModeChanged();
} }
@@ -902,8 +905,9 @@ class WindowList {
} }
_updatePosition() { _updatePosition() {
this.actor.set_position(this._monitor.x, this.actor.set_position(
this._monitor.y + this._monitor.height - this.actor.height); this._monitor.x,
this._monitor.y + this._monitor.height - this.actor.height);
} }
_updateWorkspaceIndicatorVisibility() { _updateWorkspaceIndicatorVisibility() {
@@ -989,8 +993,8 @@ class WindowList {
if (!Main.keyboard.actor) if (!Main.keyboard.actor)
return; return;
let anchorY = Main.overview.visible ? 0 : this.actor.height; let translationY = Main.overview.visible ? 0 : this.actor.height;
Main.keyboard.actor.anchor_y = anchorY; Main.keyboard.actor.translation_y = -translationY;
} }
_onAppStateChanged(appSys, app) { _onAppStateChanged(appSys, app) {
@@ -1006,9 +1010,9 @@ class WindowList {
_addApp(app) { _addApp(app) {
let button = new AppButton(app, this._perMonitor, this._monitor.index); let button = new AppButton(app, this._perMonitor, this._monitor.index);
this._windowList.layout_manager.pack(button.actor, this._windowList.layout_manager.pack(button.actor,
true, true, true, true, true, true,
Clutter.BoxAlignment.START, Clutter.BoxAlignment.START,
Clutter.BoxAlignment.START); Clutter.BoxAlignment.START);
} }
_removeApp(app) { _removeApp(app) {
@@ -1034,9 +1038,9 @@ class WindowList {
let button = new WindowButton(win, this._perMonitor, this._monitor.index); let button = new WindowButton(win, this._perMonitor, this._monitor.index);
this._windowList.layout_manager.pack(button.actor, this._windowList.layout_manager.pack(button.actor,
true, true, true, true, true, true,
Clutter.BoxAlignment.START, Clutter.BoxAlignment.START,
Clutter.BoxAlignment.START); Clutter.BoxAlignment.START);
} }
_onWindowRemoved(ws, win) { _onWindowRemoved(ws, win) {
@@ -1065,12 +1069,10 @@ class WindowList {
continue; continue;
let signals = { windowAddedId: 0, windowRemovedId: 0 }; let signals = { windowAddedId: 0, windowRemovedId: 0 };
signals._windowAddedId = signals._windowAddedId = workspace.connect_after(
workspace.connect_after('window-added', 'window-added', this._onWindowAdded.bind(this));
this._onWindowAdded.bind(this)); signals._windowRemovedId = workspace.connect(
signals._windowRemovedId = 'window-removed', this._onWindowRemoved.bind(this));
workspace.connect('window-removed',
this._onWindowRemoved.bind(this));
this._workspaceSignals.set(workspace, signals); this._workspaceSignals.set(workspace, signals);
} }
@@ -1118,8 +1120,7 @@ class WindowList {
this._dndWindow = hoveredWindow; this._dndWindow = hoveredWindow;
this._dndTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, this._dndTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
DND_ACTIVATE_TIMEOUT, DND_ACTIVATE_TIMEOUT, this._activateWindow.bind(this));
this._activateWindow.bind(this));
return DND.DragMotionResult.CONTINUE; return DND.DragMotionResult.CONTINUE;
} }
@@ -1193,19 +1194,17 @@ class Extension {
this._windowLists = []; this._windowLists = [];
this._settings = ExtensionUtils.getSettings(); this._settings = ExtensionUtils.getSettings();
this._showOnAllMonitorsChangedId = this._showOnAllMonitorsChangedId = this._settings.connect(
this._settings.connect('changed::show-on-all-monitors', 'changed::show-on-all-monitors', this._buildWindowLists.bind(this));
this._buildWindowLists.bind(this));
this._monitorsChangedId = this._monitorsChangedId = Main.layoutManager.connect(
Main.layoutManager.connect('monitors-changed', 'monitors-changed', this._buildWindowLists.bind(this));
this._buildWindowLists.bind(this));
this._buildWindowLists(); this._buildWindowLists();
} }
_buildWindowLists() { _buildWindowLists() {
this._windowLists.forEach(list => { list.actor.destroy(); }); this._windowLists.forEach(list => list.actor.destroy());
this._windowLists = []; this._windowLists = [];
let showOnAllMonitors = this._settings.get_boolean('show-on-all-monitors'); let showOnAllMonitors = this._settings.get_boolean('show-on-all-monitors');
+22 -14
View File
@@ -22,16 +22,20 @@ class WindowListPrefsWidget extends Gtk.Grid {
this.row_spacing = 6; this.row_spacing = 6;
this.orientation = Gtk.Orientation.VERTICAL; this.orientation = Gtk.Orientation.VERTICAL;
let groupingLabel = '<b>%s</b>'.format(_("Window Grouping")); let groupingLabel = '<b>%s</b>'.format(_('Window Grouping'));
this.add(new Gtk.Label({ label: groupingLabel, use_markup: true, this.add(new Gtk.Label({
halign: Gtk.Align.START })); label: groupingLabel, use_markup: true,
halign: Gtk.Align.START
}));
let align = new Gtk.Alignment({ left_padding: 12 }); let align = new Gtk.Alignment({ left_padding: 12 });
this.add(align); this.add(align);
let grid = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL, let grid = new Gtk.Grid({
row_spacing: 6, orientation: Gtk.Orientation.VERTICAL,
column_spacing: 6 }); row_spacing: 6,
column_spacing: 6
});
align.add(grid); align.add(grid);
this._settings = ExtensionUtils.getSettings(); this._settings = ExtensionUtils.getSettings();
@@ -40,9 +44,9 @@ class WindowListPrefsWidget extends Gtk.Grid {
let modes = range.deep_unpack()[1].deep_unpack(); let modes = range.deep_unpack()[1].deep_unpack();
let modeLabels = { let modeLabels = {
'never': _("Never group windows"), 'never': _('Never group windows'),
'auto': _("Group windows when space is limited"), 'auto': _('Group windows when space is limited'),
'always': _("Always group windows") 'always': _('Always group windows')
}; };
let radio = null; let radio = null;
@@ -54,9 +58,11 @@ class WindowListPrefsWidget extends Gtk.Grid {
continue; continue;
} }
radio = new Gtk.RadioButton({ active: currentMode == mode, radio = new Gtk.RadioButton({
label: label, active: currentMode == mode,
group: radio }); label: label,
group: radio
});
grid.add(radio); grid.add(radio);
radio.connect('toggled', button => { radio.connect('toggled', button => {
@@ -65,8 +71,10 @@ class WindowListPrefsWidget extends Gtk.Grid {
}); });
} }
let check = new Gtk.CheckButton({ label: _("Show on all monitors"), let check = new Gtk.CheckButton({
margin_top: 6 }); label: _('Show on all monitors'),
margin_top: 6
});
this._settings.bind('show-on-all-monitors', check, 'active', Gio.SettingsBindFlags.DEFAULT); this._settings.bind('show-on-all-monitors', check, 'active', Gio.SettingsBindFlags.DEFAULT);
this.add(check); this.add(check);
} }
+104 -126
View File
@@ -1,50 +1,65 @@
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */ /* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
/* exported enable disable */ /* exported init */
const { Clutter, St } = imports.gi; const { Clutter, St } = imports.gi;
const Main = imports.ui.main; const Main = imports.ui.main;
const Workspace = imports.ui.workspace; const Workspace = imports.ui.workspace;
const WorkspacesView = imports.ui.workspacesView; const WorkspacesView = imports.ui.workspacesView;
function injectToFunction(parent, name, func) { var MyWindowOverlay = class extends Workspace.WindowOverlay {
let origin = parent[name]; constructor(windowClone, parentActor) {
parent[name] = function() { super(windowClone, parentActor);
let ret;
ret = origin.apply(this, arguments);
if (ret === undefined)
ret = func.apply(this, arguments);
return ret;
};
return origin;
}
let winInjections, workspaceInjections, workViewInjections, createdActors, connectedSignals; this._id = null;
this._text = new St.Label({
style_class: 'extension-windowsNavigator-window-tooltip',
visible: false
});
parentActor.add_actor(this._text);
}
function resetState() { showTooltip() {
winInjections = {};
workspaceInjections = {};
workViewInjections = {};
createdActors = [];
connectedSignals = [];
}
function enable() {
resetState();
Workspace.WindowOverlay.prototype.showTooltip = function() {
this._text.raise_top(); this._text.raise_top();
this._text.show(); this._text.show();
this._text.text = (this._windowClone.slotId + 1).toString(); this._text.text = (this._windowClone.slotId + 1).toString();
}; }
winInjections['showTooltip'] = undefined;
Workspace.WindowOverlay.prototype.hideTooltip = function() { hideTooltip() {
if (this._text && this._text.visible) if (this._text && this._text.visible)
this._text.hide(); this._text.hide();
}; }
winInjections['hideTooltip'] = undefined;
Workspace.Workspace.prototype.showTooltip = function() { relayout(animate) {
super.relayout(animate);
let [cloneX, cloneY, cloneWidth_, cloneHeight_] = this._windowClone.slot;
let textX = cloneX - 2;
let textY = cloneY - 2;
this._text.set_position(Math.floor(textX) + 5, Math.floor(textY) + 5);
this._text.raise_top();
}
};
var MyWorkspace = class extends Workspace.Workspace {
constructor(metaWorkspace, monitorIndex) {
super(metaWorkspace, monitorIndex);
if (metaWorkspace && metaWorkspace.index() < 9) {
this._tip = new St.Label({
style_class: 'extension-windowsNavigator-window-tooltip',
visible: false
});
this.actor.add_actor(this._tip);
this.actor.connect('notify::scale-x', () => {
this._tip.set_scale(1 / this.actor.scale_x, 1 / this.actor.scale_x);
});
} else
this._tip = null;
}
showTooltip() {
if (this._tip == null || this._actualGeometry == null) if (this._tip == null || this._actualGeometry == null)
return; return;
this._tip.text = (this.metaWorkspace.index() + 1).toString(); this._tip.text = (this.metaWorkspace.index() + 1).toString();
@@ -64,61 +79,74 @@ function enable() {
this._tip.y = area.y; this._tip.y = area.y;
this._tip.show(); this._tip.show();
this._tip.raise_top(); this._tip.raise_top();
}; }
workspaceInjections['showTooltip'] = undefined;
Workspace.Workspace.prototype.hideTooltip = function() { hideTooltip() {
if (this._tip == null) if (this._tip == null)
return; return;
if (!this._tip.get_parent()) if (!this._tip.get_parent())
return; return;
this._tip.hide(); this._tip.hide();
}; }
workspaceInjections['hideTooltip'] = undefined;
Workspace.Workspace.prototype.getWindowWithTooltip = function(id) { getWindowWithTooltip(id) {
for (let i = 0; i < this._windows.length; i++) { for (let i = 0; i < this._windows.length; i++) {
if ((this._windows[i].slotId + 1) == id) if ((this._windows[i].slotId + 1) == id)
return this._windows[i].metaWindow; return this._windows[i].metaWindow;
} }
return null; return null;
}; }
workspaceInjections['getWindowWithTooltip'] = undefined;
Workspace.Workspace.prototype.showWindowsTooltips = function() { showWindowsTooltips() {
for (let i in this._windowOverlays) { for (let i in this._windowOverlays) {
if (this._windowOverlays[i] != null) if (this._windowOverlays[i] != null)
this._windowOverlays[i].showTooltip(); this._windowOverlays[i].showTooltip();
} }
}; }
workspaceInjections['showWindowsTooltips'] = undefined;
Workspace.Workspace.prototype.hideWindowsTooltips = function() { hideWindowsTooltips() {
for (let i in this._windowOverlays) { for (let i in this._windowOverlays) {
if (this._windowOverlays[i] != null) if (this._windowOverlays[i] != null)
this._windowOverlays[i].hideTooltip(); this._windowOverlays[i].hideTooltip();
} }
}; }
workspaceInjections['hideWindowsTooltips'] = undefined; };
WorkspacesView.WorkspacesView.prototype._hideTooltips = function() { var MyWorkspacesView = class extends WorkspacesView.WorkspacesView {
constructor(width, height, x, y, workspaces) {
super(width, height, x, y, workspaces);
this._pickWorkspace = false;
this._pickWindow = false;
this._keyPressEventId =
global.stage.connect('key-press-event', this._onKeyPress.bind(this));
this._keyReleaseEventId =
global.stage.connect('key-release-event', this._onKeyRelease.bind(this));
}
_onDestroy() {
super._onDestroy();
global.stage.disconnect(this._keyPressEventId);
global.stage.disconnect(this._keyReleaseEventId);
}
_hideTooltips() {
if (global.stage.get_key_focus() == global.stage) if (global.stage.get_key_focus() == global.stage)
global.stage.set_key_focus(this._prevFocusActor); global.stage.set_key_focus(this._prevFocusActor);
this._pickWindow = false; this._pickWindow = false;
for (let i = 0; i < this._workspaces.length; i++) for (let i = 0; i < this._workspaces.length; i++)
this._workspaces[i].hideWindowsTooltips(); this._workspaces[i].hideWindowsTooltips();
}; }
workViewInjections['_hideTooltips'] = undefined;
WorkspacesView.WorkspacesView.prototype._hideWorkspacesTooltips = function() { _hideWorkspacesTooltips() {
global.stage.set_key_focus(this._prevFocusActor); global.stage.set_key_focus(this._prevFocusActor);
this._pickWorkspace = false; this._pickWorkspace = false;
for (let i = 0; i < this._workspaces.length; i++) for (let i = 0; i < this._workspaces.length; i++)
this._workspaces[i].hideTooltip(); this._workspaces[i].hideTooltip();
}; }
workViewInjections['_hideWorkspacesTooltips'] = undefined;
WorkspacesView.WorkspacesView.prototype._onKeyRelease = function(s, o) { _onKeyRelease(s, o) {
if (this._pickWindow && if (this._pickWindow &&
(o.get_key_symbol() == Clutter.KEY_Alt_L || (o.get_key_symbol() == Clutter.KEY_Alt_L ||
o.get_key_symbol() == Clutter.KEY_Alt_R)) o.get_key_symbol() == Clutter.KEY_Alt_R))
@@ -127,11 +155,11 @@ function enable() {
(o.get_key_symbol() == Clutter.KEY_Control_L || (o.get_key_symbol() == Clutter.KEY_Control_L ||
o.get_key_symbol() == Clutter.KEY_Control_R)) o.get_key_symbol() == Clutter.KEY_Control_R))
this._hideWorkspacesTooltips(); this._hideWorkspacesTooltips();
}; }
workViewInjections['_onKeyRelease'] = undefined;
WorkspacesView.WorkspacesView.prototype._onKeyPress = function(s, o) { _onKeyPress(s, o) {
if (Main.overview.viewSelector._activePage != Main.overview.viewSelector._workspacesPage) let viewSelector = Main.overview.viewSelector;
if (viewSelector._activePage != viewSelector._workspacesPage)
return false; return false;
let workspaceManager = global.workspace_manager; let workspaceManager = global.workspace_manager;
@@ -208,79 +236,29 @@ function enable() {
return true; return true;
} }
return false; return false;
}; }
workViewInjections['_onKeyPress'] = undefined; };
winInjections['_init'] = injectToFunction(Workspace.WindowOverlay.prototype, '_init', function(windowClone, parentActor) { class Extension {
this._id = null; constructor() {
createdActors.push(this._text = new St.Label({ style_class: 'extension-windowsNavigator-window-tooltip' })); this._origWindowOverlay = Workspace.WindowOverlay;
this._text.hide(); this._origWorkspace = Workspace.Workspace;
parentActor.add_actor(this._text); this._origWorkspacesView = WorkspacesView.WorkspacesView;
}); }
winInjections['relayout'] = injectToFunction(Workspace.WindowOverlay.prototype, 'relayout', function(_animate) { enable() {
let [cloneX, cloneY, cloneWidth_, cloneHeight_] = this._windowClone.slot; Workspace.WindowOverlay = MyWindowOverlay;
Workspace.Workspace = MyWorkspace;
WorkspacesView.WorkspacesView = MyWorkspacesView;
}
let textX = cloneX - 2; disable() {
let textY = cloneY - 2; Workspace.WindowOverlay = this._origWindowOverlay;
this._text.set_position(Math.floor(textX) + 5, Math.floor(textY) + 5); Workspace.Workspace = this._origWorkspace;
this._text.raise_top(); WorkspacesView.WorkspacesView = this._origWorkspacesView;
}); }
workspaceInjections['_init'] = injectToFunction(Workspace.Workspace.prototype, '_init', function(metaWorkspace) {
if (metaWorkspace && metaWorkspace.index() < 9) {
createdActors.push(this._tip = new St.Label({ style_class: 'extension-windowsNavigator-window-tooltip',
visible: false }));
this.actor.add_actor(this._tip);
let signalId = this.actor.connect('notify::scale-x', () => {
this._tip.set_scale(1 / this.actor.scale_x, 1 / this.actor.scale_x);
});
connectedSignals.push({ obj: this.actor, id: signalId });
} else
this._tip = null;
});
workViewInjections['_init'] = injectToFunction(WorkspacesView.WorkspacesView.prototype, '_init', function(_width, _height, _x, _y, _workspaces) {
this._pickWorkspace = false;
this._pickWindow = false;
this._keyPressEventId =
global.stage.connect('key-press-event', this._onKeyPress.bind(this));
this._keyReleaseEventId =
global.stage.connect('key-release-event', this._onKeyRelease.bind(this));
connectedSignals.push({ obj: global.stage, id: this._keyPressEventId });
connectedSignals.push({ obj: global.stage, id: this._keyReleaseEventId });
});
workViewInjections['_onDestroy'] = injectToFunction(WorkspacesView.WorkspacesView.prototype, '_onDestroy', function() {
global.stage.disconnect(this._keyPressEventId);
global.stage.disconnect(this._keyReleaseEventId);
connectedSignals = [];
});
} }
function removeInjection(object, injection, name) { function init() {
if (injection[name] === undefined) return new Extension();
delete object[name];
else
object[name] = injection[name];
}
function disable() {
let i;
for (i in workspaceInjections)
removeInjection(Workspace.Workspace.prototype, workspaceInjections, i);
for (i in winInjections)
removeInjection(Workspace.WindowOverlay.prototype, winInjections, i);
for (i in workViewInjections)
removeInjection(WorkspacesView.WorkspacesView.prototype, workViewInjections, i);
for (i of connectedSignals)
i.obj.disconnect(i.id);
for (i of createdActors)
i.destroy();
resetState();
} }
+16 -13
View File
@@ -18,13 +18,15 @@ const WORKSPACE_KEY = 'workspace-names';
let WorkspaceIndicator = GObject.registerClass( let WorkspaceIndicator = GObject.registerClass(
class WorkspaceIndicator extends PanelMenu.Button { class WorkspaceIndicator extends PanelMenu.Button {
_init() { _init() {
super._init(0.0, _("Workspace Indicator")); super._init(0.0, _('Workspace Indicator'));
let workspaceManager = global.workspace_manager; let workspaceManager = global.workspace_manager;
this._currentWorkspace = workspaceManager.get_active_workspace().index(); this._currentWorkspace = workspaceManager.get_active_workspace().index();
this.statusLabel = new St.Label({ y_align: Clutter.ActorAlign.CENTER, this.statusLabel = new St.Label({
text: this._labelText() }); y_align: Clutter.ActorAlign.CENTER,
text: this._labelText()
});
this.add_actor(this.statusLabel); this.add_actor(this.statusLabel);
@@ -32,13 +34,14 @@ class WorkspaceIndicator extends PanelMenu.Button {
this._workspaceSection = new PopupMenu.PopupMenuSection(); this._workspaceSection = new PopupMenu.PopupMenuSection();
this.menu.addMenuItem(this._workspaceSection); this.menu.addMenuItem(this._workspaceSection);
this._workspaceManagerSignals = []; this._workspaceManagerSignals = [
this._workspaceManagerSignals.push(workspaceManager.connect_after('workspace-added', workspaceManager.connect_after('workspace-added',
this._createWorkspacesSection.bind(this))); this._createWorkspacesSection.bind(this)),
this._workspaceManagerSignals.push(workspaceManager.connect_after('workspace-removed', workspaceManager.connect_after('workspace-removed',
this._createWorkspacesSection.bind(this))); this._createWorkspacesSection.bind(this)),
this._workspaceManagerSignals.push(workspaceManager.connect_after('workspace-switched', workspaceManager.connect_after('workspace-switched',
this._updateIndicator.bind(this))); this._updateIndicator.bind(this))
];
this.connect('scroll-event', this._onScrollEvent.bind(this)); this.connect('scroll-event', this._onScrollEvent.bind(this));
this._createWorkspacesSection(); this._createWorkspacesSection();
@@ -47,9 +50,9 @@ class WorkspaceIndicator extends PanelMenu.Button {
this.statusLabel.add_style_class_name('panel-workspace-indicator'); this.statusLabel.add_style_class_name('panel-workspace-indicator');
this._settings = new Gio.Settings({ schema_id: WORKSPACE_SCHEMA }); this._settings = new Gio.Settings({ schema_id: WORKSPACE_SCHEMA });
this._settingsChangedId = this._settingsChangedId = this._settings.connect(
this._settings.connect(`changed::${WORKSPACE_KEY}`, `changed::${WORKSPACE_KEY}`,
this._createWorkspacesSection.bind(this)); this._createWorkspacesSection.bind(this));
} }
_onDestroy() { _onDestroy() {
+16 -10
View File
@@ -127,22 +127,28 @@ class WorkspaceSettingsWidget extends Gtk.Grid {
this.margin = 12; this.margin = 12;
this.orientation = Gtk.Orientation.VERTICAL; this.orientation = Gtk.Orientation.VERTICAL;
this.add(new Gtk.Label({ label: '<b>%s</b>'.format(_("Workspace Names")), this.add(new Gtk.Label({
use_markup: true, margin_bottom: 6, label: '<b>%s</b>'.format(_('Workspace Names')),
hexpand: true, halign: Gtk.Align.START })); use_markup: true,
margin_bottom: 6,
hexpand: true,
halign: Gtk.Align.START
}));
let scrolled = new Gtk.ScrolledWindow({ shadow_type: Gtk.ShadowType.IN }); let scrolled = new Gtk.ScrolledWindow({ shadow_type: Gtk.ShadowType.IN });
scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
this.add(scrolled); this.add(scrolled);
this._store = new WorkspaceNameModel(); this._store = new WorkspaceNameModel();
this._treeView = new Gtk.TreeView({ model: this._store, this._treeView = new Gtk.TreeView({
headers_visible: false, model: this._store,
reorderable: true, headers_visible: false,
hexpand: true, reorderable: true,
vexpand: true }); hexpand: true,
vexpand: true
});
let column = new Gtk.TreeViewColumn({ title: _("Name") }); let column = new Gtk.TreeViewColumn({ title: _('Name') });
let renderer = new Gtk.CellRendererText({ editable: true }); let renderer = new Gtk.CellRendererText({ editable: true });
renderer.connect('edited', this._cellEdited.bind(this)); renderer.connect('edited', this._cellEdited.bind(this));
column.pack_start(renderer, true); column.pack_start(renderer, true);
@@ -182,7 +188,7 @@ class WorkspaceSettingsWidget extends Gtk.Grid {
let iter = this._store.append(); let iter = this._store.append();
let index = this._store.get_path(iter).get_indices()[0]; let index = this._store.get_path(iter).get_indices()[0];
let label = _("Workspace %d").format(index + 1); let label = _('Workspace %d').format(index + 1);
this._store.set(iter, [this._store.Columns.LABEL], [label]); this._store.set(iter, [this._store.Columns.LABEL], [label]);
} }
+17
View File
@@ -12,6 +12,7 @@
"error", "error",
"never" "never"
], ],
"arrow-spacing": "error",
"brace-style": "error", "brace-style": "error",
"comma-spacing": [ "comma-spacing": [
"error", "error",
@@ -24,6 +25,9 @@
"error", "error",
4, 4,
{ {
"ignoredNodes": [
"CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child"
],
"MemberExpression": "off" "MemberExpression": "off"
} }
], ],
@@ -57,6 +61,19 @@
"allow": ["!!"] "allow": ["!!"]
} }
], ],
"no-restricted-properties": [
"error",
{
"object": "Lang",
"property": "bind",
"message": "Use arrow notation or Function.prototype.bind()"
},
{
"object": "Lang",
"property": "Class",
"message": "Use ES6 classes"
}
],
"nonblock-statement-body-position": [ "nonblock-statement-body-position": [
"error", "error",
"below" "below"
-20
View File
@@ -1,20 +0,0 @@
{
"rules": {
"indent": [
"error",
4,
{
"ignoredNodes": [
"ConditionalExpression",
"CallExpression > ArrowFunctionExpression",
"CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child"
],
"CallExpression": { "arguments": "first" },
"ArrayExpression": "first",
"ObjectExpression": "first",
"MemberExpression": "off"
}
],
"quotes": "off"
}
}
-28
View File
@@ -1,13 +1,5 @@
{ {
"rules": { "rules": {
"arrow-spacing": "error",
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"camelcase": [ "camelcase": [
"error", "error",
{ {
@@ -15,26 +7,6 @@
"allow": ["^vfunc_"] "allow": ["^vfunc_"]
} }
], ],
"indent": [
"error",
4,
{
"ignoredNodes": [
"ArrayExpression > ObjectExpression",
"CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child",
"ConditionalExpression"
],
"MemberExpression": "off"
}
],
"key-spacing": [
"error",
{
"mode": "minimum",
"beforeColon": false,
"afterColon": true
}
],
"no-unused-vars": [ "no-unused-vars": [
"error", "error",
{ {
-61
View File
@@ -1,61 +0,0 @@
#!/bin/sh
SEP=`printf '\t'`
OUTPUT=/dev/stderr
CWD=`pwd`
SRCDIR=`dirname $0`
run_lint() {
eslint -f unix "$@" .
}
parse_opts() {
tmp=`getopt -l output: o: "$@"`
[ $? -ne 0 ] && exit 1
eval set -- $tmp
while true
do
case $1 in
--output|-o)
OUTPUT=`realpath $2`; shift 2; continue ;;
--)
shift; break ;;
esac
done
}
# delete lines that don't start with '/',
# replace the first space with tab, sort
process_for_join() {
sed -E "/\//!d; s|(\S+)\s|\1$SEP|" | sort -k 1b,1
}
# re-replace tab with space
process_post_join() {
sed -E "s|$SEP| |"
}
create_report() {
tmp1=`mktemp --tmpdir lint-XXXX`
run_lint | process_for_join > $tmp1
tmp2=`mktemp --tmpdir lint-XXXX`
run_lint -c lint/eslintrc-legacy.json | process_for_join > $tmp2
join -t"$SEP" -o '0,1.2' $tmp1 $tmp2 | process_post_join
rm $tmp1 $tmp2
}
parse_opts "$@"
cd $SRCDIR/..
create_report | tee $OUTPUT | grep -q .
rv=$(( $? == 0 ))
cd $CWD
[ $rv -eq 0 -a -f $OUTPUT ] && rm $OUTPUT
exit $rv
+1 -1
View File
@@ -1,5 +1,5 @@
project('gnome-shell-extensions', project('gnome-shell-extensions',
version: '3.31.91', version: '3.33.2',
meson_version: '>= 0.44.0', meson_version: '>= 0.44.0',
license: 'GPL2+' license: 'GPL2+'
) )
+172 -170
View File
@@ -3,107 +3,49 @@
# This file is distributed under the same license as the gnome-shell-extensions package. # This file is distributed under the same license as the gnome-shell-extensions package.
# Ryan LORTIE <desrt@desrt.ca>, 2013. # Ryan LORTIE <desrt@desrt.ca>, 2013.
# Daniel PUENTES <blatberk@openmailbox.org>, 2015. # Daniel PUENTES <blatberk@openmailbox.org>, 2015.
# Kristjan SCHMIDT <kristjan.schmidt@googlemail.com>, 2011, 2015. # Kristjan SCHMIDT <kristjan.schmidt@googlemail.com>, 2011-2019.
#
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions master\n" "Project-Id-Version: gnome-shell-extensions master\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-" "Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/"
"shell&keywords=I18N+L10N&component=extensions\n" "issues\n"
"POT-Creation-Date: 2015-01-31 08:37+0000\n" "POT-Creation-Date: 2019-03-02 10:57+0000\n"
"PO-Revision-Date: 2015-02-01 16:13+0100\n" "PO-Revision-Date: 2019-03-06 22:14+0200\n"
"Last-Translator: Kristjan SCHMIDT <kristjan.schmidt@googlemail.com>\n" "Last-Translator: Kristjan SCHMIDT <kristjan.schmidt@googlemail.com>\n"
"Language-Team: Esperanto <gnome-l10n-eo@lists.launchpad.net>\n" "Language-Team: Esperanto <gnome-eo-list@gnome.org>\n"
"Language: eo\n" "Language: eo\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"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.5.4\n" "X-Generator: Virtaal 0.7.1\n"
"X-Project-Style: gnome\n"
#: ../data/gnome-classic.desktop.in.h:1 #: data/gnome-classic.desktop.in:3 data/gnome-classic.session.desktop.in:3
#: ../data/gnome-classic.session.desktop.in.in.h:1
msgid "GNOME Classic" msgid "GNOME Classic"
msgstr "GNOME-klasika" msgstr "GNOME-klasika"
#: ../data/gnome-classic.desktop.in.h:2 #: data/gnome-classic.desktop.in:4
msgid "This session logs you into GNOME Classic" msgid "This session logs you into GNOME Classic"
msgstr "Ĉi seanco ensalutas vin GNOME-klasiken" msgstr "Ĉi seanco ensalutas vin GNOME-klasiken"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:1 #: extensions/apps-menu/extension.js:29
msgid "Attach modal dialog to the parent window"
msgstr "Kunligi modalan dialogon al la patra fenestro"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:2
msgid ""
"This key overrides the key in org.gnome.mutter when running GNOME Shell."
msgstr ""
"Ĉi ŝlosilo atutas la ŝlosilon en org.gnome.mutter kiam rulanta GNOME-ŝelon."
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:3
msgid "Arrangement of buttons on the titlebar"
msgstr "Aranĝo de butonoj en la titolbreto"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:4
#| msgid ""
#| "This key overrides the key in org.gnome.mutter when running GNOME Shell."
msgid ""
"This key overrides the key in org.gnome.desktop.wm.preferences when running "
"GNOME Shell."
msgstr ""
"Ĉi tiu ŝlosilo anstataŭas la ŝlosilon en org.gnome.desktop.wm.preferences "
"kiam GNOME-ŝelo rulas."
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:5
msgid "Enable edge tiling when dropping windows on screen edges"
msgstr ""
"Aktivigi kahelan aranĝon kiam demetante fenestrojn sur ekranaj borderoj"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:6
msgid "Workspaces only on primary monitor"
msgstr "Laborspacoj nur sur la ĉefa ekrano"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:7
msgid "Delay focus changes in mouse mode until the pointer stops moving"
msgstr "En musa reĝimo, prokrasti ŝanĝi fokuson ĝis la musmontrilo haltas"
#: ../extensions/alternate-tab/prefs.js:20
msgid "Thumbnail only"
msgstr "Miniaturo nur"
#: ../extensions/alternate-tab/prefs.js:21
msgid "Application icon only"
msgstr "Aplikaĵa piktogramo nur"
#: ../extensions/alternate-tab/prefs.js:22
msgid "Thumbnail and application icon"
msgstr "Miniaturo kaj aplikaĵo piktogramo"
#: ../extensions/alternate-tab/prefs.js:38
msgid "Present windows as"
msgstr "Prezenti fenestron kiel"
#: ../extensions/alternate-tab/prefs.js:69
msgid "Show only windows in the current workspace"
msgstr "Montri nur fenestrojn en la aktuala laborspaco"
#: ../extensions/apps-menu/extension.js:39
msgid "Activities Overview" msgid "Activities Overview"
msgstr "Aktivecoj-Superrigardon" msgstr "Aktivecoj-Superrigardon"
#: ../extensions/apps-menu/extension.js:114 #: extensions/apps-menu/extension.js:118
msgid "Favorites" msgid "Favorites"
msgstr "Plej ŝatataj" msgstr "Plej ŝatataj"
#: ../extensions/apps-menu/extension.js:283 #: extensions/apps-menu/extension.js:407
msgid "Applications" msgid "Applications"
msgstr "Aplikaĵoj" msgstr "Aplikaĵoj"
#: ../extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml.in.h:1 #: extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml:6
msgid "Application and workspace list" msgid "Application and workspace list"
msgstr "Aplikaĵa kaj laborspaca listo" msgstr "Aplikaĵa kaj laborspaca listo"
#: ../extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml.in.h:2 #: extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml:7
msgid "" msgid ""
"A list of strings, each containing an application id (desktop file name), " "A list of strings, each containing an application id (desktop file name), "
"followed by a colon and the workspace number" "followed by a colon and the workspace number"
@@ -111,76 +53,49 @@ msgstr ""
"Listo de ĉenoj, ĉiu enhavas aplikaĵan identigilon ('desktop' dosiernomo), " "Listo de ĉenoj, ĉiu enhavas aplikaĵan identigilon ('desktop' dosiernomo), "
"sevkita per dupunkto kaj la laborspaca numero" "sevkita per dupunkto kaj la laborspaca numero"
#: ../extensions/auto-move-windows/prefs.js:60 #: extensions/auto-move-windows/prefs.js:60
msgid "Application" msgid "Application"
msgstr "Aplikaĵo" msgstr "Aplikaĵo"
#: ../extensions/auto-move-windows/prefs.js:69 #: extensions/auto-move-windows/prefs.js:71
#: ../extensions/auto-move-windows/prefs.js:127 #: extensions/auto-move-windows/prefs.js:134
msgid "Workspace" msgid "Workspace"
msgstr "Laborspaco" msgstr "Laborspaco"
#: ../extensions/auto-move-windows/prefs.js:85 #: extensions/auto-move-windows/prefs.js:89
#| msgid "Add rule"
msgid "Add Rule" msgid "Add Rule"
msgstr "Aldoni regulon" msgstr "Aldoni regulon"
#: ../extensions/auto-move-windows/prefs.js:106 #: extensions/auto-move-windows/prefs.js:111
msgid "Create new matching rule" msgid "Create new matching rule"
msgstr "Krei novan kongruantan regulon" msgstr "Krei novan kongruantan regulon"
#: ../extensions/auto-move-windows/prefs.js:111 #: extensions/auto-move-windows/prefs.js:117
msgid "Add" msgid "Add"
msgstr "Aldoni" msgstr "Aldoni"
#: ../extensions/drive-menu/extension.js:106 #. TRANSLATORS: %s is the filesystem name
msgid "Ejecting drive '%s' failed:" #: extensions/drive-menu/extension.js:100
msgstr "Elĵeto de volumo '%s' malsukcesis:" #: extensions/places-menu/placeDisplay.js:217
#, javascript-format
#| msgid "Ejecting drive '%s' failed:"
msgid "Ejecting drive “%s” failed:"
msgstr "Elĵeto de volumo “%s” malsukcesis:"
#: ../extensions/drive-menu/extension.js:124 #: extensions/drive-menu/extension.js:116
msgid "Removable devices" msgid "Removable devices"
msgstr "Demeteblaj aparatoj" msgstr "Demeteblaj aparatoj"
#: ../extensions/drive-menu/extension.js:151 #: extensions/drive-menu/extension.js:143
msgid "Open File" #| msgid "Open File"
msgstr "Malfermi dosieron" msgid "Open Files"
msgstr "Malfermi dosierojn"
#: ../extensions/example/extension.js:17 #: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:5
msgid "Hello, world!"
msgstr "Saluton, mondo!"
#: ../extensions/example/org.gnome.shell.extensions.example.gschema.xml.in.h:1
msgid "Alternative greeting text."
msgstr "Alterna saluta teksto."
#: ../extensions/example/org.gnome.shell.extensions.example.gschema.xml.in.h:2
msgid ""
"If not empty, it contains the text that will be shown when clicking on the "
"panel."
msgstr ""
"Se ne malplena, enhavas la tekston kiu estos montrita kiam alklakante sur la "
"panelo."
#: ../extensions/example/prefs.js:30
#| msgid "Message:"
msgid "Message"
msgstr "Mesaĝo"
#: ../extensions/example/prefs.js:43
msgid ""
"Example aims to show how to build well behaved extensions for the Shell and "
"as such it has little functionality on its own.\n"
"Nevertheless it's possible to customize the greeting message."
msgstr ""
"Ekzemplo klopodas montri kial krei bone-kondutantan etendojn por la ŝelo kaj "
"sekve ne havas multan funkcion.\n"
"Tamen, eblas agordi la salutan mesagon."
#: ../extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml.in.h:1
msgid "Use more screen for windows" msgid "Use more screen for windows"
msgstr "Uzi pli da ekrano por fenetroj" msgstr "Uzi pli da ekrano por fenetroj"
#: ../extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml.in.h:2 #: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:6
msgid "" msgid ""
"Try to use more screen for placing window thumbnails by adapting to screen " "Try to use more screen for placing window thumbnails by adapting to screen "
"aspect ratio, and consolidating them further to reduce the bounding box. " "aspect ratio, and consolidating them further to reduce the bounding box. "
@@ -190,11 +105,11 @@ msgstr ""
"aspekta rilatumo, kaj kunfandi ilin plu por redukti la limigan keston. Ĉi " "aspekta rilatumo, kaj kunfandi ilin plu por redukti la limigan keston. Ĉi "
"agordo uzitas nur kun la natura lokada strategio." "agordo uzitas nur kun la natura lokada strategio."
#: ../extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml.in.h:3 #: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:11
msgid "Place window captions on top" msgid "Place window captions on top"
msgstr "Meti fenestrajn apudskribojn supre" msgstr "Meti fenestrajn apudskribojn supre"
#: ../extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml.in.h:4 #: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:12
msgid "" msgid ""
"If true, place window captions on top the respective thumbnail, overriding " "If true, place window captions on top the respective thumbnail, overriding "
"shell default of placing it at the bottom. Changing this setting requires " "shell default of placing it at the bottom. Changing this setting requires "
@@ -204,154 +119,241 @@ msgstr ""
"estas meti ĝin malsupre). Si vi ŝanĝas ĉi agordon tiam vi devas restartigi " "estas meti ĝin malsupre). Si vi ŝanĝas ĉi agordon tiam vi devas restartigi "
"la ŝelon." "la ŝelon."
#: ../extensions/places-menu/extension.js:78 #: extensions/places-menu/extension.js:79
#: ../extensions/places-menu/extension.js:81 #: extensions/places-menu/extension.js:83
msgid "Places" msgid "Places"
msgstr "Lokoj" msgstr "Lokoj"
#: ../extensions/places-menu/placeDisplay.js:57 #: extensions/places-menu/placeDisplay.js:59
msgid "Failed to launch \"%s\"" #, javascript-format
msgstr "Malsukceis lanĉi \"%s\"" msgid "Failed to mount volume for “%s”"
msgstr ""
#: ../extensions/places-menu/placeDisplay.js:99 #: extensions/places-menu/placeDisplay.js:72
#: ../extensions/places-menu/placeDisplay.js:122 #, javascript-format
#| msgid "Failed to launch \"%s\""
msgid "Failed to launch “%s”"
msgstr "Malsukcesis lanĉi “%s”"
#: extensions/places-menu/placeDisplay.js:133
#: extensions/places-menu/placeDisplay.js:156
msgid "Computer" msgid "Computer"
msgstr "Komputilo" msgstr "Komputilo"
#: ../extensions/places-menu/placeDisplay.js:200 #: extensions/places-menu/placeDisplay.js:343
msgid "Home" msgid "Home"
msgstr "Domo" msgstr "Domo"
#: ../extensions/places-menu/placeDisplay.js:287 #: extensions/places-menu/placeDisplay.js:387
msgid "Browse Network" msgid "Browse Network"
msgstr "Foliumi reton" msgstr "Foliumi reton"
#: ../extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml.in.h:1 #: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:7
msgid "Cycle Screenshot Sizes" msgid "Cycle Screenshot Sizes"
msgstr "Cikle montri ekrankopiajn grandojn" msgstr "Cikle montri ekrankopiajn grandojn"
#: ../extensions/systemMonitor/extension.js:214 #: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:11
msgid "CPU" #, fuzzy
msgstr "Ĉefprocesoro" #| msgid "Cycle Screenshot Sizes"
msgid "Cycle Screenshot Sizes Backward"
msgstr "Cikle montri ekrankopiajn grandojn"
#: ../extensions/systemMonitor/extension.js:267 #: extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml:5
msgid "Memory"
msgstr "Memoro"
#: ../extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml.in.h:1
msgid "Theme name" msgid "Theme name"
msgstr "Etosnomo" msgstr "Etosnomo"
#: ../extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml.in.h:2 #: extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml:6
msgid "The name of the theme, to be loaded from ~/.themes/name/gnome-shell" msgid "The name of the theme, to be loaded from ~/.themes/name/gnome-shell"
msgstr "La nomo de la etoso, malfermigi de ~/.themes/name/gnome-shell" msgstr "La nomo de la etoso, malfermigi de ~/.themes/name/gnome-shell"
#: ../extensions/window-list/extension.js:110 #: extensions/window-list/extension.js:100
msgid "Close" msgid "Close"
msgstr "Malfermi" msgstr "Malfermi"
#: ../extensions/window-list/extension.js:120 #: extensions/window-list/extension.js:120
msgid "Unminimize" msgid "Unminimize"
msgstr "Neplejetigi" msgstr "Neplejetigi"
#: ../extensions/window-list/extension.js:121 #: extensions/window-list/extension.js:120
msgid "Minimize" msgid "Minimize"
msgstr "Plejetigi" msgstr "Plejetigi"
#: ../extensions/window-list/extension.js:127 #: extensions/window-list/extension.js:127
msgid "Unmaximize" msgid "Unmaximize"
msgstr "Nemaksimumigi" msgstr "Nemaksimumigi"
#: ../extensions/window-list/extension.js:128 #: extensions/window-list/extension.js:127
msgid "Maximize" msgid "Maximize"
msgstr "Maksimumigi" msgstr "Maksimumigi"
#: ../extensions/window-list/extension.js:390 #: extensions/window-list/extension.js:408
msgid "Minimize all" msgid "Minimize all"
msgstr "Plejetigi ĉiujn" msgstr "Plejetigi ĉiujn"
#: ../extensions/window-list/extension.js:398 #: extensions/window-list/extension.js:414
msgid "Unminimize all" msgid "Unminimize all"
msgstr "Neplejetigi ĉiujn" msgstr "Neplejetigi ĉiujn"
#: ../extensions/window-list/extension.js:406 #: extensions/window-list/extension.js:420
msgid "Maximize all" msgid "Maximize all"
msgstr "Maksimumigi ĉiujn" msgstr "Maksimumigi ĉiujn"
#: ../extensions/window-list/extension.js:415 #: extensions/window-list/extension.js:429
msgid "Unmaximize all" msgid "Unmaximize all"
msgstr "Nemaksimumigi ĉiujn" msgstr "Nemaksimumigi ĉiujn"
#: ../extensions/window-list/extension.js:424 #: extensions/window-list/extension.js:438
msgid "Close all" msgid "Close all"
msgstr "Fermi ĉiujn" msgstr "Fermi ĉiujn"
#: ../extensions/window-list/extension.js:706 #: extensions/window-list/extension.js:655
#: ../extensions/workspace-indicator/extension.js:30 #: extensions/workspace-indicator/extension.js:21
msgid "Workspace Indicator" msgid "Workspace Indicator"
msgstr "Laborspaco Indikilo" msgstr "Laborspaco Indikilo"
#: ../extensions/window-list/extension.js:870 #: extensions/window-list/extension.js:836
msgid "Window List" msgid "Window List"
msgstr "Fenestra listo" msgstr "Fenestra listo"
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:1 #: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:12
msgid "When to group windows" msgid "When to group windows"
msgstr "Kiam grupigi fenestrojn" msgstr "Kiam grupigi fenestrojn"
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:2 #: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:13
#, fuzzy
#| msgid ""
#| "Decides when to group windows from the same application on the window "
#| "list. Possible values are \"never\", \"auto\" and \"always\"."
msgid "" msgid ""
"Decides when to group windows from the same application on the window list. " "Decides when to group windows from the same application on the window list. "
"Possible values are \"never\", \"auto\" and \"always\"." "Possible values are never”, “auto and always."
msgstr "" msgstr ""
"Decidas kiam grupi fenestrojn de la sama aplikaĵo en la fenestra listo. " "Decidas kiam grupi fenestrojn de la sama aplikaĵo en la fenestra listo. "
"Validaj valoroj estas \"never\" (neniam), \"auto\" (aŭtomate) kaj \"always" "Validaj valoroj estas never (neniam), auto (aŭtomate) kaj always"
"\" (ĉiam)." "(ĉiam)."
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:3 #: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:20
msgid "Show the window list on all monitors" msgid "Show the window list on all monitors"
msgstr "Montri la fenestroliston en ĉiuj ekranoj" msgstr "Montri la fenestroliston en ĉiuj ekranoj"
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:4 #: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:21
msgid "" msgid ""
"Whether to show the window list on all connected monitors or only on the " "Whether to show the window list on all connected monitors or only on the "
"primary one." "primary one."
msgstr "" msgstr ""
"Ĉu montri la fenestroliston en ĉiuj konektitaj ekranoj aŭ nur en la ĉefa." "Ĉu montri la fenestroliston en ĉiuj konektitaj ekranoj aŭ nur en la ĉefa."
#: ../extensions/window-list/prefs.js:32 #: extensions/window-list/prefs.js:25
msgid "Window Grouping" msgid "Window Grouping"
msgstr "Fenestra grupigo" msgstr "Fenestra grupigo"
#: ../extensions/window-list/prefs.js:50 #: extensions/window-list/prefs.js:47
msgid "Never group windows" msgid "Never group windows"
msgstr "Neniam grupigi fenestrojn" msgstr "Neniam grupigi fenestrojn"
#: ../extensions/window-list/prefs.js:51 #: extensions/window-list/prefs.js:48
msgid "Group windows when space is limited" msgid "Group windows when space is limited"
msgstr "Grupigi fenestrojn kiam spaco limitas" msgstr "Grupigi fenestrojn kiam spaco limitas"
#: ../extensions/window-list/prefs.js:52 #: extensions/window-list/prefs.js:49
msgid "Always group windows" msgid "Always group windows"
msgstr "Ĉiam grupigi fenestrojn" msgstr "Ĉiam grupigi fenestrojn"
#: ../extensions/window-list/prefs.js:75 #: extensions/window-list/prefs.js:75
msgid "Show on all monitors" msgid "Show on all monitors"
msgstr "Montri en ĉiuj ekranoj" msgstr "Montri en ĉiuj ekranoj"
#: ../extensions/workspace-indicator/prefs.js:141 #: extensions/workspace-indicator/prefs.js:131
#| msgid "Workspace names:"
msgid "Workspace Names" msgid "Workspace Names"
msgstr "Laborspacaj nomoj" msgstr "Laborspacaj nomoj"
#: ../extensions/workspace-indicator/prefs.js:157 #: extensions/workspace-indicator/prefs.js:151
msgid "Name" msgid "Name"
msgstr "Nomo" msgstr "Nomo"
#: ../extensions/workspace-indicator/prefs.js:198 #: extensions/workspace-indicator/prefs.js:191
#, javascript-format
msgid "Workspace %d" msgid "Workspace %d"
msgstr "Laborspaco %d" msgstr "Laborspaco %d"
#~ msgid "Attach modal dialog to the parent window"
#~ msgstr "Kunligi modalan dialogon al la patra fenestro"
#~ msgid ""
#~ "This key overrides the key in org.gnome.mutter when running GNOME Shell."
#~ msgstr ""
#~ "Ĉi ŝlosilo atutas la ŝlosilon en org.gnome.mutter kiam rulanta GNOME-"
#~ "ŝelon."
#~ msgid "Arrangement of buttons on the titlebar"
#~ msgstr "Aranĝo de butonoj en la titolbreto"
#~| msgid ""
#~| "This key overrides the key in org.gnome.mutter when running GNOME Shell."
#~ msgid ""
#~ "This key overrides the key in org.gnome.desktop.wm.preferences when "
#~ "running GNOME Shell."
#~ msgstr ""
#~ "Ĉi tiu ŝlosilo anstataŭas la ŝlosilon en org.gnome.desktop.wm.preferences "
#~ "kiam GNOME-ŝelo rulas."
#~ msgid "Enable edge tiling when dropping windows on screen edges"
#~ msgstr ""
#~ "Aktivigi kahelan aranĝon kiam demetante fenestrojn sur ekranaj borderoj"
#~ msgid "Workspaces only on primary monitor"
#~ msgstr "Laborspacoj nur sur la ĉefa ekrano"
#~ msgid "Delay focus changes in mouse mode until the pointer stops moving"
#~ msgstr "En musa reĝimo, prokrasti ŝanĝi fokuson ĝis la musmontrilo haltas"
#~ msgid "Thumbnail only"
#~ msgstr "Miniaturo nur"
#~ msgid "Application icon only"
#~ msgstr "Aplikaĵa piktogramo nur"
#~ msgid "Thumbnail and application icon"
#~ msgstr "Miniaturo kaj aplikaĵo piktogramo"
#~ msgid "Present windows as"
#~ msgstr "Prezenti fenestron kiel"
#~ msgid "Show only windows in the current workspace"
#~ msgstr "Montri nur fenestrojn en la aktuala laborspaco"
#~ msgid "Hello, world!"
#~ msgstr "Saluton, mondo!"
#~ msgid "Alternative greeting text."
#~ msgstr "Alterna saluta teksto."
#~ msgid ""
#~ "If not empty, it contains the text that will be shown when clicking on "
#~ "the panel."
#~ msgstr ""
#~ "Se ne malplena, enhavas la tekston kiu estos montrita kiam alklakante sur "
#~ "la panelo."
#~| msgid "Message:"
#~ msgid "Message"
#~ msgstr "Mesaĝo"
#~ msgid ""
#~ "Example aims to show how to build well behaved extensions for the Shell "
#~ "and as such it has little functionality on its own.\n"
#~ "Nevertheless it's possible to customize the greeting message."
#~ msgstr ""
#~ "Ekzemplo klopodas montri kial krei bone-kondutantan etendojn por la ŝelo "
#~ "kaj sekve ne havas multan funkcion.\n"
#~ "Tamen, eblas agordi la salutan mesagon."
#~ msgid "CPU"
#~ msgstr "Ĉefprocesoro"
#~ msgid "Memory"
#~ msgstr "Memoro"
#~ msgid "GNOME Shell Classic" #~ msgid "GNOME Shell Classic"
#~ msgstr "GNOME-ŝelo-klasika" #~ msgstr "GNOME-ŝelo-klasika"
+171 -90
View File
@@ -6,85 +6,44 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions master\n" "Project-Id-Version: gnome-shell-extensions master\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-" "Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/"
"shell&keywords=I18N+L10N&component=extensions\n" "issues\n"
"POT-Creation-Date: 2014-08-06 07:34+0000\n" "POT-Creation-Date: 2019-03-02 10:57+0000\n"
"PO-Revision-Date: 2014-08-06 21:43+0300\n" "PO-Revision-Date: 2019-03-10 19:24+0200\n"
"Last-Translator: Mattias Põldaru <mahfiaz@gmail.com>\n" "Last-Translator: Mart Raudsepp <leio@gentoo.org>\n"
"Language-Team: Estonian <gnome-et-list@gnome.org>\n" "Language-Team: Estonian <gnome-et-list@gnome.org>\n"
"Language: et\n" "Language: et\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"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.5.4\n" "X-Generator: Poedit 2.2\n"
#: data/gnome-classic.desktop.in:3 data/gnome-classic.session.desktop.in:3
msgid "GNOME Classic" msgid "GNOME Classic"
msgstr "Klassikaline GNOME" msgstr "Klassikaline GNOME"
#: data/gnome-classic.desktop.in:4
msgid "This session logs you into GNOME Classic" msgid "This session logs you into GNOME Classic"
msgstr "See on klassikalise GNOME seanss" msgstr "See on klassikalise GNOME seanss"
msgid "GNOME Shell Classic" #: extensions/apps-menu/extension.js:29
msgstr "GNOME klassikaline kest"
msgid "Window management and application launching"
msgstr "Akende haldus ja rakenduste käivitamine"
msgid "Attach modal dialog to the parent window"
msgstr "Modaalsed dialoogid on vanemakna küljes"
msgid ""
"This key overrides the key in org.gnome.mutter when running GNOME Shell."
msgstr ""
"See võti on tähtsam võtmest org.gnome.mutter GNOME Shelli käivitamisel."
msgid "Arrangement of buttons on the titlebar"
msgstr "Nuppude järjestus tiitliribal"
msgid ""
"This key overrides the key in org.gnome.desktop.wm.preferences when running "
"GNOME Shell."
msgstr ""
"See võti on tähtsam võtmest org.gnome.desktop.wm.preferences GNOME Shelli "
"käivitamisel."
msgid "Enable edge tiling when dropping windows on screen edges"
msgstr "Akna automaatpaigutus on lubatud, kui aken lohistatakse ekraani serva"
msgid "Workspaces only on primary monitor"
msgstr "Tööalad on ainult peamisel ekraanil"
msgid "Delay focus changes in mouse mode until the pointer stops moving"
msgstr "Hiire all asuv aken saab fookuse alles hiire peatumisel"
msgid "Thumbnail only"
msgstr "Ainult pisipilt"
msgid "Application icon only"
msgstr "Ainult rakenduse ikoon"
msgid "Thumbnail and application icon"
msgstr "Pisipilt ja rakenduse ikoon"
msgid "Present windows as"
msgstr "Aknaid esitletakse kui"
msgid "Show only windows in the current workspace"
msgstr "Näidatakse ainult käesoleva tööala aknaid"
msgid "Activities Overview" msgid "Activities Overview"
msgstr "Tegevuste ülevaade" msgstr "Tegevuste ülevaade"
#: extensions/apps-menu/extension.js:118
msgid "Favorites" msgid "Favorites"
msgstr "Lemmikud" msgstr "Lemmikud"
#: extensions/apps-menu/extension.js:407
msgid "Applications" msgid "Applications"
msgstr "Rakendused" msgstr "Rakendused"
#: extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml:6
msgid "Application and workspace list" msgid "Application and workspace list"
msgstr "Rakenduste ja tööalade loend" msgstr "Rakenduste ja tööalade loend"
#: extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml:7
msgid "" msgid ""
"A list of strings, each containing an application id (desktop file name), " "A list of strings, each containing an application id (desktop file name), "
"followed by a colon and the workspace number" "followed by a colon and the workspace number"
@@ -92,57 +51,47 @@ msgstr ""
"Rakenduste loend, sõnedest, mis sisaldavad rakenduse id-d (desktop faili " "Rakenduste loend, sõnedest, mis sisaldavad rakenduse id-d (desktop faili "
"nimi), koolonit ja tööala numbrit." "nimi), koolonit ja tööala numbrit."
#: extensions/auto-move-windows/prefs.js:60
msgid "Application" msgid "Application"
msgstr "Rakendus" msgstr "Rakendus"
#: extensions/auto-move-windows/prefs.js:71
#: extensions/auto-move-windows/prefs.js:134
msgid "Workspace" msgid "Workspace"
msgstr "Tööala" msgstr "Tööala"
#: extensions/auto-move-windows/prefs.js:89
msgid "Add Rule" msgid "Add Rule"
msgstr "Lisa reegel" msgstr "Lisa reegel"
#: extensions/auto-move-windows/prefs.js:111
msgid "Create new matching rule" msgid "Create new matching rule"
msgstr "Uue reegli loomine" msgstr "Uue reegli loomine"
#: extensions/auto-move-windows/prefs.js:117
msgid "Add" msgid "Add"
msgstr "Lisa" msgstr "Lisa"
#. TRANSLATORS: %s is the filesystem name
#: extensions/drive-menu/extension.js:100
#: extensions/places-menu/placeDisplay.js:217
#, javascript-format #, javascript-format
msgid "Ejecting drive '%s' failed:" msgid "Ejecting drive %s failed:"
msgstr "Seadme '%s' väljastamine nurjus:" msgstr "Seadme %s väljastamine nurjus:"
#: extensions/drive-menu/extension.js:116
msgid "Removable devices" msgid "Removable devices"
msgstr "Eemaldatavad seadmed" msgstr "Eemaldatavad seadmed"
msgid "Open File" #: extensions/drive-menu/extension.js:143
msgstr "Faili avamine" msgid "Open Files"
msgstr "Failide avamine"
msgid "Hello, world!"
msgstr "Tere, maailm!"
msgid "Alternative greeting text."
msgstr "Alternatiivne tervitustekst."
msgid ""
"If not empty, it contains the text that will be shown when clicking on the "
"panel."
msgstr "Kui see pole tühi, näidatakse seda teksti paneelile klõpsates."
msgid "Message"
msgstr "Sõnum"
msgid ""
"Example aims to show how to build well behaved extensions for the Shell and "
"as such it has little functionality on its own.\n"
"Nevertheless it's possible to customize the greeting message."
msgstr ""
"Näide hästi käituva Shelli laienduse koostamise kohta, see ise väga kasulik "
"ei ole.\n"
"See võimaldab muuta kõigest tervitusteksti."
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:5
msgid "Use more screen for windows" msgid "Use more screen for windows"
msgstr "Rohkem pinda akende jaoks" msgstr "Rohkem pinda akende jaoks"
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:6
msgid "" msgid ""
"Try to use more screen for placing window thumbnails by adapting to screen " "Try to use more screen for placing window thumbnails by adapting to screen "
"aspect ratio, and consolidating them further to reduce the bounding box. " "aspect ratio, and consolidating them further to reduce the bounding box. "
@@ -152,9 +101,11 @@ msgstr ""
"ja paigutatakse aknad üksteisele lähemale. See säte kehtib ainult koos " "ja paigutatakse aknad üksteisele lähemale. See säte kehtib ainult koos "
"akende loomuliku paigutusega." "akende loomuliku paigutusega."
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:11
msgid "Place window captions on top" msgid "Place window captions on top"
msgstr "Akende pealkirjad on üleval" msgstr "Akende pealkirjad on üleval"
#: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:12
msgid "" msgid ""
"If true, place window captions on top the respective thumbnail, overriding " "If true, place window captions on top the respective thumbnail, overriding "
"shell default of placing it at the bottom. Changing this setting requires " "shell default of placing it at the bottom. Changing this setting requires "
@@ -164,99 +115,229 @@ msgstr ""
"Shelli vaikimisi viisi, alla asetamist. Selle sätte muutmine mõjub alles " "Shelli vaikimisi viisi, alla asetamist. Selle sätte muutmine mõjub alles "
"pärast Shelli taaskäivitust." "pärast Shelli taaskäivitust."
#: extensions/places-menu/extension.js:79
#: extensions/places-menu/extension.js:83
msgid "Places" msgid "Places"
msgstr "Asukohad" msgstr "Asukohad"
#: extensions/places-menu/placeDisplay.js:59
#, javascript-format #, javascript-format
msgid "Failed to launch \"%s\"" msgid "Failed to mount volume for “%s”"
msgstr "\"%s\" käivitamine nurjus" msgstr ""
#: extensions/places-menu/placeDisplay.js:72
#, javascript-format
msgid "Failed to launch “%s”"
msgstr "„%s“ käivitamine nurjus"
#: extensions/places-menu/placeDisplay.js:133
#: extensions/places-menu/placeDisplay.js:156
msgid "Computer" msgid "Computer"
msgstr "Arvuti" msgstr "Arvuti"
#: extensions/places-menu/placeDisplay.js:343
msgid "Home" msgid "Home"
msgstr "Kodu" msgstr "Kodu"
#: extensions/places-menu/placeDisplay.js:387
msgid "Browse Network" msgid "Browse Network"
msgstr "Võrgu sirvimine" msgstr "Võrgu sirvimine"
msgid "CPU" #: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:7
msgstr "Protsessor" msgid "Cycle Screenshot Sizes"
msgstr ""
msgid "Memory" #: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:11
msgstr "Mälu" msgid "Cycle Screenshot Sizes Backward"
msgstr ""
#: extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml:5
msgid "Theme name" msgid "Theme name"
msgstr "Kujunduse nimi" msgstr "Kujunduse nimi"
#: extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml:6
msgid "The name of the theme, to be loaded from ~/.themes/name/gnome-shell" msgid "The name of the theme, to be loaded from ~/.themes/name/gnome-shell"
msgstr "Kujunduse nimi, mis laaditakse asukohast ~/.themes/name/gnome-shell" msgstr "Kujunduse nimi, mis laaditakse asukohast ~/.themes/name/gnome-shell"
#: extensions/window-list/extension.js:100
msgid "Close" msgid "Close"
msgstr "Sulge" msgstr "Sulge"
#: extensions/window-list/extension.js:120
msgid "Unminimize" msgid "Unminimize"
msgstr "Taasta" msgstr "Taasta"
#: extensions/window-list/extension.js:120
msgid "Minimize" msgid "Minimize"
msgstr "Minimeeri" msgstr "Minimeeri"
#: extensions/window-list/extension.js:127
msgid "Unmaximize" msgid "Unmaximize"
msgstr "Taasta suurus" msgstr "Taasta suurus"
#: extensions/window-list/extension.js:127
msgid "Maximize" msgid "Maximize"
msgstr "Maksimeeri" msgstr "Maksimeeri"
#: extensions/window-list/extension.js:408
msgid "Minimize all" msgid "Minimize all"
msgstr "Minimeeri kõik" msgstr "Minimeeri kõik"
#: extensions/window-list/extension.js:414
msgid "Unminimize all" msgid "Unminimize all"
msgstr "Taasta kõik" msgstr "Taasta kõik"
#: extensions/window-list/extension.js:420
msgid "Maximize all" msgid "Maximize all"
msgstr "Maksimeeri kõik" msgstr "Maksimeeri kõik"
#: extensions/window-list/extension.js:429
msgid "Unmaximize all" msgid "Unmaximize all"
msgstr "Taasta kõigi suurus" msgstr "Taasta kõigi suurus"
#: extensions/window-list/extension.js:438
msgid "Close all" msgid "Close all"
msgstr "Sulge kõik" msgstr "Sulge kõik"
#: extensions/window-list/extension.js:655
#: extensions/workspace-indicator/extension.js:21
msgid "Workspace Indicator" msgid "Workspace Indicator"
msgstr "Tööala näitaja" msgstr "Tööala näitaja"
#: extensions/window-list/extension.js:836
msgid "Window List" msgid "Window List"
msgstr "Akende loend" msgstr "Akende loend"
#: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:12
msgid "When to group windows" msgid "When to group windows"
msgstr "Millal aknaid grupeeritakse" msgstr "Millal aknaid grupeeritakse"
#: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:13
msgid "" msgid ""
"Decides when to group windows from the same application on the window list. " "Decides when to group windows from the same application on the window list. "
"Possible values are \"never\", \"auto\" and \"always\"." "Possible values are never”, “auto and always."
msgstr "" msgstr ""
"Määrab, millal akende loendis sama rakenduse aknaid grupeeritakse. " "Määrab, millal akende loendis sama rakenduse aknaid grupeeritakse. "
"Võimalikud väärtused on \"never\" (mitte kunagi), \"auto\" (automaatselt) ja " "Võimalikud väärtused on never (mitte kunagi), auto (automaatselt) ja "
"\"always\" (alati)." "always (alati)."
#: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:20
msgid "Show the window list on all monitors"
msgstr ""
#: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:21
msgid ""
"Whether to show the window list on all connected monitors or only on the "
"primary one."
msgstr ""
#: extensions/window-list/prefs.js:25
msgid "Window Grouping" msgid "Window Grouping"
msgstr "Akende grupeerimine" msgstr "Akende grupeerimine"
#: extensions/window-list/prefs.js:47
msgid "Never group windows" msgid "Never group windows"
msgstr "Aknaid ei grupeerita kunagi" msgstr "Aknaid ei grupeerita kunagi"
#: extensions/window-list/prefs.js:48
msgid "Group windows when space is limited" msgid "Group windows when space is limited"
msgstr "Aknaid grupeeritakse, kui ruumi on vähe" msgstr "Aknaid grupeeritakse, kui ruumi on vähe"
#: extensions/window-list/prefs.js:49
msgid "Always group windows" msgid "Always group windows"
msgstr "Aknaid grupeeritakse alati" msgstr "Aknaid grupeeritakse alati"
#: extensions/window-list/prefs.js:75
msgid "Show on all monitors"
msgstr ""
#: extensions/workspace-indicator/prefs.js:131
msgid "Workspace Names" msgid "Workspace Names"
msgstr "Tööalade nimed" msgstr "Tööalade nimed"
#: extensions/workspace-indicator/prefs.js:151
msgid "Name" msgid "Name"
msgstr "Nimi" msgstr "Nimi"
#: extensions/workspace-indicator/prefs.js:191
#, javascript-format #, javascript-format
msgid "Workspace %d" msgid "Workspace %d"
msgstr "Tööala %d" msgstr "Tööala %d"
#~ msgid "GNOME Shell Classic"
#~ msgstr "GNOME klassikaline kest"
#~ msgid "Window management and application launching"
#~ msgstr "Akende haldus ja rakenduste käivitamine"
#~ msgid "Attach modal dialog to the parent window"
#~ msgstr "Modaalsed dialoogid on vanemakna küljes"
#~ msgid ""
#~ "This key overrides the key in org.gnome.mutter when running GNOME Shell."
#~ msgstr ""
#~ "See võti on tähtsam võtmest org.gnome.mutter GNOME Shelli käivitamisel."
#~ msgid "Arrangement of buttons on the titlebar"
#~ msgstr "Nuppude järjestus tiitliribal"
#~ msgid ""
#~ "This key overrides the key in org.gnome.desktop.wm.preferences when "
#~ "running GNOME Shell."
#~ msgstr ""
#~ "See võti on tähtsam võtmest org.gnome.desktop.wm.preferences GNOME Shelli "
#~ "käivitamisel."
#~ msgid "Enable edge tiling when dropping windows on screen edges"
#~ msgstr ""
#~ "Akna automaatpaigutus on lubatud, kui aken lohistatakse ekraani serva"
#~ msgid "Workspaces only on primary monitor"
#~ msgstr "Tööalad on ainult peamisel ekraanil"
#~ msgid "Delay focus changes in mouse mode until the pointer stops moving"
#~ msgstr "Hiire all asuv aken saab fookuse alles hiire peatumisel"
#~ msgid "Thumbnail only"
#~ msgstr "Ainult pisipilt"
#~ msgid "Application icon only"
#~ msgstr "Ainult rakenduse ikoon"
#~ msgid "Thumbnail and application icon"
#~ msgstr "Pisipilt ja rakenduse ikoon"
#~ msgid "Present windows as"
#~ msgstr "Aknaid esitletakse kui"
#~ msgid "Show only windows in the current workspace"
#~ msgstr "Näidatakse ainult käesoleva tööala aknaid"
#~ msgid "Hello, world!"
#~ msgstr "Tere, maailm!"
#~ msgid "Alternative greeting text."
#~ msgstr "Alternatiivne tervitustekst."
#~ msgid ""
#~ "If not empty, it contains the text that will be shown when clicking on "
#~ "the panel."
#~ msgstr "Kui see pole tühi, näidatakse seda teksti paneelile klõpsates."
#~ msgid "Message"
#~ msgstr "Sõnum"
#~ msgid ""
#~ "Example aims to show how to build well behaved extensions for the Shell "
#~ "and as such it has little functionality on its own.\n"
#~ "Nevertheless it's possible to customize the greeting message."
#~ msgstr ""
#~ "Näide hästi käituva Shelli laienduse koostamise kohta, see ise väga "
#~ "kasulik ei ole.\n"
#~ "See võimaldab muuta kõigest tervitusteksti."
#~ msgid "CPU"
#~ msgstr "Protsessor"
#~ msgid "Memory"
#~ msgstr "Mälu"
+142 -195
View File
@@ -1,356 +1,303 @@
# Tajik translation for gnome-shell-extensions. # Tajik translation for gnome-shell-extensions.
# Copyright (C) 2013 gnome-shell-extensions's COPYRIGHT HOLDER # Copyright (C) 2013 gnome-shell-extensions's COPYRIGHT HOLDER
# This file is distributed under the same license as the gnome-shell-extensions package. # This file is distributed under the same license as the gnome-shell-extensions package.
# Victor Ibragimov <victor.ibragimov@gmail.com>, 2013, 2014, 2015 # Victor Ibragimov <victor.ibragimov@gmail.com>, 2013, 2014, 2015, 2019
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extensions master\n" "Project-Id-Version: gnome-shell-extensions master\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-" "Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues\n"
"shell&keywords=I18N+L10N&component=extensions\n" "POT-Creation-Date: 2019-03-02 10:57+0000\n"
"POT-Creation-Date: 2015-03-09 20:46+0000\n" "PO-Revision-Date: 2019-03-06 19:50+0500\n"
"PO-Revision-Date: 2015-03-10 11:25+0500\n"
"Last-Translator: Victor Ibragimov <victor.ibragimov@gmail.com>\n" "Last-Translator: Victor Ibragimov <victor.ibragimov@gmail.com>\n"
"Language-Team: Tajik <tg@li.org>\n" "Language-Team: Tajik <tg@li.org>\n"
"Language: tg\n" "Language: tg\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 1.6.5\n" "X-Generator: Poedit 2.2.1\n"
#: ../data/gnome-classic.desktop.in.h:1 #: data/gnome-classic.desktop.in:3 data/gnome-classic.session.desktop.in:3
#: ../data/gnome-classic.session.desktop.in.in.h:1
msgid "GNOME Classic" msgid "GNOME Classic"
msgstr "GNOME-и классикӣ" msgstr "GNOME-и классикӣ"
#: ../data/gnome-classic.desktop.in.h:2 #: data/gnome-classic.desktop.in:4
msgid "This session logs you into GNOME Classic" msgid "This session logs you into GNOME Classic"
msgstr "Ин ҷаласа шуморо ба GNOME-и классикӣ ворид мекунад" msgstr "Ин ҷаласа шуморо ба GNOME-и классикӣ ворид мекунад"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:1 #: extensions/apps-menu/extension.js:29
msgid "Attach modal dialog to the parent window"
msgstr "Замима кардани равзанаи гуфтугӯи модалӣ ба равзанаи асосӣ"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:2
msgid ""
"This key overrides the key in org.gnome.mutter when running GNOME Shell."
msgstr ""
"Ҳангоми иҷрокунии GNOME Shell ин калид калидеро дар org.gnome.mutter "
"ҷойгузин мекунад."
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:3
msgid "Arrangement of buttons on the titlebar"
msgstr "Мураттабсозии тугмаҳо дар навори унвон"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:4
#| msgid ""
#| "This key overrides the key in org.gnome.mutter when running GNOME Shell."
msgid ""
"This key overrides the key in org.gnome.desktop.wm.preferences when running "
"GNOME Shell."
msgstr ""
"Ин тугма тугмаро дар хусусиятҳои org.gnome.desktop.wm.preferences ҳангоми "
"иҷрокунии восити GNOME лағв мекунад."
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:5
msgid "Enable edge tiling when dropping windows on screen edges"
msgstr ""
"Фаъол кардани лавҳаҳои канорӣ ҳангоми интиқолдиҳии равзанаҳо ба канорҳои "
"экран"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:6
msgid "Workspaces only on primary monitor"
msgstr "Фазоҳои корӣ танҳо дар монитори асосӣ"
#: ../data/org.gnome.shell.extensions.classic-overrides.gschema.xml.in.h:7
msgid "Delay focus changes in mouse mode until the pointer stops moving"
msgstr ""
"Ҳангоми истифодаи муш таъхири фокус тағйир меёбад, то он вақте ки курсор "
"намеистад"
#: ../extensions/alternate-tab/prefs.js:20
msgid "Thumbnail only"
msgstr "Танҳо тасвирҳои пешнамоишӣ"
#: ../extensions/alternate-tab/prefs.js:21
msgid "Application icon only"
msgstr "Танҳо нишонаи барнома"
#: ../extensions/alternate-tab/prefs.js:22
msgid "Thumbnail and application icon"
msgstr "Тасвирҳои пешнамоишӣ ва нишонаҳои барномаҳо"
#: ../extensions/alternate-tab/prefs.js:38
msgid "Present windows as"
msgstr "Намоиш додани равзанаҳо ҳамчун"
#: ../extensions/alternate-tab/prefs.js:69
msgid "Show only windows in the current workspace"
msgstr "Намоиш додани равзанаҳо танҳо дар фазои кории ҷорӣ"
#: ../extensions/apps-menu/extension.js:39
msgid "Activities Overview" msgid "Activities Overview"
msgstr "Хулосаи фаъолият" msgstr "Хулосаи фаъолият"
#: ../extensions/apps-menu/extension.js:110 #: extensions/apps-menu/extension.js:118
msgid "Favorites" msgid "Favorites"
msgstr "Баргузидаҳо" msgstr "Баргузидаҳо"
#: ../extensions/apps-menu/extension.js:279 #: extensions/apps-menu/extension.js:407
msgid "Applications" msgid "Applications"
msgstr "Барномаҳо" msgstr "Барномаҳо"
#: ../extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml.in.h:1 #: extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml:6
msgid "Application and workspace list" msgid "Application and workspace list"
msgstr "Рӯйхати барномаҳо ва фазоҳои корӣ" msgstr "Рӯйхати барномаҳо ва фазоҳои корӣ"
#: ../extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml.in.h:2 #: extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml:7
msgid "" msgid "A list of strings, each containing an application id (desktop file name), followed by a colon and the workspace number"
"A list of strings, each containing an application id (desktop file name), " msgstr "Рӯйхати сатрҳое, ки рақами мушаххаси барномаҳоро дар бар мегиранд (номҳои файлҳои мизи корӣ) ва бо ду нуқта ва рақами фазо ҷудо мешаванд"
"followed by a colon and the workspace number"
msgstr ""
"Рӯйхати сатрҳое, ки рақами мушаххаси барномаҳоро дар бар мегиранд (номҳои "
"файлҳои мизи корӣ) ва бо ду нуқта ва рақами фазо ҷудо мешаванд"
#: ../extensions/auto-move-windows/prefs.js:60 #: extensions/auto-move-windows/prefs.js:60
msgid "Application" msgid "Application"
msgstr "Барнома" msgstr "Барнома"
#: ../extensions/auto-move-windows/prefs.js:69 #: extensions/auto-move-windows/prefs.js:71 extensions/auto-move-windows/prefs.js:134
#: ../extensions/auto-move-windows/prefs.js:127
msgid "Workspace" msgid "Workspace"
msgstr "Фазои корӣ" msgstr "Фазои корӣ"
#: ../extensions/auto-move-windows/prefs.js:85 #: extensions/auto-move-windows/prefs.js:89
#| msgid "Add rule"
msgid "Add Rule" msgid "Add Rule"
msgstr "Илова кардани қоида" msgstr "Илова кардани қоида"
#: ../extensions/auto-move-windows/prefs.js:106 #: extensions/auto-move-windows/prefs.js:111
msgid "Create new matching rule" msgid "Create new matching rule"
msgstr "Эҷод кардани қоидаи мувофиқати нав" msgstr "Эҷод кардани қоидаи мувофиқати нав"
#: ../extensions/auto-move-windows/prefs.js:111 #: extensions/auto-move-windows/prefs.js:117
msgid "Add" msgid "Add"
msgstr "Илова кардан" msgstr "Илова кардан"
#: ../extensions/drive-menu/extension.js:106 #. TRANSLATORS: %s is the filesystem name
#: extensions/drive-menu/extension.js:100 extensions/places-menu/placeDisplay.js:217
#, javascript-format #, javascript-format
msgid "Ejecting drive '%s' failed:" #| msgid "Ejecting drive '%s' failed:"
msgid "Ejecting drive “%s” failed:"
msgstr "Баровардани диски '%s' қатъ шудааст:" msgstr "Баровардани диски '%s' қатъ шудааст:"
#: ../extensions/drive-menu/extension.js:124 #: extensions/drive-menu/extension.js:116
msgid "Removable devices" msgid "Removable devices"
msgstr "Дастгоҳҳои ҷудошаванда" msgstr "Дастгоҳҳои ҷудошаванда"
#: ../extensions/drive-menu/extension.js:151 #: extensions/drive-menu/extension.js:143
msgid "Open File" #| msgid "Open File"
msgid "Open Files"
msgstr "Кушодани файл" msgstr "Кушодани файл"
#: ../extensions/example/extension.js:17 #: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:5
msgid "Hello, world!"
msgstr "Салом, ҷаҳон!"
#: ../extensions/example/org.gnome.shell.extensions.example.gschema.xml.in.h:1
msgid "Alternative greeting text."
msgstr "Матни табрики иловагӣ."
#: ../extensions/example/org.gnome.shell.extensions.example.gschema.xml.in.h:2
msgid ""
"If not empty, it contains the text that will be shown when clicking on the "
"panel."
msgstr ""
"Агар холӣ набошад, матнро дар бар мегирад, ки ҳангоми зеркунӣ ба панел "
"намоиш дода мешавад."
#: ../extensions/example/prefs.js:30
#| msgid "Message:"
msgid "Message"
msgstr "Паём"
#: ../extensions/example/prefs.js:43
msgid ""
"Example aims to show how to build well behaved extensions for the Shell and "
"as such it has little functionality on its own.\n"
"Nevertheless it's possible to customize the greeting message."
msgstr ""
"Ин мисол намоиш медиҳад, ки чӣ тавр пасвандҳои танзимшуда барои Восит бояд "
"таҳия карда шаванд, зеро ки худи онҳо фунскияҳои кам доранд.\n"
"Бо вуҷуди ин, фармоишдиҳии паёми табрик имконпазир аст."
#: ../extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml.in.h:1
msgid "Use more screen for windows" msgid "Use more screen for windows"
msgstr "Истифодаи экрани бештар барои равзанаҳо" msgstr "Истифодаи экрани бештар барои равзанаҳо"
#: ../extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml.in.h:2 #: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:6
msgid "" msgid "Try to use more screen for placing window thumbnails by adapting to screen aspect ratio, and consolidating them further to reduce the bounding box. This setting applies only with the natural placement strategy."
"Try to use more screen for placing window thumbnails by adapting to screen "
"aspect ratio, and consolidating them further to reduce the bounding box. "
"This setting applies only with the natural placement strategy."
msgstr "" msgstr ""
"Кӯшиш кунед, ки экрани бештарро бо мувофиқсозии таносуби экран ва " "Кӯшиш кунед, ки экрани бештарро бо мувофиқсозии таносуби экран ва маҳдудкунии сарҳадҳои қуттиҳо барои ҷойгиркунии тасвирҳои пешнамоишии равзана истифода баред. Ин танзимот танҳо барои стратегияи ҷойгиркунии асил мувофиқ мебошад."
"маҳдудкунии сарҳадҳои қуттиҳо барои ҷойгиркунии тасвирҳои пешнамоишии "
"равзана истифода баред. Ин танзимот танҳо барои стратегияи ҷойгиркунии асил "
"мувофиқ мебошад."
#: ../extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml.in.h:3 #: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:11
msgid "Place window captions on top" msgid "Place window captions on top"
msgstr "Ҷойгир кардани зернависҳои равзана ба боло" msgstr "Ҷойгир кардани зернависҳои равзана ба боло"
#: ../extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml.in.h:4 #: extensions/native-window-placement/org.gnome.shell.extensions.native-window-placement.gschema.xml:12
msgid "" msgid "If true, place window captions on top the respective thumbnail, overriding shell default of placing it at the bottom. Changing this setting requires restarting the shell to have any effect."
"If true, place window captions on top the respective thumbnail, overriding "
"shell default of placing it at the bottom. Changing this setting requires "
"restarting the shell to have any effect."
msgstr "" msgstr ""
"Агар қимати \"true\" бошад, зернависҳои равзанаро ба болои тасвири " "Агар қимати \"true\" бошад, зернависҳои равзанаро ба болои тасвири пешнамоишии мувофиқ, бо ҷойгузинкунии навбати восити пешфарз ба поён, ҷойгир мекунад. Барои татбиқ кардани таъсири ин танзимот шумо бояд воситро бозоғозӣ кунед."
"пешнамоишии мувофиқ, бо ҷойгузинкунии навбати восити пешфарз ба поён, ҷойгир "
"мекунад. Барои татбиқ кардани таъсири ин танзимот шумо бояд воситро бозоғозӣ "
"кунед."
#: ../extensions/places-menu/extension.js:78 #: extensions/places-menu/extension.js:79 extensions/places-menu/extension.js:83
#: ../extensions/places-menu/extension.js:81
msgid "Places" msgid "Places"
msgstr "Ҷойҳо" msgstr "Ҷойҳо"
#: ../extensions/places-menu/placeDisplay.js:57 #: extensions/places-menu/placeDisplay.js:59
#, javascript-format #, javascript-format
msgid "Failed to launch \"%s\"" msgid "Failed to mount volume for “%s”"
msgstr "Оғоз бахшидани \"%s\" қатъ шудааст" msgstr "Васлкунии ҳаҷми диск барои “%s” иҷро нашуд"
#: ../extensions/places-menu/placeDisplay.js:99 #: extensions/places-menu/placeDisplay.js:72
#: ../extensions/places-menu/placeDisplay.js:122 #, javascript-format
#| msgid "Failed to launch \"%s\""
msgid "Failed to launch “%s”"
msgstr "Оғози “%s” қатъ шуд"
#: extensions/places-menu/placeDisplay.js:133 extensions/places-menu/placeDisplay.js:156
msgid "Computer" msgid "Computer"
msgstr "Компютер" msgstr "Компютер"
#: ../extensions/places-menu/placeDisplay.js:200 #: extensions/places-menu/placeDisplay.js:343
msgid "Home" msgid "Home"
msgstr "Асосӣ" msgstr "Асосӣ"
#: ../extensions/places-menu/placeDisplay.js:287 #: extensions/places-menu/placeDisplay.js:387
msgid "Browse Network" msgid "Browse Network"
msgstr "Тамошо кардани шабака" msgstr "Тамошо кардани шабака"
#: ../extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml.in.h:1 #: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:7
msgid "Cycle Screenshot Sizes" msgid "Cycle Screenshot Sizes"
msgstr "Андозаҳои скриншоти ҳалқа" msgstr "Андозаҳои скриншоти ҳалқа"
#: ../extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml.in.h:1 #: extensions/screenshot-window-sizer/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml:11
#| msgid "Cycle Screenshot Sizes"
msgid "Cycle Screenshot Sizes Backward"
msgstr "Андозаҳои скриншоти ҳалқа"
#: extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml:5
msgid "Theme name" msgid "Theme name"
msgstr "Номи мавзӯъ" msgstr "Номи мавзӯъ"
#: ../extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml.in.h:2 #: extensions/user-theme/org.gnome.shell.extensions.user-theme.gschema.xml:6
msgid "The name of the theme, to be loaded from ~/.themes/name/gnome-shell" msgid "The name of the theme, to be loaded from ~/.themes/name/gnome-shell"
msgstr "Номи мавзӯъ аз ~/.themes/name/gnome-shell боргирӣ мешавад" msgstr "Номи мавзӯъ аз ~/.themes/name/gnome-shell боргирӣ мешавад"
#: ../extensions/window-list/extension.js:109 #: extensions/window-list/extension.js:100
msgid "Close" msgid "Close"
msgstr "Пӯшидан" msgstr "Пӯшидан"
#: ../extensions/window-list/extension.js:119 #: extensions/window-list/extension.js:120
msgid "Unminimize" msgid "Unminimize"
msgstr "Бекор кардани ҳадди ақал" msgstr "Бекор кардани ҳадди ақал"
#: ../extensions/window-list/extension.js:120 #: extensions/window-list/extension.js:120
msgid "Minimize" msgid "Minimize"
msgstr "Ҳадди ақал сохтан" msgstr "Ҳадди ақал сохтан"
#: ../extensions/window-list/extension.js:126 #: extensions/window-list/extension.js:127
msgid "Unmaximize" msgid "Unmaximize"
msgstr "Бекор кардани ҳадди аксар" msgstr "Бекор кардани ҳадди аксар"
#: ../extensions/window-list/extension.js:127 #: extensions/window-list/extension.js:127
msgid "Maximize" msgid "Maximize"
msgstr "Ҳадди аксар сохтан" msgstr "Ҳадди аксар сохтан"
#: ../extensions/window-list/extension.js:399 #: extensions/window-list/extension.js:408
msgid "Minimize all" msgid "Minimize all"
msgstr "Ҳамаро бо ҳадди ақал сохтан" msgstr "Ҳамаро бо ҳадди ақал сохтан"
#: ../extensions/window-list/extension.js:407 #: extensions/window-list/extension.js:414
msgid "Unminimize all" msgid "Unminimize all"
msgstr "Бекор кардани ҳадди ақал барои ҳама" msgstr "Бекор кардани ҳадди ақал барои ҳама"
#: ../extensions/window-list/extension.js:415 #: extensions/window-list/extension.js:420
msgid "Maximize all" msgid "Maximize all"
msgstr "Ҳамаро бо ҳадди аксар сохтан" msgstr "Ҳамаро бо ҳадди аксар сохтан"
#: ../extensions/window-list/extension.js:424 #: extensions/window-list/extension.js:429
msgid "Unmaximize all" msgid "Unmaximize all"
msgstr "Бекор кардани ҳадди аксар барои ҳама" msgstr "Бекор кардани ҳадди аксар барои ҳама"
#: ../extensions/window-list/extension.js:433 #: extensions/window-list/extension.js:438
msgid "Close all" msgid "Close all"
msgstr "Ҳамаро пӯшонидан" msgstr "Ҳамаро пӯшонидан"
#: ../extensions/window-list/extension.js:650 #: extensions/window-list/extension.js:655 extensions/workspace-indicator/extension.js:21
#: ../extensions/workspace-indicator/extension.js:30
msgid "Workspace Indicator" msgid "Workspace Indicator"
msgstr "Нишондиҳандаи фазои кор" msgstr "Нишондиҳандаи фазои кор"
#: ../extensions/window-list/extension.js:807 #: extensions/window-list/extension.js:836
msgid "Window List" msgid "Window List"
msgstr "Рӯйхати равзанаҳо" msgstr "Рӯйхати равзанаҳо"
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:1 #: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:12
msgid "When to group windows" msgid "When to group windows"
msgstr "Шартҳои гурӯҳбандии равзанаҳо" msgstr "Шартҳои гурӯҳбандии равзанаҳо"
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:2 #: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:13
msgid "" #| msgid "Decides when to group windows from the same application on the window list. Possible values are \"never\", \"auto\" and \"always\"."
"Decides when to group windows from the same application on the window list. " msgid "Decides when to group windows from the same application on the window list. Possible values are “never”, “auto” and “always”."
"Possible values are \"never\", \"auto\" and \"always\"." msgstr "Қарор медиҳад, ки дар кадом ҳолат равзанаҳо аз худи барномаҳо дар рӯйхати равзанаҳо гурӯҳбандӣ мешаванд. Қиматҳои имконпазир: \"ҳеҷ гоҳ\", \"ба таври худкор\" ва \"ҳамеша\"."
msgstr ""
"Қарор медиҳад, ки дар кадом ҳолат равзанаҳо аз худи барномаҳо дар рӯйхати "
"равзанаҳо гурӯҳбандӣ мешаванд. Қиматҳои имконпазир: \"ҳеҷ гоҳ\", \"ба таври "
"худкор\" ва \"ҳамеша\"."
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:3 #: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:20
msgid "Show the window list on all monitors" msgid "Show the window list on all monitors"
msgstr "Намоиш додани рӯйхати равзанаҳо дар ҳамаи мониторҳо" msgstr "Намоиш додани рӯйхати равзанаҳо дар ҳамаи мониторҳо"
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:4 #: extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml:21
msgid "" msgid "Whether to show the window list on all connected monitors or only on the primary one."
"Whether to show the window list on all connected monitors or only on the " msgstr "Намоиш додани рӯйхати равзанаҳо дар ҳамаи мониторҳои пайвастшуда ё намоиш додани танҳо дар монитори асосӣ."
"primary one."
msgstr ""
"Намоиш додани рӯйхати равзанаҳо дар ҳамаи мониторҳои пайвастшуда ё намоиш "
"додани танҳо дар монитори асосӣ."
#: ../extensions/window-list/prefs.js:32 #: extensions/window-list/prefs.js:25
msgid "Window Grouping" msgid "Window Grouping"
msgstr "Гурӯҳбандии равзанаҳо" msgstr "Гурӯҳбандии равзанаҳо"
#: ../extensions/window-list/prefs.js:50 #: extensions/window-list/prefs.js:47
msgid "Never group windows" msgid "Never group windows"
msgstr "Ҳеҷ гоҳ равзанаҳоро гурӯҳбандӣ накардан" msgstr "Ҳеҷ гоҳ равзанаҳоро гурӯҳбандӣ накардан"
#: ../extensions/window-list/prefs.js:51 #: extensions/window-list/prefs.js:48
msgid "Group windows when space is limited" msgid "Group windows when space is limited"
msgstr "Гурӯҳбандии равзанаҳо барои фазои маҳдудшуда" msgstr "Гурӯҳбандии равзанаҳо барои фазои маҳдудшуда"
#: ../extensions/window-list/prefs.js:52 #: extensions/window-list/prefs.js:49
msgid "Always group windows" msgid "Always group windows"
msgstr "Ҳамеша равзанаҳоро гурӯҳбандӣ кардан" msgstr "Ҳамеша равзанаҳоро гурӯҳбандӣ кардан"
#: ../extensions/window-list/prefs.js:75 #: extensions/window-list/prefs.js:75
msgid "Show on all monitors" msgid "Show on all monitors"
msgstr "Намоиш додан дар ҳамаи мониторҳо" msgstr "Намоиш додан дар ҳамаи мониторҳо"
#: ../extensions/workspace-indicator/prefs.js:141 #: extensions/workspace-indicator/prefs.js:131
#| msgid "Workspace names:"
msgid "Workspace Names" msgid "Workspace Names"
msgstr "Номҳои фазоҳои корӣ" msgstr "Номҳои фазоҳои корӣ"
#: ../extensions/workspace-indicator/prefs.js:157 #: extensions/workspace-indicator/prefs.js:151
msgid "Name" msgid "Name"
msgstr "Ном" msgstr "Ном"
#: ../extensions/workspace-indicator/prefs.js:198 #: extensions/workspace-indicator/prefs.js:191
#, javascript-format #, javascript-format
msgid "Workspace %d" msgid "Workspace %d"
msgstr "Фазои кории %d" msgstr "Фазои кории %d"
#~ msgid "Attach modal dialog to the parent window"
#~ msgstr "Замима кардани равзанаи гуфтугӯи модалӣ ба равзанаи асосӣ"
#~ msgid "This key overrides the key in org.gnome.mutter when running GNOME Shell."
#~ msgstr "Ҳангоми иҷрокунии GNOME Shell ин калид калидеро дар org.gnome.mutter ҷойгузин мекунад."
#~ msgid "Arrangement of buttons on the titlebar"
#~ msgstr "Мураттабсозии тугмаҳо дар навори унвон"
#~| msgid "This key overrides the key in org.gnome.mutter when running GNOME Shell."
#~ msgid "This key overrides the key in org.gnome.desktop.wm.preferences when running GNOME Shell."
#~ msgstr "Ин тугма тугмаро дар хусусиятҳои org.gnome.desktop.wm.preferences ҳангоми иҷрокунии восити GNOME лағв мекунад."
#~ msgid "Enable edge tiling when dropping windows on screen edges"
#~ msgstr "Фаъол кардани лавҳаҳои канорӣ ҳангоми интиқолдиҳии равзанаҳо ба канорҳои экран"
#~ msgid "Workspaces only on primary monitor"
#~ msgstr "Фазоҳои корӣ танҳо дар монитори асосӣ"
#~ msgid "Delay focus changes in mouse mode until the pointer stops moving"
#~ msgstr "Ҳангоми истифодаи муш таъхири фокус тағйир меёбад, то он вақте ки курсор намеистад"
#~ msgid "Thumbnail only"
#~ msgstr "Танҳо тасвирҳои пешнамоишӣ"
#~ msgid "Application icon only"
#~ msgstr "Танҳо нишонаи барнома"
#~ msgid "Thumbnail and application icon"
#~ msgstr "Тасвирҳои пешнамоишӣ ва нишонаҳои барномаҳо"
#~ msgid "Present windows as"
#~ msgstr "Намоиш додани равзанаҳо ҳамчун"
#~ msgid "Show only windows in the current workspace"
#~ msgstr "Намоиш додани равзанаҳо танҳо дар фазои кории ҷорӣ"
#~ msgid "Hello, world!"
#~ msgstr "Салом, ҷаҳон!"
#~ msgid "Alternative greeting text."
#~ msgstr "Матни табрики иловагӣ."
#~ msgid "If not empty, it contains the text that will be shown when clicking on the panel."
#~ msgstr "Агар холӣ набошад, матнро дар бар мегирад, ки ҳангоми зеркунӣ ба панел намоиш дода мешавад."
#~| msgid "Message:"
#~ msgid "Message"
#~ msgstr "Паём"
#~ msgid ""
#~ "Example aims to show how to build well behaved extensions for the Shell and as such it has little functionality on its own.\n"
#~ "Nevertheless it's possible to customize the greeting message."
#~ msgstr ""
#~ "Ин мисол намоиш медиҳад, ки чӣ тавр пасвандҳои танзимшуда барои Восит бояд таҳия карда шаванд, зеро ки худи онҳо фунскияҳои кам доранд.\n"
#~ "Бо вуҷуди ин, фармоишдиҳии паёми табрик имконпазир аст."
#~ msgid "GNOME Shell Classic" #~ msgid "GNOME Shell Classic"
#~ msgstr "Восити GNOME-и классикӣ" #~ msgstr "Восити GNOME-и классикӣ"