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
|
SUBDIRS = extensions po
|
||||||
|
|
||||||
|
EXTRA_DIST = lib/convenience.js
|
||||||
|
|
||||||
DISTCHECK_CONFIGURE_FLAGS = --enable-extensions=all
|
DISTCHECK_CONFIGURE_FLAGS = --enable-extensions=all
|
||||||
|
|
||||||
include include.mk
|
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
|
* all extensions are now self-contained, including l10n and settings
|
||||||
(for schema files gnome-shell master is needed)
|
* introduce a convenience module that can be shared among all extensions
|
||||||
* cherry-picked some bug fixes
|
* you can know build an installable zip file with make zip-file
|
||||||
* cherry-picked translations
|
* apps-menu no longer shows NoDisplay apps
|
||||||
|
* alternative-status-menu, alternate-tab: fix for master shell
|
||||||
|
|
||||||
3.2.1
|
3.2.1
|
||||||
=====
|
=====
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
AC_PREREQ(2.63)
|
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_MACRO_DIR([m4])
|
||||||
AC_CONFIG_AUX_DIR([config])
|
AC_CONFIG_AUX_DIR([config])
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
include $(top_srcdir)/include.mk
|
include $(top_srcdir)/include.mk
|
||||||
|
|
||||||
dist_extension_DATA = extension.js stylesheet.css
|
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
|
EXTRA_DIST = metadata.json.in
|
||||||
|
|
||||||
|
|||||||
@@ -5,17 +5,19 @@
|
|||||||
* of the gnome-shell source code
|
* of the gnome-shell source code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const AltTab = imports.ui.altTab;
|
|
||||||
const Clutter = imports.gi.Clutter;
|
const Clutter = imports.gi.Clutter;
|
||||||
const Gdk = imports.gi.Gdk;
|
const Gdk = imports.gi.Gdk;
|
||||||
const Gio = imports.gi.Gio;
|
const Gio = imports.gi.Gio;
|
||||||
const Gtk = imports.gi.Gtk;
|
const Gtk = imports.gi.Gtk;
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const Main = imports.ui.main;
|
|
||||||
const Mainloop = imports.mainloop;
|
const Mainloop = imports.mainloop;
|
||||||
const ModalDialog = imports.ui.modalDialog;
|
const Meta = imports.gi.Meta;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
const St = imports.gi.St;
|
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 Tweener = imports.ui.tweener;
|
||||||
const WindowManager = imports.ui.windowManager;
|
const WindowManager = imports.ui.windowManager;
|
||||||
|
|
||||||
@@ -23,6 +25,8 @@ const Gettext = imports.gettext.domain('gnome-shell-extensions');
|
|||||||
const _ = Gettext.gettext;
|
const _ = Gettext.gettext;
|
||||||
const N_ = function(e) { return e };
|
const N_ = function(e) { return e };
|
||||||
|
|
||||||
|
let settings;
|
||||||
|
|
||||||
const POPUP_DELAY_TIMEOUT = 150; // milliseconds
|
const POPUP_DELAY_TIMEOUT = 150; // milliseconds
|
||||||
|
|
||||||
const SETTINGS_SCHEMA = 'org.gnome.shell.extensions.alternate-tab';
|
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 SETTINGS_FIRST_TIME_KEY = 'first-time';
|
||||||
|
|
||||||
const MODES = {
|
const MODES = {
|
||||||
all_thumbnails: function(shellwm, binding, mask, window, backwards) {
|
all_thumbnails: function(display, binding, mask, window, backwards) {
|
||||||
let tabPopup = new AltTabPopup2();
|
let tabPopup = new AltTabPopup2();
|
||||||
|
|
||||||
if (!tabPopup.show(backwards, binding, mask))
|
if (!tabPopup.show(backwards, binding, mask))
|
||||||
tabPopup.destroy();
|
tabPopup.destroy();
|
||||||
},
|
},
|
||||||
|
|
||||||
workspace_icons: function(shellwm, binding, mask, window, backwards) {
|
workspace_icons: function(display, binding, mask, window, backwards) {
|
||||||
if (shellwm._workspaceSwitcherPopup != null)
|
if (Main.wm._workspaceSwitcherPopup)
|
||||||
shellwm._workspaceSwitcherPopup.actor.hide();
|
Main.wm._workspaceSwitcherPopup.actor.hide();
|
||||||
|
|
||||||
let tabPopup = new AltTabPopupW();
|
let tabPopup = new AltTabPopupW();
|
||||||
if (!tabPopup.show(backwards, binding, mask))
|
if (!tabPopup.show(backwards, binding, mask))
|
||||||
@@ -328,9 +332,8 @@ AltTabSettingsDialog.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setBehaviour: function(behaviour) {
|
setBehaviour: function(behaviour) {
|
||||||
this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
|
settings.set_string(SETTINGS_BEHAVIOUR_KEY, behaviour);
|
||||||
this._settings.set_string(SETTINGS_BEHAVIOUR_KEY, behaviour);
|
settings.set_boolean(SETTINGS_FIRST_TIME_KEY, false);
|
||||||
this._settings.set_boolean(SETTINGS_FIRST_TIME_KEY, false);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -595,33 +598,34 @@ WindowList.prototype = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function init(metadata) {
|
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) {
|
function doAltTab(display, screen, window, binding) {
|
||||||
let settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
|
|
||||||
|
|
||||||
|
|
||||||
if(settings.get_boolean(SETTINGS_FIRST_TIME_KEY)) {
|
if(settings.get_boolean(SETTINGS_FIRST_TIME_KEY)) {
|
||||||
new AltTabSettingsDialog().open();
|
new AltTabSettingsDialog().open();
|
||||||
} else {
|
} else {
|
||||||
let behaviour = settings.get_string(SETTINGS_BEHAVIOUR_KEY);
|
let behaviour = settings.get_string(SETTINGS_BEHAVIOUR_KEY);
|
||||||
if(behaviour in MODES) {
|
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() {
|
function enable() {
|
||||||
Main.wm.setKeybindingHandler('switch-windows', doAltTab);
|
Meta.keybindings_set_custom_handler('switch-windows', doAltTab);
|
||||||
Main.wm.setKeybindingHandler('switch-group', doAltTab);
|
Meta.keybindings_set_custom_handler('switch-group', doAltTab);
|
||||||
Main.wm.setKeybindingHandler('switch-windows-backward', doAltTab);
|
Meta.keybindings_set_custom_handler('switch-windows-backward', doAltTab);
|
||||||
Main.wm.setKeybindingHandler('switch-group-backward', doAltTab);
|
Meta.keybindings_set_custom_handler('switch-group-backward', doAltTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
function disable() {
|
function disable() {
|
||||||
Main.wm.setKeybindingHandler('switch-windows', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
Meta.keybindings_set_custom_handler('switch-windows', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||||
Main.wm.setKeybindingHandler('switch-group', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
Meta.keybindings_set_custom_handler('switch-group', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||||
Main.wm.setKeybindingHandler('switch-windows-backward', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
Meta.keybindings_set_custom_handler('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-group-backward', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
"name": "AlternateTab",
|
"name": "AlternateTab",
|
||||||
"description": "A replacement for Alt-Tab, allows to cycle between windows and does not group by application",
|
"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" ],
|
"original-authors": [ "jw@bargsten.org", "thomas.bouffon@gmail.com" ],
|
||||||
"shell-version": [ "@shell_current@", "3.2" ],
|
"shell-version": [ "@shell_current@" ],
|
||||||
"url": "@url@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
/* -*- mode: js2 - indent-tabs-mode: nil - js2-basic-offset: 4 -*- */
|
/* -*- mode: js2 - indent-tabs-mode: nil - js2-basic-offset: 4 -*- */
|
||||||
const GLib = imports.gi.GLib;
|
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const St = imports.gi.St;
|
const St = imports.gi.St;
|
||||||
|
|
||||||
@@ -100,7 +99,8 @@ function createSubMenu() {
|
|||||||
|
|
||||||
// Put your extension initialization code here
|
// Put your extension initialization code here
|
||||||
function init(metadata) {
|
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) {
|
function reset(statusMenu) {
|
||||||
@@ -108,10 +108,7 @@ function reset(statusMenu) {
|
|||||||
statusMenu._updateLogout();
|
statusMenu._updateLogout();
|
||||||
statusMenu._updateLockScreen();
|
statusMenu._updateLockScreen();
|
||||||
|
|
||||||
statusMenu._presence.getStatus(Lang.bind(statusMenu, statusMenu._updateSwitch));
|
statusMenu._updateSwitch(statusMenu._presence.status);
|
||||||
|
|
||||||
// HACK! Obtain the IMStatusChooserItem and force a _updateUser
|
|
||||||
statusMenu.menu._getMenuItems()[0]._updateUser();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function enable() {
|
function enable() {
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Alternative Status Menu",
|
"name": "Alternative Status Menu",
|
||||||
"description": "Replaces GNOME Shell Status Menu with one showing Suspend/Hibernate and Power Off as separate items",
|
"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@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Applications Menu",
|
"name": "Applications Menu",
|
||||||
"description": "Add a gnome 2.x style menu for applications",
|
"description": "Add a gnome 2.x style menu for applications",
|
||||||
"shell-version": [ "@shell_current@", "3.2" ],
|
"shell-version": [ "@shell_current@" ],
|
||||||
"url": "@url@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,13 +14,15 @@ const Main = imports.ui.main;
|
|||||||
const SETTINGS_SCHEMA = 'org.gnome.shell.extensions.auto-move-windows';
|
const SETTINGS_SCHEMA = 'org.gnome.shell.extensions.auto-move-windows';
|
||||||
const SETTINGS_KEY = 'application-list';
|
const SETTINGS_KEY = 'application-list';
|
||||||
|
|
||||||
|
let settings;
|
||||||
|
|
||||||
function WindowMover() {
|
function WindowMover() {
|
||||||
this._init();
|
this._init();
|
||||||
}
|
}
|
||||||
|
|
||||||
WindowMover.prototype = {
|
WindowMover.prototype = {
|
||||||
_init: function() {
|
_init: function() {
|
||||||
this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
|
this._settings = settings;
|
||||||
this._windowTracker = Shell.WindowTracker.get_default();
|
this._windowTracker = Shell.WindowTracker.get_default();
|
||||||
|
|
||||||
let display = global.screen.get_display();
|
let display = global.screen.get_display();
|
||||||
@@ -79,8 +81,10 @@ WindowMover.prototype = {
|
|||||||
let prevCheckWorkspaces;
|
let prevCheckWorkspaces;
|
||||||
let winMover;
|
let winMover;
|
||||||
|
|
||||||
function init(extensionMeta) {
|
function init(metadata) {
|
||||||
// do nothing here
|
let me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||||
|
me.convenience.initTranslations(metadata);
|
||||||
|
settings = me.convenience.getSettings(metadata, 'auto-move-windows');
|
||||||
}
|
}
|
||||||
|
|
||||||
function enable() {
|
function enable() {
|
||||||
@@ -159,4 +163,4 @@ function enable() {
|
|||||||
function disable() {
|
function disable() {
|
||||||
Main._checkWorkspaces = prevCheckWorkspaces;
|
Main._checkWorkspaces = prevCheckWorkspaces;
|
||||||
winMover.destroy();
|
winMover.destroy();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Auto Move Windows",
|
"name": "Auto Move Windows",
|
||||||
"description": "Move applications to specific workspaces when they create 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" ],
|
"original-authors": [ "alessandro.crismani@gmail.com", "thomas.bouffon@gmail.com" ],
|
||||||
"url": "@url@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ const DOCK_HIDE_KEY = 'autohide';
|
|||||||
const DOCK_EFFECTHIDE_KEY = 'hide-effect';
|
const DOCK_EFFECTHIDE_KEY = 'hide-effect';
|
||||||
const DOCK_AUTOHIDE_ANIMATION_TIME_KEY = 'hide-effect-duration';
|
const DOCK_AUTOHIDE_ANIMATION_TIME_KEY = 'hide-effect-duration';
|
||||||
|
|
||||||
|
let _me, _metadata;
|
||||||
|
|
||||||
//hide
|
//hide
|
||||||
//const autohide_animation_time = 0.3;
|
//const autohide_animation_time = 0.3;
|
||||||
@@ -340,7 +341,7 @@ Dock.prototype = {
|
|||||||
this._favorites = [];
|
this._favorites = [];
|
||||||
|
|
||||||
// Load Settings
|
// 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);
|
position = this._settings.get_enum(DOCK_POSITION_KEY);
|
||||||
dockicon_size = this._settings.get_int(DOCK_SIZE_KEY);
|
dockicon_size = this._settings.get_int(DOCK_SIZE_KEY);
|
||||||
hideDock = hideable = this._settings.get_boolean(DOCK_HIDE_KEY);
|
hideDock = hideable = this._settings.get_boolean(DOCK_HIDE_KEY);
|
||||||
@@ -934,8 +935,10 @@ DockIconMenu.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function init(extensionMeta) {
|
function init(metadata) {
|
||||||
imports.gettext.bindtextdomain('gnome-shell-extensions', GLib.build_filenamev([metadata.path, 'locale']));
|
_metadata = metadata;
|
||||||
|
_me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||||
|
_me.convenience.initTranslations(metadata);
|
||||||
}
|
}
|
||||||
|
|
||||||
let dock;
|
let dock;
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
"name": "Dock",
|
"name": "Dock",
|
||||||
"description": "A dock for the GNOME Shell -- displays favorite and running applications",
|
"description": "A dock for the GNOME Shell -- displays favorite and running applications",
|
||||||
"original-author": "tclaesson@gmail.com",
|
"original-author": "tclaesson@gmail.com",
|
||||||
"shell-version": [ "@shell_current@", "3.2" ],
|
"shell-version": [ "@shell_current@" ],
|
||||||
"url": "@url@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,7 +91,8 @@ DriveMenu.prototype = {
|
|||||||
|
|
||||||
// Put your extension initialization code here
|
// Put your extension initialization code here
|
||||||
function init(metadata) {
|
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;
|
let _indicator;
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Removable Drive Menu",
|
"name": "Removable Drive Menu",
|
||||||
"description": "A status menu for accessing and unmounting removable devices",
|
"description": "A status menu for accessing and unmounting removable devices",
|
||||||
"shell-version": [ "@shell_current@", "3.2" ],
|
"shell-version": [ "@shell_current@" ],
|
||||||
"url": "@url@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ function _showHello() {
|
|||||||
function init(metadata) {
|
function init(metadata) {
|
||||||
log ('Example extension initalized');
|
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;
|
let signalId;
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Hello, World!",
|
"name": "Hello, World!",
|
||||||
"description": "An example extension to show how it works. Shows Hello, world when clicking on the top panel.",
|
"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@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Gajim IM integration",
|
"name": "Gajim IM integration",
|
||||||
"description": "Display Gajim incoming chats as notifications in the Shell message tray.",
|
"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"
|
"url": "http://base-art.net"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ const WindowPlacementStrategy = {
|
|||||||
GRID: 1,
|
GRID: 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let _me, _metadata;
|
||||||
|
|
||||||
// testing settings for natural window placement strategy:
|
// 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_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
|
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() {
|
function enable() {
|
||||||
resetState();
|
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 placementStrategy = settings.get_enum('strategy');
|
||||||
let signalId = settings.connect('changed::strategy', function() {
|
let signalId = settings.connect('changed::strategy', function() {
|
||||||
placementStrategy = settings.get_enum('strategy');
|
placementStrategy = settings.get_enum('strategy');
|
||||||
@@ -527,6 +529,7 @@ function disable() {
|
|||||||
resetState();
|
resetState();
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
function init(metadata) {
|
||||||
/* do nothing */
|
_metadata = metadata;
|
||||||
}
|
_me = imports.ui.extensionSystem.extensions[metadata.uuid];
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Native Window Placement",
|
"name": "Native Window Placement",
|
||||||
"description": "Arrange windows in overview in a more native way",
|
"description": "Arrange windows in overview in a more native way",
|
||||||
"shell-version": [ "@shell_current@", "3.2" ],
|
"shell-version": [ "@shell_current@" ],
|
||||||
"url": "@url@",
|
"url": "@url@",
|
||||||
"original-authors": [ "wepmaschda@gmx.de" ]
|
"original-authors": [ "wepmaschda@gmx.de" ]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,7 +114,8 @@ PlacesMenu.prototype = {
|
|||||||
|
|
||||||
|
|
||||||
function init(metadata) {
|
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;
|
let _indicator;
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Places Status Indicator",
|
"name": "Places Status Indicator",
|
||||||
"description": "Add a systems status menu for quickly navigating places in the system",
|
"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@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"shell-version": ["@shell_current@", "3.2" ],
|
"shell-version": ["@shell_current@" ],
|
||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"original-author": "zaspire@rambler.ru",
|
"original-author": "zaspire@rambler.ru",
|
||||||
"name": "SystemMonitor",
|
"name": "SystemMonitor",
|
||||||
|
|||||||
@@ -10,15 +10,16 @@ const SETTINGS_SCHEMA = 'org.gnome.shell.extensions.user-theme';
|
|||||||
const SETTINGS_KEY = 'name';
|
const SETTINGS_KEY = 'name';
|
||||||
|
|
||||||
function ThemeManager() {
|
function ThemeManager() {
|
||||||
this._init();
|
this._init.apply(this, arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
ThemeManager.prototype = {
|
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() {
|
enable: function() {
|
||||||
this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
|
|
||||||
this._changedId = this._settings.connect('changed::'+SETTINGS_KEY, Lang.bind(this, this._changeTheme));
|
this._changedId = this._settings.connect('changed::'+SETTINGS_KEY, Lang.bind(this, this._changeTheme));
|
||||||
this._changeTheme();
|
this._changeTheme();
|
||||||
},
|
},
|
||||||
@@ -68,5 +69,5 @@ ThemeManager.prototype = {
|
|||||||
|
|
||||||
|
|
||||||
function init(metadata) {
|
function init(metadata) {
|
||||||
return new ThemeManager();
|
return new ThemeManager(metadata);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "User Themes",
|
"name": "User Themes",
|
||||||
"description": "Load shell themes from user directory",
|
"description": "Load shell themes from user directory",
|
||||||
"shell-version": [ "@shell_current@", "3.2" ],
|
"shell-version": [ "@shell_current@" ],
|
||||||
"localedir": "@LOCALEDIR@",
|
|
||||||
"original-authors": [ "john.stowers@gmail.com" ],
|
"original-authors": [ "john.stowers@gmail.com" ],
|
||||||
"url": "@url@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"shell-version": ["@shell_current@", "3.2" ],
|
"shell-version": ["@shell_current@" ],
|
||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"original-author": "zaspire@rambler.ru",
|
"original-author": "zaspire@rambler.ru",
|
||||||
"name": "windowNavigator",
|
"name": "windowNavigator",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Workspace Indicator",
|
"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",
|
"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" ],
|
"original-authors": [ "erick.red@gmail.com" ],
|
||||||
"url": "@url@"
|
"url": "@url@"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,7 +137,8 @@ Indicator.prototype = {
|
|||||||
|
|
||||||
|
|
||||||
function init(metadata) {
|
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;
|
let _indicator;
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
"uuid": "@uuid@",
|
"uuid": "@uuid@",
|
||||||
"name": "Monitor Status Indicator",
|
"name": "Monitor Status Indicator",
|
||||||
"description": "Add a systems status menu for rotating monitors (overrides what is currently provided by gnome-settings-daemon)",
|
"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@"
|
"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"
|
"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: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-"
|
||||||
"shell&keywords=I18N+L10N&component=extensions\n"
|
"shell&keywords=I18N+L10N&component=extensions\n"
|
||||||
"POT-Creation-Date: 2011-11-22 10:40+0000\n"
|
"POT-Creation-Date: 2011-04-16 16:32+0000\n"
|
||||||
"PO-Revision-Date: 2011-11-22 11:43+0100\n"
|
"PO-Revision-Date: 2011-04-17 11:10+0200\n"
|
||||||
"Last-Translator: Marek Černocký <marek@manet.cz>\n"
|
"Last-Translator: Marek Černocký <marek@manet.cz>\n"
|
||||||
"Language-Team: Czech <gnome-cs-list@gnome.org>\n"
|
"Language-Team: Czech <gnome-cs-list@gnome.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -61,91 +61,6 @@ msgstr "Odhlásit se…"
|
|||||||
msgid "Power Off..."
|
msgid "Power Off..."
|
||||||
msgstr "Vypnout…"
|
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
|
#: ../extensions/auto-move-windows/org.gnome.shell.extensions.auto-move-windows.gschema.xml.in.h:1
|
||||||
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), "
|
||||||
@@ -158,23 +73,23 @@ msgstr ""
|
|||||||
msgid "Application and workspace list"
|
msgid "Application and workspace list"
|
||||||
msgstr "Seznam aplikací a pracovních ploch"
|
msgstr "Seznam aplikací a pracovních ploch"
|
||||||
|
|
||||||
#: ../extensions/dock/extension.js:570
|
#: ../extensions/dock/extension.js:116
|
||||||
msgid "Drag here to add favorites"
|
msgid "Drag here to add favorites"
|
||||||
msgstr "Přetažením sem přidáte do oblíbených"
|
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"
|
msgid "New Window"
|
||||||
msgstr "Nové okno"
|
msgstr "Nové okno"
|
||||||
|
|
||||||
#: ../extensions/dock/extension.js:905
|
#: ../extensions/dock/extension.js:419
|
||||||
msgid "Quit Application"
|
msgid "Quit Application"
|
||||||
msgstr "Ukončit aplikaci"
|
msgstr "Ukončit aplikaci"
|
||||||
|
|
||||||
#: ../extensions/dock/extension.js:910
|
#: ../extensions/dock/extension.js:424
|
||||||
msgid "Remove from Favorites"
|
msgid "Remove from Favorites"
|
||||||
msgstr "Odebrat z oblíbených"
|
msgstr "Odebrat z oblíbených"
|
||||||
|
|
||||||
#: ../extensions/dock/extension.js:911
|
#: ../extensions/dock/extension.js:425
|
||||||
msgid "Add to Favorites"
|
msgid "Add to Favorites"
|
||||||
msgstr "Přidat do oblíbených"
|
msgstr "Přidat do oblíbených"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user