drop extensions
This commit is contained in:
parent
8354dee918
commit
fb13290214
@ -1,542 +0,0 @@
|
||||
// appfolderDialog.js
|
||||
// GPLv3
|
||||
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const Gio = imports.gi.Gio;
|
||||
const St = imports.gi.St;
|
||||
const Main = imports.ui.main;
|
||||
const ModalDialog = imports.ui.modalDialog;
|
||||
const PopupMenu = imports.ui.popupMenu;
|
||||
const ShellEntry = imports.ui.shellEntry;
|
||||
const Signals = imports.signals;
|
||||
const Gtk = imports.gi.Gtk;
|
||||
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Convenience = Me.imports.convenience;
|
||||
const Extension = Me.imports.extension;
|
||||
|
||||
const Gettext = imports.gettext.domain('appfolders-manager');
|
||||
const _ = Gettext.gettext;
|
||||
|
||||
let FOLDER_SCHEMA;
|
||||
let FOLDER_LIST;
|
||||
|
||||
//--------------------------------------------------------------
|
||||
|
||||
// This is a modal dialog for creating a new folder, or renaming or modifying
|
||||
// categories of existing folders.
|
||||
var AppfolderDialog = class AppfolderDialog {
|
||||
|
||||
// build a new dialog. If folder is null, the dialog will be for creating a new
|
||||
// folder, else app is null, and the dialog will be for editing an existing folder
|
||||
constructor (folder, app, id) {
|
||||
this._folder = folder;
|
||||
this._app = app;
|
||||
this._id = id;
|
||||
this.super_dialog = new ModalDialog.ModalDialog({ destroyOnClose: true });
|
||||
|
||||
FOLDER_SCHEMA = new Gio.Settings({ schema_id: 'org.gnome.desktop.app-folders' });
|
||||
FOLDER_LIST = FOLDER_SCHEMA.get_strv('folder-children');
|
||||
|
||||
let nameSection = this._buildNameSection();
|
||||
let categoriesSection = this._buildCategoriesSection();
|
||||
|
||||
this.super_dialog.contentLayout.style = 'spacing: 20px';
|
||||
this.super_dialog.contentLayout.add(nameSection, {
|
||||
x_fill: false,
|
||||
x_align: St.Align.START,
|
||||
y_align: St.Align.START
|
||||
});
|
||||
if ( Convenience.getSettings('org.gnome.shell.extensions.appfolders-manager').get_boolean('categories') ) {
|
||||
this.super_dialog.contentLayout.add(categoriesSection, {
|
||||
x_fill: false,
|
||||
x_align: St.Align.START,
|
||||
y_align: St.Align.START
|
||||
});
|
||||
}
|
||||
|
||||
if (this._folder == null) {
|
||||
this.super_dialog.setButtons([
|
||||
{ action: this.destroy.bind(this),
|
||||
label: _("Cancel"),
|
||||
key: Clutter.Escape },
|
||||
|
||||
{ action: this._apply.bind(this),
|
||||
label: _("Create"),
|
||||
key: Clutter.Return }
|
||||
]);
|
||||
} else {
|
||||
this.super_dialog.setButtons([
|
||||
{ action: this.destroy.bind(this),
|
||||
label: _("Cancel"),
|
||||
key: Clutter.Escape },
|
||||
|
||||
{ action: this._deleteFolder.bind(this),
|
||||
label: _("Delete"),
|
||||
key: Clutter.Delete },
|
||||
|
||||
{ action: this._apply.bind(this),
|
||||
label: _("Apply"),
|
||||
key: Clutter.Return }
|
||||
]);
|
||||
}
|
||||
|
||||
this._nameEntryText.connect('key-press-event', (o, e) => {
|
||||
let symbol = e.get_key_symbol();
|
||||
|
||||
if (symbol == Clutter.Return || symbol == Clutter.KP_Enter) {
|
||||
this.super_dialog.popModal();
|
||||
this._apply();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// build the section of the UI handling the folder's name and returns it.
|
||||
_buildNameSection () {
|
||||
let nameSection = new St.BoxLayout({
|
||||
style: 'spacing: 5px;',
|
||||
vertical: true,
|
||||
x_expand: true,
|
||||
natural_width_set: true,
|
||||
natural_width: 350,
|
||||
});
|
||||
|
||||
let nameLabel = new St.Label({
|
||||
text: _("Folder's name:"),
|
||||
style: 'font-weight: bold;',
|
||||
});
|
||||
nameSection.add(nameLabel, { y_align: St.Align.START });
|
||||
|
||||
this._nameEntry = new St.Entry({
|
||||
x_expand: true,
|
||||
});
|
||||
this._nameEntryText = null; ///???
|
||||
this._nameEntryText = this._nameEntry.clutter_text;
|
||||
|
||||
nameSection.add(this._nameEntry, { y_align: St.Align.START });
|
||||
ShellEntry.addContextMenu(this._nameEntry);
|
||||
this.super_dialog.setInitialKeyFocus(this._nameEntryText);
|
||||
|
||||
if (this._folder != null) {
|
||||
this._nameEntryText.set_text(this._folder.get_string('name'));
|
||||
}
|
||||
|
||||
return nameSection;
|
||||
}
|
||||
|
||||
// build the section of the UI handling the folder's categories and returns it.
|
||||
_buildCategoriesSection () {
|
||||
let categoriesSection = new St.BoxLayout({
|
||||
style: 'spacing: 5px;',
|
||||
vertical: true,
|
||||
x_expand: true,
|
||||
natural_width_set: true,
|
||||
natural_width: 350,
|
||||
});
|
||||
|
||||
let categoriesLabel = new St.Label({
|
||||
text: _("Categories:"),
|
||||
style: 'font-weight: bold;',
|
||||
});
|
||||
categoriesSection.add(categoriesLabel, {
|
||||
x_fill: false,
|
||||
x_align: St.Align.START,
|
||||
y_align: St.Align.START,
|
||||
});
|
||||
|
||||
let categoriesBox = new St.BoxLayout({
|
||||
style: 'spacing: 5px;',
|
||||
vertical: false,
|
||||
x_expand: true,
|
||||
});
|
||||
|
||||
// at the left, how to add categories
|
||||
let addCategoryBox = new St.BoxLayout({
|
||||
style: 'spacing: 5px;',
|
||||
vertical: true,
|
||||
x_expand: true,
|
||||
});
|
||||
|
||||
this._categoryEntry = new St.Entry({
|
||||
can_focus: true,
|
||||
x_expand: true,
|
||||
hint_text: _("Other category?"),
|
||||
secondary_icon: new St.Icon({
|
||||
icon_name: 'list-add-symbolic',
|
||||
icon_size: 16,
|
||||
style_class: 'system-status-icon',
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
}),
|
||||
});
|
||||
ShellEntry.addContextMenu(this._categoryEntry, null);
|
||||
this._categoryEntry.connect('secondary-icon-clicked', this._addCategory.bind(this));
|
||||
|
||||
this._categoryEntryText = null; ///???
|
||||
this._categoryEntryText = this._categoryEntry.clutter_text;
|
||||
this._catSelectButton = new SelectCategoryButton(this);
|
||||
|
||||
addCategoryBox.add(this._catSelectButton.actor, { y_align: St.Align.CENTER });
|
||||
addCategoryBox.add(this._categoryEntry, { y_align: St.Align.START });
|
||||
categoriesBox.add(addCategoryBox, {
|
||||
x_fill: true,
|
||||
x_align: St.Align.START,
|
||||
y_align: St.Align.START,
|
||||
});
|
||||
|
||||
// at the right, a list of categories
|
||||
this.listContainer = new St.BoxLayout({
|
||||
vertical: true,
|
||||
x_expand: true,
|
||||
});
|
||||
this.noCatLabel = new St.Label({ text: _("No category") });
|
||||
this.listContainer.add_actor(this.noCatLabel);
|
||||
categoriesBox.add(this.listContainer, {
|
||||
x_fill: true,
|
||||
x_align: St.Align.END,
|
||||
y_align: St.Align.START,
|
||||
});
|
||||
|
||||
categoriesSection.add(categoriesBox, {
|
||||
x_fill: true,
|
||||
x_align: St.Align.START,
|
||||
y_align: St.Align.START,
|
||||
});
|
||||
|
||||
// Load categories is necessary even if no this._folder,
|
||||
// because it initializes the value of this._categories
|
||||
this._loadCategories();
|
||||
|
||||
return categoriesSection;
|
||||
}
|
||||
|
||||
open () {
|
||||
this.super_dialog.open();
|
||||
}
|
||||
|
||||
// returns if a folder id already exists
|
||||
_alreadyExists (folderId) {
|
||||
for(var i = 0; i < FOLDER_LIST.length; i++) {
|
||||
if (FOLDER_LIST[i] == folderId) {
|
||||
// this._showError( _("This appfolder already exists.") );
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
destroy () {
|
||||
if ( Convenience.getSettings('org.gnome.shell.extensions.appfolders-manager').get_boolean('debug') ) {
|
||||
log('[AppfolderDialog v2] destroying dialog');
|
||||
}
|
||||
this._catSelectButton.destroy(); // TODO ?
|
||||
this.super_dialog.destroy(); //XXX crée des erreurs reloues ???
|
||||
}
|
||||
|
||||
// Generates a valid folder id, which as no space, no dot, no slash, and which
|
||||
// doesn't already exist.
|
||||
_folderId (newName) {
|
||||
let tmp0 = newName.split(" ");
|
||||
let folderId = "";
|
||||
for(var i = 0; i < tmp0.length; i++) {
|
||||
folderId += tmp0[i];
|
||||
}
|
||||
tmp0 = folderId.split(".");
|
||||
folderId = "";
|
||||
for(var i = 0; i < tmp0.length; i++) {
|
||||
folderId += tmp0[i];
|
||||
}
|
||||
tmp0 = folderId.split("/");
|
||||
folderId = "";
|
||||
for(var i = 0; i < tmp0.length; i++) {
|
||||
folderId += tmp0[i];
|
||||
}
|
||||
if(this._alreadyExists(folderId)) {
|
||||
folderId = this._folderId(folderId+'_');
|
||||
}
|
||||
return folderId;
|
||||
}
|
||||
|
||||
// creates a folder from the data filled by the user (with no properties)
|
||||
_create () {
|
||||
let folderId = this._folderId(this._nameEntryText.get_text());
|
||||
|
||||
FOLDER_LIST.push(folderId);
|
||||
FOLDER_SCHEMA.set_strv('folder-children', FOLDER_LIST);
|
||||
|
||||
this._folder = new Gio.Settings({
|
||||
schema_id: 'org.gnome.desktop.app-folders.folder',
|
||||
path: '/org/gnome/desktop/app-folders/folders/' + folderId + '/'
|
||||
});
|
||||
// this._folder.set_string('name', this._nameEntryText.get_text()); //superflu
|
||||
// est-il nécessaire d'initialiser la clé apps à [] ??
|
||||
this._addToFolder();
|
||||
}
|
||||
|
||||
// sets the name to the folder
|
||||
_applyName () {
|
||||
let newName = this._nameEntryText.get_text();
|
||||
this._folder.set_string('name', newName); // génère un bug ?
|
||||
return Clutter.EVENT_STOP;
|
||||
}
|
||||
|
||||
// loads categories, as set in gsettings, to the UI
|
||||
_loadCategories () {
|
||||
if (this._folder == null) {
|
||||
this._categories = [];
|
||||
} else {
|
||||
this._categories = this._folder.get_strv('categories');
|
||||
if ((this._categories == null) || (this._categories.length == 0)) {
|
||||
this._categories = [];
|
||||
} else {
|
||||
this.noCatLabel.visible = false;
|
||||
}
|
||||
}
|
||||
this._categoriesButtons = [];
|
||||
for (var i = 0; i < this._categories.length; i++) {
|
||||
this._addCategoryBox(i);
|
||||
}
|
||||
}
|
||||
|
||||
_addCategoryBox (i) {
|
||||
let aCategory = new AppCategoryBox(this, i);
|
||||
this.listContainer.add_actor(aCategory.super_box);
|
||||
}
|
||||
|
||||
// adds a category to the UI (will be added to gsettings when pressing "apply" only)
|
||||
_addCategory (entry, new_cat_name) {
|
||||
if (new_cat_name == null) {
|
||||
new_cat_name = this._categoryEntryText.get_text();
|
||||
}
|
||||
if (this._categories.indexOf(new_cat_name) != -1) {
|
||||
return;
|
||||
}
|
||||
if (new_cat_name == '') {
|
||||
return;
|
||||
}
|
||||
this._categories.push(new_cat_name);
|
||||
this._categoryEntryText.set_text('');
|
||||
this.noCatLabel.visible = false;
|
||||
this._addCategoryBox(this._categories.length-1);
|
||||
}
|
||||
|
||||
// adds all categories to gsettings
|
||||
_applyCategories () {
|
||||
this._folder.set_strv('categories', this._categories);
|
||||
return Clutter.EVENT_STOP;
|
||||
}
|
||||
|
||||
// Apply everything by calling methods above, and reload the view
|
||||
_apply () {
|
||||
if (this._app != null) {
|
||||
this._create();
|
||||
// this._addToFolder();
|
||||
}
|
||||
this._applyCategories();
|
||||
this._applyName();
|
||||
this.destroy();
|
||||
//-----------------------
|
||||
Main.overview.viewSelector.appDisplay._views[1].view._redisplay();
|
||||
if ( Convenience.getSettings('org.gnome.shell.extensions.appfolders-manager').get_boolean('debug') ) {
|
||||
log('[AppfolderDialog v2] reload the view');
|
||||
}
|
||||
}
|
||||
|
||||
// initializes the folder with its first app. This is not optional since empty
|
||||
// folders are not displayed. TODO use the equivalent method from extension.js
|
||||
_addToFolder () {
|
||||
let content = this._folder.get_strv('apps');
|
||||
content.push(this._app);
|
||||
this._folder.set_strv('apps', content);
|
||||
}
|
||||
|
||||
// Delete the folder, using the extension.js method
|
||||
_deleteFolder () {
|
||||
if (this._folder != null) {
|
||||
Extension.deleteFolder(this._id);
|
||||
}
|
||||
this.destroy();
|
||||
}
|
||||
};
|
||||
|
||||
//------------------------------------------------
|
||||
|
||||
// Very complex way to have a menubutton for displaying a menu with standard
|
||||
// categories. Button part.
|
||||
class SelectCategoryButton {
|
||||
constructor (dialog) {
|
||||
this._dialog = dialog;
|
||||
|
||||
let catSelectBox = new St.BoxLayout({
|
||||
vertical: false,
|
||||
x_expand: true,
|
||||
});
|
||||
let catSelectLabel = new St.Label({
|
||||
text: _("Select a category…"),
|
||||
x_align: Clutter.ActorAlign.START,
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
x_expand: true,
|
||||
});
|
||||
let catSelectIcon = new St.Icon({
|
||||
icon_name: 'pan-down-symbolic',
|
||||
icon_size: 16,
|
||||
style_class: 'system-status-icon',
|
||||
x_expand: false,
|
||||
x_align: Clutter.ActorAlign.END,
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
});
|
||||
catSelectBox.add(catSelectLabel, { y_align: St.Align.MIDDLE });
|
||||
catSelectBox.add(catSelectIcon, { y_align: St.Align.END });
|
||||
this.actor = new St.Button ({
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
child: catSelectBox,
|
||||
style_class: 'button',
|
||||
style: 'padding: 5px 5px;',
|
||||
x_expand: true,
|
||||
y_expand: false,
|
||||
x_fill: true,
|
||||
y_fill: true,
|
||||
});
|
||||
this.actor.connect('button-press-event', this._onButtonPress.bind(this));
|
||||
|
||||
this._menu = null;
|
||||
this._menuManager = new PopupMenu.PopupMenuManager(this);
|
||||
}
|
||||
|
||||
popupMenu () {
|
||||
this.actor.fake_release();
|
||||
if (!this._menu) {
|
||||
this._menu = new SelectCategoryMenu(this, this._dialog);
|
||||
this._menu.super_menu.connect('open-state-changed', (menu, isPoppedUp) => {
|
||||
if (!isPoppedUp) {
|
||||
this.actor.sync_hover();
|
||||
this.emit('menu-state-changed', false);
|
||||
}
|
||||
});
|
||||
this._menuManager.addMenu(this._menu.super_menu);
|
||||
}
|
||||
this.emit('menu-state-changed', true);
|
||||
this.actor.set_hover(true);
|
||||
this._menu.popup();
|
||||
this._menuManager.ignoreRelease();
|
||||
return false;
|
||||
}
|
||||
|
||||
_onButtonPress (actor, event) {
|
||||
this.popupMenu();
|
||||
return Clutter.EVENT_STOP;
|
||||
}
|
||||
|
||||
destroy () {
|
||||
if (this._menu) {
|
||||
this._menu.destroy();
|
||||
}
|
||||
this.actor.destroy();
|
||||
}
|
||||
};
|
||||
Signals.addSignalMethods(SelectCategoryButton.prototype);
|
||||
|
||||
//------------------------------------------------
|
||||
|
||||
// Very complex way to have a menubutton for displaying a menu with standard
|
||||
// categories. Menu part.
|
||||
class SelectCategoryMenu {
|
||||
constructor (source, dialog) {
|
||||
this.super_menu = new PopupMenu.PopupMenu(source.actor, 0.5, St.Side.RIGHT);
|
||||
this._source = source;
|
||||
this._dialog = dialog;
|
||||
this.super_menu.actor.add_style_class_name('app-well-menu');
|
||||
this._source.actor.connect('destroy', this.super_menu.destroy.bind(this));
|
||||
|
||||
// We want to keep the item hovered while the menu is up //XXX used ??
|
||||
this.super_menu.blockSourceEvents = true;
|
||||
|
||||
Main.uiGroup.add_actor(this.super_menu.actor);
|
||||
|
||||
// This is a really terrible hack to overwrite _redisplay without
|
||||
// actually inheriting from PopupMenu.PopupMenu
|
||||
this.super_menu._redisplay = this._redisplay;
|
||||
this.super_menu._dialog = this._dialog;
|
||||
}
|
||||
|
||||
_redisplay () {
|
||||
this.removeAll();
|
||||
let mainCategories = ['AudioVideo', 'Audio', 'Video', 'Development',
|
||||
'Education', 'Game', 'Graphics', 'Network', 'Office', 'Science',
|
||||
'Settings', 'System', 'Utility'];
|
||||
for (var i=0; i<mainCategories.length; i++) {
|
||||
let labelItem = mainCategories[i] ;
|
||||
let item = new PopupMenu.PopupMenuItem( labelItem );
|
||||
item.connect('activate', () => {
|
||||
this._dialog._addCategory(null, labelItem);
|
||||
});
|
||||
this.addMenuItem(item);
|
||||
}
|
||||
}
|
||||
|
||||
popup (activatingButton) {
|
||||
this.super_menu._redisplay();
|
||||
this.super_menu.open();
|
||||
}
|
||||
|
||||
destroy () {
|
||||
this.super_menu.close(); //FIXME error in the logs but i don't care
|
||||
this.super_menu.destroy();
|
||||
}
|
||||
};
|
||||
Signals.addSignalMethods(SelectCategoryMenu.prototype);
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
// This custom widget is a deletable row, displaying a category name.
|
||||
class AppCategoryBox {
|
||||
constructor (dialog, i) {
|
||||
this.super_box = new St.BoxLayout({
|
||||
vertical: false,
|
||||
style_class: 'appCategoryBox',
|
||||
});
|
||||
this._dialog = dialog;
|
||||
this.catName = this._dialog._categories[i];
|
||||
this.super_box.add_actor(new St.Label({
|
||||
text: this.catName,
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
}));
|
||||
this.super_box.add_actor( new St.BoxLayout({ x_expand: true }) );
|
||||
this.deleteButton = new St.Button({
|
||||
x_expand: false,
|
||||
y_expand: true,
|
||||
style_class: 'appCategoryDeleteBtn',
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
child: new St.Icon({
|
||||
icon_name: 'edit-delete-symbolic',
|
||||
icon_size: 16,
|
||||
style_class: 'system-status-icon',
|
||||
x_expand: false,
|
||||
y_expand: true,
|
||||
style: 'margin: 3px;',
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
}),
|
||||
});
|
||||
this.super_box.add_actor(this.deleteButton);
|
||||
this.deleteButton.connect('clicked', this.removeFromList.bind(this));
|
||||
}
|
||||
|
||||
removeFromList () {
|
||||
this._dialog._categories.splice(this._dialog._categories.indexOf(this.catName), 1);
|
||||
if (this._dialog._categories.length == 0) {
|
||||
this._dialog.noCatLabel.visible = true;
|
||||
}
|
||||
this.destroy();
|
||||
}
|
||||
|
||||
destroy () {
|
||||
this.deleteButton.destroy();
|
||||
this.super_box.destroy();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1,92 +0,0 @@
|
||||
/* -*- mode: js; js-basic-offset: 4; indent-tabs-mode: nil -*- */
|
||||
/*
|
||||
Copyright (c) 2011-2012, Giovanni Campagna <scampa.giovanni@gmail.com>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the GNOME nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
const Gettext = imports.gettext;
|
||||
const Gio = imports.gi.Gio;
|
||||
|
||||
const Config = imports.misc.config;
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
|
||||
/**
|
||||
* initTranslations:
|
||||
* @domain: (optional): the gettext domain to use
|
||||
*
|
||||
* Initialize Gettext to load translations from extensionsdir/locale.
|
||||
* If @domain is not provided, it will be taken from metadata['gettext-domain']
|
||||
*/
|
||||
function initTranslations(domain) {
|
||||
let extension = ExtensionUtils.getCurrentExtension();
|
||||
domain = domain || extension.metadata['gettext-domain'];
|
||||
|
||||
// check if this extension was built with "make zip-file", and thus
|
||||
// has the locale files in a subfolder
|
||||
// otherwise assume that extension has been installed in the
|
||||
// same prefix as gnome-shell
|
||||
let localeDir = extension.dir.get_child('locale');
|
||||
if (localeDir.query_exists(null))
|
||||
Gettext.bindtextdomain(domain, localeDir.get_path());
|
||||
else
|
||||
Gettext.bindtextdomain(domain, Config.LOCALEDIR);
|
||||
}
|
||||
|
||||
/**
|
||||
* getSettings:
|
||||
* @schema: (optional): the GSettings schema id
|
||||
*
|
||||
* Builds and return a GSettings schema for @schema, using schema files
|
||||
* in extensionsdir/schemas. If @schema is not provided, it is taken from
|
||||
* metadata['settings-schema'].
|
||||
*/
|
||||
function getSettings(schema) {
|
||||
let extension = ExtensionUtils.getCurrentExtension();
|
||||
schema = schema || extension.metadata['settings-schema'];
|
||||
|
||||
const GioSSS = Gio.SettingsSchemaSource;
|
||||
|
||||
// check if this extension was built with "make zip-file", and thus
|
||||
// has the schema files in a subfolder
|
||||
// otherwise assume that extension has been installed in the
|
||||
// same prefix as gnome-shell (and therefore schemas are available
|
||||
// in the standard folders)
|
||||
let schemaDir = extension.dir.get_child('schemas');
|
||||
let schemaSource;
|
||||
if (schemaDir.query_exists(null)) {
|
||||
schemaSource = GioSSS.new_from_directory(schemaDir.get_path(),
|
||||
GioSSS.get_default(),
|
||||
false);
|
||||
} else {
|
||||
schemaSource = GioSSS.get_default();
|
||||
}
|
||||
|
||||
let schemaObj = schemaSource.lookup(schema, true);
|
||||
if (!schemaObj)
|
||||
throw new Error('Schema ' + schema + ' could not be found for extension '
|
||||
+ extension.metadata.uuid + '. Please check your installation.');
|
||||
|
||||
return new Gio.Settings({ settings_schema: schemaObj });
|
||||
}
|
||||
|
@ -1,550 +0,0 @@
|
||||
// dragAndDrop.js
|
||||
// GPLv3
|
||||
|
||||
const DND = imports.ui.dnd;
|
||||
const AppDisplay = imports.ui.appDisplay;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
const Main = imports.ui.main;
|
||||
const Mainloop = imports.mainloop;
|
||||
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Convenience = Me.imports.convenience;
|
||||
const Extension = Me.imports.extension;
|
||||
|
||||
const CHANGE_PAGE_TIMEOUT = 400;
|
||||
|
||||
const Gettext = imports.gettext.domain('appfolders-manager');
|
||||
const _ = Gettext.gettext;
|
||||
|
||||
//-------------------------------------------------
|
||||
|
||||
var OVERLAY_MANAGER;
|
||||
|
||||
/* This method is called by extension.js' enable function. It does code injections
|
||||
* to AppDisplay.AppIcon, connecting it to DND-related signals.
|
||||
*/
|
||||
function initDND () {
|
||||
OVERLAY_MANAGER = new OverlayManager();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
|
||||
/* Amazing! A singleton! It allows easy (and safer?) access to general methods,
|
||||
* managing other objects: it creates/updates/deletes all overlays (for folders,
|
||||
* pages, creation, removing).
|
||||
*/
|
||||
class OverlayManager {
|
||||
constructor () {
|
||||
this.addActions = [];
|
||||
this.removeAction = new FolderActionArea('remove');
|
||||
this.createAction = new FolderActionArea('create');
|
||||
this.upAction = new NavigationArea('up');
|
||||
this.downAction = new NavigationArea('down');
|
||||
|
||||
this.next_drag_should_recompute = true;
|
||||
this.current_width = 0;
|
||||
}
|
||||
|
||||
on_drag_begin () {
|
||||
this.ensurePopdowned();
|
||||
this.ensureFolderOverlayActors();
|
||||
this.updateFoldersVisibility();
|
||||
this.updateState(true);
|
||||
}
|
||||
|
||||
on_drag_end () {
|
||||
// force to compute new positions if a drop occurs
|
||||
this.next_drag_should_recompute = true;
|
||||
this.updateState(false);
|
||||
}
|
||||
|
||||
on_drag_cancelled () {
|
||||
this.updateState(false);
|
||||
}
|
||||
|
||||
updateArrowVisibility () {
|
||||
let grid = Main.overview.viewSelector.appDisplay._views[1].view._grid;
|
||||
if (grid.currentPage == 0) {
|
||||
this.upAction.setActive(false);
|
||||
} else {
|
||||
this.upAction.setActive(true);
|
||||
}
|
||||
if (grid.currentPage == grid._nPages -1) {
|
||||
this.downAction.setActive(false);
|
||||
} else {
|
||||
this.downAction.setActive(true);
|
||||
}
|
||||
this.upAction.show();
|
||||
this.downAction.show();
|
||||
}
|
||||
|
||||
updateState (isDragging) {
|
||||
if (isDragging) {
|
||||
this.removeAction.show();
|
||||
if (this.openedFolder == null) {
|
||||
this.removeAction.setActive(false);
|
||||
} else {
|
||||
this.removeAction.setActive(true);
|
||||
}
|
||||
this.createAction.show();
|
||||
this.updateArrowVisibility();
|
||||
} else {
|
||||
this.hideAll();
|
||||
}
|
||||
}
|
||||
|
||||
hideAll () {
|
||||
this.removeAction.hide();
|
||||
this.createAction.hide();
|
||||
this.upAction.hide();
|
||||
this.downAction.hide();
|
||||
this.hideAllFolders();
|
||||
}
|
||||
|
||||
hideAllFolders () {
|
||||
for (var i = 0; i < this.addActions.length; i++) {
|
||||
this.addActions[i].hide();
|
||||
}
|
||||
}
|
||||
|
||||
updateActorsPositions () {
|
||||
let monitor = Main.layoutManager.primaryMonitor;
|
||||
this.topOfTheGrid = Main.overview.viewSelector.actor.get_parent().get_parent().get_allocation_box().y1;
|
||||
let temp = Main.overview.viewSelector.appDisplay._views[1].view.actor.get_parent();
|
||||
let bottomOfTheGrid = this.topOfTheGrid + temp.get_allocation_box().y2;
|
||||
|
||||
let _availHeight = bottomOfTheGrid - this.topOfTheGrid;
|
||||
let _availWidth = Main.overview.viewSelector.appDisplay._views[1].view._grid.actor.width;
|
||||
let sideMargin = (monitor.width - _availWidth) / 2;
|
||||
|
||||
let xMiddle = ( monitor.x + monitor.width ) / 2;
|
||||
let yMiddle = ( monitor.y + monitor.height ) / 2;
|
||||
|
||||
// Positions of areas
|
||||
this.removeAction.setPosition( xMiddle , bottomOfTheGrid );
|
||||
this.createAction.setPosition( xMiddle, Main.overview._panelGhost.height );
|
||||
this.upAction.setPosition( 0, Main.overview._panelGhost.height );
|
||||
this.downAction.setPosition( 0, bottomOfTheGrid );
|
||||
|
||||
// Sizes of areas
|
||||
this.removeAction.setSize(xMiddle, monitor.height - bottomOfTheGrid);
|
||||
this.createAction.setSize(xMiddle, this.topOfTheGrid - Main.overview._panelGhost.height);
|
||||
this.upAction.setSize(xMiddle, this.topOfTheGrid - Main.overview._panelGhost.height);
|
||||
this.downAction.setSize(xMiddle, monitor.height - bottomOfTheGrid);
|
||||
|
||||
this.updateArrowVisibility();
|
||||
}
|
||||
|
||||
ensureFolderOverlayActors () {
|
||||
// A folder was opened, and just closed.
|
||||
if (this.openedFolder != null) {
|
||||
this.updateActorsPositions();
|
||||
this.computeFolderOverlayActors();
|
||||
this.next_drag_should_recompute = true;
|
||||
return;
|
||||
}
|
||||
|
||||
// The grid "moved" or the whole shit needs forced updating
|
||||
let allAppsGrid = Main.overview.viewSelector.appDisplay._views[1].view._grid;
|
||||
let new_width = allAppsGrid.actor.allocation.get_width();
|
||||
if (new_width != this.current_width || this.next_drag_should_recompute) {
|
||||
this.next_drag_should_recompute = false;
|
||||
this.updateActorsPositions();
|
||||
this.computeFolderOverlayActors();
|
||||
}
|
||||
}
|
||||
|
||||
computeFolderOverlayActors () {
|
||||
let monitor = Main.layoutManager.primaryMonitor;
|
||||
let xMiddle = ( monitor.x + monitor.width ) / 2;
|
||||
let yMiddle = ( monitor.y + monitor.height ) / 2;
|
||||
let allAppsGrid = Main.overview.viewSelector.appDisplay._views[1].view._grid;
|
||||
|
||||
let nItems = 0;
|
||||
let indexes = [];
|
||||
let folders = [];
|
||||
let x, y;
|
||||
|
||||
Main.overview.viewSelector.appDisplay._views[1].view._allItems.forEach(function(icon) {
|
||||
if (icon.actor.visible) {
|
||||
if (icon instanceof AppDisplay.FolderIcon) {
|
||||
indexes.push(nItems);
|
||||
folders.push(icon);
|
||||
}
|
||||
nItems++;
|
||||
}
|
||||
});
|
||||
|
||||
this.current_width = allAppsGrid.actor.allocation.get_width();
|
||||
let x_correction = (monitor.width - this.current_width)/2;
|
||||
let availHeightPerPage = (allAppsGrid.actor.height)/(allAppsGrid._nPages);
|
||||
|
||||
for (var i = 0; i < this.addActions.length; i++) {
|
||||
this.addActions[i].actor.destroy();
|
||||
}
|
||||
|
||||
for (var i = 0; i < indexes.length; i++) {
|
||||
let inPageIndex = indexes[i] % allAppsGrid._childrenPerPage;
|
||||
let page = Math.floor(indexes[i] / allAppsGrid._childrenPerPage);
|
||||
x = folders[i].actor.get_allocation_box().x1;
|
||||
y = folders[i].actor.get_allocation_box().y1;
|
||||
|
||||
// Invalid coords (example: when dragging out of the folder) should
|
||||
// not produce a visible overlay, a negative page number is an easy
|
||||
// way to be sure it stays hidden.
|
||||
if (x == 0) {
|
||||
page = -1;
|
||||
}
|
||||
x = Math.floor(x + x_correction);
|
||||
y = y + this.topOfTheGrid;
|
||||
y = y - (page * availHeightPerPage);
|
||||
|
||||
this.addActions[i] = new FolderArea(folders[i].id, x, y, page);
|
||||
}
|
||||
}
|
||||
|
||||
updateFoldersVisibility () {
|
||||
let appView = Main.overview.viewSelector.appDisplay._views[1].view;
|
||||
for (var i = 0; i < this.addActions.length; i++) {
|
||||
if ((this.addActions[i].page == appView._grid.currentPage) && (!appView._currentPopup)) {
|
||||
this.addActions[i].show();
|
||||
} else {
|
||||
this.addActions[i].hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ensurePopdowned () {
|
||||
let appView = Main.overview.viewSelector.appDisplay._views[1].view;
|
||||
if (appView._currentPopup) {
|
||||
this.openedFolder = appView._currentPopup._source.id;
|
||||
appView._currentPopup.popdown();
|
||||
} else {
|
||||
this.openedFolder = null;
|
||||
}
|
||||
}
|
||||
|
||||
goToPage (nb) {
|
||||
Main.overview.viewSelector.appDisplay._views[1].view.goToPage( nb );
|
||||
this.updateArrowVisibility();
|
||||
this.hideAllFolders();
|
||||
this.updateFoldersVisibility(); //load folders of the new page
|
||||
}
|
||||
|
||||
destroy () {
|
||||
for (let i = 0; i > this.addActions.length; i++) {
|
||||
this.addActions[i].destroy();
|
||||
}
|
||||
this.removeAction.destroy();
|
||||
this.createAction.destroy();
|
||||
this.upAction.destroy();
|
||||
this.downAction.destroy();
|
||||
//log('OverlayManager destroyed');
|
||||
}
|
||||
};
|
||||
|
||||
//-------------------------------------------------------
|
||||
|
||||
// Abstract overlay with very generic methods
|
||||
class DroppableArea {
|
||||
|
||||
constructor (id) {
|
||||
this.id = id;
|
||||
this.styleClass = 'folderArea';
|
||||
|
||||
this.actor = new St.BoxLayout ({
|
||||
width: 10,
|
||||
height: 10,
|
||||
visible: false,
|
||||
});
|
||||
this.actor._delegate = this;
|
||||
|
||||
this.lock = true;
|
||||
this.use_frame = Convenience.getSettings('org.gnome.shell.extensions.appfolders-manager').get_boolean('debug');
|
||||
}
|
||||
|
||||
setPosition (x, y) {
|
||||
let monitor = Main.layoutManager.primaryMonitor;
|
||||
this.actor.set_position(monitor.x + x, monitor.y + y);
|
||||
}
|
||||
|
||||
setSize (w, h) {
|
||||
this.actor.width = w;
|
||||
this.actor.height = h;
|
||||
}
|
||||
|
||||
hide () {
|
||||
this.actor.visible = false;
|
||||
this.lock = true;
|
||||
}
|
||||
|
||||
show () {
|
||||
this.actor.visible = true;
|
||||
}
|
||||
|
||||
setActive (active) {
|
||||
this._active = active;
|
||||
if (this._active) {
|
||||
this.actor.style_class = this.styleClass;
|
||||
} else {
|
||||
this.actor.style_class = 'insensitiveArea';
|
||||
}
|
||||
}
|
||||
|
||||
destroy () {
|
||||
this.actor.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
/* Overlay representing an "action". Actions can be creating a folder, or
|
||||
* removing an app from a folder. These areas accept drop, and display a label.
|
||||
*/
|
||||
class FolderActionArea extends DroppableArea {
|
||||
constructor (id) {
|
||||
super(id);
|
||||
|
||||
let x, y, label;
|
||||
|
||||
switch (this.id) {
|
||||
case 'create':
|
||||
label = _("Create a new folder");
|
||||
this.styleClass = 'shadowedAreaTop';
|
||||
break;
|
||||
case 'remove':
|
||||
label = '';
|
||||
this.styleClass = 'shadowedAreaBottom';
|
||||
break;
|
||||
default:
|
||||
label = 'invalid id';
|
||||
break;
|
||||
}
|
||||
if (this.use_frame) {
|
||||
this.styleClass = 'framedArea';
|
||||
}
|
||||
this.actor.style_class = this.styleClass;
|
||||
|
||||
this.label = new St.Label({
|
||||
text: label,
|
||||
style_class: 'dropAreaLabel',
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
});
|
||||
this.actor.add(this.label);
|
||||
|
||||
this.setPosition(10, 10);
|
||||
Main.layoutManager.overviewGroup.add_actor(this.actor);
|
||||
}
|
||||
|
||||
getRemoveLabel () {
|
||||
let label;
|
||||
if (OVERLAY_MANAGER.openedFolder == null) {
|
||||
label = '…';
|
||||
} else {
|
||||
let folder_schema = Extension.folderSchema (OVERLAY_MANAGER.openedFolder);
|
||||
label = folder_schema.get_string('name');
|
||||
}
|
||||
return (_("Remove from %s")).replace('%s', label);
|
||||
}
|
||||
|
||||
setActive (active) {
|
||||
super.setActive(active);
|
||||
if (this.id == 'remove') {
|
||||
this.label.text = this.getRemoveLabel();
|
||||
}
|
||||
}
|
||||
|
||||
handleDragOver (source, actor, x, y, time) {
|
||||
if (source instanceof AppDisplay.AppIcon && this._active) {
|
||||
return DND.DragMotionResult.MOVE_DROP;
|
||||
}
|
||||
Main.overview.endItemDrag(this);
|
||||
return DND.DragMotionResult.NO_DROP;
|
||||
}
|
||||
|
||||
acceptDrop (source, actor, x, y, time) {
|
||||
if ((source instanceof AppDisplay.AppIcon) && (this.id == 'create')) {
|
||||
Extension.createNewFolder(source);
|
||||
Main.overview.endItemDrag(this);
|
||||
return true;
|
||||
}
|
||||
if ((source instanceof AppDisplay.AppIcon) && (this.id == 'remove')) {
|
||||
this.removeApp(source);
|
||||
Main.overview.endItemDrag(this);
|
||||
return true;
|
||||
}
|
||||
Main.overview.endItemDrag(this);
|
||||
return false;
|
||||
}
|
||||
|
||||
removeApp (source) {
|
||||
let id = source.app.get_id();
|
||||
Extension.removeFromFolder(id, OVERLAY_MANAGER.openedFolder);
|
||||
OVERLAY_MANAGER.updateState(false);
|
||||
Main.overview.viewSelector.appDisplay._views[1].view._redisplay();
|
||||
}
|
||||
|
||||
destroy () {
|
||||
this.label.destroy();
|
||||
super.destroy();
|
||||
}
|
||||
};
|
||||
|
||||
/* Overlay reacting to hover, but isn't droppable. The goal is to go to an other
|
||||
* page of the grid while dragging an app.
|
||||
*/
|
||||
class NavigationArea extends DroppableArea {
|
||||
constructor (id) {
|
||||
super(id);
|
||||
|
||||
let x, y, i;
|
||||
switch (this.id) {
|
||||
case 'up':
|
||||
i = 'pan-up-symbolic';
|
||||
this.styleClass = 'shadowedAreaTop';
|
||||
break;
|
||||
case 'down':
|
||||
i = 'pan-down-symbolic';
|
||||
this.styleClass = 'shadowedAreaBottom';
|
||||
break;
|
||||
default:
|
||||
i = 'dialog-error-symbolic';
|
||||
break;
|
||||
}
|
||||
if (this.use_frame) {
|
||||
this.styleClass = 'framedArea';
|
||||
}
|
||||
this.actor.style_class = this.styleClass;
|
||||
|
||||
this.actor.add(new St.Icon({
|
||||
icon_name: i,
|
||||
icon_size: 24,
|
||||
style_class: 'system-status-icon',
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
}));
|
||||
|
||||
this.setPosition(x, y);
|
||||
Main.layoutManager.overviewGroup.add_actor(this.actor);
|
||||
}
|
||||
|
||||
handleDragOver (source, actor, x, y, time) {
|
||||
if (this.id == 'up' && this._active) {
|
||||
this.pageUp();
|
||||
return DND.DragMotionResult.CONTINUE;
|
||||
}
|
||||
|
||||
if (this.id == 'down' && this._active) {
|
||||
this.pageDown();
|
||||
return DND.DragMotionResult.CONTINUE;
|
||||
}
|
||||
|
||||
Main.overview.endItemDrag(this);
|
||||
return DND.DragMotionResult.NO_DROP;
|
||||
}
|
||||
|
||||
pageUp () {
|
||||
if(this.lock && !this.timeoutSet) {
|
||||
this._timeoutId = Mainloop.timeout_add(CHANGE_PAGE_TIMEOUT, this.unlock.bind(this));
|
||||
this.timeoutSet = true;
|
||||
}
|
||||
if(!this.lock) {
|
||||
let currentPage = Main.overview.viewSelector.appDisplay._views[1].view._grid.currentPage;
|
||||
this.lock = true;
|
||||
OVERLAY_MANAGER.goToPage(currentPage - 1);
|
||||
}
|
||||
}
|
||||
|
||||
pageDown () {
|
||||
if(this.lock && !this.timeoutSet) {
|
||||
this._timeoutId = Mainloop.timeout_add(CHANGE_PAGE_TIMEOUT, this.unlock.bind(this));
|
||||
this.timeoutSet = true;
|
||||
}
|
||||
if(!this.lock) {
|
||||
let currentPage = Main.overview.viewSelector.appDisplay._views[1].view._grid.currentPage;
|
||||
this.lock = true;
|
||||
OVERLAY_MANAGER.goToPage(currentPage + 1);
|
||||
}
|
||||
}
|
||||
|
||||
acceptDrop (source, actor, x, y, time) {
|
||||
Main.overview.endItemDrag(this);
|
||||
return false;
|
||||
}
|
||||
|
||||
unlock () {
|
||||
this.lock = false;
|
||||
this.timeoutSet = false;
|
||||
Mainloop.source_remove(this._timeoutId);
|
||||
}
|
||||
};
|
||||
|
||||
/* This overlay is the area upon a folder. Position and visibility of the actor
|
||||
* is handled by exterior functions.
|
||||
* "this.id" is the folder's id, a string, as written in the gsettings key.
|
||||
* Dropping an app on this folder will add it to the folder
|
||||
*/
|
||||
class FolderArea extends DroppableArea {
|
||||
constructor (id, asked_x, asked_y, page) {
|
||||
super(id);
|
||||
this.page = page;
|
||||
|
||||
let grid = Main.overview.viewSelector.appDisplay._views[1].view._grid;
|
||||
this.actor.width = grid._getHItemSize();
|
||||
this.actor.height = grid._getVItemSize();
|
||||
|
||||
if (this.use_frame) {
|
||||
this.styleClass = 'framedArea';
|
||||
this.actor.add(new St.Label({
|
||||
text: this.id,
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
}));
|
||||
} else {
|
||||
this.styleClass = 'folderArea';
|
||||
this.actor.add(new St.Icon({
|
||||
icon_name: 'list-add-symbolic',
|
||||
icon_size: 24,
|
||||
style_class: 'system-status-icon',
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
}));
|
||||
}
|
||||
if (this.use_frame) {
|
||||
this.styleClass = 'framedArea';
|
||||
}
|
||||
this.actor.style_class = this.styleClass;
|
||||
|
||||
this.setPosition(asked_x, asked_y);
|
||||
Main.layoutManager.overviewGroup.add_actor(this.actor);
|
||||
}
|
||||
|
||||
handleDragOver (source, actor, x, y, time) {
|
||||
if (source instanceof AppDisplay.AppIcon) {
|
||||
return DND.DragMotionResult.MOVE_DROP;
|
||||
}
|
||||
Main.overview.endItemDrag(this);
|
||||
return DND.DragMotionResult.NO_DROP;
|
||||
}
|
||||
|
||||
acceptDrop (source, actor, x, y, time) { //FIXME recharger la vue ou au minimum les miniatures des dossiers
|
||||
if ((source instanceof AppDisplay.AppIcon) &&
|
||||
!Extension.isInFolder(source.id, this.id)) {
|
||||
Extension.addToFolder(source, this.id);
|
||||
Main.overview.endItemDrag(this);
|
||||
return true;
|
||||
}
|
||||
Main.overview.endItemDrag(this);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
@ -1,445 +0,0 @@
|
||||
// extension.js
|
||||
// GPLv3
|
||||
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const Gio = imports.gi.Gio;
|
||||
const St = imports.gi.St;
|
||||
const Main = imports.ui.main;
|
||||
const AppDisplay = imports.ui.appDisplay;
|
||||
const PopupMenu = imports.ui.popupMenu;
|
||||
const Meta = imports.gi.Meta;
|
||||
const Mainloop = imports.mainloop;
|
||||
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Convenience = Me.imports.convenience;
|
||||
|
||||
const AppfolderDialog = Me.imports.appfolderDialog;
|
||||
const DragAndDrop = Me.imports.dragAndDrop;
|
||||
|
||||
const Gettext = imports.gettext.domain('appfolders-manager');
|
||||
const _ = Gettext.gettext;
|
||||
|
||||
let FOLDER_SCHEMA;
|
||||
let FOLDER_LIST;
|
||||
|
||||
let INIT_TIME;
|
||||
|
||||
function init () {
|
||||
Convenience.initTranslations();
|
||||
INIT_TIME = getTimeStamp();
|
||||
}
|
||||
|
||||
function getTimeStamp () {
|
||||
let today = new Date();
|
||||
let str = today.getDate() + '' + today.getHours() + '' + today.getMinutes()
|
||||
+ '' + today.getSeconds();
|
||||
return parseInt(str);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/* do not edit this section */
|
||||
|
||||
function injectToFunction(parent, name, func) {
|
||||
let origin = parent[name];
|
||||
parent[name] = function() {
|
||||
let ret;
|
||||
ret = origin.apply(this, arguments);
|
||||
if (ret === undefined)
|
||||
ret = func.apply(this, arguments);
|
||||
return ret;
|
||||
}
|
||||
return origin;
|
||||
}
|
||||
|
||||
function removeInjection(object, injection, name) {
|
||||
if (injection[name] === undefined)
|
||||
delete object[name];
|
||||
else
|
||||
object[name] = injection[name];
|
||||
}
|
||||
|
||||
var injections=[];
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/* this function injects items (1 or 2 submenus) in AppIconMenu's _redisplay method. */
|
||||
function injectionInAppsMenus() {
|
||||
injections['_redisplay'] = injectToFunction(AppDisplay.AppIconMenu.prototype, '_redisplay', function() {
|
||||
if (Main.overview.viewSelector.getActivePage() == 2
|
||||
|| Main.overview.viewSelector.getActivePage() == 3) {
|
||||
//ok
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
this._appendSeparator(); //TODO injecter ailleurs dans le menu?
|
||||
|
||||
let mainAppView = Main.overview.viewSelector.appDisplay._views[1].view;
|
||||
FOLDER_LIST = FOLDER_SCHEMA.get_strv('folder-children');
|
||||
|
||||
//------------------------------------------------------------------
|
||||
|
||||
let addto = new PopupMenu.PopupSubMenuMenuItem(_("Add to"));
|
||||
|
||||
let newAppFolder = new PopupMenu.PopupMenuItem('+ ' + _("New AppFolder"));
|
||||
newAppFolder.connect('activate', () => {
|
||||
this._source._menuManager._grabHelper.ungrab({ actor: this.actor });
|
||||
// XXX broken scrolling ??
|
||||
// We can't popdown the folder immediately because the
|
||||
// AppDisplay.AppFolderPopup.popdown() method tries to ungrab
|
||||
// the global focus from the folder's popup actor, which isn't
|
||||
// having the focus since the menu is still open. Menus' animation
|
||||
// last ~0.25s so we will wait 0.30s before doing anything.
|
||||
let a = Mainloop.timeout_add(300, () => {
|
||||
if (mainAppView._currentPopup) {
|
||||
mainAppView._currentPopup.popdown();
|
||||
}
|
||||
createNewFolder(this._source);
|
||||
mainAppView._redisplay();
|
||||
Mainloop.source_remove(a);
|
||||
});
|
||||
});
|
||||
addto.menu.addMenuItem(newAppFolder);
|
||||
|
||||
for (var i = 0 ; i < FOLDER_LIST.length ; i++) {
|
||||
let _folder = FOLDER_LIST[i];
|
||||
let shouldShow = !isInFolder( this._source.app.get_id(), _folder );
|
||||
let iFolderSchema = folderSchema(_folder);
|
||||
let item = new PopupMenu.PopupMenuItem( AppDisplay._getFolderName(iFolderSchema) );
|
||||
if ( Convenience.getSettings('org.gnome.shell.extensions.appfolders-manager').get_boolean('debug') ) {
|
||||
shouldShow = true; //TODO ??? et l'exclusion ?
|
||||
}
|
||||
if(shouldShow) {
|
||||
item.connect('activate', () => {
|
||||
this._source._menuManager._grabHelper.ungrab({ actor: this.actor });
|
||||
// XXX broken scrolling ??
|
||||
// We can't popdown the folder immediatly because the
|
||||
// AppDisplay.AppFolderPopup.popdown() method tries to
|
||||
// ungrab the global focus from the folder's popup actor,
|
||||
// which isn't having the focus since the menu is still
|
||||
// open. Menus' animation last ~0.25s so we will wait 0.30s
|
||||
// before doing anything.
|
||||
let a = Mainloop.timeout_add(300, () => {
|
||||
if (mainAppView._currentPopup) {
|
||||
mainAppView._currentPopup.popdown();
|
||||
}
|
||||
addToFolder(this._source, _folder);
|
||||
mainAppView._redisplay();
|
||||
Mainloop.source_remove(a);
|
||||
});
|
||||
});
|
||||
addto.menu.addMenuItem(item);
|
||||
}
|
||||
}
|
||||
this.addMenuItem(addto);
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
let removeFrom = new PopupMenu.PopupSubMenuMenuItem(_("Remove from"));
|
||||
let shouldShow2 = false;
|
||||
for (var i = 0 ; i < FOLDER_LIST.length ; i++) {
|
||||
let _folder = FOLDER_LIST[i];
|
||||
let appId = this._source.app.get_id();
|
||||
let shouldShow = isInFolder(appId, _folder);
|
||||
let iFolderSchema = folderSchema(_folder);
|
||||
let item = new PopupMenu.PopupMenuItem( AppDisplay._getFolderName(iFolderSchema) );
|
||||
|
||||
if ( Convenience.getSettings('org.gnome.shell.extensions.appfolders-manager').get_boolean('debug') ) {
|
||||
shouldShow = true; //FIXME ??? et l'exclusion ?
|
||||
}
|
||||
|
||||
if(shouldShow) {
|
||||
item.connect('activate', () => {
|
||||
this._source._menuManager._grabHelper.ungrab({ actor: this.actor });
|
||||
// XXX broken scrolling ??
|
||||
// We can't popdown the folder immediatly because the
|
||||
// AppDisplay.AppFolderPopup.popdown() method tries to
|
||||
// ungrab the global focus from the folder's popup actor,
|
||||
// which isn't having the focus since the menu is still
|
||||
// open. Menus' animation last ~0.25s so we will wait 0.30s
|
||||
// before doing anything.
|
||||
let a = Mainloop.timeout_add(300, () => {
|
||||
if (mainAppView._currentPopup) {
|
||||
mainAppView._currentPopup.popdown();
|
||||
}
|
||||
removeFromFolder(appId, _folder);
|
||||
mainAppView._redisplay();
|
||||
Mainloop.source_remove(a);
|
||||
});
|
||||
});
|
||||
removeFrom.menu.addMenuItem(item);
|
||||
shouldShow2 = true;
|
||||
}
|
||||
}
|
||||
if (shouldShow2) {
|
||||
this.addMenuItem(removeFrom);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//------------------------------------------------
|
||||
|
||||
function injectionInIcons() {
|
||||
// Right-click on a FolderIcon launches a new AppfolderDialog
|
||||
AppDisplay.FolderIcon = class extends AppDisplay.FolderIcon {
|
||||
constructor (id, path, parentView) {
|
||||
super(id, path, parentView);
|
||||
if (!this.isCustom) {
|
||||
this.actor.connect('button-press-event', this._onButtonPress.bind(this));
|
||||
}
|
||||
this.isCustom = true;
|
||||
}
|
||||
|
||||
_onButtonPress (actor, event) {
|
||||
let button = event.get_button();
|
||||
if (button == 3) {
|
||||
let tmp = new Gio.Settings({
|
||||
schema_id: 'org.gnome.desktop.app-folders.folder',
|
||||
path: '/org/gnome/desktop/app-folders/folders/' + this.id + '/'
|
||||
});
|
||||
let dialog = new AppfolderDialog.AppfolderDialog(tmp, null, this.id);
|
||||
dialog.open();
|
||||
}
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
}
|
||||
};
|
||||
|
||||
// Dragging an AppIcon triggers the DND mode
|
||||
AppDisplay.AppIcon = class extends AppDisplay.AppIcon {
|
||||
constructor (app, params) {
|
||||
super(app, params);
|
||||
if (!this.isCustom) {
|
||||
this._draggable.connect('drag-begin', this.onDragBeginExt.bind(this));
|
||||
this._draggable.connect('drag-cancelled', this.onDragCancelledExt.bind(this));
|
||||
this._draggable.connect('drag-end', this.onDragEndExt.bind(this));
|
||||
}
|
||||
this.isCustom = true;
|
||||
}
|
||||
|
||||
onDragBeginExt () {
|
||||
if (Main.overview.viewSelector.getActivePage() != 2) {
|
||||
return;
|
||||
}
|
||||
this._removeMenuTimeout(); // why ?
|
||||
Main.overview.beginItemDrag(this);
|
||||
DragAndDrop.OVERLAY_MANAGER.on_drag_begin();
|
||||
}
|
||||
|
||||
onDragEndExt () {
|
||||
Main.overview.endItemDrag(this);
|
||||
DragAndDrop.OVERLAY_MANAGER.on_drag_end();
|
||||
}
|
||||
|
||||
onDragCancelledExt () {
|
||||
Main.overview.cancelledItemDrag(this);
|
||||
DragAndDrop.OVERLAY_MANAGER.on_drag_cancelled();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//---------------------------------- Generic -----------------------------------
|
||||
//--------------------------------- functions ----------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
/* These functions perform the requested actions but do not care about popdowning
|
||||
* open menu/open folder, nor about hiding/showing/activating dropping areas, nor
|
||||
* about redisplaying the view.
|
||||
*/
|
||||
function removeFromFolder (app_id, folder_id) {
|
||||
let folder_schema = folderSchema(folder_id);
|
||||
if ( isInFolder(app_id, folder_id) ) {
|
||||
let pastContent = folder_schema.get_strv('apps');
|
||||
let presentContent = [];
|
||||
for(var i=0; i<pastContent.length; i++){
|
||||
if(pastContent[i] != app_id) {
|
||||
presentContent.push(pastContent[i]);
|
||||
}
|
||||
}
|
||||
folder_schema.set_strv('apps', presentContent);
|
||||
} else {
|
||||
let content = folder_schema.get_strv('excluded-apps');
|
||||
content.push(app_id);
|
||||
folder_schema.set_strv('excluded-apps', content);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function deleteFolder (folder_id) {
|
||||
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
|
||||
let tmp = [];
|
||||
FOLDER_LIST = FOLDER_SCHEMA.get_strv('folder-children');
|
||||
for(var j=0;j < FOLDER_LIST.length;j++){
|
||||
if(FOLDER_LIST[j] != folder_id) {
|
||||
tmp.push(FOLDER_LIST[j]);
|
||||
}
|
||||
}
|
||||
|
||||
FOLDER_LIST = tmp;
|
||||
FOLDER_SCHEMA.set_strv('folder-children', FOLDER_LIST);
|
||||
|
||||
// ?? XXX (ne fonctionne pas mieux hors du meta.later_add)
|
||||
if ( Convenience.getSettings('org.gnome.shell.extensions.appfolders-manager').get_boolean('total-deletion') ) {
|
||||
let folder_schema = folderSchema (folder_id);
|
||||
folder_schema.reset('apps'); // génère un bug volumineux ?
|
||||
folder_schema.reset('categories'); // génère un bug volumineux ?
|
||||
folder_schema.reset('excluded-apps'); // génère un bug volumineux ?
|
||||
folder_schema.reset('name'); // génère un bug volumineux ?
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function mergeFolders (folder_staying_id, folder_dying_id) { //unused XXX
|
||||
|
||||
let folder_dying_schema = folderSchema (folder_dying_id);
|
||||
let folder_staying_schema = folderSchema (folder_staying_id);
|
||||
let newerContent = folder_dying_schema.get_strv('categories');
|
||||
let presentContent = folder_staying_schema.get_strv('categories');
|
||||
for(var i=0;i<newerContent.length;i++){
|
||||
if(presentContent.indexOf(newerContent[i]) == -1) {
|
||||
presentContent.push(newerContent[i]);
|
||||
}
|
||||
}
|
||||
folder_staying_schema.set_strv('categories', presentContent);
|
||||
|
||||
newerContent = folder_dying_schema.get_strv('excluded-apps');
|
||||
presentContent = folder_staying_schema.get_strv('excluded-apps');
|
||||
for(var i=0;i<newerContent.length;i++){
|
||||
if(presentContent.indexOf(newerContent[i]) == -1) {
|
||||
presentContent.push(newerContent[i]);
|
||||
}
|
||||
}
|
||||
folder_staying_schema.set_strv('excluded-apps', presentContent);
|
||||
|
||||
newerContent = folder_dying_schema.get_strv('apps');
|
||||
presentContent = folder_staying_schema.get_strv('apps');
|
||||
for(var i=0;i<newerContent.length;i++){
|
||||
if(presentContent.indexOf(newerContent[i]) == -1) {
|
||||
// if(!isInFolder(newerContent[i], folder_staying_id)) {
|
||||
presentContent.push(newerContent[i]);
|
||||
//TODO utiliser addToFolder malgré ses paramètres chiants
|
||||
}
|
||||
}
|
||||
folder_staying_schema.set_strv('apps', presentContent);
|
||||
deleteFolder(folder_dying_id);
|
||||
return true;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function createNewFolder (app_source) {
|
||||
let id = app_source.app.get_id();
|
||||
|
||||
let dialog = new AppfolderDialog.AppfolderDialog(null , id);
|
||||
dialog.open();
|
||||
return true;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function addToFolder (app_source, folder_id) {
|
||||
let id = app_source.app.get_id();
|
||||
let folder_schema = folderSchema (folder_id);
|
||||
|
||||
//un-exclude the application if it was excluded TODO else don't do it at all
|
||||
let pastExcluded = folder_schema.get_strv('excluded-apps');
|
||||
let presentExcluded = [];
|
||||
for(let i=0; i<pastExcluded.length; i++){
|
||||
if(pastExcluded[i] != id) {
|
||||
presentExcluded.push(pastExcluded[i]);
|
||||
}
|
||||
}
|
||||
if (presentExcluded.length > 0) {
|
||||
folder_schema.set_strv('excluded-apps', presentExcluded);
|
||||
}
|
||||
|
||||
//actually add the app
|
||||
let content = folder_schema.get_strv('apps');
|
||||
content.push(id);
|
||||
folder_schema.set_strv('apps', content); //XXX verbose errors
|
||||
|
||||
//update icons in the ugliest possible way
|
||||
let icons = Main.overview.viewSelector.appDisplay._views[1].view.folderIcons;
|
||||
for (let i=0; i<icons.length; i++) {
|
||||
let size = icons[i].icon._iconBin.width;
|
||||
icons[i].icon.icon = icons[i]._createIcon(size);
|
||||
icons[i].icon._iconBin.child = icons[i].icon.icon;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function isInFolder (app_id, folder_id) {
|
||||
let folder_schema = folderSchema(folder_id);
|
||||
let isIn = false;
|
||||
let content_ = folder_schema.get_strv('apps');
|
||||
for(var j=0; j<content_.length; j++) {
|
||||
if(content_[j] == app_id) {
|
||||
isIn = true;
|
||||
}
|
||||
}
|
||||
return isIn;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function folderSchema (folder_id) {
|
||||
let a = new Gio.Settings({
|
||||
schema_id: 'org.gnome.desktop.app-folders.folder',
|
||||
path: '/org/gnome/desktop/app-folders/folders/' + folder_id + '/'
|
||||
});
|
||||
return a;
|
||||
} // TODO et AppDisplay._getFolderName ??
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function enable() {
|
||||
FOLDER_SCHEMA = new Gio.Settings({ schema_id: 'org.gnome.desktop.app-folders' });
|
||||
FOLDER_LIST = FOLDER_SCHEMA.get_strv('folder-children');
|
||||
|
||||
injectionInIcons();
|
||||
if( Convenience.getSettings('org.gnome.shell.extensions.appfolders-manager').get_boolean('extend-menus') ) {
|
||||
injectionInAppsMenus();
|
||||
}
|
||||
DragAndDrop.initDND();
|
||||
|
||||
// Reload the view if the user load the extension at least a minute after
|
||||
// opening the session. XXX works like shit
|
||||
let delta = getTimeStamp() - INIT_TIME;
|
||||
if (delta < 0 || delta > 105) {
|
||||
Main.overview.viewSelector.appDisplay._views[1].view._redisplay();
|
||||
}
|
||||
}
|
||||
|
||||
function disable() {
|
||||
AppDisplay.FolderIcon.prototype._onButtonPress = null;
|
||||
AppDisplay.FolderIcon.prototype.popupMenu = null;
|
||||
|
||||
removeInjection(AppDisplay.AppIconMenu.prototype, injections, '_redisplay');
|
||||
|
||||
// Overwrite my shit for FolderIcon
|
||||
AppDisplay.FolderIcon = class extends AppDisplay.FolderIcon {
|
||||
_onButtonPress (actor, event) {
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
}
|
||||
};
|
||||
|
||||
// Overwrite my shit for AppIcon
|
||||
AppDisplay.AppIcon = class extends AppDisplay.AppIcon {
|
||||
onDragBeginExt () {}
|
||||
onDragEndExt () {}
|
||||
onDragCancelledExt () {}
|
||||
};
|
||||
|
||||
DragAndDrop.OVERLAY_MANAGER.destroy();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
@ -1,114 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
msgid "Other category?"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
msgid "No category"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
msgid "Select a category…"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
msgid "Use categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
Binary file not shown.
@ -1,123 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2018-12-30 14:03+0300\n"
|
||||
"Last-Translator: Максім Крапіўка <metalomaniax@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: be\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.2\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Дадаць у"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Новая папка праграм"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Выдаліць з"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr "Стварыць новую папку"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Выдаліць з %s"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Скасаваць"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Выдаліць"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr "Дастасаваць"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr "Назва папкі"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr "Катэгорыі:"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
msgid "Other category?"
|
||||
msgstr "Іншая катэгорыя?"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
msgid "No category"
|
||||
msgstr "Без катэгорыі"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
msgid "Select a category…"
|
||||
msgstr "Выбраць катэгорыю..."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Змены ўступяць у сілу пасля перазагрузкі пашырэння."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr "Галоўныя налады"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr "Катэгорыі"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Выдаляць усе звязаныя налады пры выдаленні папкі праграм"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
"Выкарыстоўваць націсканне правай кнопкай мышы ў дадатак да перацягвання "
|
||||
"значкоў"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
msgid "Use categories"
|
||||
msgstr "Выкарыстоўваць катэгорыі"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr "Больш інфармацыі пра «дадатковыя» катэгорыі"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr "Паведаміць пра памылкі або ідэі"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
"Гэта пашырэнне можна адключыць, пасля таго як вы канчаткова наладзіце "
|
||||
"арганізацыю сваіх праграм."
|
||||
|
||||
#~ msgid "Standard specification"
|
||||
#~ msgstr "Стандартная спецыфікацыя"
|
Binary file not shown.
@ -1,124 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2017-10-28 01:50+0200\n"
|
||||
"Last-Translator: Jonatan Hatakeyama Zeidler <jonatan_zeidler@gmx.de>\n"
|
||||
"Language-Team: https://github.com/hobbypunk90/appfolders-manager-gnome-"
|
||||
"extension\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.0.4\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Hinzufügen zu"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Neuer Ordner"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Löschen aus"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, fuzzy, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Löschen aus"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Abbrechen"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr "Erstelle"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Löschen"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
#, fuzzy
|
||||
msgid "Other category?"
|
||||
msgstr "Lösche eine Kategorie"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
#, fuzzy
|
||||
msgid "No category"
|
||||
msgstr "Kategorie hinzufügen"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
#, fuzzy
|
||||
msgid "Select a category…"
|
||||
msgstr "Lösche eine Kategorie"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Änderungen werden nach Neustart der Erweiterung übernommen."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Lösche alle Einstellungen, wenn ein Ordner gelöscht wird"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
#, fuzzy
|
||||
msgid "Use categories"
|
||||
msgstr "Hinzugefügte Kategorien"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "This appfolder already exists."
|
||||
#~ msgstr "Dieser Ordner existiert bereits."
|
Binary file not shown.
@ -1,118 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2017-05-29 23:26+0300\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: el\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.0.1\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Προσθήκη σε"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Νέος φάκελος"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Αφαίρεση από"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, fuzzy, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Αφαίρεση από"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Αναίρεση"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Διαγραφή"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
msgid "Other category?"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
msgid "No category"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
msgid "Select a category…"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr ""
|
||||
"Οι τροποποιήσεις απαιτούν την επανεκκίνηση της επέκτασης για να "
|
||||
"λειτουργήσουν."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Διαγραφή όλων των σχετικών ρυθμίσεων κατά την διαγραφή ενός φακέλου"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
msgid "Use categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
Binary file not shown.
@ -1,116 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2017-02-05 16:47+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.8.11\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Ajouter à"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Nouvel AppFolder"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Retirer de"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr "Créer un nouveau dossier"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Retirer de %s"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr "Créer"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Supprimer"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr "Appliquer"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr "Nom du dossier :"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr "Catégories :"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
msgid "Other category?"
|
||||
msgstr "Autre catégorie ?"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
msgid "No category"
|
||||
msgstr "Aucune catégorie"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
msgid "Select a category…"
|
||||
msgstr "Choisir une catégorie…"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Les modifications prendront effet après avoir rechargé l'extension"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr "Réglages principaux"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr "Catégories"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr ""
|
||||
"Supprimer tous les réglages relatifs à un appfolder lors de sa suppression"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr "Utiliser le menu du clic-droit en complément du glisser-déposer"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
msgid "Use categories"
|
||||
msgstr "Utiliser des catégories"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr "Plus d'informations à propos des \"catégories supplémentaires\""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr "Reporter un bug ou une idée"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
"Cette extension peut être désactivée une fois que vos applications sont "
|
||||
"organisées comme souhaité."
|
||||
|
||||
#~ msgid "Standard specification"
|
||||
#~ msgstr "Spécification standard"
|
Binary file not shown.
@ -1,116 +0,0 @@
|
||||
# Hungarian translation for appfolders-manager.
|
||||
# Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Balázs Úr <urbalazs@gmail.com>, 2017.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: appfolders-manager master\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2017-05-31 20:41+0100\n"
|
||||
"Last-Translator: Balázs Úr <urbalazs@gmail.com>\n"
|
||||
"Language-Team: Hungarian <openscope@googlegroups.com>\n"
|
||||
"Language: hu\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Lokalize 2.0\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Hozzáadás ehhez"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Új alkalmazásmappa"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Eltávolítás innen"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, fuzzy, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Eltávolítás innen"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Mégse"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Törlés"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
msgid "Other category?"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
msgid "No category"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
msgid "Select a category…"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "A módosítások a kiterjesztés újratöltése után lépnek hatályba."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr ""
|
||||
"Az összes kapcsolódó beállítás törlése, ha egy alkalmazásmappa törölve lesz"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
msgid "Use categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
Binary file not shown.
@ -1,127 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2018-03-08 17:21+0100\n"
|
||||
"Last-Translator: Jimmy Scionti <jimmy.scionti@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: it_IT\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.0.4\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Aggiungi a"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Nuova AppFolder"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Rimuovi da"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, fuzzy, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Rimuovi da"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Annulla"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr "Crea"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Elimina"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
#, fuzzy
|
||||
msgid "Other category?"
|
||||
msgstr "Rimuovi una categoria"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
#, fuzzy
|
||||
msgid "No category"
|
||||
msgstr "Aggiungi una categoria"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
#, fuzzy
|
||||
msgid "Select a category…"
|
||||
msgstr "Rimuovi una categoria"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Le modifiche avranno effetto dopo aver ricaricato l'estensione."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Elimina tutte le impostazioni dell'AppFolder quando viene rimossa"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
#, fuzzy
|
||||
msgid "Use categories"
|
||||
msgstr "Categorie aggiuntive"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr "Maggiori informazioni sulle \"categorie aggiuntive\""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr "Invia segnalazioni di bug o idee"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
"Questa estensione può essere disattivata dopo aver organizzato le "
|
||||
"applicazione come desiderato."
|
||||
|
||||
#~ msgid "Standard specification"
|
||||
#~ msgstr "Specifiche standards"
|
||||
|
||||
#~ msgid "This appfolder already exists."
|
||||
#~ msgstr "Questa AppFolder esiste già."
|
Binary file not shown.
@ -1,126 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Appfolders Management (GNOME extension)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2018-12-19 21:13+0100\n"
|
||||
"Last-Translator: Piotr Komur <pkomur@gmail.com>\n"
|
||||
"Language-Team: Piotr Komur\n"
|
||||
"Language: pl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.2\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
||||
"|| n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Dodaj do folderu"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Nowy folder programów"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Usuń z folderu"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr "Utwórz nowy folder"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, fuzzy, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Usuń z folderu"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Anuluj"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr "Utwórz"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Usuń"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr "Zastosuj"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr "Nazwa folderu:"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr "Kategorie programów:"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
msgid "Other category?"
|
||||
msgstr "Nowa kategoria"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
msgid "No category"
|
||||
msgstr "Brak wybranych kategorii"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
#, fuzzy
|
||||
msgid "Select a category…"
|
||||
msgstr "Wybierz kategorię"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Zmiany będą aktywne po ponownym zrestartowaniu środowiska Gnome."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr "Ustawienia"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr "Kategorie"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Usuń powiązane zmiany wraz z usunięciem folderu programów."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
msgid "Use categories"
|
||||
msgstr "Użyj standardowych kategorii"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr "Więcej informacji o \"standardowych kategoriach\""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr "Zgłoś błędy lub nowe funkcje"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
"Można dezaktywować to rozszerzenie po zakończeniu porządkowania programów w "
|
||||
"folderach."
|
||||
|
||||
#~ msgid "Standard specification"
|
||||
#~ msgstr "Specyfikacja standardu"
|
||||
|
||||
#~ msgid "This appfolder already exists."
|
||||
#~ msgstr "Folder o tej nazwie już istnieje."
|
Binary file not shown.
@ -1,124 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2019-02-10 11:19-0200\n"
|
||||
"Last-Translator: Fábio Nogueira <fnogueira@gnome.org>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: pt_BR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.2.1\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Adicionar para"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Nova AppFolder"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Remover de"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr "Criar uma nova pasta"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Remover de %s"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr "Criar"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Excluir"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr "Aplicar"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr "Nome da pasta:"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr "Categorias:"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
msgid "Other category?"
|
||||
msgstr "Outra categoria?"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
msgid "No category"
|
||||
msgstr "Nenhuma categoria"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
msgid "Select a category…"
|
||||
msgstr "Selecione uma categoria…"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "As modificações entrarão em vigor depois de recarregar a extensão."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr "Configurações principais"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr "Categorias"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr ""
|
||||
"Excluir todas as configurações relacionadas quando um appfolder for excluído"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr "Use os menus do botão direito, além do arrastar e soltar"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
msgid "Use categories"
|
||||
msgstr "Usar categorias"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr "Mais informações sobre \"categorias adicionais\""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr "Comunicar erros ou ideias"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
"Esta extensão pode ser desativada assim que seus aplicativos forem "
|
||||
"organizados conforme desejado."
|
||||
|
||||
#~ msgid "Standard specification"
|
||||
#~ msgstr "Especificação padrão"
|
||||
|
||||
#~ msgid "This appfolder already exists."
|
||||
#~ msgstr "Esta appfolder já existe."
|
Binary file not shown.
@ -1,125 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: Max Krapiŭka <metalomaniax@gmail.com>\n"
|
||||
"Language-Team: RUSSIAN <metalomaniax@gmail.com>\n"
|
||||
"Language: be\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Добавить в"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Новая папка"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Удалить из"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, fuzzy, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Удалить из"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Отмена"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr "Стварыць"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Удалить"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
#, fuzzy
|
||||
msgid "Other category?"
|
||||
msgstr "Удалить категорию"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
#, fuzzy
|
||||
msgid "No category"
|
||||
msgstr "Добавить категорию"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
#, fuzzy
|
||||
msgid "Select a category…"
|
||||
msgstr "Удалить категорию"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Изменения вступят в силу после перезагрузки расширения."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Удалять все связанные настройки при удалении папки приложений."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
#, fuzzy
|
||||
msgid "Use categories"
|
||||
msgstr "Дополнительные категории"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr "Больше информации про \"дополнительные категории\""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr "Сообщить об ошибках, предложить идеи"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
"Это расширение может быть деактивировано, после того как вы окончательно "
|
||||
"настроите организацию своих приложений."
|
||||
|
||||
#~ msgid "Standard specification"
|
||||
#~ msgstr "Стандартная спецификация"
|
||||
|
||||
#~ msgid "This appfolder already exists."
|
||||
#~ msgstr "Эта папка приложений уже существует"
|
Binary file not shown.
@ -1,124 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2017-09-15 16:40+0200\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: sr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.0.3\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Додај у"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Нова фаскила програма"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Уклони ставку"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, fuzzy, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Уклони ставку"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Откажи"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr "Направи"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Обриши"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
#, fuzzy
|
||||
msgid "Other category?"
|
||||
msgstr "Уклони категорију"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
#, fuzzy
|
||||
msgid "No category"
|
||||
msgstr "Додај категорију"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
#, fuzzy
|
||||
msgid "Select a category…"
|
||||
msgstr "Уклони категорију"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Измене ће ступити на снагу по поновном учитавању проширења."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Обриши све припадајуће поставке при брисању проширења"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
#, fuzzy
|
||||
msgid "Use categories"
|
||||
msgstr "Додатне категорије"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "This appfolder already exists."
|
||||
#~ msgstr "Ова фасцикла програма већ постоји."
|
Binary file not shown.
@ -1,124 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2017-09-15 16:40+0200\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: sr@latin\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.0.3\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Dodaj u"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Nova faskila programa"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Ukloni stavku"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, fuzzy, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Ukloni stavku"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Otkaži"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr "Napravi"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Obriši"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
#, fuzzy
|
||||
msgid "Other category?"
|
||||
msgstr "Ukloni kategoriju"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
#, fuzzy
|
||||
msgid "No category"
|
||||
msgstr "Dodaj kategoriju"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
#, fuzzy
|
||||
msgid "Select a category…"
|
||||
msgstr "Ukloni kategoriju"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Izmene će stupiti na snagu po ponovnom učitavanju proširenja."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Obriši sve pripadajuće postavke pri brisanju proširenja"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
#, fuzzy
|
||||
msgid "Use categories"
|
||||
msgstr "Dodatne kategorije"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "This appfolder already exists."
|
||||
#~ msgstr "Ova fascikla programa već postoji."
|
Binary file not shown.
@ -1,118 +0,0 @@
|
||||
# Uygulama klasörleme Türkçe çeviri.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# Serdar Sağlam <teknomobil@yandex.com>, 2019.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: v13\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2019-01-19 12:10+0300\n"
|
||||
"Last-Translator: Serdar Sağlam <teknomobil@yandex.com>\n"
|
||||
"Language-Team: Türkçe <teknomobil@yandex.com>\n"
|
||||
"Language: tr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Klasör Grubuna Taşı"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Yeni Klasör Grubu"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Buradan Kaldır"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr "Yeni klasör oluştur"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Buradan Kaldır %s"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "İptal"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr "Oluştur"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Sil"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr "Onayla"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr "Klasör İsmi:"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr "Kategoriler:"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
msgid "Other category?"
|
||||
msgstr "Diğer Kategori?"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
msgid "No category"
|
||||
msgstr "Kategori Yok"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
msgid "Select a category…"
|
||||
msgstr "Kategori Seç…"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Değişiklikler,eklenti yeniden başladıktan sonra etkili olacaktır."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr "Ayarlar"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr "Kategoriler"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Bir klasör grubu silindiğinde tüm ilgili ayarları silin"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr "Sürükle ve bırak işlevine ek olarak sağ tıklama menülerini kullanın"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
msgid "Use categories"
|
||||
msgstr "Kategorileri Kullan"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr "Hakkında daha fazla bilgi \"ek kategoriler\""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr "Yeni bir fikir veya hata bildirin"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr ""
|
||||
"Menüleri istediğiniz şekilde düzenlendiğinde bu uzantı devre dışı "
|
||||
"bırakılabilir."
|
||||
|
||||
#~ msgid "Standard specification"
|
||||
#~ msgstr "Standart şartname"
|
Binary file not shown.
@ -1,123 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-27 21:15+0200\n"
|
||||
"PO-Revision-Date: 2018-12-19 05:43+0200\n"
|
||||
"Last-Translator: Igor Gordiichuk <igor_ck@outlook.com>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: uk_UA\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.2\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:83
|
||||
msgid "Add to"
|
||||
msgstr "Додати до"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:85
|
||||
msgid "New AppFolder"
|
||||
msgstr "Нова тека програм"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/extension.js:139
|
||||
msgid "Remove from"
|
||||
msgstr "Вилучити з"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:312
|
||||
msgid "Create a new folder"
|
||||
msgstr "Створити нову теку"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/dragAndDrop.js:350
|
||||
#, fuzzy, javascript-format
|
||||
msgid "Remove from %s"
|
||||
msgstr "Вилучити з "
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:62
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:72
|
||||
msgid "Cancel"
|
||||
msgstr "Скасувати"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:66
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:76
|
||||
msgid "Delete"
|
||||
msgstr "Вилучити"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:80
|
||||
msgid "Apply"
|
||||
msgstr "Застосовувати"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:106
|
||||
msgid "Folder's name:"
|
||||
msgstr "Назва теки:"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:139
|
||||
msgid "Categories:"
|
||||
msgstr "Категорії:"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:164
|
||||
msgid "Other category?"
|
||||
msgstr "Інша категорія?"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:192
|
||||
msgid "No category"
|
||||
msgstr "Без категорії"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/appfolderDialog.js:375
|
||||
#, fuzzy
|
||||
msgid "Select a category…"
|
||||
msgstr "Обрати категорію"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:31
|
||||
msgid "Modifications will be effective after reloading the extension."
|
||||
msgstr "Зміни буде застосовано після перезавантаження розширення."
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:38
|
||||
msgid "Main settings"
|
||||
msgstr "Основні налаштування"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:39
|
||||
msgid "Categories"
|
||||
msgstr "Категорії"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:46
|
||||
msgid "Delete all related settings when an appfolder is deleted"
|
||||
msgstr "Вилучити всі пов'язані налаштування, коли видаляється тека"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:48
|
||||
msgid "Use the right-click menus in addition to the drag-and-drop"
|
||||
msgstr "Використовувати контекстне меню додатково до перетягування мишкою"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:56
|
||||
msgid "Use categories"
|
||||
msgstr "Використати категорії"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:59
|
||||
msgid "More informations about \"additional categories\""
|
||||
msgstr "Більше інформації про \"додаткові категорії\""
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:74
|
||||
msgid "Report bugs or ideas"
|
||||
msgstr "Повідомити про ваду або запропонувати ідею"
|
||||
|
||||
#: appfolders-manager@maestroschan.fr/prefs.js:85
|
||||
msgid ""
|
||||
"This extension can be deactivated once your applications are organized as "
|
||||
"wished."
|
||||
msgstr "Це розширення можна деактивувати, якщо програми було впорядковано."
|
||||
|
||||
#~ msgid "Standard specification"
|
||||
#~ msgstr "Стандартні категорії"
|
||||
|
||||
#~ msgid "This appfolder already exists."
|
||||
#~ msgstr "Ця тека програм вже існує."
|
@ -1,15 +0,0 @@
|
||||
{
|
||||
"_generated": "Generated by SweetTooth, do not edit",
|
||||
"description": "An easy way to arrange your applications in folders, directly from the applications grid. Create folders and add/remove apps using drag-and-drop, rename/delete them with a right-click.",
|
||||
"gettext-domain": "appfolders-manager",
|
||||
"name": "Appfolders Management extension",
|
||||
"shell-version": [
|
||||
"3.26",
|
||||
"3.28",
|
||||
"3.30",
|
||||
"3.32"
|
||||
],
|
||||
"url": "https://github.com/maoschanz/appfolders-manager-gnome-extension",
|
||||
"uuid": "appfolders-manager@maestroschan.fr",
|
||||
"version": 16
|
||||
}
|
@ -1,153 +0,0 @@
|
||||
|
||||
const GObject = imports.gi.GObject;
|
||||
const Gtk = imports.gi.Gtk;
|
||||
|
||||
const Gettext = imports.gettext.domain('appfolders-manager');
|
||||
const _ = Gettext.gettext;
|
||||
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Convenience = Me.imports.convenience;
|
||||
|
||||
//-----------------------------------------------
|
||||
|
||||
const appfoldersManagerSettingsWidget = new GObject.Class({
|
||||
Name: 'appfoldersManager.Prefs.Widget',
|
||||
GTypeName: 'appfoldersManagerPrefsWidget',
|
||||
Extends: Gtk.Box,
|
||||
|
||||
_init: function (params) {
|
||||
this.parent(params);
|
||||
this.margin = 30;
|
||||
this.spacing = 18;
|
||||
this.set_orientation(Gtk.Orientation.VERTICAL);
|
||||
|
||||
this._settings = Convenience.getSettings('org.gnome.shell.extensions.appfolders-manager');
|
||||
this._settings.set_boolean('debug', this._settings.get_boolean('debug'));
|
||||
|
||||
//----------------------------
|
||||
|
||||
let labelMain = new Gtk.Label({
|
||||
label: _("Modifications will be effective after reloading the extension."),
|
||||
use_markup: true,
|
||||
wrap: true,
|
||||
halign: Gtk.Align.START
|
||||
});
|
||||
this.add(labelMain);
|
||||
|
||||
let generalSection = this.add_section(_("Main settings"));
|
||||
let categoriesSection = this.add_section(_("Categories"));
|
||||
|
||||
//----------------------------
|
||||
|
||||
// let autoDeleteBox = this.build_switch('auto-deletion',
|
||||
// _("Delete automatically empty folders"));
|
||||
let deleteAllBox = this.build_switch('total-deletion',
|
||||
_("Delete all related settings when an appfolder is deleted"));
|
||||
let menusBox = this.build_switch('extend-menus',
|
||||
_("Use the right-click menus in addition to the drag-and-drop"));
|
||||
|
||||
// this.add_row(autoDeleteBox, generalSection);
|
||||
this.add_row(deleteAllBox, generalSection);
|
||||
this.add_row(menusBox, generalSection);
|
||||
|
||||
//-------------------------
|
||||
|
||||
let categoriesBox = this.build_switch('categories', _("Use categories"));
|
||||
|
||||
let categoriesLinkButton = new Gtk.LinkButton({
|
||||
label: _("More informations about \"additional categories\""),
|
||||
uri: "https://standards.freedesktop.org/menu-spec/latest/apas02.html"
|
||||
});
|
||||
|
||||
this.add_row(categoriesBox, categoriesSection);
|
||||
this.add_row(categoriesLinkButton, categoriesSection);
|
||||
|
||||
//-------------------------
|
||||
|
||||
let aboutBox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL, spacing: 10 });
|
||||
let about_label = new Gtk.Label({
|
||||
label: '(v' + Me.metadata.version.toString() + ')',
|
||||
halign: Gtk.Align.START
|
||||
});
|
||||
let url_button = new Gtk.LinkButton({
|
||||
label: _("Report bugs or ideas"),
|
||||
uri: Me.metadata.url.toString()
|
||||
});
|
||||
aboutBox.pack_start(url_button, false, false, 0);
|
||||
aboutBox.pack_end(about_label, false, false, 0);
|
||||
|
||||
this.pack_end(aboutBox, false, false, 0);
|
||||
|
||||
//-------------------------
|
||||
|
||||
let desacLabel = new Gtk.Label({
|
||||
label: _("This extension can be deactivated once your applications are organized as wished."),
|
||||
wrap: true,
|
||||
halign: Gtk.Align.CENTER
|
||||
});
|
||||
this.pack_end(desacLabel, false, false, 0);
|
||||
},
|
||||
|
||||
add_section: function (titre) {
|
||||
let section = new Gtk.Box({
|
||||
orientation: Gtk.Orientation.VERTICAL,
|
||||
margin: 6,
|
||||
spacing: 6,
|
||||
});
|
||||
|
||||
let frame = new Gtk.Frame({
|
||||
label: titre,
|
||||
label_xalign: 0.1,
|
||||
});
|
||||
frame.add(section);
|
||||
this.add(frame);
|
||||
return section;
|
||||
},
|
||||
|
||||
add_row: function (filledbox, section) {
|
||||
section.add(filledbox);
|
||||
},
|
||||
|
||||
build_switch: function (key, label) {
|
||||
let rowLabel = new Gtk.Label({
|
||||
label: label,
|
||||
halign: Gtk.Align.START,
|
||||
wrap: true,
|
||||
visible: true,
|
||||
});
|
||||
|
||||
let rowSwitch = new Gtk.Switch({ valign: Gtk.Align.CENTER });
|
||||
rowSwitch.set_state(this._settings.get_boolean(key));
|
||||
rowSwitch.connect('notify::active', (widget) => {
|
||||
this._settings.set_boolean(key, widget.active);
|
||||
});
|
||||
|
||||
let rowBox = new Gtk.Box({
|
||||
orientation: Gtk.Orientation.HORIZONTAL,
|
||||
spacing: 15,
|
||||
margin: 6,
|
||||
visible: true,
|
||||
});
|
||||
rowBox.pack_start(rowLabel, false, false, 0);
|
||||
rowBox.pack_end(rowSwitch, false, false, 0);
|
||||
|
||||
return rowBox;
|
||||
},
|
||||
});
|
||||
|
||||
//-----------------------------------------------
|
||||
|
||||
function init() {
|
||||
Convenience.initTranslations();
|
||||
}
|
||||
|
||||
//I guess this is like the "enable" in extension.js : something called each
|
||||
//time he user try to access the settings' window
|
||||
function buildPrefsWidget () {
|
||||
let widget = new appfoldersManagerSettingsWidget();
|
||||
widget.show_all();
|
||||
|
||||
return widget;
|
||||
}
|
||||
|
Binary file not shown.
@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist gettext-domain="appfolders-manager">
|
||||
<schema id="org.gnome.shell.extensions.appfolders-manager" path="/org/gnome/shell/extensions/appfolders-manager/">
|
||||
<key type="b" name="total-deletion">
|
||||
<default>true</default>
|
||||
<summary>Complete deletion of an appfolder</summary>
|
||||
<description>if a deleted appfolder should be 100% deleted (false = restauration is possible)</description>
|
||||
</key>
|
||||
<key type="b" name="categories">
|
||||
<default>true</default>
|
||||
<summary>Use categories</summary>
|
||||
<description>If the interface for managing categories should be shown.</description>
|
||||
</key>
|
||||
<key type="b" name="debug">
|
||||
<default>false</default>
|
||||
<summary>Debug key</summary>
|
||||
<description>this is not supposed to be activated by the user</description>
|
||||
</key>
|
||||
<key type="b" name="extend-menus">
|
||||
<default>true</default>
|
||||
<summary>Show items in right-click menus</summary>
|
||||
<description>The legacy interface, with submenus in the right-click menu on application icons, can be shown in addition to the default drag-and-drop behavior.</description>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
@ -1,56 +0,0 @@
|
||||
.dropAreaLabel {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.framedArea {
|
||||
background-color: rgba(255,255,255,0.0);
|
||||
border-color: rgba(255,255,255,1.0);
|
||||
border-width: 1px;
|
||||
color: rgba(255, 255, 255, 1.0);
|
||||
}
|
||||
|
||||
.shadowedAreaTop {
|
||||
background-gradient-start: rgba(0, 0, 0, 0.7);
|
||||
background-gradient-end: rgba(0, 0, 0, 0.1);
|
||||
background-gradient-direction: vertical;
|
||||
color: rgba(255, 255, 255, 1.0);
|
||||
}
|
||||
|
||||
.shadowedAreaBottom {
|
||||
background-gradient-start: rgba(0, 0, 0, 0.1);
|
||||
background-gradient-end: rgba(0, 0, 0, 0.7);
|
||||
background-gradient-direction: vertical;
|
||||
color: rgba(255, 255, 255, 1.0);
|
||||
}
|
||||
|
||||
.folderArea {
|
||||
background-gradient-start: rgba(0, 0, 0, 0.4);
|
||||
background-gradient-end: rgba(0, 0, 0, 0.0);
|
||||
background-gradient-direction: vertical;
|
||||
border-color: rgba(255,255,255,1.0);
|
||||
border-radius: 4px;
|
||||
border-width: 2px;
|
||||
color: rgba(255, 255, 255, 1.0);
|
||||
}
|
||||
|
||||
.insensitiveArea {
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
color: rgba(100, 100, 100, 0.6);
|
||||
}
|
||||
|
||||
.appCategoryBox {
|
||||
background-color: rgba(100, 100, 100, 0.3);
|
||||
border-radius: 3px;
|
||||
margin: 3px;
|
||||
padding: 2px;
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
.appCategoryDeleteBtn {
|
||||
background-color: rgba(100, 100, 100, 0.3);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,35 +0,0 @@
|
||||
const Main = imports.ui.main;
|
||||
|
||||
function get_current_view_index () {
|
||||
let current_view_index = 0;
|
||||
let views = Main.overview.viewSelector.appDisplay._views;
|
||||
for (let i = 0; i < views.length; i++) {
|
||||
let pseudo_class = views[i].control.get_style_pseudo_class();
|
||||
if (pseudo_class && pseudo_class.indexOf("checked") !== -1) {
|
||||
current_view_index = i;
|
||||
}
|
||||
}
|
||||
return current_view_index;
|
||||
}
|
||||
|
||||
let previous_view_index;
|
||||
|
||||
function init() {
|
||||
previous_view_index = 0;
|
||||
}
|
||||
|
||||
function enable() {
|
||||
// save current view index to restore when this extensions is disabled
|
||||
previous_view_index = get_current_view_index();
|
||||
// hide controls : Frequent/All buttons
|
||||
Main.overview.viewSelector.appDisplay._controls.hide()
|
||||
// switch to All apps view
|
||||
Main.overview.viewSelector.appDisplay._showView(1)
|
||||
}
|
||||
|
||||
function disable() {
|
||||
// switch to the saved view index
|
||||
Main.overview.viewSelector.appDisplay._showView(previous_view_index)
|
||||
// show controls
|
||||
Main.overview.viewSelector.appDisplay._controls.show()
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
{
|
||||
"_generated": "Generated by SweetTooth, do not edit",
|
||||
"description": "Hide controls to switch from the frequent view to the view of all applications in the GNOME Shell overview",
|
||||
"name": "Hide Frequent View",
|
||||
"shell-version": [
|
||||
"3.22",
|
||||
"3.24",
|
||||
"3.26",
|
||||
"3.28",
|
||||
"3.30",
|
||||
"3.34",
|
||||
"3.32",
|
||||
"3.36"
|
||||
],
|
||||
"url": "https://github.com/birros/gnome-shell-extension-hide-frequent-view",
|
||||
"uuid": "hide-frequent-view@birros.github.com",
|
||||
"version": 2
|
||||
}
|
@ -1,674 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. {http://fsf.org/}
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
{one line to give the program's name and a brief idea of what it does.}
|
||||
Copyright (C) {year} {name of author}
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see {http://www.gnu.org/licenses/}.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
gnome-shell-remove-dropdown-arrows Copyright (C) 2013 Martin Pöhlmann
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
{http://www.gnu.org/licenses/}.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
{http://www.gnu.org/philosophy/why-not-lgpl.html}.
|
@ -1,8 +0,0 @@
|
||||
Remove Dropdown Arrows Gnome Shell Extension
|
||||
============================================
|
||||
|
||||
Removes the dropdown arrows which were introduced in Gnome 3.10 from the App Menu, System Menu, Input Menu, Access Menu, Places Menu, Applications Menu and any other extension that wants to add dropdown arrows.
|
||||
|
||||
![Screenshot](screenshot.png)
|
||||
|
||||
[![Build Status](https://travis-ci.org/mpdeimos/gnome-shell-remove-dropdown-arrows.svg?branch=master)](https://travis-ci.org/mpdeimos/gnome-shell-remove-dropdown-arrows)
|
@ -1,162 +0,0 @@
|
||||
/* jshint esnext:true */
|
||||
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const GLib = imports.gi.GLib;
|
||||
const Main = imports.ui.main;
|
||||
const Mainloop = imports.mainloop;
|
||||
|
||||
const MAX_RECURSE_DEPTH = 3;
|
||||
|
||||
let signalConnections = [];
|
||||
let dropdowns = [];
|
||||
|
||||
|
||||
/**
|
||||
* Try hide a single dropdown actor.
|
||||
*
|
||||
* Return true on success.
|
||||
*/
|
||||
function _apply(actor)
|
||||
{
|
||||
if (!actor.has_style_class_name || !actor.has_style_class_name('popup-menu-arrow'))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
actor.hide();
|
||||
|
||||
if (dropdowns.indexOf(actor) < 0)
|
||||
{
|
||||
let connection = {
|
||||
object: actor,
|
||||
id: actor.connect('destroy', function()
|
||||
{
|
||||
let index;
|
||||
|
||||
index = signalConnections.indexOf(connection);
|
||||
if (index >= 0)
|
||||
{
|
||||
signalConnections.splice(index, 1);
|
||||
}
|
||||
|
||||
index = dropdowns.indexOf(actor);
|
||||
if (index >= 0)
|
||||
{
|
||||
dropdowns.splice(index, 1);
|
||||
}
|
||||
})
|
||||
};
|
||||
signalConnections.push(connection);
|
||||
dropdowns.push(actor);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar function to _recursiveApply(), but intended for containers.
|
||||
*/
|
||||
function _recursiveApplyInternal(actor, depth)
|
||||
{
|
||||
if (typeof actor.get_children === 'undefined')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
let children = actor.get_children();
|
||||
|
||||
// If there are no children then it's possible that actor hasn't been fully initialized yet.
|
||||
// Shedule to check later.
|
||||
if (children.length == 0)
|
||||
{
|
||||
_scheduleApply(actor);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check actor immediate children before using recursion
|
||||
if (children.map(child => _apply(child)).indexOf(true) >= 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check children recursively
|
||||
if (depth < MAX_RECURSE_DEPTH)
|
||||
{
|
||||
if (children.map(child => _recursiveApplyInternal(child, depth +1)).indexOf(true) >= 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function _scheduleApply(actor)
|
||||
{
|
||||
let actorAddedId, destroyId, timeoutId;
|
||||
actorAddedId = actor.connect('actor-added', function(child)
|
||||
{
|
||||
if (_recursiveApply(child))
|
||||
{
|
||||
actor.disconnect(actorAddedId);
|
||||
actor.disconnect(destroyId);
|
||||
Mainloop.source_remove(timeoutId);
|
||||
actorAddedId = destroyId = timeoutId = 0;
|
||||
}
|
||||
});
|
||||
destroyId = actor.connect('destroy', function()
|
||||
{
|
||||
if (timeoutId != 0) {
|
||||
Mainloop.source_remove(timeoutId);
|
||||
timeoutId = 0;
|
||||
}
|
||||
});
|
||||
timeoutId = Mainloop.idle_add(function()
|
||||
{
|
||||
actor.disconnect(actorAddedId);
|
||||
actor.disconnect(destroyId);
|
||||
actorAddedId = destroyId = timeoutId = 0;
|
||||
return GLib.SOURCE_REMOVE;
|
||||
});
|
||||
}
|
||||
|
||||
function _recursiveApply(actor)
|
||||
{
|
||||
return _apply(actor) || _recursiveApplyInternal(actor, 0);
|
||||
}
|
||||
|
||||
function init()
|
||||
{
|
||||
// no initialization required
|
||||
}
|
||||
|
||||
function enable()
|
||||
{
|
||||
let panelActor = Main.panel instanceof Clutter.Actor ? Main.panel : Main.panel.actor;
|
||||
|
||||
panelActor.get_children().forEach(
|
||||
function(actor)
|
||||
{
|
||||
signalConnections.push({
|
||||
object: actor,
|
||||
id: actor.connect('actor-added', _recursiveApply)
|
||||
});
|
||||
|
||||
actor.get_children().forEach(_recursiveApply);
|
||||
});
|
||||
}
|
||||
|
||||
function disable()
|
||||
{
|
||||
while (signalConnections.length > 0)
|
||||
{
|
||||
let connection = signalConnections.pop();
|
||||
connection.object.disconnect(connection.id);
|
||||
}
|
||||
|
||||
while (dropdowns.length > 0)
|
||||
{
|
||||
let actor = dropdowns.pop();
|
||||
actor.show();
|
||||
}
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
{
|
||||
"_generated": "Generated by SweetTooth, do not edit",
|
||||
"description": "Removes the dropdown arrows which were introduced in Gnome 3.10 from the App Menu, System Menu, Input Menu, Access Menu, Places Menu, Applications Menu and any other extension that wants to add dropdown arrows.",
|
||||
"extension-id": "remove-dropdown-arrows",
|
||||
"name": "Remove Dropdown Arrows",
|
||||
"shell-version": [
|
||||
"3.12",
|
||||
"3.14",
|
||||
"3.16",
|
||||
"3.18",
|
||||
"3.20",
|
||||
"3.22",
|
||||
"3.24",
|
||||
"3.26",
|
||||
"3.28",
|
||||
"3.30",
|
||||
"3.34",
|
||||
"3.32"
|
||||
],
|
||||
"url": "http://github.com/mpdeimos/gnome-shell-remove-dropdown-arrows",
|
||||
"uuid": "remove-dropdown-arrows@mpdeimos.com",
|
||||
"version": 13
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017 Fabio Mereu <fabio@mereu.info>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
@ -1,45 +0,0 @@
|
||||
# Window Corner Preview
|
||||
GNOME Shell extension that creates a window preview and anchors it to a corner of the screen.
|
||||
May be useful to watch YouTube videos while working, or any kind of video or movie.
|
||||
|
||||
**Window Corner Preview** is an extension for GNOME > 3.10. Find this extension on the [GNOME extensions repository](https://extensions.gnome.org/extension/1227/window-corner-preview/).
|
||||
|
||||
## Usage
|
||||
**Picking a window up**
|
||||
Choose a window to preview by selecting it from the monkey panel menu.
|
||||
|
||||
**Zooming and cropping**
|
||||
You can adjust the zoom by scrolling in and out on the middle of the preview box. To resize the margins, scroll along the box edges.
|
||||
Alternatively, you can use the sliders on the monkey menu.
|
||||
|
||||
**Moving**
|
||||
*LEFT BUTTON*: it will go to the opposite corner
|
||||
*CENTER BUTTON*: it will go to the previous corner
|
||||
*RIGHT BUTTON*: it will go to the next corner
|
||||
|
||||
**Activating the window**
|
||||
CTRL + CLICK: it will focus the displayed window
|
||||
|
||||
|
||||
## What's new?
|
||||
Here's a list of most changes for each version
|
||||
### v. 2
|
||||
|
||||
- Supports preview cropping
|
||||
- Scroll events handling
|
||||
- Improved tweening settings for a more natural GNOME look
|
||||
- Autohide when windows are not supposed to be displayed
|
||||
- Schema settings added
|
||||
- Can optionally hide itself when the mirrored window is focused on top
|
||||
|
||||
### v. 1
|
||||
|
||||
- Forked and adapted
|
||||
|
||||
## F.A.Q.
|
||||
> **Can you make it work when the window is minimized?**
|
||||
Sorry, I think it's not possible for now. From what I can see some apps (like Chromium when video streaming is being played) get "frozen" when you minimize the window. I guess it's for keeping the system more efficient.
|
||||
**WORKAROUND**: Please just move the window to another workspace (SUPER + SHIFT + PAGE DOWN / UP), it won't bother you anymore.
|
||||
|
||||
|
||||
|
@ -1,52 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function normalizeRange(denormal, min, max, step) {
|
||||
if (step !== undefined) denormal = Math.round(denormal / step) * step;
|
||||
// To a range 0-1
|
||||
return (denormal - min) / (max - min);
|
||||
};
|
||||
|
||||
function deNormalizeRange(normal, min, max, step) {
|
||||
// from [0, 1] to MIN - MAX
|
||||
let denormal = (max - min) * normal + min;
|
||||
if (step !== undefined) denormal = Math.round(denormal / step) * step;
|
||||
return denormal;
|
||||
};
|
||||
|
||||
// Truncate too long window titles on the menu
|
||||
function spliceTitle(text, max) {
|
||||
text = text || "";
|
||||
max = max || 25;
|
||||
if (text.length > max) {
|
||||
return text.substr(0, max - 2) + "...";
|
||||
}
|
||||
else {
|
||||
return text;
|
||||
}
|
||||
};
|
||||
|
||||
function getWindowSignature(metawindow) {
|
||||
return "".concat(
|
||||
metawindow.get_pid(),
|
||||
metawindow.get_wm_class(),
|
||||
metawindow.get_title()//,
|
||||
// metawindow.get_stable_sequence()
|
||||
);
|
||||
}
|
||||
|
||||
function getWindowHash(metawindow) {
|
||||
return metawindow ? sdbm(getWindowSignature(metawindow)).toString(36) : "";
|
||||
}
|
||||
|
||||
// https://github.com/sindresorhus/sdbm
|
||||
function sdbm(string) {
|
||||
|
||||
let hash = 0;
|
||||
|
||||
for (let i = 0; i < string.length; i++) {
|
||||
hash = string.charCodeAt(i) + (hash << 6) + (hash << 16) - hash;
|
||||
}
|
||||
|
||||
// Convert it to an unsigned 32-bit integer
|
||||
return hash >>> 0;
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
/* -*- mode: js; js-basic-offset: 4; indent-tabs-mode: nil -*- */
|
||||
/*
|
||||
Copyright (c) 2011-2012, Giovanni Campagna <scampa.giovanni@gmail.com>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the GNOME nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
const Gettext = imports.gettext;
|
||||
const Gio = imports.gi.Gio;
|
||||
|
||||
const Config = imports.misc.config;
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
|
||||
/**
|
||||
* initTranslations:
|
||||
* @domain: (optional): the gettext domain to use
|
||||
*
|
||||
* Initialize Gettext to load translations from extensionsdir/locale.
|
||||
* If @domain is not provided, it will be taken from metadata['gettext-domain']
|
||||
*/
|
||||
function initTranslations(domain) {
|
||||
let extension = ExtensionUtils.getCurrentExtension();
|
||||
|
||||
domain = domain || extension.metadata['gettext-domain'];
|
||||
|
||||
// check if this extension was built with "make zip-file", and thus
|
||||
// has the locale files in a subfolder
|
||||
// otherwise assume that extension has been installed in the
|
||||
// same prefix as gnome-shell
|
||||
let localeDir = extension.dir.get_child('locale');
|
||||
if (localeDir.query_exists(null))
|
||||
Gettext.bindtextdomain(domain, localeDir.get_path());
|
||||
else
|
||||
Gettext.bindtextdomain(domain, Config.LOCALEDIR);
|
||||
}
|
||||
|
||||
/**
|
||||
* getSettings:
|
||||
* @schema: (optional): the GSettings schema id
|
||||
*
|
||||
* Builds and return a GSettings schema for @schema, using schema files
|
||||
* in extensionsdir/schemas. If @schema is not provided, it is taken from
|
||||
* metadata['settings-schema'].
|
||||
*/
|
||||
function getSettings(schema) {
|
||||
let extension = ExtensionUtils.getCurrentExtension();
|
||||
|
||||
schema = schema || extension.metadata['settings-schema'];
|
||||
|
||||
const GioSSS = Gio.SettingsSchemaSource;
|
||||
|
||||
// check if this extension was built with "make zip-file", and thus
|
||||
// has the schema files in a subfolder
|
||||
// otherwise assume that extension has been installed in the
|
||||
// same prefix as gnome-shell (and therefore schemas are available
|
||||
// in the standard folders)
|
||||
let schemaDir = extension.dir.get_child('schemas');
|
||||
let schemaSource;
|
||||
if (schemaDir.query_exists(null))
|
||||
schemaSource = GioSSS.new_from_directory(schemaDir.get_path(),
|
||||
GioSSS.get_default(),
|
||||
false);
|
||||
else
|
||||
schemaSource = GioSSS.get_default();
|
||||
|
||||
let schemaObj = schemaSource.lookup(schema, true);
|
||||
if (!schemaObj)
|
||||
throw new Error('Schema ' + schema + ' could not be found for extension '
|
||||
+ extension.metadata.uuid + '. Please check your installation.');
|
||||
|
||||
return new Gio.Settings({ settings_schema: schemaObj });
|
||||
}
|
||||
|
@ -1,176 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2017 Fabius <fabio@mereu.info>
|
||||
Released under the MIT license
|
||||
|
||||
Window Corner Preview Gnome Extension
|
||||
|
||||
Purpose: It adds a menu to the GNOME main panel from which you can turn the
|
||||
preview of any desktop window on.
|
||||
It can help you watch a movie or a video while studying or working.
|
||||
|
||||
This is a fork of https://github.com/Exsul/float-youtube-for-gnome
|
||||
by "Enelar" Kirill Berezin which was originally forked itself
|
||||
from https://github.com/Shou/float-mpv by "Shou" Benedict Aas.
|
||||
|
||||
Contributors:
|
||||
Scott Ames https://github.com/scottames
|
||||
Jan Tojnar https://github.com/jtojnar
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
// Global modules
|
||||
const Lang = imports.lang;
|
||||
const Main = imports.ui.main;
|
||||
const Mainloop = imports.mainloop;
|
||||
|
||||
// Internal modules
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Preview = Me.imports.preview;
|
||||
const Indicator = Me.imports.indicator;
|
||||
const Settings = Me.imports.settings;
|
||||
const Signaling = Me.imports.signaling;
|
||||
const Bundle = Me.imports.bundle;
|
||||
const Polygnome = Me.imports.polygnome;
|
||||
|
||||
const WindowCornerPreview = Preview.WindowCornerPreview;
|
||||
const WindowCornerIndicator = Indicator.WindowCornerIndicator;
|
||||
const WindowCornerSettings = Settings.WindowCornerSettings;
|
||||
const SignalConnector = Signaling.SignalConnector;
|
||||
|
||||
const getWindowSignature = Bundle.getWindowSignature;
|
||||
const getWindowHash = Bundle.getWindowHash;
|
||||
const getMetawindows = Polygnome.getMetawindows;
|
||||
const getWorkspaceWindowsArray = Polygnome.getWorkspaceWindowsArray;
|
||||
const getWorkspaces = Polygnome.getWorkspaces;
|
||||
|
||||
function onZoomChanged() {
|
||||
settings.initialZoom = this.zoom;
|
||||
}
|
||||
|
||||
function onCropChanged() {
|
||||
settings.initialLeftCrop = this.leftCrop;
|
||||
settings.initialRightCrop = this.rightCrop;
|
||||
settings.initialTopCrop = this.topCrop;
|
||||
settings.initialBottomCrop = this.bottomCrop;
|
||||
}
|
||||
|
||||
function onCornerChanged() {
|
||||
settings.initialCorner = this.corner;
|
||||
}
|
||||
|
||||
function onWindowChanged(preview, window) {
|
||||
settings.lastWindowHash = getWindowHash(preview.visible && window);
|
||||
}
|
||||
|
||||
function onSettingsChanged(settings, property) {
|
||||
if (["focusHidden"].indexOf(property) > -1) {
|
||||
// this = preview
|
||||
this[property] = settings[property];
|
||||
}
|
||||
}
|
||||
|
||||
function previewLastWindow(preview) {
|
||||
|
||||
const lastWindowHash = settings.lastWindowHash;
|
||||
|
||||
if (! lastWindowHash) return;
|
||||
|
||||
const signals = new SignalConnector();
|
||||
|
||||
let done, timer;
|
||||
|
||||
function shouldBePreviewed(anyWindow) {
|
||||
|
||||
if (!done && lastWindowHash === getWindowHash(anyWindow)) {
|
||||
|
||||
done = true;
|
||||
signals.disconnectAll();
|
||||
|
||||
if (timer) {
|
||||
Mainloop.source_remove(timer);
|
||||
timer = null;
|
||||
}
|
||||
|
||||
// I don't know exactly the reason, but some windows
|
||||
// do not get shown properly without putting this on async
|
||||
// The thumbnail seems not to be ready yet
|
||||
Mainloop.timeout_add(100, function () {
|
||||
preview.window = anyWindow;
|
||||
preview.show();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// If the Extension is firstly activated the window list is empty [] and will
|
||||
// be filled in shortly, instead if it's enabled later (like via Tweak tool)
|
||||
// the array is already filled
|
||||
const windows = getMetawindows();
|
||||
if (windows.length) {
|
||||
windows.forEach(function (window) {
|
||||
shouldBePreviewed(window);
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
||||
getWorkspaces().forEach(function (workspace) {
|
||||
signals.tryConnectAfter(workspace, "window-added", function (workspace, window) {
|
||||
shouldBePreviewed(window);
|
||||
});
|
||||
});
|
||||
|
||||
const TIMEOUT = 10000;
|
||||
timer = Mainloop.timeout_add(TIMEOUT, function () {
|
||||
// In case the last window previewed could not be found, stop listening
|
||||
done = true;
|
||||
signals.disconnectAll();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
let preview, menu;
|
||||
let settings, signals;
|
||||
|
||||
function init() {
|
||||
settings = new WindowCornerSettings();
|
||||
signals = new SignalConnector();
|
||||
}
|
||||
|
||||
function enable() {
|
||||
preview = new WindowCornerPreview();
|
||||
signals.tryConnect(settings, "changed", Lang.bind(preview, onSettingsChanged));
|
||||
signals.tryConnect(preview, "zoom-changed", Lang.bind(preview, onZoomChanged));
|
||||
signals.tryConnect(preview, "crop-changed", Lang.bind(preview, onCropChanged));
|
||||
signals.tryConnect(preview, "corner-changed", Lang.bind(preview, onCornerChanged));
|
||||
signals.tryConnect(preview, "window-changed", Lang.bind(preview, onWindowChanged));
|
||||
|
||||
// Initialize props
|
||||
preview.zoom = settings.initialZoom;
|
||||
preview.leftCrop = settings.initialLeftCrop;
|
||||
preview.rightCrop = settings.initialRightCrop;
|
||||
preview.topCrop = settings.initialTopCrop;
|
||||
preview.bottomCrop = settings.initialBottomCrop;
|
||||
preview.focusHidden = settings.focusHidden;
|
||||
preview.corner = settings.initialCorner;
|
||||
|
||||
menu = new WindowCornerIndicator();
|
||||
menu.preview = preview;
|
||||
|
||||
menu.enable();
|
||||
Main.panel.addToStatusArea("WindowCornerIndicator", menu);
|
||||
|
||||
// The last window being previewed is reactivate
|
||||
previewLastWindow(preview);
|
||||
}
|
||||
|
||||
function disable() {
|
||||
signals.disconnectAll();
|
||||
// Save the last window on (or off)
|
||||
onWindowChanged.call(null, preview, preview.window);
|
||||
preview.passAway();
|
||||
menu.disable();
|
||||
menu.destroy();
|
||||
preview = null;
|
||||
menu = null;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 9.4 KiB |
@ -1,294 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.5 r10040"
|
||||
width="601.565"
|
||||
height="601.565"
|
||||
xml:space="preserve"
|
||||
sodipodi:docname="icon.svg"
|
||||
inkscape:export-filename="/home/fabius/gits/window-corner-preview/window-corner-preview@fabiomereu.it/icon.png"
|
||||
inkscape:export-xdpi="19.15"
|
||||
inkscape:export-ydpi="19.15"><metadata
|
||||
id="metadata8"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs6"><clipPath
|
||||
clipPathUnits="userSpaceOnUse"
|
||||
id="clipPath18"><path
|
||||
d="m 0,869.743 846.084,0 L 846.084,0 0,0 0,869.743 z"
|
||||
id="path20"
|
||||
inkscape:connector-curvature="0" /></clipPath><clipPath
|
||||
clipPathUnits="userSpaceOnUse"
|
||||
id="clipPath26"><path
|
||||
d="m 6.24561,480.284 500.39239,0 0,-447.2674 -500.39239,0 0,447.2674 z"
|
||||
id="path28"
|
||||
inkscape:connector-curvature="0" /></clipPath><clipPath
|
||||
clipPathUnits="userSpaceOnUse"
|
||||
id="clipPath30"><path
|
||||
d="M 190.06,480.284 6.246,296.47 286.598,33.017 506.638,253.057 190.06,480.284 z"
|
||||
id="path32"
|
||||
inkscape:connector-curvature="0" /></clipPath><linearGradient
|
||||
x1="0"
|
||||
y1="0"
|
||||
x2="1"
|
||||
y2="0"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(184.23512,184.23512,184.23512,-184.23512,162.09717,180.41797)"
|
||||
spreadMethod="pad"
|
||||
id="linearGradient34"><stop
|
||||
style="stop-opacity:1;stop-color:#ffffff"
|
||||
offset="0"
|
||||
id="stop36" /><stop
|
||||
style="stop-opacity:1;stop-color:#000000"
|
||||
offset="1"
|
||||
id="stop38" /></linearGradient><clipPath
|
||||
clipPathUnits="userSpaceOnUse"
|
||||
id="clipPath78"><path
|
||||
d="m 95.6772,523.905 409.8738,0 0,-443.9519 -409.8738,0 0,443.9519 z"
|
||||
id="path80"
|
||||
inkscape:connector-curvature="0" /></clipPath><clipPath
|
||||
clipPathUnits="userSpaceOnUse"
|
||||
id="clipPath82"><path
|
||||
d="M 301.772,523.905 95.677,317.811 333.535,79.953 505.551,253.057 301.772,523.905 z"
|
||||
id="path84"
|
||||
inkscape:connector-curvature="0" /></clipPath><linearGradient
|
||||
x1="0"
|
||||
y1="0"
|
||||
x2="1"
|
||||
y2="0"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(183.00333,183.00333,183.00333,-183.00333,230.05615,214.33105)"
|
||||
spreadMethod="pad"
|
||||
id="linearGradient86"><stop
|
||||
style="stop-opacity:1;stop-color:#ffffff"
|
||||
offset="0"
|
||||
id="stop88" /><stop
|
||||
style="stop-opacity:1;stop-color:#000000"
|
||||
offset="1"
|
||||
id="stop90" /></linearGradient><linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient34"
|
||||
id="linearGradient3213"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(184.23512,184.23512,184.23512,-184.23512,162.09717,180.41797)"
|
||||
spreadMethod="pad"
|
||||
x1="0"
|
||||
y1="0"
|
||||
x2="1"
|
||||
y2="0" /><linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient86"
|
||||
id="linearGradient3215"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(183.00333,183.00333,183.00333,-183.00333,230.05615,214.33105)"
|
||||
spreadMethod="pad"
|
||||
x1="0"
|
||||
y1="0"
|
||||
x2="1"
|
||||
y2="0" /><linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient34"
|
||||
id="linearGradient4053"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(184.23512,184.23512,184.23512,-184.23512,162.09717,180.41797)"
|
||||
spreadMethod="pad"
|
||||
x1="0"
|
||||
y1="0"
|
||||
x2="1"
|
||||
y2="0" /><linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient86"
|
||||
id="linearGradient4055"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(183.00333,183.00333,183.00333,-183.00333,230.05615,214.33105)"
|
||||
spreadMethod="pad"
|
||||
x1="0"
|
||||
y1="0"
|
||||
x2="1"
|
||||
y2="0" /></defs><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="672"
|
||||
id="namedview4"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:zoom="0.61398252"
|
||||
inkscape:cx="231.73886"
|
||||
inkscape:cy="328.46353"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g10" /><g
|
||||
id="g10"
|
||||
inkscape:groupmode="layer"
|
||||
inkscape:label="pixel77-free-vector-baby-monkey-1218"
|
||||
transform="matrix(1.25,0,0,-1.25,-5.5243874,854.04289)"><g
|
||||
id="g22"
|
||||
transform="matrix(0.95573377,0,0,0.95573377,-368.46366,-68.016505)"><g
|
||||
id="g24" /><g
|
||||
id="g40"
|
||||
transform="matrix(0.77114207,0,0,1.2590891,385.88501,93.69448)"><g
|
||||
clip-path="url(#clipPath26)"
|
||||
id="g42"
|
||||
style="opacity:0.11000103"><g
|
||||
id="g44"><g
|
||||
clip-path="url(#clipPath30)"
|
||||
id="g46"><g
|
||||
id="g48"><g
|
||||
id="g50"><path
|
||||
d="M 190.06,480.284 6.246,296.47 286.598,33.017 506.638,253.057 190.06,480.284 z"
|
||||
style="fill:url(#linearGradient4053);stroke:none"
|
||||
id="path52"
|
||||
inkscape:connector-curvature="0" /></g></g></g></g></g></g></g><g
|
||||
id="g54"
|
||||
transform="matrix(0.96825394,0,0,1,484.49527,441.50023)"><path
|
||||
d="m 0,0 c 0,-36.225 -29.364,-65.591 -65.592,-65.591 -36.226,0 -65.592,29.366 -65.592,65.591 0,36.225 29.366,65.591 65.592,65.591 C -29.364,65.591 0,36.225 0,0"
|
||||
style="fill:#fbca97;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path56"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g58"
|
||||
transform="matrix(0.96825394,0,0,1,134.62755,441.50023)"><path
|
||||
d="m 0,0 c 0,-36.225 -29.364,-65.591 -65.591,-65.591 -36.227,0 -65.592,29.366 -65.592,65.591 0,36.225 29.365,65.591 65.592,65.591 C -29.364,65.591 0,36.225 0,0"
|
||||
style="fill:#fbca97;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path60"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g62"
|
||||
transform="matrix(0.96825394,0,0,1,107.40954,441.50023)"><path
|
||||
d="m 0,0 c 0,-20.701 -16.78,-37.481 -37.481,-37.481 -20.701,0 -37.481,16.78 -37.481,37.481 0,20.701 16.78,37.481 37.481,37.481 C -16.78,37.481 0,20.701 0,0"
|
||||
style="fill:#d84f51;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path64"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g66"
|
||||
transform="matrix(0.96825394,0,0,1,457.27639,441.50023)"><path
|
||||
d="m 0,0 c 0,-20.701 -16.781,-37.481 -37.48,-37.481 -20.7,0 -37.481,16.78 -37.481,37.481 0,20.701 16.781,37.481 37.481,37.481 C -16.781,37.481 0,20.701 0,0"
|
||||
style="fill:#d84f51;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path68"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g70"
|
||||
transform="matrix(0.96825394,0,0,1,429.49205,441.50023)"><path
|
||||
d="m 0,0 c 0,-104.794 -84.955,-189.747 -189.747,-189.747 -104.793,0 -189.747,84.953 -189.747,189.747 0,104.795 84.954,189.747 189.747,189.747 C -84.955,189.747 0,104.795 0,0"
|
||||
style="fill:#762e33;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path72"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g74"
|
||||
transform="matrix(0.81903888,0,0,0.89116526,-816.48958,238.06276)"><g
|
||||
id="g76" /><g
|
||||
id="g92"
|
||||
transform="translate(906.60622,-182.68456)"><g
|
||||
clip-path="url(#clipPath78)"
|
||||
id="g94"
|
||||
style="opacity:0.30000299"><g
|
||||
id="g96"><g
|
||||
clip-path="url(#clipPath82)"
|
||||
id="g98"><g
|
||||
id="g100"><g
|
||||
id="g102"><path
|
||||
d="M 301.772,523.905 95.677,317.811 333.535,79.953 505.551,253.057 301.772,523.905 z"
|
||||
style="fill:url(#linearGradient4055);stroke:none"
|
||||
id="path104"
|
||||
inkscape:connector-curvature="0" /></g></g></g></g></g></g></g><g
|
||||
id="g106"
|
||||
transform="matrix(0.96825394,0,0,1,397.1699,467.26833)"><path
|
||||
d="m 0,0 c 0,42.694 -34.612,77.304 -77.304,77.304 -34.649,0 -63.967,-22.799 -73.791,-54.213 -9.822,31.414 -39.141,54.213 -73.79,54.213 -42.692,0 -77.304,-34.61 -77.304,-77.304 0,-36.479 25.299,-66.978 59.287,-75.106 -11.548,-17.415 -18.292,-38.297 -18.292,-60.762 0,-60.808 49.294,-110.1 110.099,-110.1 60.806,0 110.1,49.292 110.1,110.1 0,22.465 -6.744,43.347 -18.291,60.762 C -25.302,-66.978 0,-36.479 0,0"
|
||||
style="fill:#fbca97;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path108"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g110"
|
||||
transform="matrix(0.96825394,0,0,1,162.72298,610.74053)"><path
|
||||
d="M 0,0 C 0,0 67.028,39.247 163.072,72.042 L 112.191,18.635 184.156,36.021 171.629,0 l 29.51,0 0,-28.687 L 0,0 z"
|
||||
style="fill:#762e33;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path112"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g114"
|
||||
transform="matrix(0.96825394,0,0,1,259.40886,298.60423)"><path
|
||||
d="m 0,0 c 0,-8.605 -4.735,-15.583 -10.574,-15.583 -5.838,0 -10.573,6.978 -10.573,15.583 0,8.606 4.735,15.584 10.573,15.584 C -4.735,15.584 0,8.606 0,0"
|
||||
style="fill:#d84f51;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path116"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g118"
|
||||
transform="matrix(0.96825394,0,0,1,231.95121,467.26833)"><path
|
||||
d="m 0,0 c 0,-29.886 -24.222,-54.112 -54.112,-54.112 -29.89,0 -54.112,24.226 -54.112,54.112 0,29.886 24.222,54.112 54.112,54.112 C -24.222,54.112 0,29.886 0,0"
|
||||
style="fill:#f2906a;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path120"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g122"
|
||||
transform="matrix(0.96825394,0,0,1,210.3239,467.26833)"><path
|
||||
d="m 0,0 c 0,-17.551 -14.225,-31.778 -31.775,-31.778 -17.551,0 -31.776,14.227 -31.776,31.778 0,17.551 14.225,31.778 31.776,31.778 C -14.225,31.778 0,17.551 0,0"
|
||||
style="fill:#3e1d15;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path124"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g126"
|
||||
transform="matrix(0.96825394,0,0,1,203.13858,467.26833)"><path
|
||||
d="m 0,0 c 0,-13.451 -10.903,-24.356 -24.354,-24.356 -13.452,0 -24.355,10.905 -24.355,24.356 0,13.451 10.903,24.356 24.355,24.356 C -10.903,24.356 0,13.451 0,0"
|
||||
style="fill:#762e33;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path128"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g130"
|
||||
transform="matrix(0.96825394,0,0,1,199.58984,475.78053)"><path
|
||||
d="m 0,0 c 0,-10.61 -8.602,-19.211 -19.211,-19.211 -10.611,0 -19.212,8.601 -19.212,19.211 0,10.612 8.601,19.214 19.212,19.214 C -8.602,19.214 0,10.612 0,0"
|
||||
style="fill:#3e1d15;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path132"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g134"
|
||||
transform="matrix(0.96825394,0,0,1,203.13858,476.83523)"><path
|
||||
d="m 0,0 c 0,-6.563 -5.321,-11.884 -11.882,-11.884 -6.566,0 -11.882,5.321 -11.882,11.884 0,6.561 5.316,11.882 11.882,11.882 C -5.321,11.882 0,6.561 0,0"
|
||||
style="fill:#f9f6ea;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path136"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g138"
|
||||
transform="matrix(0.96825394,0,0,1,378.01009,467.26833)"><path
|
||||
d="m 0,0 c 0,-29.886 -24.222,-54.112 -54.112,-54.112 -29.89,0 -54.112,24.226 -54.112,54.112 0,29.886 24.222,54.112 54.112,54.112 C -24.222,54.112 0,29.886 0,0"
|
||||
style="fill:#f2906a;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path140"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g142"
|
||||
transform="matrix(0.96825394,0,0,1,356.3822,467.26833)"><path
|
||||
d="m 0,0 c 0,-17.551 -14.224,-31.778 -31.775,-31.778 -17.551,0 -31.776,14.227 -31.776,31.778 0,17.551 14.225,31.778 31.776,31.778 C -14.224,31.778 0,17.551 0,0"
|
||||
style="fill:#3e1d15;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path144"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g146"
|
||||
transform="matrix(0.96825394,0,0,1,349.19688,467.26833)"><path
|
||||
d="m 0,0 c 0,-13.451 -10.902,-24.356 -24.354,-24.356 -13.452,0 -24.355,10.905 -24.355,24.356 0,13.451 10.903,24.356 24.355,24.356 C -10.902,24.356 0,13.451 0,0"
|
||||
style="fill:#762e33;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path148"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g150"
|
||||
transform="matrix(0.96825394,0,0,1,345.64824,475.78053)"><path
|
||||
d="m 0,0 c 0,-10.61 -8.601,-19.211 -19.212,-19.211 -10.609,0 -19.211,8.601 -19.211,19.211 0,10.612 8.602,19.214 19.211,19.214 C -8.601,19.214 0,10.612 0,0"
|
||||
style="fill:#3e1d15;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path152"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g154"
|
||||
transform="matrix(0.96825394,0,0,1,349.19688,476.83523)"><path
|
||||
d="m 0,0 c 0,-6.563 -5.321,-11.884 -11.882,-11.884 -6.565,0 -11.882,5.321 -11.882,11.884 0,6.561 5.317,11.882 11.882,11.882 C -5.321,11.882 0,6.561 0,0"
|
||||
style="fill:#f9f6ea;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path156"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g158"
|
||||
transform="matrix(0.96825394,0,0,1,267.18374,383.29373)"><path
|
||||
d="m 0,0 c 0,-2.682 -8.776,-4.854 -19.596,-4.854 -10.821,0 -19.596,2.172 -19.596,4.854 0,2.679 8.775,4.852 19.596,4.852 C -8.776,4.852 0,2.679 0,0"
|
||||
style="fill:#f2906a;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path160"
|
||||
inkscape:connector-curvature="0" /></g></g></svg>
|
Before Width: | Height: | Size: 14 KiB |
@ -1,181 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
// Global modules
|
||||
const Lang = imports.lang;
|
||||
const St = imports.gi.St;
|
||||
const Main = imports.ui.main;
|
||||
const PanelMenu = imports.ui.panelMenu;
|
||||
const PopupMenu = imports.ui.popupMenu;
|
||||
|
||||
// Internal modules
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const PopupSliderMenuItem = Me.imports.popupSliderMenuItem.PopupSliderMenuItem;
|
||||
const Bundle = Me.imports.bundle;
|
||||
const Polygnome = Me.imports.polygnome;
|
||||
const Preview = Me.imports.preview;
|
||||
|
||||
// Utilities
|
||||
const getWorkspaceWindowsArray = Polygnome.getWorkspaceWindowsArray;
|
||||
const spliceTitle = Bundle.spliceTitle;
|
||||
|
||||
// Preview default values
|
||||
const MIN_ZOOM = Preview.MIN_ZOOM;
|
||||
const MAX_ZOOM = Preview.MAX_ZOOM;
|
||||
const MAX_CROP_RATIO = Preview.MAX_CROP_RATIO;
|
||||
const DEFAULT_ZOOM = Preview.DEFAULT_ZOOM;
|
||||
const DEFAULT_CROP_RATIO = Preview.DEFAULT_CROP_RATIO;
|
||||
|
||||
var WindowCornerIndicator = new Lang.Class({
|
||||
|
||||
Name: "WindowCornerPreview.indicator",
|
||||
Extends: PanelMenu.Button,
|
||||
|
||||
_init: function() {
|
||||
this.parent(null, "WindowCornerPreview.indicator");
|
||||
},
|
||||
|
||||
// Handler to turn preview on / off
|
||||
_onMenuIsEnabled: function(item) {
|
||||
(item.state) ? this.preview.show() : this.preview.hide();
|
||||
},
|
||||
|
||||
_updateSliders: function() {
|
||||
this.menuZoom.value = this.preview.zoom;
|
||||
this.menuZoomLabel.label.set_text("Monitor Zoom: " + Math.floor(this.preview.zoom * 100).toString() + "%");
|
||||
|
||||
this.menuLeftCrop.value = this.preview.leftCrop;
|
||||
this.menuRightCrop.value = this.preview.rightCrop;
|
||||
this.menuTopCrop.value = this.preview.topCrop;
|
||||
this.menuBottomCrop.value = this.preview.bottomCrop;
|
||||
},
|
||||
|
||||
_onZoomChanged: function(source, value) {
|
||||
this.preview.zoom = value;
|
||||
this._updateSliders();
|
||||
this.preview.emit("zoom-changed");
|
||||
},
|
||||
|
||||
_onLeftCropChanged: function(source, value) {
|
||||
this.preview.leftCrop = value;
|
||||
this._updateSliders();
|
||||
this.preview.emit("crop-changed");
|
||||
},
|
||||
|
||||
_onRightCropChanged: function(source, value) {
|
||||
this.preview.rightCrop = value;
|
||||
this._updateSliders();
|
||||
this.preview.emit("crop-changed");
|
||||
},
|
||||
|
||||
_onTopCropChanged: function(source, value) {
|
||||
this.preview.topCrop = value;
|
||||
this._updateSliders();
|
||||
this.preview.emit("crop-changed");
|
||||
},
|
||||
|
||||
_onBottomCropChanged: function(source, value) {
|
||||
this.preview.bottomCrop = value;
|
||||
this._updateSliders();
|
||||
this.preview.emit("crop-changed");
|
||||
},
|
||||
|
||||
_onSettings: function() {
|
||||
Main.Util.trySpawnCommandLine("gnome-shell-extension-prefs window-corner-preview@fabiomereu.it");
|
||||
},
|
||||
|
||||
// Update windows list and other menus before menu pops up
|
||||
_onUserTriggered: function() {
|
||||
this.menuIsEnabled.setToggleState(this.preview.visible);
|
||||
this.menuIsEnabled.actor.reactive = this.preview.window;
|
||||
this._updateSliders()
|
||||
this.menuWindows.menu.removeAll();
|
||||
getWorkspaceWindowsArray().forEach(function(workspace, i) {
|
||||
if (i > 0) {
|
||||
this.menuWindows.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||
}
|
||||
|
||||
// Populate window list on submenu
|
||||
workspace.windows.forEach(function(window) {
|
||||
let winMenuItem = new PopupMenu.PopupMenuItem(spliceTitle(window.get_title()));
|
||||
winMenuItem.connect("activate", Lang.bind(this, function() {
|
||||
this.preview.window = window;
|
||||
this.preview.show();
|
||||
}));
|
||||
|
||||
this.menuWindows.menu.addMenuItem(winMenuItem);
|
||||
}, this);
|
||||
}, this);
|
||||
},
|
||||
|
||||
enable: function() {
|
||||
|
||||
// Add icon
|
||||
this.icon = new St.Icon({
|
||||
icon_name: "face-monkey-symbolic",
|
||||
style_class: "system-status-icon"
|
||||
});
|
||||
this.actor.add_actor(this.icon);
|
||||
|
||||
// Prepare Menu...
|
||||
|
||||
// 1. Preview ON/OFF
|
||||
this.menuIsEnabled = new PopupMenu.PopupSwitchMenuItem("Preview", false, {
|
||||
hover: false,
|
||||
reactive: true
|
||||
});
|
||||
this.menuIsEnabled.connect("toggled", Lang.bind(this, this._onMenuIsEnabled));
|
||||
this.menu.addMenuItem(this.menuIsEnabled);
|
||||
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||
|
||||
// 2. Windows list
|
||||
this.menuWindows = new PopupMenu.PopupSubMenuMenuItem("Windows");
|
||||
this.menu.addMenuItem(this.menuWindows);
|
||||
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||
|
||||
// 3a. Zoom label
|
||||
this.menuZoomLabel = new PopupMenu.PopupMenuItem("", {
|
||||
activate: false,
|
||||
reactive: false
|
||||
});
|
||||
this.menu.addMenuItem(this.menuZoomLabel);
|
||||
|
||||
// 3b, Zoom slider
|
||||
this.menuZoom = new PopupSliderMenuItem(false, DEFAULT_ZOOM, MIN_ZOOM, MAX_ZOOM, 0.005); // slider step: 0.5%
|
||||
this.menuZoom.connect("value-changed", Lang.bind(this, this._onZoomChanged));
|
||||
this.menu.addMenuItem(this.menuZoom);
|
||||
|
||||
// 4. Crop Sliders
|
||||
this.menuCrop = new PopupMenu.PopupSubMenuMenuItem("Crop");
|
||||
this.menu.addMenuItem(this.menuCrop);
|
||||
|
||||
this.menuTopCrop = new PopupSliderMenuItem("Top", DEFAULT_CROP_RATIO, 0.0, MAX_CROP_RATIO);
|
||||
this.menuTopCrop.connect("value-changed", Lang.bind(this, this._onTopCropChanged));
|
||||
this.menuCrop.menu.addMenuItem(this.menuTopCrop);
|
||||
|
||||
this.menuLeftCrop = new PopupSliderMenuItem("Left", DEFAULT_CROP_RATIO, 0.0, MAX_CROP_RATIO);
|
||||
this.menuLeftCrop.connect("value-changed", Lang.bind(this, this._onLeftCropChanged));
|
||||
this.menuCrop.menu.addMenuItem(this.menuLeftCrop);
|
||||
|
||||
this.menuRightCrop = new PopupSliderMenuItem("Right", DEFAULT_CROP_RATIO, 0.0, MAX_CROP_RATIO);
|
||||
this.menuRightCrop.connect("value-changed", Lang.bind(this, this._onRightCropChanged));
|
||||
this.menuCrop.menu.addMenuItem(this.menuRightCrop);
|
||||
|
||||
this.menuBottomCrop = new PopupSliderMenuItem("Bottom", DEFAULT_CROP_RATIO, 0.0, MAX_CROP_RATIO);
|
||||
this.menuBottomCrop.connect("value-changed", Lang.bind(this, this._onBottomCropChanged));
|
||||
this.menuCrop.menu.addMenuItem(this.menuBottomCrop);
|
||||
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||
|
||||
// 5. Settings
|
||||
this.menuSettings = new PopupMenu.PopupMenuItem("Settings");
|
||||
this.menuSettings.connect("activate", Lang.bind(this, this._onSettings));
|
||||
this.menu.addMenuItem(this.menuSettings);
|
||||
|
||||
this.actor.connect("enter-event", Lang.bind(this, this._onUserTriggered));
|
||||
|
||||
},
|
||||
|
||||
disable: function() {
|
||||
this.menu.removeAll();
|
||||
}
|
||||
});
|
@ -1,24 +0,0 @@
|
||||
{
|
||||
"_generated": "Generated by SweetTooth, do not edit",
|
||||
"description": "Watch your preferred video or movie while working\nOpen a window preview and pin it to the corner",
|
||||
"extension-id": "window-corner-preview",
|
||||
"gettext-domain": "gnome-shell-extensions",
|
||||
"name": "Window Corner Preview",
|
||||
"settings-schema": "org.gnome.shell.extensions.window-corner-preview",
|
||||
"shell-version": [
|
||||
"3.10",
|
||||
"3.12",
|
||||
"3.14",
|
||||
"3.16",
|
||||
"3.18",
|
||||
"3.20",
|
||||
"3.22",
|
||||
"3.24",
|
||||
"3.26",
|
||||
"3.28",
|
||||
"3.30"
|
||||
],
|
||||
"url": "https://github.com/medenagan/window-corner-preview",
|
||||
"uuid": "window-corner-preview@fabiomereu.it",
|
||||
"version": 4
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
// Contributor:
|
||||
// Scott Ames https://github.com/scottames
|
||||
|
||||
// Global modules
|
||||
const Meta = imports.gi.Meta;
|
||||
|
||||
// This is wrapper to maintain compatibility with GNOME-Shell 3.30+ as well as
|
||||
// previous versions.
|
||||
var DisplayWrapper = {
|
||||
getScreen: function() {
|
||||
return global.screen || global.display;
|
||||
},
|
||||
getWorkspaceManager: function() {
|
||||
return global.screen || global.workspace_manager;
|
||||
},
|
||||
getMonitorManager: function() {
|
||||
return global.screen || Meta.MonitorManager.get();
|
||||
}
|
||||
};
|
||||
|
||||
// Result: [{windows: [{win1}, {win2}, ...], workspace: {workspace}, index: nWorkspace, isActive: true|false}, ..., {...}]
|
||||
// Omit empty (with no windows) workspaces from the array
|
||||
function getWorkspaceWindowsArray() {
|
||||
let array = [];
|
||||
|
||||
let wsActive = DisplayWrapper.getWorkspaceManager().get_active_workspace_index();
|
||||
|
||||
for (let i = 0; i < DisplayWrapper.getWorkspaceManager().n_workspaces; i++) {
|
||||
let workspace = DisplayWrapper.getWorkspaceManager().get_workspace_by_index(i);
|
||||
let windows = workspace.list_windows();
|
||||
if (windows.length) array.push({
|
||||
workspace: workspace,
|
||||
windows: windows,
|
||||
index: i,
|
||||
isActive: (i === wsActive)
|
||||
});
|
||||
}
|
||||
return array;
|
||||
};
|
||||
|
||||
function getWorkspaces() {
|
||||
const workspaceManager = DisplayWrapper.getWorkspaceManager();
|
||||
const workspaces = [];
|
||||
for (let i = 0; i < workspaceManager.n_workspaces; i++) {
|
||||
workspaces.push(workspaceManager.get_workspace_by_index(i));
|
||||
}
|
||||
return workspaces;
|
||||
}
|
||||
|
||||
function getMetawindows() {
|
||||
return global.get_window_actors().map(function (actor) {
|
||||
return actor.get_meta_window();
|
||||
});
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
// Global modules
|
||||
const Lang = imports.lang;
|
||||
const St = imports.gi.St;
|
||||
const Slider = imports.ui.slider;
|
||||
const PopupMenu = imports.ui.popupMenu;
|
||||
|
||||
// Internal modules
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Bundle = Me.imports.bundle;
|
||||
|
||||
// Utilities
|
||||
const normalizeRange = Bundle.normalizeRange;
|
||||
const deNormalizeRange = Bundle.deNormalizeRange;
|
||||
|
||||
var PopupSliderMenuItem = new Lang.Class({
|
||||
Name: "WindowCornerPreview.PopupSliderMenuItem",
|
||||
Extends: PopupMenu.PopupBaseMenuItem,
|
||||
|
||||
_init: function(text, value, min, max, step, params) {
|
||||
|
||||
this.min = (min !== undefined ? min : 0.0);
|
||||
this.max = (max !== undefined ? max : 1.0);
|
||||
this.defaultValue = (value !== undefined ? value : (this.max + this.min) / 2.0);
|
||||
// *** KNOWN ISSUE: Scrolling may get stucked if step value > 1.0 (and |min-max| is a low value)
|
||||
// due to const SLIDER_SCROLL_STEP = 0.02 on js/ui/slider.js ***
|
||||
this.step = step;
|
||||
params = params || {};
|
||||
|
||||
params.activate = false;
|
||||
|
||||
this.parent(params);
|
||||
|
||||
this.label = new St.Label({
|
||||
text: text || ""
|
||||
});
|
||||
// Setting text to false allow a little bit extra space on the left
|
||||
if (text !== false) this.actor.add_child(this.label);
|
||||
this.actor.label_actor = this.label;
|
||||
|
||||
this.slider = new Slider.Slider(0.0);
|
||||
this.value = this.defaultValue;
|
||||
|
||||
// PopupSliderMenuItem emits its own value-change event which provides a normalized value
|
||||
this.slider.connect("value-changed", Lang.bind(this, function(x) {
|
||||
let normalValue = this.value;
|
||||
// Force the slider to set position on a stepped value (if necessary)
|
||||
if (this.step !== undefined) this.value = normalValue;
|
||||
// Don't through any event if step rounded it to the same value
|
||||
if (normalValue !== this._lastValue) this.emit("value-changed", normalValue);
|
||||
this._lastValue = normalValue;
|
||||
}));
|
||||
|
||||
this.actor.add(this.slider.actor, {
|
||||
expand: true,
|
||||
align: St.Align.END
|
||||
});
|
||||
},
|
||||
|
||||
get value() {
|
||||
return deNormalizeRange(this.slider.value, this.min, this.max, this.step);
|
||||
},
|
||||
|
||||
set value(newValue) {
|
||||
this._lastValue = normalizeRange(newValue, this.min, this.max, this.step);
|
||||
this.slider.setValue(this._lastValue);
|
||||
}
|
||||
});
|
@ -1,104 +0,0 @@
|
||||
// Global modules
|
||||
const GObject = imports.gi.GObject;
|
||||
const Gtk = imports.gi.Gtk;
|
||||
const Lang = imports.lang;
|
||||
|
||||
// Internal modules
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Settings = Me.imports.settings;
|
||||
|
||||
const WindowCornerSettings = Settings.WindowCornerSettings;
|
||||
|
||||
function init() {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
const WindowCornerPreviewPrefsWidget = new GObject.Class({
|
||||
Name: "WindowCornerPreview.Prefs.Widget",
|
||||
GTypeName: "WindowCornerPreviewPrefsWidget",
|
||||
Extends: Gtk.VBox,
|
||||
|
||||
_init: function(params) {
|
||||
this.parent(params);
|
||||
|
||||
this.margin = 24;
|
||||
this.spacing = 6;
|
||||
|
||||
const settings = new WindowCornerSettings();
|
||||
|
||||
// 1. Behavior
|
||||
|
||||
this.add(new Gtk.Label({
|
||||
label: "<b>Behavior when mouse is over (UNDER DEVELOPMENT)</b>",
|
||||
use_markup: true,
|
||||
xalign: 0.0,
|
||||
yalign: 0.0
|
||||
}));
|
||||
|
||||
let boxBehavior = new Gtk.VBox({
|
||||
spacing: 6,
|
||||
margin_top: 6,
|
||||
margin_left: 12
|
||||
});
|
||||
|
||||
|
||||
const behaviors = [
|
||||
{
|
||||
mode: "seethrough",
|
||||
label: "See-through (one click to drive it away)"
|
||||
},
|
||||
{
|
||||
mode: "autohide",
|
||||
label: "Hide-and-seek (vanish and turn up automatically)"
|
||||
}
|
||||
];
|
||||
|
||||
const currentBehaviorMode = settings.behaviorMode;
|
||||
|
||||
let radio = null;
|
||||
|
||||
behaviors.forEach(function (behavior) {
|
||||
|
||||
radio = new Gtk.RadioButton({
|
||||
active: behavior.mode === currentBehaviorMode,
|
||||
label: behavior.label,
|
||||
group: radio,
|
||||
sensitive: false
|
||||
});
|
||||
|
||||
radio.connect("toggled", Lang.bind(this, function(button) {
|
||||
if (button.active) {
|
||||
settings.behaviorMode = behavior.mode;
|
||||
}
|
||||
}));
|
||||
|
||||
boxBehavior.add(radio);
|
||||
});
|
||||
|
||||
this.add(boxBehavior);
|
||||
|
||||
// 2. Hide on top
|
||||
|
||||
let checkHideOnFocus = new Gtk.CheckButton({
|
||||
label: "Hide when the mirrored window is on top",
|
||||
active: settings.focusHidden
|
||||
});
|
||||
|
||||
checkHideOnFocus.connect("toggled", function(button) {
|
||||
settings.focusHidden = button.active;
|
||||
});
|
||||
|
||||
let boxHideOnFocus = new Gtk.VBox({margin_top: 12});
|
||||
|
||||
boxHideOnFocus.add(checkHideOnFocus);
|
||||
this.add(boxHideOnFocus);
|
||||
}
|
||||
});
|
||||
|
||||
function buildPrefsWidget() {
|
||||
let widget = new WindowCornerPreviewPrefsWidget();
|
||||
widget.show_all();
|
||||
|
||||
return widget;
|
||||
}
|
@ -1,628 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
// Global modules
|
||||
const Lang = imports.lang;
|
||||
const Main = imports.ui.main;
|
||||
const St = imports.gi.St;
|
||||
const Tweener = imports.ui.tweener;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const Signals = imports.signals;
|
||||
|
||||
// Internal modules
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Polygnome = Me.imports.polygnome;
|
||||
const Signaling = Me.imports.signaling;
|
||||
|
||||
const DisplayWrapper = Polygnome.DisplayWrapper;
|
||||
const SignalConnector = Signaling.SignalConnector;
|
||||
|
||||
// At the moment magnification hasn't been tested and it's clumsy
|
||||
const SETTING_MAGNIFICATION_ALLOWED = false;
|
||||
|
||||
const CORNER_TOP_LEFT = 0;
|
||||
const CORNER_TOP_RIGHT = 1;
|
||||
const CORNER_BOTTOM_RIGHT = 2;
|
||||
const CORNER_BOTTOM_LEFT = 3;
|
||||
const DEFAULT_CORNER = CORNER_TOP_RIGHT;
|
||||
|
||||
var MIN_ZOOM = 0.10; // User shouldn't be able to make the preview too small or big, as it may break normal experience
|
||||
var MAX_ZOOM = 0.75;
|
||||
var DEFAULT_ZOOM = 0.20;
|
||||
|
||||
var MAX_CROP_RATIO = 0.85;
|
||||
var DEFAULT_CROP_RATIO = 0.0;
|
||||
|
||||
const SCROLL_ACTOR_MARGIN = 0.2; // scrolling: 20% external margin to crop, 80% to zoom
|
||||
const SCROLL_ZOOM_STEP = 0.01; // 1% zoom for step
|
||||
const SCROLL_CROP_STEP = 0.0063; // cropping step when user scrolls
|
||||
|
||||
// Animation constants
|
||||
const TWEEN_OPACITY_FULL = 255;
|
||||
const TWEEN_OPACITY_SEMIFULL = Math.round(TWEEN_OPACITY_FULL * 0.90);
|
||||
const TWEEN_OPACITY_HALF = Math.round(TWEEN_OPACITY_FULL * 0.50);
|
||||
const TWEEN_OPACITY_TENTH = Math.round(TWEEN_OPACITY_FULL * 0.10);
|
||||
const TWEEN_OPACITY_NULL = 0;
|
||||
|
||||
const TWEEN_TIME_SHORT = 0.25;
|
||||
const TWEEN_TIME_MEDIUM = 0.6;
|
||||
const TWEEN_TIME_LONG = 0.80;
|
||||
|
||||
const GTK_MOUSE_LEFT_BUTTON = 1;
|
||||
const GTK_MOUSE_MIDDLE_BUTTON = 2;
|
||||
const GTK_MOUSE_RIGHT_BUTTON = 3;
|
||||
|
||||
const GDK_SHIFT_MASK = 1;
|
||||
const GDK_CONTROL_MASK = 4;
|
||||
const GDK_MOD1_MASK = 8;
|
||||
const GDK_ALT_MASK = GDK_MOD1_MASK; // Most cases
|
||||
|
||||
var WindowCornerPreview = new Lang.Class({
|
||||
|
||||
Name: "WindowCornerPreview.preview",
|
||||
|
||||
_init: function() {
|
||||
|
||||
this._corner = DEFAULT_CORNER;
|
||||
this._zoom = DEFAULT_ZOOM;
|
||||
|
||||
this._leftCrop = DEFAULT_CROP_RATIO;
|
||||
this._rightCrop = DEFAULT_CROP_RATIO;
|
||||
this._topCrop = DEFAULT_CROP_RATIO;
|
||||
this._bottomCrop = DEFAULT_CROP_RATIO;
|
||||
|
||||
// The following properties are documented on _adjustVisibility()
|
||||
this._naturalVisibility = false;
|
||||
this._focusHidden = true;
|
||||
|
||||
this._container = null;
|
||||
this._window = null;
|
||||
|
||||
this._windowSignals = new SignalConnector();
|
||||
this._environmentSignals = new SignalConnector();
|
||||
|
||||
this._handleZoomChange = null;
|
||||
},
|
||||
|
||||
_onClick: function(actor, event) {
|
||||
let button = event.get_button();
|
||||
let state = event.get_state();
|
||||
|
||||
// CTRL + LEFT BUTTON activate the window on top
|
||||
if (button === GTK_MOUSE_LEFT_BUTTON && (state & GDK_CONTROL_MASK)) {
|
||||
this._window.activate(global.get_current_time());
|
||||
}
|
||||
|
||||
// Otherwise move the preview to another corner
|
||||
else {
|
||||
switch (button) {
|
||||
case GTK_MOUSE_RIGHT_BUTTON:
|
||||
this.corner += 1;
|
||||
break;
|
||||
|
||||
case GTK_MOUSE_MIDDLE_BUTTON:
|
||||
this.corner += -1;
|
||||
break;
|
||||
|
||||
default: // GTK_MOUSE_LEFT_BUTTON:
|
||||
this.corner += 2;
|
||||
}
|
||||
this.emit("corner-changed");
|
||||
}
|
||||
},
|
||||
|
||||
_onScroll: function(actor, event) {
|
||||
let scroll_direction = event.get_scroll_direction();
|
||||
|
||||
let direction;
|
||||
switch (scroll_direction) {
|
||||
|
||||
case Clutter.ScrollDirection.UP:
|
||||
case Clutter.ScrollDirection.LEFT:
|
||||
direction = +1.0
|
||||
break;
|
||||
|
||||
case Clutter.ScrollDirection.DOWN:
|
||||
case Clutter.ScrollDirection.RIGHT:
|
||||
direction = -1.0
|
||||
break;
|
||||
|
||||
default:
|
||||
direction = 0.0;
|
||||
}
|
||||
|
||||
if (! direction) return; // Clutter.EVENT_PROPAGATE;
|
||||
|
||||
// On mouse over it's normally pretty transparent, but user needs to see more for adjusting it
|
||||
Tweener.addTween(this._container, {
|
||||
opacity: TWEEN_OPACITY_SEMIFULL,
|
||||
time: TWEEN_TIME_SHORT,
|
||||
transition: "easeOutQuad"
|
||||
});
|
||||
|
||||
// Coords are absolute, screen related
|
||||
let [mouseX, mouseY] = event.get_coords();
|
||||
|
||||
// _container absolute rect
|
||||
let [actorX1, actorY1] = this._container.get_transformed_position();
|
||||
let [actorWidth, actorHeight] = this._container.get_transformed_size();
|
||||
let actorX2 = actorX1 + actorWidth;
|
||||
let actorY2 = actorY1 + actorHeight;
|
||||
|
||||
// Distance of pointer from each side
|
||||
let deltaLeft = Math.abs(actorX1 - mouseX);
|
||||
let deltaRight = Math.abs(actorX2 - mouseX);
|
||||
let deltaTop = Math.abs(actorY1 - mouseY);
|
||||
let deltaBottom = Math.abs(actorY2 - mouseY);
|
||||
|
||||
let sortedDeltas = [{
|
||||
property: "leftCrop",
|
||||
pxDistance: deltaLeft,
|
||||
comparedDistance: deltaLeft / actorWidth,
|
||||
direction: -direction
|
||||
},
|
||||
{
|
||||
property: "rightCrop",
|
||||
pxDistance: deltaRight,
|
||||
comparedDistance: deltaRight / actorWidth,
|
||||
direction: -direction
|
||||
},
|
||||
{
|
||||
property: "topCrop",
|
||||
pxDistance: deltaTop,
|
||||
comparedDistance: deltaTop / actorHeight,
|
||||
direction: -direction /* feels more natural */
|
||||
},
|
||||
{
|
||||
property: "bottomCrop",
|
||||
pxDistance: deltaBottom,
|
||||
comparedDistance: deltaBottom / actorHeight,
|
||||
direction: -direction
|
||||
}
|
||||
];
|
||||
sortedDeltas.sort(function(a, b) {
|
||||
return a.pxDistance - b.pxDistance
|
||||
});
|
||||
let deltaMinimum = sortedDeltas[0];
|
||||
|
||||
// Scrolling inside the preview triggers the zoom
|
||||
if (deltaMinimum.comparedDistance > SCROLL_ACTOR_MARGIN) {
|
||||
this.zoom += direction * SCROLL_ZOOM_STEP;
|
||||
this.emit("zoom-changed");
|
||||
}
|
||||
|
||||
// Scrolling along the margins triggers the cropping instead
|
||||
else {
|
||||
this[deltaMinimum.property] += deltaMinimum.direction * SCROLL_CROP_STEP;
|
||||
this.emit("crop-changed");
|
||||
}
|
||||
},
|
||||
|
||||
_onEnter: function(actor, event) {
|
||||
let [x, y, state] = global.get_pointer();
|
||||
|
||||
// SHIFT: ignore standard behavior
|
||||
if (state & GDK_SHIFT_MASK) {
|
||||
return; // Clutter.EVENT_PROPAGATE;
|
||||
}
|
||||
|
||||
Tweener.addTween(this._container, {
|
||||
opacity: TWEEN_OPACITY_TENTH,
|
||||
time: TWEEN_TIME_MEDIUM,
|
||||
transition: "easeOutQuad"
|
||||
});
|
||||
},
|
||||
|
||||
_onLeave: function() {
|
||||
Tweener.addTween(this._container, {
|
||||
opacity: TWEEN_OPACITY_FULL,
|
||||
time: TWEEN_TIME_MEDIUM,
|
||||
transition: "easeOutQuad"
|
||||
});
|
||||
},
|
||||
|
||||
_onParamsChange: function() {
|
||||
// Zoom or crop properties changed
|
||||
if (this.enabled) this._setThumbnail();
|
||||
},
|
||||
|
||||
_onWindowUnmanaged: function() {
|
||||
this.disable();
|
||||
this._window = null;
|
||||
// gnome-shell --replace will cause this event too
|
||||
this.emit("window-changed", null);
|
||||
},
|
||||
|
||||
_adjustVisibility: function(options) {
|
||||
options = options || {};
|
||||
|
||||
/*
|
||||
[Boolean] this._naturalVisibility:
|
||||
true === show the preview whenever is possible;
|
||||
false === don't show it in any case
|
||||
[Boolean] this._focusHidden:
|
||||
true === hide in case the mirrored window should be active
|
||||
|
||||
options = {
|
||||
onComplete: [function] to call once the process is done.
|
||||
It's called even if visibility was already set as requested
|
||||
|
||||
noAnimate: [Boolean] to skip animation. If switching from window A to window B,
|
||||
for example, the preview gets first destroyed (so hidden) then recreated.
|
||||
This would lead to a fade-out + fade-in, which is not what most users like.
|
||||
noAnimate === true avoids that.
|
||||
};
|
||||
*/
|
||||
|
||||
if (! this._container) {
|
||||
if (options.onComplete) options.onComplete();
|
||||
return;
|
||||
}
|
||||
|
||||
// Hide when overView is shown, or source window is on top, or user related reasons
|
||||
let canBeShownOnFocus = (! this._focusHidden) || (global.display.focus_window !== this._window);
|
||||
|
||||
let calculatedVisibility = this._window &&
|
||||
this._naturalVisibility &&
|
||||
canBeShownOnFocus &&
|
||||
(! Main.overview.visibleTarget);
|
||||
|
||||
let calculatedOpacity = (calculatedVisibility) ? TWEEN_OPACITY_FULL : TWEEN_OPACITY_NULL;
|
||||
|
||||
// Already OK (hidden / shown), no change needed
|
||||
if ((calculatedVisibility === this._container.visible) && (calculatedOpacity === this._container.get_opacity())) {
|
||||
if (options.onComplete) options.onComplete();
|
||||
}
|
||||
|
||||
// Quick set (show or hide), but don't animate
|
||||
else if (options.noAnimate) {
|
||||
this._container.set_opacity(calculatedOpacity)
|
||||
this._container.visible = calculatedVisibility;
|
||||
if (options.onComplete) options.onComplete();
|
||||
}
|
||||
|
||||
// Animation needed (either from less to more opacity or viceversa)
|
||||
else {
|
||||
this._container.reactive = false;
|
||||
if (! this._container.visible) {
|
||||
this._container.set_opacity(TWEEN_OPACITY_NULL);
|
||||
this._container.visible = true;
|
||||
}
|
||||
|
||||
Tweener.addTween(this._container, {
|
||||
opacity: calculatedOpacity,
|
||||
time: TWEEN_TIME_SHORT,
|
||||
transition: "easeOutQuad",
|
||||
onComplete: Lang.bind(this, function() {
|
||||
this._container.visible = calculatedVisibility;
|
||||
this._container.reactive = true;
|
||||
if (options.onComplete) options.onComplete();
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
_onNotifyFocusWindow: function() {
|
||||
this._adjustVisibility();
|
||||
},
|
||||
|
||||
_onOverviewShowing: function() {
|
||||
this._adjustVisibility();
|
||||
},
|
||||
|
||||
_onOverviewHiding: function() {
|
||||
this._adjustVisibility();
|
||||
},
|
||||
|
||||
_onMonitorsChanged: function() {
|
||||
// TODO multiple monitors issue, the preview doesn't stick to the right monitor
|
||||
log("Monitors changed");
|
||||
},
|
||||
|
||||
// Align the preview along the chrome area
|
||||
_setPosition: function() {
|
||||
|
||||
if (! this._container) {
|
||||
return;
|
||||
}
|
||||
|
||||
let posX, posY;
|
||||
|
||||
let rectMonitor = Main.layoutManager.getWorkAreaForMonitor(DisplayWrapper.getScreen().get_current_monitor());
|
||||
|
||||
let rectChrome = {
|
||||
x1: rectMonitor.x,
|
||||
y1: rectMonitor.y,
|
||||
x2: rectMonitor.width + rectMonitor.x - this._container.get_width(),
|
||||
y2: rectMonitor.height + rectMonitor.y - this._container.get_height()
|
||||
};
|
||||
|
||||
switch (this._corner) {
|
||||
|
||||
case CORNER_TOP_LEFT:
|
||||
posX = rectChrome.x1;
|
||||
posY = rectChrome.y1;
|
||||
break;
|
||||
|
||||
case CORNER_BOTTOM_LEFT:
|
||||
posX = rectChrome.x1;
|
||||
posY = rectChrome.y2;
|
||||
break;
|
||||
|
||||
case CORNER_BOTTOM_RIGHT:
|
||||
posX = rectChrome.x2;
|
||||
posY = rectChrome.y2;
|
||||
break;
|
||||
|
||||
default: // CORNER_TOP_RIGHT:
|
||||
posX = rectChrome.x2;
|
||||
posY = rectChrome.y1;
|
||||
}
|
||||
this._container.set_position(posX, posY);
|
||||
},
|
||||
|
||||
// Create a window thumbnail and adds it to the container
|
||||
_setThumbnail: function() {
|
||||
|
||||
if (! this._container) return;
|
||||
|
||||
this._container.foreach(function(actor) {
|
||||
actor.destroy();
|
||||
});
|
||||
|
||||
if (! this._window) return;
|
||||
|
||||
let mutw = this._window.get_compositor_private();
|
||||
|
||||
if (! mutw) return;
|
||||
|
||||
let windowTexture = mutw.get_texture();
|
||||
let [windowWidth, windowHeight] = windowTexture.get_size();
|
||||
|
||||
/* To crop the window texture, for now I've found that:
|
||||
1. Using a clip rect on Clutter.clone will hide the outside portion but also will KEEP the space along it
|
||||
2. The Clutter.clone is stretched to fill all of its room when it's painted, so the transparent area outside
|
||||
cannot be easily left out by only adjusting the actor size (empty space only gets reproportioned).
|
||||
|
||||
My current workaround:
|
||||
- Define a margin rect by using some proportional [0.0 - 1.0] trimming values for left, right, ... Zero: no trimming 1: all trimmed out
|
||||
- Set width and height of the Clutter.clone based on the crop rect and apply a translation to anchor it the top left margin
|
||||
(set_clip_to_allocation must be set true on the container to get rid of the translated texture overflow)
|
||||
- Ratio of the cropped texture is different from the original one, so this must be compensated with Clutter.clone scale_x/y parameters
|
||||
|
||||
Known issues:
|
||||
- Strongly cropped textual windows like terminals get a little bit blurred. However, I was told this feature
|
||||
was useful for framed videos to peel off, particularly. So shouldn't affect that much.
|
||||
|
||||
Hopefully, some kind guy will soon explain to me how to clone just a portion of the source :D
|
||||
*/
|
||||
|
||||
// Get absolute margin values for cropping
|
||||
let margins = {
|
||||
left: windowWidth * this.leftCrop,
|
||||
right: windowWidth * this.rightCrop,
|
||||
top: windowHeight * this.topCrop,
|
||||
bottom: windowHeight * this.bottomCrop,
|
||||
};
|
||||
|
||||
// Calculate the size of the cropped rect (based on the 100% window size)
|
||||
let croppedWidth = windowWidth - (margins.left + margins.right);
|
||||
let croppedHeight = windowHeight - (margins.top + margins.bottom);
|
||||
|
||||
// To mantain a similar thumbnail size whenever the user selects a different window to preview,
|
||||
// instead of zooming out based on the window size itself, it takes the window screen as a standard unit (= 100%)
|
||||
let rectMonitor = Main.layoutManager.getWorkAreaForMonitor(DisplayWrapper.getScreen().get_current_monitor());
|
||||
let targetRatio = rectMonitor.width * this.zoom / windowWidth;
|
||||
|
||||
// No magnification allowed (KNOWN ISSUE: there's no height control if used, it still needs optimizing)
|
||||
if (! SETTING_MAGNIFICATION_ALLOWED && targetRatio > 1.0) {
|
||||
targetRatio = 1.0;
|
||||
this._zoom = windowWidth / rectMonitor.width; // do NOT set this.zoom (the encapsulated prop for _zoom) or it will be looping!
|
||||
}
|
||||
|
||||
let thumbnail = new Clutter.Clone({ // list parameters https://www.roojs.org/seed/gir-1.2-gtk-3.0/seed/Clutter.Clone.html
|
||||
source: windowTexture,
|
||||
reactive: false,
|
||||
|
||||
magnification_filter: Clutter.ScalingFilter.NEAREST, //NEAREST, //TRILINEAR,
|
||||
|
||||
translation_x: -margins.left * targetRatio,
|
||||
translation_y: -margins.top * targetRatio,
|
||||
|
||||
// Compensating scales due the different ratio of the cropped window texture
|
||||
scale_x: windowWidth / croppedWidth,
|
||||
scale_y: windowHeight / croppedHeight,
|
||||
|
||||
width: croppedWidth * targetRatio,
|
||||
height: croppedHeight * targetRatio,
|
||||
|
||||
margin_left: 0,
|
||||
margin_right: 0,
|
||||
margin_bottom: 0,
|
||||
margin_top: 0
|
||||
|
||||
});
|
||||
|
||||
this._container.add_actor(thumbnail);
|
||||
|
||||
this._setPosition();
|
||||
},
|
||||
|
||||
// xCrop properties normalize their opposite counterpart, so that margins won't ever overlap
|
||||
set leftCrop(value) {
|
||||
// [0, MAX] range
|
||||
this._leftCrop = Math.min(MAX_CROP_RATIO, Math.max(0.0, value));
|
||||
// Decrease the opposite margin if necessary
|
||||
this._rightCrop = Math.min(this._rightCrop, MAX_CROP_RATIO - this._leftCrop);
|
||||
this._onParamsChange();
|
||||
},
|
||||
|
||||
set rightCrop(value) {
|
||||
this._rightCrop = Math.min(MAX_CROP_RATIO, Math.max(0.0, value));
|
||||
this._leftCrop = Math.min(this._leftCrop, MAX_CROP_RATIO - this._rightCrop);
|
||||
this._onParamsChange();
|
||||
},
|
||||
|
||||
set topCrop(value) {
|
||||
this._topCrop = Math.min(MAX_CROP_RATIO, Math.max(0.0, value));
|
||||
this._bottomCrop = Math.min(this._bottomCrop, MAX_CROP_RATIO - this._topCrop);
|
||||
this._onParamsChange();
|
||||
},
|
||||
|
||||
set bottomCrop(value) {
|
||||
this._bottomCrop = Math.min(MAX_CROP_RATIO, Math.max(0.0, value));
|
||||
this._topCrop = Math.min(this._topCrop, MAX_CROP_RATIO - this._bottomCrop);
|
||||
this._onParamsChange();
|
||||
},
|
||||
|
||||
get leftCrop() {
|
||||
return this._leftCrop;
|
||||
},
|
||||
|
||||
get rightCrop() {
|
||||
return this._rightCrop;
|
||||
},
|
||||
|
||||
get topCrop() {
|
||||
return this._topCrop;
|
||||
},
|
||||
|
||||
get bottomCrop() {
|
||||
return this._bottomCrop;
|
||||
},
|
||||
|
||||
set zoom(value) {
|
||||
this._zoom = Math.min(MAX_ZOOM, Math.max(MIN_ZOOM, value));
|
||||
this._onParamsChange();
|
||||
},
|
||||
|
||||
get zoom() {
|
||||
return this._zoom;
|
||||
},
|
||||
|
||||
set focusHidden(value) {
|
||||
this._focusHidden = !!value;
|
||||
this._adjustVisibility();
|
||||
},
|
||||
|
||||
get focusHidden() {
|
||||
return this._focusHidden;
|
||||
},
|
||||
|
||||
set corner(value) {
|
||||
this._corner = (value %= 4) < 0 ? (value + 4) : (value);
|
||||
this._setPosition();
|
||||
},
|
||||
|
||||
get corner() {
|
||||
return this._corner;
|
||||
},
|
||||
|
||||
get enabled() {
|
||||
return !!this._container;
|
||||
},
|
||||
|
||||
get visible() {
|
||||
return this._container && this._window && this._naturalVisibility;
|
||||
},
|
||||
|
||||
show: function(onComplete) {
|
||||
this._naturalVisibility = true;
|
||||
this._adjustVisibility({
|
||||
onComplete: onComplete
|
||||
});
|
||||
},
|
||||
|
||||
hide: function(onComplete) {
|
||||
this._naturalVisibility = false;
|
||||
this._adjustVisibility({
|
||||
onComplete: onComplete
|
||||
});
|
||||
},
|
||||
|
||||
toggle: function(onComplete) {
|
||||
this._naturalVisibility = !this._naturalVisibility;
|
||||
this._adjustVisibility({
|
||||
onComplete: onComplete
|
||||
});
|
||||
},
|
||||
|
||||
passAway: function() {
|
||||
this._naturalVisibility = false;
|
||||
this._adjustVisibility({
|
||||
onComplete: Lang.bind(this, this.disable)
|
||||
});
|
||||
},
|
||||
|
||||
get window() {
|
||||
return this._window;
|
||||
},
|
||||
|
||||
set window(metawindow) {
|
||||
|
||||
this.enable();
|
||||
|
||||
this._windowSignals.disconnectAll();
|
||||
|
||||
this._window = metawindow;
|
||||
|
||||
if (metawindow) {
|
||||
this._windowSignals.tryConnect(metawindow, "unmanaged", Lang.bind(this, this._onWindowUnmanaged));
|
||||
// Version 3.10 does not support size-changed
|
||||
this._windowSignals.tryConnect(metawindow, "size-changed", Lang.bind(this, this._setThumbnail));
|
||||
this._windowSignals.tryConnect(metawindow, "notify::maximized-vertically", Lang.bind(this, this._setThumbnail));
|
||||
this._windowSignals.tryConnect(metawindow, "notify::maximized-horizontally", Lang.bind(this, this._setThumbnail));
|
||||
}
|
||||
|
||||
this._setThumbnail();
|
||||
|
||||
this.emit("window-changed", metawindow);
|
||||
},
|
||||
|
||||
enable: function() {
|
||||
|
||||
if (this._container) return;
|
||||
|
||||
let isSwitchingWindow = this.enabled;
|
||||
|
||||
this._environmentSignals.tryConnect(Main.overview, "showing", Lang.bind(this, this._onOverviewShowing));
|
||||
this._environmentSignals.tryConnect(Main.overview, "hiding", Lang.bind(this, this._onOverviewHiding));
|
||||
this._environmentSignals.tryConnect(global.display, "notify::focus-window", Lang.bind(this, this._onNotifyFocusWindow));
|
||||
this._environmentSignals.tryConnect(DisplayWrapper.getMonitorManager(), "monitors-changed", Lang.bind(this, this._onMonitorsChanged));
|
||||
|
||||
this._container = new St.Button({
|
||||
style_class: "window-corner-preview"
|
||||
});
|
||||
// Force content not to overlap, allowing cropping
|
||||
this._container.set_clip_to_allocation(true);
|
||||
|
||||
this._container.connect("enter-event", Lang.bind(this, this._onEnter));
|
||||
this._container.connect("leave-event", Lang.bind(this, this._onLeave));
|
||||
// Don't use button-press-event, as set_position conflicts and Gtk would react for enter and leave event of ANY item on the chrome area
|
||||
this._container.connect("button-release-event", Lang.bind(this, this._onClick));
|
||||
this._container.connect("scroll-event", Lang.bind(this, this._onScroll));
|
||||
|
||||
this._container.visible = false;
|
||||
Main.layoutManager.addChrome(this._container);
|
||||
|
||||
return;
|
||||
// isSwitchingWindow = false means user only changed window, but preview was on, so does not animate
|
||||
this._adjustVisibility({
|
||||
noAnimate: isSwitchingWindow
|
||||
});
|
||||
},
|
||||
|
||||
disable: function() {
|
||||
|
||||
this._windowSignals.disconnectAll();
|
||||
this._environmentSignals.disconnectAll();
|
||||
|
||||
if (! this._container) return;
|
||||
|
||||
Main.layoutManager.removeChrome(this._container);
|
||||
this._container.destroy();
|
||||
this._container = null;
|
||||
}
|
||||
})
|
||||
|
||||
Signals.addSignalMethods(WindowCornerPreview.prototype);
|
Binary file not shown.
@ -1,68 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist gettext-domain="gnome-shell-extensions">
|
||||
<enum id="org.gnome.shell.extensions.window-corner-preview.BehaviorMode">
|
||||
<value value="0" nick="seethrough"/>
|
||||
<value value="1" nick="autohide"/>
|
||||
<value value="2" nick="jump-diagonally"/>
|
||||
<value value="3" nick="jump-horizontally"/>
|
||||
<value value="4" nick="jump-vertically"/>
|
||||
</enum>
|
||||
<enum id="org.gnome.shell.extensions.window-corner-preview.Corner">
|
||||
<value value="0" nick="top-left"/>
|
||||
<value value="1" nick="top-right"/>
|
||||
<value value="2" nick="bottom-right"/>
|
||||
<value value="3" nick="bottom-left"/>
|
||||
</enum>
|
||||
<schema path="/org/gnome/shell/extensions/window-corner-preview/" id="org.gnome.shell.extensions.window-corner-preview">
|
||||
<key name="behavior-mode" enum="org.gnome.shell.extensions.window-corner-preview.BehaviorMode">
|
||||
<default>"seethrough"</default>
|
||||
<summary>Mouse over behavior</summary>
|
||||
<description>Behavior when mouse is over the preview</description>
|
||||
</key>
|
||||
<key name="focus-hidden" type="b">
|
||||
<default>false</default>
|
||||
<summary>Hide when window is focused</summary>
|
||||
<description>Whether to automatically hide the preview when the mirrored window is on top.</description>
|
||||
</key>
|
||||
<key name="initial-zoom" type="d">
|
||||
<range min="0.10" max="0.75"/>
|
||||
<default>0.20</default>
|
||||
<summary>Initial zoom ratio</summary>
|
||||
<description>Initial zoom ratio</description>
|
||||
</key>
|
||||
<key name="initial-left-crop" type="d">
|
||||
<range min="0.0" max="0.85"/>
|
||||
<default>0.0</default>
|
||||
<summary>Initial Left Crop Ratio</summary>
|
||||
<description>Initial Left Crop Ratio</description>
|
||||
</key>
|
||||
<key name="initial-right-crop" type="d">
|
||||
<range min="0.0" max="0.85"/>
|
||||
<default>0.0</default>
|
||||
<summary>Initial Right Crop Ratio</summary>
|
||||
<description>Initial Right Crop Ratio</description>
|
||||
</key>
|
||||
<key name="initial-top-crop" type="d">
|
||||
<range min="0.0" max="0.85"/>
|
||||
<default>0.0</default>
|
||||
<summary>Initial Top Crop Ratio</summary>
|
||||
<description>Initial Top Crop Ratio</description>
|
||||
</key>
|
||||
<key name="initial-bottom-crop" type="d">
|
||||
<range min="0.0" max="0.85"/>
|
||||
<default>0.0</default>
|
||||
<summary>Initial Bottom Crop Ratio</summary>
|
||||
<description>Initial Bottom Crop Ratio</description>
|
||||
</key>
|
||||
<key name="initial-corner" enum="org.gnome.shell.extensions.window-corner-preview.Corner">
|
||||
<default>"top-right"</default>
|
||||
<summary>Initial Corner</summary>
|
||||
<description>Initial Corner</description>
|
||||
</key>
|
||||
<key name="last-window-hash" type="s">
|
||||
<default>""</default>
|
||||
<summary>Last Window</summary>
|
||||
<description>Last Window Hash</description>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
@ -1,113 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
// Global modules
|
||||
const Lang = imports.lang;
|
||||
const Signals = imports.signals;
|
||||
|
||||
// Internal modules
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const Me = ExtensionUtils.getCurrentExtension();
|
||||
const Convenience = Me.imports.convenience;
|
||||
|
||||
// Schema keys
|
||||
var SETTING_BEHAVIOR_MODE = "behavior-mode";
|
||||
var SETTING_FOCUS_HIDDEN = "focus-hidden";
|
||||
var SETTING_INITIAL_ZOOM = "initial-zoom";
|
||||
var SETTING_INITIAL_LEFT_CROP = "initial-left-crop";
|
||||
var SETTING_INITIAL_RIGHT_CROP = "initial-right-crop";
|
||||
var SETTING_INITIAL_TOP_CROP = "initial-top-crop";
|
||||
var SETTING_INITIAL_BOTTOM_CROP = "initial-bottom-crop";
|
||||
var SETTING_INITIAL_CORNER = "initial-corner";
|
||||
var SETTING_LAST_WINDOW_HASH = "last-window-hash";
|
||||
|
||||
var WindowCornerSettings = new Lang.Class({
|
||||
|
||||
Name: "WindowCornerPreview.settings",
|
||||
|
||||
_init: function() {
|
||||
this._settings = Convenience.getSettings();
|
||||
this._settings.connect("changed", Lang.bind(this, this._onChanged));
|
||||
},
|
||||
|
||||
_onChanged: function(settings, key) {
|
||||
// "my-property-name" => myPropertyName
|
||||
const property = key.replace(/-[a-z]/g, function (az) {
|
||||
return az.substr(1).toUpperCase();
|
||||
});
|
||||
this.emit("changed", property);
|
||||
},
|
||||
|
||||
get focusHidden() {
|
||||
return this._settings.get_boolean(SETTING_FOCUS_HIDDEN);
|
||||
},
|
||||
|
||||
set focusHidden(value) {
|
||||
this._settings.set_boolean(SETTING_FOCUS_HIDDEN, value);
|
||||
},
|
||||
|
||||
get initialZoom() {
|
||||
return this._settings.get_double(SETTING_INITIAL_ZOOM);
|
||||
},
|
||||
|
||||
set initialZoom(value) {
|
||||
this._settings.set_double(SETTING_INITIAL_ZOOM, value);
|
||||
},
|
||||
|
||||
get initialLeftCrop() {
|
||||
return this._settings.get_double(SETTING_INITIAL_LEFT_CROP);
|
||||
},
|
||||
|
||||
set initialLeftCrop(value) {
|
||||
this._settings.set_double(SETTING_INITIAL_LEFT_CROP, value);
|
||||
},
|
||||
|
||||
get initialRightCrop() {
|
||||
return this._settings.get_double(SETTING_INITIAL_RIGHT_CROP);
|
||||
},
|
||||
|
||||
set initialRightCrop(value) {
|
||||
this._settings.set_double(SETTING_INITIAL_RIGHT_CROP, value);
|
||||
},
|
||||
|
||||
get initialTopCrop() {
|
||||
return this._settings.get_double(SETTING_INITIAL_TOP_CROP);
|
||||
},
|
||||
|
||||
set initialTopCrop(value) {
|
||||
this._settings.set_double(SETTING_INITIAL_TOP_CROP, value);
|
||||
},
|
||||
|
||||
get initialBottomCrop() {
|
||||
return this._settings.get_double(SETTING_INITIAL_BOTTOM_CROP);
|
||||
},
|
||||
|
||||
set initialBottomCrop(value) {
|
||||
this._settings.set_double(SETTING_INITIAL_BOTTOM_CROP, value);
|
||||
},
|
||||
|
||||
get initialCorner() {
|
||||
return this._settings.get_enum(SETTING_INITIAL_CORNER);
|
||||
},
|
||||
|
||||
set initialCorner(value) {
|
||||
this._settings.set_enum(SETTING_INITIAL_CORNER, value);
|
||||
},
|
||||
|
||||
get behaviorMode() {
|
||||
return this._settings.get_string(SETTING_BEHAVIOR_MODE);
|
||||
},
|
||||
|
||||
set behaviorMode(value) {
|
||||
this._settings.set_string(SETTING_BEHAVIOR_MODE, value);
|
||||
},
|
||||
|
||||
get lastWindowHash() {
|
||||
return this._settings.get_string(SETTING_LAST_WINDOW_HASH);
|
||||
},
|
||||
|
||||
set lastWindowHash(value) {
|
||||
this._settings.set_string(SETTING_LAST_WINDOW_HASH, value);
|
||||
}
|
||||
});
|
||||
|
||||
Signals.addSignalMethods(WindowCornerSettings.prototype);
|
@ -1,57 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
// Global modules
|
||||
const Lang = imports.lang;
|
||||
|
||||
// Helper to disconnect more signals at once
|
||||
var SignalConnector = new Lang.Class({
|
||||
|
||||
Name: "WindowCornerPreview.SignalConnector",
|
||||
|
||||
_init: function() {
|
||||
this._connections = [];
|
||||
},
|
||||
|
||||
tryConnect: function(actor, signal, callback) {
|
||||
try {
|
||||
let handle = actor.connect(signal, callback);
|
||||
this._connections.push({
|
||||
actor: actor,
|
||||
handle: handle
|
||||
});
|
||||
}
|
||||
|
||||
catch (e) {
|
||||
logError(e, "SignalConnector.tryConnect failed");
|
||||
}
|
||||
},
|
||||
|
||||
tryConnectAfter: function(actor, signal, callback) {
|
||||
try {
|
||||
let handle = actor.connect_after(signal, callback);
|
||||
this._connections.push({
|
||||
actor: actor,
|
||||
handle: handle
|
||||
});
|
||||
}
|
||||
|
||||
catch (e) {
|
||||
logError(e, "SignalConnector.tryConnectAfter failed");
|
||||
}
|
||||
},
|
||||
|
||||
disconnectAll: function() {
|
||||
for (let i = 0; i < this._connections.length; i++) {
|
||||
try {
|
||||
let connection = this._connections[i];
|
||||
connection.actor.disconnect(connection.handle);
|
||||
this._connections[i] = null;
|
||||
}
|
||||
|
||||
catch (e) {
|
||||
logError(e, "SignalConnector.disconnectAll failed");
|
||||
}
|
||||
}
|
||||
this._connections = [];
|
||||
}
|
||||
});
|
@ -1,7 +0,0 @@
|
||||
/* Window Corner Preview css properties for the preview frame */
|
||||
|
||||
.window-corner-preview {
|
||||
/* Some windows may have space around */
|
||||
/* debug background: blue;
|
||||
border: 20px solid red; */
|
||||
}
|
Loading…
Reference in New Issue
Block a user