Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10aec91ebb | ||
|
|
1d22e73a44 | ||
|
|
3981d066e5 | ||
|
|
fc47063c73 | ||
|
|
7a6777f703 | ||
|
|
c5d79240fd | ||
|
|
9e4156a706 | ||
|
|
f61af132e7 |
@@ -2,6 +2,8 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
||||
|
||||
SUBDIRS = extensions po
|
||||
|
||||
EXTRA_DIST = lib/convenience.js
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS = --enable-extensions=all
|
||||
|
||||
include include.mk
|
||||
|
||||
11
NEWS
11
NEWS
@@ -1,9 +1,10 @@
|
||||
3.2.2
|
||||
3.3.2
|
||||
=====
|
||||
* made extensions self-contained with respect to translations
|
||||
(for schema files gnome-shell master is needed)
|
||||
* cherry-picked some bug fixes
|
||||
* cherry-picked translations
|
||||
* all extensions are now self-contained, including l10n and settings
|
||||
* introduce a convenience module that can be shared among all extensions
|
||||
* you can know build an installable zip file with make zip-file
|
||||
* apps-menu no longer shows NoDisplay apps
|
||||
* alternative-status-menu, alternate-tab: fix for master shell
|
||||
|
||||
3.2.1
|
||||
=====
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
AC_PREREQ(2.63)
|
||||
AC_INIT([gnome-shell-extensions],[3.2.2],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&component=extensions])
|
||||
AC_INIT([gnome-shell-extensions],[3.3.2],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&component=extensions])
|
||||
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_CONFIG_AUX_DIR([config])
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
include $(top_srcdir)/include.mk
|
||||
|
||||
dist_extension_DATA = extension.js stylesheet.css
|
||||
nodist_extension_DATA = metadata.json $(EXTRA_EXTENSION)
|
||||
nodist_extension_DATA = metadata.json $(top_srcdir)/lib/convenience.js $(EXTRA_EXTENSION)
|
||||
|
||||
EXTRA_DIST = metadata.json.in
|
||||
|
||||
|
||||
@@ -5,17 +5,19 @@
|
||||
* of the gnome-shell source code
|
||||
*/
|
||||
|
||||
const AltTab = imports.ui.altTab;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const Gdk = imports.gi.Gdk;
|
||||
const Gio = imports.gi.Gio;
|
||||
const Gtk = imports.gi.Gtk;
|
||||
const Lang = imports.lang;
|
||||
const Main = imports.ui.main;
|
||||
const Mainloop = imports.mainloop;
|
||||
const ModalDialog = imports.ui.modalDialog;
|
||||
const Meta = imports.gi.Meta;
|
||||
const Shell = imports.gi.Shell;
|
||||
const St = imports.gi.St;
|
||||
|
||||
const AltTab = imports.ui.altTab;
|
||||
const Main = imports.ui.main;
|
||||
const ModalDialog = imports.ui.modalDialog;
|
||||
const Tweener = imports.ui.tweener;
|
||||
const WindowManager = imports.ui.windowManager;
|
||||
|
||||
@@ -23,6 +25,8 @@ const Gettext = imports.gettext.domain('gnome-shell-extensions');
|
||||
const _ = Gettext.gettext;
|
||||
const N_ = function(e) { return e };
|
||||
|
||||
let settings;
|
||||
|
||||
const POPUP_DELAY_TIMEOUT = 150; // milliseconds
|
||||
|
||||
const SETTINGS_SCHEMA = 'org.gnome.shell.extensions.alternate-tab';
|
||||
@@ -30,16 +34,16 @@ const SETTINGS_BEHAVIOUR_KEY = 'behaviour';
|
||||
const SETTINGS_FIRST_TIME_KEY = 'first-time';
|
||||
|
||||
const MODES = {
|
||||
all_thumbnails: function(shellwm, binding, mask, window, backwards) {
|
||||
all_thumbnails: function(display, binding, mask, window, backwards) {
|
||||
let tabPopup = new AltTabPopup2();
|
||||
|
||||
if (!tabPopup.show(backwards, binding, mask))
|
||||
tabPopup.destroy();
|
||||
},
|
||||
|
||||
workspace_icons: function(shellwm, binding, mask, window, backwards) {
|
||||
if (shellwm._workspaceSwitcherPopup != null)
|
||||
shellwm._workspaceSwitcherPopup.actor.hide();
|
||||
workspace_icons: function(display, binding, mask, window, backwards) {
|
||||
if (Main.wm._workspaceSwitcherPopup)
|
||||
Main.wm._workspaceSwitcherPopup.actor.hide();
|
||||
|
||||
let tabPopup = new AltTabPopupW();
|
||||
if (!tabPopup.show(backwards, binding, mask))
|
||||
@@ -328,9 +332,8 @@ AltTabSettingsDialog.prototype = {
|
||||
},
|
||||
|
||||
setBehaviour: function(behaviour) {
|
||||
this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
|
||||
this._settings.set_string(SETTINGS_BEHAVIOUR_KEY, behaviour);
|
||||
this._settings.set_boolean(SETTINGS_FIRST_TIME_KEY, false);
|
||||
settings.set_string(SETTINGS_BEHAVIOUR_KEY, behaviour);
|
||||
settings.set_boolean(SETTINGS_FIRST_TIME_KEY, false);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -595,33 +598,34 @@ WindowList.prototype = {
|
||||
};
|
||||
|
||||
function init(metadata) {
|
||||
imports.gettext.bindtextdomain('gnome-shell-extensions', GLib.build_filenamev([metadata.path, 'locale']));
|
||||
let me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
me.convenience.initTranslations(metadata);
|
||||
settings = me.convenience.getSettings(metadata, 'alternate-tab');
|
||||
}
|
||||
|
||||
function doAltTab(shellwm, binding, mask, window, backwards) {
|
||||
let settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
|
||||
|
||||
|
||||
function doAltTab(display, screen, window, binding) {
|
||||
if(settings.get_boolean(SETTINGS_FIRST_TIME_KEY)) {
|
||||
new AltTabSettingsDialog().open();
|
||||
} else {
|
||||
let behaviour = settings.get_string(SETTINGS_BEHAVIOUR_KEY);
|
||||
if(behaviour in MODES) {
|
||||
MODES[behaviour](shellwm, binding, mask, window, backwards);
|
||||
let modifiers = binding.get_modifiers()
|
||||
let backwards = modifiers & Meta.VirtualModifier.SHIFT_MASK;
|
||||
MODES[behaviour](display, binding.get_name(), binding.get_mask(), window, backwards);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function enable() {
|
||||
Main.wm.setKeybindingHandler('switch-windows', doAltTab);
|
||||
Main.wm.setKeybindingHandler('switch-group', doAltTab);
|
||||
Main.wm.setKeybindingHandler('switch-windows-backward', doAltTab);
|
||||
Main.wm.setKeybindingHandler('switch-group-backward', doAltTab);
|
||||
Meta.keybindings_set_custom_handler('switch-windows', doAltTab);
|
||||
Meta.keybindings_set_custom_handler('switch-group', doAltTab);
|
||||
Meta.keybindings_set_custom_handler('switch-windows-backward', doAltTab);
|
||||
Meta.keybindings_set_custom_handler('switch-group-backward', doAltTab);
|
||||
}
|
||||
|
||||
function disable() {
|
||||
Main.wm.setKeybindingHandler('switch-windows', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||
Main.wm.setKeybindingHandler('switch-group', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||
Main.wm.setKeybindingHandler('switch-windows-backward', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||
Main.wm.setKeybindingHandler('switch-group-backward', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||
Meta.keybindings_set_custom_handler('switch-windows', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||
Meta.keybindings_set_custom_handler('switch-group', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||
Meta.keybindings_set_custom_handler('switch-windows-backward', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||
Meta.keybindings_set_custom_handler('switch-group-backward', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
"name": "AlternateTab",
|
||||
"description": "A replacement for Alt-Tab, allows to cycle between windows and does not group by application",
|
||||
"original-authors": [ "jw@bargsten.org", "thomas.bouffon@gmail.com" ],
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
/* -*- mode: js2 - indent-tabs-mode: nil - js2-basic-offset: 4 -*- */
|
||||
const GLib = imports.gi.GLib;
|
||||
const Lang = imports.lang;
|
||||
const St = imports.gi.St;
|
||||
|
||||
@@ -100,7 +99,8 @@ function createSubMenu() {
|
||||
|
||||
// Put your extension initialization code here
|
||||
function init(metadata) {
|
||||
imports.gettext.bindtextdomain('gnome-shell-extensions', GLib.build_filenamev([metadata.path, 'locale']));
|
||||
let me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
me.convenience.initTranslations(metadata);
|
||||
}
|
||||
|
||||
function reset(statusMenu) {
|
||||
@@ -108,10 +108,7 @@ function reset(statusMenu) {
|
||||
statusMenu._updateLogout();
|
||||
statusMenu._updateLockScreen();
|
||||
|
||||
statusMenu._presence.getStatus(Lang.bind(statusMenu, statusMenu._updateSwitch));
|
||||
|
||||
// HACK! Obtain the IMStatusChooserItem and force a _updateUser
|
||||
statusMenu.menu._getMenuItems()[0]._updateUser();
|
||||
statusMenu._updateSwitch(statusMenu._presence.status);
|
||||
}
|
||||
|
||||
function enable() {
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Alternative Status Menu",
|
||||
"description": "Replaces GNOME Shell Status Menu with one showing Suspend/Hibernate and Power Off as separate items",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Applications Menu",
|
||||
"description": "Add a gnome 2.x style menu for applications",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -14,13 +14,15 @@ const Main = imports.ui.main;
|
||||
const SETTINGS_SCHEMA = 'org.gnome.shell.extensions.auto-move-windows';
|
||||
const SETTINGS_KEY = 'application-list';
|
||||
|
||||
let settings;
|
||||
|
||||
function WindowMover() {
|
||||
this._init();
|
||||
}
|
||||
|
||||
WindowMover.prototype = {
|
||||
_init: function() {
|
||||
this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
|
||||
this._settings = settings;
|
||||
this._windowTracker = Shell.WindowTracker.get_default();
|
||||
|
||||
let display = global.screen.get_display();
|
||||
@@ -79,8 +81,10 @@ WindowMover.prototype = {
|
||||
let prevCheckWorkspaces;
|
||||
let winMover;
|
||||
|
||||
function init(extensionMeta) {
|
||||
// do nothing here
|
||||
function init(metadata) {
|
||||
let me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
me.convenience.initTranslations(metadata);
|
||||
settings = me.convenience.getSettings(metadata, 'auto-move-windows');
|
||||
}
|
||||
|
||||
function enable() {
|
||||
@@ -159,4 +163,4 @@ function enable() {
|
||||
function disable() {
|
||||
Main._checkWorkspaces = prevCheckWorkspaces;
|
||||
winMover.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Auto Move Windows",
|
||||
"description": "Move applications to specific workspaces when they create windows",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"original-authors": [ "alessandro.crismani@gmail.com", "thomas.bouffon@gmail.com" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ const DOCK_HIDE_KEY = 'autohide';
|
||||
const DOCK_EFFECTHIDE_KEY = 'hide-effect';
|
||||
const DOCK_AUTOHIDE_ANIMATION_TIME_KEY = 'hide-effect-duration';
|
||||
|
||||
let _me, _metadata;
|
||||
|
||||
//hide
|
||||
//const autohide_animation_time = 0.3;
|
||||
@@ -340,7 +341,7 @@ Dock.prototype = {
|
||||
this._favorites = [];
|
||||
|
||||
// Load Settings
|
||||
this._settings = new Gio.Settings({ schema: DOCK_SETTINGS_SCHEMA });
|
||||
this._settings = _me.convenience.getSettings(_metadata, 'dock');
|
||||
position = this._settings.get_enum(DOCK_POSITION_KEY);
|
||||
dockicon_size = this._settings.get_int(DOCK_SIZE_KEY);
|
||||
hideDock = hideable = this._settings.get_boolean(DOCK_HIDE_KEY);
|
||||
@@ -934,8 +935,10 @@ DockIconMenu.prototype = {
|
||||
}
|
||||
}
|
||||
|
||||
function init(extensionMeta) {
|
||||
imports.gettext.bindtextdomain('gnome-shell-extensions', GLib.build_filenamev([metadata.path, 'locale']));
|
||||
function init(metadata) {
|
||||
_metadata = metadata;
|
||||
_me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
_me.convenience.initTranslations(metadata);
|
||||
}
|
||||
|
||||
let dock;
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
"name": "Dock",
|
||||
"description": "A dock for the GNOME Shell -- displays favorite and running applications",
|
||||
"original-author": "tclaesson@gmail.com",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -91,7 +91,8 @@ DriveMenu.prototype = {
|
||||
|
||||
// Put your extension initialization code here
|
||||
function init(metadata) {
|
||||
imports.gettext.bindtextdomain('gnome-shell-extensions', GLib.build_filenamev([metadata.path, 'locale']));
|
||||
let me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
me.convenience.initTranslations(metadata);
|
||||
}
|
||||
|
||||
let _indicator;
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Removable Drive Menu",
|
||||
"description": "A status menu for accessing and unmounting removable devices",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -19,7 +19,8 @@ function _showHello() {
|
||||
function init(metadata) {
|
||||
log ('Example extension initalized');
|
||||
|
||||
imports.gettext.bindtextdomain('gnome-shell-extensions', GLib.build_filenamev([metadata.path, 'locale']));
|
||||
let me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
me.convenience.initTranslations(metadata);
|
||||
}
|
||||
|
||||
let signalId;
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Hello, World!",
|
||||
"description": "An example extension to show how it works. Shows Hello, world when clicking on the top panel.",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Gajim IM integration",
|
||||
"description": "Display Gajim incoming chats as notifications in the Shell message tray.",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "http://base-art.net"
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ const WindowPlacementStrategy = {
|
||||
GRID: 1,
|
||||
};
|
||||
|
||||
let _me, _metadata;
|
||||
|
||||
// testing settings for natural window placement strategy:
|
||||
const WINDOW_PLACEMENT_NATURAL_FILLGAPS = true; // enlarge windows at the end to fill gaps // not implemented yet
|
||||
const WINDOW_PLACEMENT_NATURAL_GRID_FALLBACK = true; // fallback to grid mode if all windows have the same size and positions. // not implemented yet
|
||||
@@ -117,7 +119,7 @@ function resetState() {
|
||||
function enable() {
|
||||
resetState();
|
||||
|
||||
let settings = new Gio.Settings({ schema: 'org.gnome.shell.extensions.native-window-placement' });
|
||||
let settings = _me.convenience.getSettings(_metadata, 'native-window-placement');
|
||||
let placementStrategy = settings.get_enum('strategy');
|
||||
let signalId = settings.connect('changed::strategy', function() {
|
||||
placementStrategy = settings.get_enum('strategy');
|
||||
@@ -527,6 +529,7 @@ function disable() {
|
||||
resetState();
|
||||
}
|
||||
|
||||
function init() {
|
||||
/* do nothing */
|
||||
}
|
||||
function init(metadata) {
|
||||
_metadata = metadata;
|
||||
_me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Native Window Placement",
|
||||
"description": "Arrange windows in overview in a more native way",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "@url@",
|
||||
"original-authors": [ "wepmaschda@gmx.de" ]
|
||||
}
|
||||
|
||||
@@ -114,7 +114,8 @@ PlacesMenu.prototype = {
|
||||
|
||||
|
||||
function init(metadata) {
|
||||
imports.gettext.bindtextdomain('gnome-shell-extensions', GLib.build_filenamev([metadata.path, 'locale']));
|
||||
let me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
me.convenience.initTranslations(metadata);
|
||||
}
|
||||
|
||||
let _indicator;
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Places Status Indicator",
|
||||
"description": "Add a systems status menu for quickly navigating places in the system",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"shell-version": ["@shell_current@", "3.2" ],
|
||||
"shell-version": ["@shell_current@" ],
|
||||
"uuid": "@uuid@",
|
||||
"original-author": "zaspire@rambler.ru",
|
||||
"name": "SystemMonitor",
|
||||
|
||||
@@ -10,15 +10,16 @@ const SETTINGS_SCHEMA = 'org.gnome.shell.extensions.user-theme';
|
||||
const SETTINGS_KEY = 'name';
|
||||
|
||||
function ThemeManager() {
|
||||
this._init();
|
||||
this._init.apply(this, arguments);
|
||||
}
|
||||
|
||||
ThemeManager.prototype = {
|
||||
_init: function() {
|
||||
_init: function(metadata) {
|
||||
let me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
this._settings = me.convenience.getSettings(metadata, 'user-theme');
|
||||
},
|
||||
|
||||
enable: function() {
|
||||
this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
|
||||
this._changedId = this._settings.connect('changed::'+SETTINGS_KEY, Lang.bind(this, this._changeTheme));
|
||||
this._changeTheme();
|
||||
},
|
||||
@@ -68,5 +69,5 @@ ThemeManager.prototype = {
|
||||
|
||||
|
||||
function init(metadata) {
|
||||
return new ThemeManager();
|
||||
return new ThemeManager(metadata);
|
||||
}
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "User Themes",
|
||||
"description": "Load shell themes from user directory",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"localedir": "@LOCALEDIR@",
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"original-authors": [ "john.stowers@gmail.com" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"shell-version": ["@shell_current@", "3.2" ],
|
||||
"shell-version": ["@shell_current@" ],
|
||||
"uuid": "@uuid@",
|
||||
"original-author": "zaspire@rambler.ru",
|
||||
"name": "windowNavigator",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Workspace Indicator",
|
||||
"description": "Put an indicator on the panel signaling in which workspace you are, and give you the possibility of switching to another one",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"original-authors": [ "erick.red@gmail.com" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
@@ -137,7 +137,8 @@ Indicator.prototype = {
|
||||
|
||||
|
||||
function init(metadata) {
|
||||
imports.gettext.bindtextdomain('gnome-shell-extensions', GLib.build_filenamev([metadata.path, 'locale']));
|
||||
let me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||
me.convenience.initTranslations(metadata);
|
||||
}
|
||||
|
||||
let _indicator;
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"uuid": "@uuid@",
|
||||
"name": "Monitor Status Indicator",
|
||||
"description": "Add a systems status menu for rotating monitors (overrides what is currently provided by gnome-settings-daemon)",
|
||||
"shell-version": [ "@shell_current@", "3.2" ],
|
||||
"shell-version": [ "@shell_current@" ],
|
||||
"url": "@url@"
|
||||
}
|
||||
|
||||
17
lib/convenience.js
Normal file
17
lib/convenience.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const Gettext = imports.gettext;
|
||||
const Gio = imports.gi.Gio;
|
||||
|
||||
function initTranslations(metadata) {
|
||||
let localeDir = metadata.dir.get_child('locale').get_path();
|
||||
Gettext.bindtextdomain('gnome-shell-extensions', localeDir);
|
||||
}
|
||||
|
||||
function getSettings(metadata, extension_id) {
|
||||
let schemaDir = metadata.dir.get_child('schemas').get_path();
|
||||
let schemaSource = Gio.SettingsSchemaSource.new_from_directory(schemaDir,
|
||||
Gio.SettingsSchemaSource.get_default(),
|
||||
false);
|
||||
let schema = schemaSource.lookup('org.gnome.shell.extensions.' + extension_id, false);
|
||||
return new Gio.Settings({ settings_schema: schema });
|
||||
}
|
||||
|
||||
99
po/cs.po
99
po/cs.po
@@ -8,8 +8,8 @@ msgstr ""
|
||||
"Project-Id-Version: gnome-shell-extensions master\n"
|
||||
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-"
|
||||
"shell&keywords=I18N+L10N&component=extensions\n"
|
||||
"POT-Creation-Date: 2011-11-22 10:40+0000\n"
|
||||
"PO-Revision-Date: 2011-11-22 11:43+0100\n"
|
||||
"POT-Creation-Date: 2011-04-16 16:32+0000\n"
|
||||
"PO-Revision-Date: 2011-04-17 11:10+0200\n"
|
||||
"Last-Translator: Marek Černocký <marek@manet.cz>\n"
|
||||
"Language-Team: Czech <gnome-cs-list@gnome.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -61,91 +61,6 @@ msgstr "Odhlásit se…"
|
||||
msgid "Power Off..."
|
||||
msgstr "Vypnout…"
|
||||
|
||||
#: ../extensions/alternate-tab/extension.js:54
|
||||
msgid ""
|
||||
"This is the first time you use the Alternate Tab extension. \n"
|
||||
"Please choose your preferred behaviour:\n"
|
||||
"\n"
|
||||
"All & Thumbnails:\n"
|
||||
" This mode presents all applications from all workspaces in one "
|
||||
"selection \n"
|
||||
" list. Instead of using the application icon of every window, it uses "
|
||||
"small \n"
|
||||
" thumbnails resembling the window itself. \n"
|
||||
"\n"
|
||||
"Workspace & Icons:\n"
|
||||
" This mode let's you switch between the applications of your current \n"
|
||||
" workspace and gives you additionally the option to switch to the last "
|
||||
"used \n"
|
||||
" application of your previous workspace. This is always the last symbol "
|
||||
"in \n"
|
||||
" the list and is segregated by a separator/vertical line if available. \n"
|
||||
" Every window is represented by its application icon. \n"
|
||||
"\n"
|
||||
"If you whish to revert to the default behavior for the Alt-Tab switcher, "
|
||||
"just\n"
|
||||
"disable the extension from extensions.gnome.org or the Advanced Settings "
|
||||
"application."
|
||||
msgstr ""
|
||||
"Právě jste poprvé použili rozšíření Alternate Tab.\n"
|
||||
"Vyberte si vámi upřednostňované chování:\n"
|
||||
"\n"
|
||||
"Vše a náhledy:\n"
|
||||
" Tento režim předkládá všechny aplikace ze všech pracovních ploch\n"
|
||||
" v jediném výběrovém seznamu. Místo ikon aplikací pro každé z oken\n"
|
||||
" používá malé náhledy vytvořené přímo podle oken.\n"
|
||||
"\n"
|
||||
"Pracovní plocha a ikony:\n"
|
||||
" Tento režim vám umožňuje přepínat mezi aplikacemi vaší aktuální "
|
||||
"pracovní\n"
|
||||
" plochy a poskytuje vám navíc možnost přepnout se na naposledy použitou\n"
|
||||
" aplikaci vaší předchozí pracovní plochy. Jde vždy o poslední symbol v "
|
||||
"seznamu\n"
|
||||
" a pokud je k dispozici, je oddělen oddělovačem/svislou čárou. Každé z "
|
||||
"oken\n"
|
||||
" je prezentováno ikonou příslušné aplikace.\n"
|
||||
"\n"
|
||||
"Jestliže si přejete vrátit výchozí chování přepínače Alt-Tab, jednoduše "
|
||||
"rozšíření\n"
|
||||
"zakažte v extensions.gnome.org nebo v aplikaci Pokročilá nastavení."
|
||||
|
||||
#: ../extensions/alternate-tab/extension.js:295
|
||||
msgid "Alt Tab Behaviour"
|
||||
msgstr "Chování Alt Tab"
|
||||
|
||||
#: ../extensions/alternate-tab/extension.js:311
|
||||
msgid "All & Thumbnails"
|
||||
msgstr "Vše a náhledy"
|
||||
|
||||
#: ../extensions/alternate-tab/extension.js:318
|
||||
msgid "Workspace & Icons"
|
||||
msgstr "Pracovní plocha a ikony"
|
||||
|
||||
#: ../extensions/alternate-tab/extension.js:325
|
||||
msgid "Cancel"
|
||||
msgstr "Zrušit"
|
||||
|
||||
#: ../extensions/alternate-tab/org.gnome.shell.extensions.alternate-tab.gschema.xml.in.h:1
|
||||
msgid "Ask the user for a default behaviour if true."
|
||||
msgstr "Když je zapnuto, dotázat se uživatele na výchozí chování."
|
||||
|
||||
#: ../extensions/alternate-tab/org.gnome.shell.extensions.alternate-tab.gschema.xml.in.h:2
|
||||
msgid "Indicates if Alternate Tab is newly installed"
|
||||
msgstr "Signalizuje, když je rozšíření Alternate Tab nově nainstalováno"
|
||||
|
||||
#: ../extensions/alternate-tab/org.gnome.shell.extensions.alternate-tab.gschema.xml.in.h:3
|
||||
msgid ""
|
||||
"Sets the Alt-Tab behaviour. Possible values are: native, all_thumbnails and "
|
||||
"workspace_icons."
|
||||
msgstr ""
|
||||
"Nastavuje chování klávesové zkratky Alt-Tab. Možné hodnoty jsou: native "
|
||||
"(přirozené), all_thumbnails (vše a náhledy) a workspace_icons (pracovní "
|
||||
"plocha a ikony)."
|
||||
|
||||
#: ../extensions/alternate-tab/org.gnome.shell.extensions.alternate-tab.gschema.xml.in.h:4
|
||||
msgid "The alt tab behaviour."
|
||||
msgstr "Chování klávesové zkratky alt tab."
|
||||
|
||||
#: ../extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml.in.h:1
|
||||
msgid ""
|
||||
"A list of strings, each containing an application id (desktop file name), "
|
||||
@@ -158,23 +73,23 @@ msgstr ""
|
||||
msgid "Application and workspace list"
|
||||
msgstr "Seznam aplikací a pracovních ploch"
|
||||
|
||||
#: ../extensions/dock/extension.js:570
|
||||
#: ../extensions/dock/extension.js:116
|
||||
msgid "Drag here to add favorites"
|
||||
msgstr "Přetažením sem přidáte do oblíbených"
|
||||
|
||||
#: ../extensions/dock/extension.js:903
|
||||
#: ../extensions/dock/extension.js:417
|
||||
msgid "New Window"
|
||||
msgstr "Nové okno"
|
||||
|
||||
#: ../extensions/dock/extension.js:905
|
||||
#: ../extensions/dock/extension.js:419
|
||||
msgid "Quit Application"
|
||||
msgstr "Ukončit aplikaci"
|
||||
|
||||
#: ../extensions/dock/extension.js:910
|
||||
#: ../extensions/dock/extension.js:424
|
||||
msgid "Remove from Favorites"
|
||||
msgstr "Odebrat z oblíbených"
|
||||
|
||||
#: ../extensions/dock/extension.js:911
|
||||
#: ../extensions/dock/extension.js:425
|
||||
msgid "Add to Favorites"
|
||||
msgstr "Přidat do oblíbených"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user