Compare commits
124 Commits
Author | SHA1 | Date | |
---|---|---|---|
86bd5b281d | |||
ad3e9ab205 | |||
02bbf409ea | |||
f56e4e177e | |||
fc26559f2c | |||
fdaddbd1e0 | |||
04f61567ba | |||
a0785cdbc1 | |||
94101e8bb8 | |||
f13dbf2f26 | |||
bae6f06e4e | |||
d8b9e23502 | |||
7d59eaa67e | |||
c0a453f64f | |||
5336175736 | |||
2997e4950b | |||
a49fb90d86 | |||
ffc0eb1de2 | |||
853c81eb62 | |||
594cc7cbef | |||
0932324d39 | |||
2d6cf236c4 | |||
642107a28f | |||
581b38ecf4 | |||
fbc03cc262 | |||
a6ff195893 | |||
f411724064 | |||
39f43a4cd4 | |||
c82cb918ae | |||
38cdaa6c20 | |||
0327069e83 | |||
7601b029c8 | |||
fb509dfc25 | |||
874a91968f | |||
0963ccddba | |||
c4e0f6df08 | |||
58aafe9520 | |||
a46df7f8ec | |||
1dd16618d1 | |||
a4190f83ac | |||
a8e17f73ec | |||
86a741c1ee | |||
5cc6fef689 | |||
522a5fe480 | |||
b1239b1257 | |||
58063d9ee1 | |||
d7aba2dece | |||
35fced27df | |||
be76b19300 | |||
376d696b8b | |||
695d61968d | |||
d6d09fd3c8 | |||
f1b1501f9b | |||
cdbc99e992 | |||
69afe7785d | |||
b99e304f1e | |||
c29bd46e7a | |||
5fcf40b973 | |||
a198dfe3d8 | |||
5b10d157fe | |||
5cc42b18b0 | |||
cb4252e888 | |||
09d3cdb023 | |||
71515a8a11 | |||
11ca8dd54f | |||
e00f22ebe6 | |||
13390543b0 | |||
de95ced92c | |||
f6a08472a0 | |||
9f7b101437 | |||
9c0707d4dc | |||
78a92fb6be | |||
01509cf1a5 | |||
61e9f51274 | |||
201bd9d42e | |||
8a78f08f6c | |||
a5e54f9712 | |||
526834e39b | |||
bdde2476d2 | |||
3171f9debe | |||
0e2aeac5f9 | |||
788fb5547c | |||
c4d2c0ee64 | |||
977686a77a | |||
44b29f210c | |||
36c7d65ccf | |||
b81d24fdb4 | |||
bfdbee8115 | |||
4a17c8f4a9 | |||
d4f67a7d42 | |||
d5769ae409 | |||
f356b61e5a | |||
398768dcbd | |||
272d5b6e4a | |||
a479aa2594 | |||
f48d620ac5 | |||
0684b42f67 | |||
190a31dd5f | |||
cccfc7faca | |||
5e9e4f8c73 | |||
b28e48094b | |||
01bad21704 | |||
aab9a20b6a | |||
201c5b23f3 | |||
b79e11bef8 | |||
81dfcb85ca | |||
c8e69a2154 | |||
3ee50adad9 | |||
d1386ee8e4 | |||
6b994602d5 | |||
00039bbb47 | |||
0195b2f7c0 | |||
adc60f3212 | |||
579f59816f | |||
9e0df3c5c6 | |||
c6b14ef97e | |||
59e535244f | |||
720b9dd3d2 | |||
60df5b4381 | |||
94a4dc4576 | |||
dbda223858 | |||
822875d5c3 | |||
b11b28b83b | |||
ea0770ae22 |
@ -1,19 +1,16 @@
|
|||||||
Coding guide
|
# Coding guide
|
||||||
============
|
|
||||||
|
|
||||||
Our goal is to have all JavaScript code in GNOME follow a consistent style. In
|
Our goal is to have all JavaScript code in GNOME follow a consistent style. In
|
||||||
a dynamic language like JavaScript, it is essential to be rigorous about style
|
a dynamic language like JavaScript, it is essential to be rigorous about style
|
||||||
(and unit tests), or you rapidly end up with a spaghetti-code mess.
|
(and unit tests), or you rapidly end up with a spaghetti-code mess.
|
||||||
|
|
||||||
A quick note
|
## A quick note
|
||||||
------------
|
|
||||||
|
|
||||||
Life isn't fun if you can't break the rules. If a rule seems unnecessarily
|
Life isn't fun if you can't break the rules. If a rule seems unnecessarily
|
||||||
restrictive while you're coding, ignore it, and let the patch reviewer decide
|
restrictive while you're coding, ignore it, and let the patch reviewer decide
|
||||||
what to do.
|
what to do.
|
||||||
|
|
||||||
Indentation and whitespace
|
## Indentation and whitespace
|
||||||
--------------------------
|
|
||||||
|
|
||||||
Use four-space indents. Braces are on the same line as their associated
|
Use four-space indents. Braces are on the same line as their associated
|
||||||
statements. You should only omit braces if *both* sides of the statement are
|
statements. You should only omit braces if *both* sides of the statement are
|
||||||
@ -22,7 +19,7 @@ on one line.
|
|||||||
* One space after the `function` keyword. No space between the function name
|
* One space after the `function` keyword. No space between the function name
|
||||||
* in a declaration or a call. One space before the parens in the `if`
|
* in a declaration or a call. One space before the parens in the `if`
|
||||||
* statements, or `while`, or `for` loops.
|
* statements, or `while`, or `for` loops.
|
||||||
|
```javascript
|
||||||
function foo(a, b) {
|
function foo(a, b) {
|
||||||
let bar;
|
let bar;
|
||||||
|
|
||||||
@ -39,22 +36,20 @@ on one line.
|
|||||||
print(20);
|
print(20);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Semicolons
|
## Semicolons
|
||||||
----------
|
|
||||||
|
|
||||||
JavaScript allows omitting semicolons at the end of lines, but don't. Always
|
JavaScript allows omitting semicolons at the end of lines, but don't. Always
|
||||||
end statements with a semicolon.
|
end statements with a semicolon.
|
||||||
|
|
||||||
js2-mode
|
## js2-mode
|
||||||
--------
|
|
||||||
|
|
||||||
If using Emacs, do not use js2-mode. It is outdated and hasn't worked for a
|
If using Emacs, do not use js2-mode. It is outdated and hasn't worked for a
|
||||||
while. emacs now has a built-in JavaScript mode, js-mode, based on
|
while. emacs now has a built-in JavaScript mode, js-mode, based on
|
||||||
espresso-mode. It is the de facto emacs mode for JavaScript.
|
espresso-mode. It is the de facto emacs mode for JavaScript.
|
||||||
|
|
||||||
File naming and creation
|
## File naming and creation
|
||||||
------------------------
|
|
||||||
|
|
||||||
For JavaScript files, use lowerCamelCase-style names, with a `.js` extension.
|
For JavaScript files, use lowerCamelCase-style names, with a `.js` extension.
|
||||||
|
|
||||||
@ -67,14 +62,13 @@ library name followed by a dash, e.g. `shell-app-system.c`. Create a
|
|||||||
`-private.h` header when you want to share code internally in the
|
`-private.h` header when you want to share code internally in the
|
||||||
library. These headers are not installed, distributed or introspected.
|
library. These headers are not installed, distributed or introspected.
|
||||||
|
|
||||||
Imports
|
## Imports
|
||||||
-------
|
|
||||||
|
|
||||||
Use UpperCamelCase when importing modules to distinguish them from ordinary
|
Use UpperCamelCase when importing modules to distinguish them from ordinary
|
||||||
variables, e.g.
|
variables, e.g.
|
||||||
|
```javascript
|
||||||
const GLib = imports.gi.GLib;
|
const GLib = imports.gi.GLib;
|
||||||
|
```
|
||||||
Imports should be categorized into one of two places. The top-most import block
|
Imports should be categorized into one of two places. The top-most import block
|
||||||
should contain only "environment imports". These are either modules from
|
should contain only "environment imports". These are either modules from
|
||||||
gobject-introspection or modules added by gjs itself.
|
gobject-introspection or modules added by gjs itself.
|
||||||
@ -85,7 +79,7 @@ e.g. `imports.ui.popupMenu`.
|
|||||||
|
|
||||||
Each import block should be sorted alphabetically. Don't import modules you
|
Each import block should be sorted alphabetically. Don't import modules you
|
||||||
don't use.
|
don't use.
|
||||||
|
```javascript
|
||||||
const GLib = imports.gi.GLib;
|
const GLib = imports.gi.GLib;
|
||||||
const Gio = imports.gi.Gio;
|
const Gio = imports.gi.Gio;
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
@ -95,23 +89,22 @@ don't use.
|
|||||||
const Params = imports.misc.params;
|
const Params = imports.misc.params;
|
||||||
const Tweener = imports.ui.tweener;
|
const Tweener = imports.ui.tweener;
|
||||||
const Util = imports.misc.util;
|
const Util = imports.misc.util;
|
||||||
|
```
|
||||||
The alphabetical ordering should be done independently of the location of the
|
The alphabetical ordering should be done independently of the location of the
|
||||||
location. Never reference `imports` in actual code.
|
location. Never reference `imports` in actual code.
|
||||||
|
|
||||||
Constants
|
## Constants
|
||||||
---------
|
|
||||||
|
|
||||||
We use CONSTANTS_CASE to define constants. All constants should be directly
|
We use CONSTANTS_CASE to define constants. All constants should be directly
|
||||||
under the imports:
|
under the imports:
|
||||||
|
```javascript
|
||||||
const MY_DBUS_INTERFACE = 'org.my.Interface';
|
const MY_DBUS_INTERFACE = 'org.my.Interface';
|
||||||
|
```
|
||||||
|
|
||||||
Variable declaration
|
## Variable declaration
|
||||||
--------------------
|
|
||||||
|
|
||||||
Always use either `const` or `let` when defining a variable.
|
Always use either `const` or `let` when defining a variable.
|
||||||
|
```javascript
|
||||||
// Iterating over an array
|
// Iterating over an array
|
||||||
for (let i = 0; i < arr.length; ++i) {
|
for (let i = 0; i < arr.length; ++i) {
|
||||||
let item = arr[i];
|
let item = arr[i];
|
||||||
@ -121,17 +114,17 @@ Always use either `const` or `let` when defining a variable.
|
|||||||
for (let prop in someobj) {
|
for (let prop in someobj) {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
If you use "var" then the variable is added to function scope, not block scope.
|
If you use "var" then the variable is added to function scope, not block scope.
|
||||||
See [What's new in JavaScript 1.7](https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.7#Block_scope_with_let_%28Merge_into_let_Statement%29)
|
See [What's new in JavaScript 1.7](https://developer.mozilla.org/en/JavaScript/New_in_JavaScript/1.7#Block_scope_with_let_%28Merge_into_let_Statement%29)
|
||||||
|
|
||||||
Classes
|
## Classes
|
||||||
-------
|
|
||||||
|
|
||||||
There are many approaches to classes in JavaScript. We use our own class framework
|
There are many approaches to classes in JavaScript. We use our own class framework
|
||||||
(sigh), which is built in gjs. The advantage is that it supports inheriting from
|
(sigh), which is built in gjs. The advantage is that it supports inheriting from
|
||||||
GObjects, although this feature isn't used very often in the Shell itself.
|
GObjects, although this feature isn't used very often in the Shell itself.
|
||||||
|
```javascript
|
||||||
var IconLabelMenuItem = new Lang.Class({
|
var IconLabelMenuItem = new Lang.Class({
|
||||||
Name: 'IconLabelMenuItem',
|
Name: 'IconLabelMenuItem',
|
||||||
Extends: PopupMenu.PopupMenuBaseItem,
|
Extends: PopupMenu.PopupMenuBaseItem,
|
||||||
@ -146,6 +139,7 @@ GObjects, although this feature isn't used very often in the Shell itself.
|
|||||||
log("menu opened!");
|
log("menu opened!");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
* 'Name' is required. 'Extends' is optional. If you leave it out, you will
|
* 'Name' is required. 'Extends' is optional. If you leave it out, you will
|
||||||
automatically inherit from Object.
|
automatically inherit from Object.
|
||||||
@ -162,13 +156,12 @@ GObjects, although this feature isn't used very often in the Shell itself.
|
|||||||
still a giant function call, even though it may resemble a more
|
still a giant function call, even though it may resemble a more
|
||||||
conventional syntax.
|
conventional syntax.
|
||||||
|
|
||||||
GObject Introspection
|
## GObject Introspection
|
||||||
---------------------
|
|
||||||
|
|
||||||
GObject Introspection is a powerful feature that allows us to have native
|
GObject Introspection is a powerful feature that allows us to have native
|
||||||
bindings for almost any library built around GObject. If a library requires
|
bindings for almost any library built around GObject. If a library requires
|
||||||
you to inherit from a type to use it, you can do so:
|
you to inherit from a type to use it, you can do so:
|
||||||
|
```javascript
|
||||||
var MyClutterActor = new Lang.Class({
|
var MyClutterActor = new Lang.Class({
|
||||||
Name: 'MyClutterActor',
|
Name: 'MyClutterActor',
|
||||||
Extends: Clutter.Actor,
|
Extends: Clutter.Actor,
|
||||||
@ -188,9 +181,9 @@ you to inherit from a type to use it, you can do so:
|
|||||||
alloc.x2, alloc.y2);
|
alloc.x2, alloc.y2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
Translatable strings, `environment.js`
|
## Translatable strings, `environment.js`
|
||||||
--------------------------------------
|
|
||||||
|
|
||||||
We use gettext to translate the GNOME Shell into all the languages that GNOME
|
We use gettext to translate the GNOME Shell into all the languages that GNOME
|
||||||
supports. The `gettext` function is aliased globally as `_`, you do not need to
|
supports. The `gettext` function is aliased globally as `_`, you do not need to
|
||||||
@ -204,8 +197,7 @@ and "double quotes" for strings that the user may see. This allows us to
|
|||||||
quickly find untranslated or mistranslated strings by grepping through the
|
quickly find untranslated or mistranslated strings by grepping through the
|
||||||
sources for double quotes without a gettext call around them.
|
sources for double quotes without a gettext call around them.
|
||||||
|
|
||||||
`actor` and `_delegate`
|
## `actor` and `_delegate`
|
||||||
-----------------------
|
|
||||||
|
|
||||||
gjs allows us to set so-called "expando properties" on introspected objects,
|
gjs allows us to set so-called "expando properties" on introspected objects,
|
||||||
allowing us to treat them like any other. Because the Shell was built before
|
allowing us to treat them like any other. Because the Shell was built before
|
||||||
@ -214,7 +206,7 @@ that has a property called `actor`. We call this wrapper class the "delegate".
|
|||||||
|
|
||||||
We sometimes use expando properties to set a property called `_delegate` on
|
We sometimes use expando properties to set a property called `_delegate` on
|
||||||
the actor itself:
|
the actor itself:
|
||||||
|
```javascript
|
||||||
var MyClass = new Lang.Class({
|
var MyClass = new Lang.Class({
|
||||||
Name: 'MyClass',
|
Name: 'MyClass',
|
||||||
|
|
||||||
@ -229,6 +221,7 @@ the actor itself:
|
|||||||
actor.set_label("You clicked the button!");
|
actor.set_label("You clicked the button!");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
The 'delegate' property is important for anything which trying to get the
|
The 'delegate' property is important for anything which trying to get the
|
||||||
delegate object from an associated actor. For instance, the drag and drop
|
delegate object from an associated actor. For instance, the drag and drop
|
||||||
@ -236,16 +229,14 @@ system calls the `handleDragOver` function on the delegate of a "drop target"
|
|||||||
when the user drags an item over it. If you do not set the `_delegate`
|
when the user drags an item over it. If you do not set the `_delegate`
|
||||||
property, your actor will not be able to be dropped onto.
|
property, your actor will not be able to be dropped onto.
|
||||||
|
|
||||||
Functional style
|
## Functional style
|
||||||
----------------
|
|
||||||
|
|
||||||
JavaScript Array objects offer a lot of common functional programming
|
JavaScript Array objects offer a lot of common functional programming
|
||||||
capabilities such as forEach, map, filter and so on. You can use these when
|
capabilities such as forEach, map, filter and so on. You can use these when
|
||||||
they make sense, but please don't have a spaghetti mess of function programming
|
they make sense, but please don't have a spaghetti mess of function programming
|
||||||
messed in a procedural style. Use your best judgment.
|
messed in a procedural style. Use your best judgment.
|
||||||
|
|
||||||
Closures
|
## Closures
|
||||||
--------
|
|
||||||
|
|
||||||
`this` will not be captured in a closure, it is relative to how the closure is
|
`this` will not be captured in a closure, it is relative to how the closure is
|
||||||
invoked, not to the value of this where the closure is created, because "this"
|
invoked, not to the value of this where the closure is created, because "this"
|
||||||
@ -254,15 +245,16 @@ variable that can be captured in closures.
|
|||||||
|
|
||||||
All closures should be wrapped with Function.prototype.bind or use arrow
|
All closures should be wrapped with Function.prototype.bind or use arrow
|
||||||
notation.
|
notation.
|
||||||
|
```javascript
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
|
|
||||||
let closure1 = () => { this._fnorbate(); };
|
let closure1 = () => { this._fnorbate(); };
|
||||||
let closure2 = this._fnorbate.bind(this);
|
let closure2 = this._fnorbate.bind(this);
|
||||||
|
```
|
||||||
|
|
||||||
A more realistic example would be connecting to a signal on a method of a
|
A more realistic example would be connecting to a signal on a method of a
|
||||||
prototype:
|
prototype:
|
||||||
|
```javascript
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const FnorbLib = imports.fborbLib;
|
const FnorbLib = imports.fborbLib;
|
||||||
|
|
||||||
@ -276,19 +268,21 @@ prototype:
|
|||||||
this._updateFnorb();
|
this._updateFnorb();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
Object literal syntax
|
## Object literal syntax
|
||||||
---------------------
|
|
||||||
|
|
||||||
In JavaScript, these are equivalent:
|
In JavaScript, these are equivalent:
|
||||||
|
```javascript
|
||||||
foo = { 'bar': 42 };
|
foo = { 'bar': 42 };
|
||||||
foo = { bar: 42 };
|
foo = { bar: 42 };
|
||||||
|
```
|
||||||
|
|
||||||
and so are these:
|
and so are these:
|
||||||
|
```javascript
|
||||||
var b = foo['bar'];
|
var b = foo['bar'];
|
||||||
var b = foo.bar;
|
var b = foo.bar;
|
||||||
|
```
|
||||||
|
|
||||||
If your usage of an object is like an object, then you're defining "member
|
If your usage of an object is like an object, then you're defining "member
|
||||||
variables." For member variables, use the no-quotes no-brackets syntax: `{ bar:
|
variables." For member variables, use the no-quotes no-brackets syntax: `{ bar:
|
||||||
@ -298,14 +292,13 @@ If your usage of an object is like a hash table (and thus conceptually the keys
|
|||||||
can have special chars in them), don't use quotes, but use brackets: `{ bar: 42
|
can have special chars in them), don't use quotes, but use brackets: `{ bar: 42
|
||||||
}`, `foo['bar']`.
|
}`, `foo['bar']`.
|
||||||
|
|
||||||
Getters, setters, and Tweener
|
## Getters, setters, and Tweener
|
||||||
-----------------------------
|
|
||||||
|
|
||||||
Getters and setters should be used when you are dealing with an API that is
|
Getters and setters should be used when you are dealing with an API that is
|
||||||
designed around setting properties, like Tweener. If you want to animate an
|
designed around setting properties, like Tweener. If you want to animate an
|
||||||
arbitrary property, create a getter and setter, and use Tweener to animate the
|
arbitrary property, create a getter and setter, and use Tweener to animate the
|
||||||
property.
|
property.
|
||||||
|
```javascript
|
||||||
var ANIMATION_TIME = 2000;
|
var ANIMATION_TIME = 2000;
|
||||||
|
|
||||||
var MyClass = new Lang.Class({
|
var MyClass = new Lang.Class({
|
||||||
@ -331,3 +324,4 @@ property.
|
|||||||
{ position: 100,
|
{ position: 100,
|
||||||
time: ANIMATION_TIME,
|
time: ANIMATION_TIME,
|
||||||
transition: 'easeOutQuad' });
|
transition: 'easeOutQuad' });
|
||||||
|
```
|
@ -1,7 +0,0 @@
|
|||||||
Owen Taylor
|
|
||||||
E-mail: otaylor@redhat.com
|
|
||||||
Userid: otaylor
|
|
||||||
|
|
||||||
Colin Walters
|
|
||||||
E-mail: walters@verbum.org
|
|
||||||
Userid: walters
|
|
70
NEWS
70
NEWS
@ -1,3 +1,73 @@
|
|||||||
|
3.29.2
|
||||||
|
======
|
||||||
|
* Guard against untimely keyboard map changes [Carlos; #240]
|
||||||
|
* Fix icons in search provider results [Florian; #249]
|
||||||
|
* Fix blurriness of OSD under some resolutions [Silvère; #782011]
|
||||||
|
* Fix lagging pointer when zoomed [Daniel; #682013]
|
||||||
|
* Misc. bug fixes [Milan, Xiaoguang, Florian, Mario, Ole; #244, #787871,
|
||||||
|
#781471, #136, #214, #294]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Ole Jørgen Brønner, Milan Crha, Carlos Garnacho, Yussuf Khalil,
|
||||||
|
Silvère Latchurié, Florian Müllner, Mario Sanchez Prada, Ray Strode,
|
||||||
|
Daniel van Vugt, Xiaoguang Wang
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Rafael Fontenelle [pt_BR], Kukuh Syafaat [id], Marcos Lans [gl],
|
||||||
|
Anders Jonsson [sv], Mingcong Bai [zh_CN]
|
||||||
|
|
||||||
|
3.29.1
|
||||||
|
======
|
||||||
|
* Support icons in app-menu [Florian; #760985]
|
||||||
|
* Misc. bug fixes [Marco, Florian, Lubomir; #792687, #221, !63]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Piotr Drąg, Takao Fujiwara, Christian Kellner, Florian Müllner,
|
||||||
|
Mario Sanchez Prada, Lubomir Rintel, Didier Roche, Marco Trevisan (Treviño),
|
||||||
|
verdre
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
gogo [hr], Stas Solovey [ru], Matej Urbančič [sl], Daniel Șerbănescu [ro],
|
||||||
|
Fabio Tomat [fur], Marek Cernocky [cs], Daniel Mustieles [es]
|
||||||
|
|
||||||
|
3.28.1
|
||||||
|
======
|
||||||
|
* Fix compose characters in shell entries [Carlos; #115]
|
||||||
|
* Don't show authentication dialogs on lock screen [Florian; #179, #166]
|
||||||
|
* Fix handling of UTC timezone in world clock [Florian; #150]
|
||||||
|
* Fix keyboard navigation in overview when hovering windows [Florian; #50]
|
||||||
|
* Misc. bug fixes [Florian; #127, #788908, #763886, !39]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Jeremy Bicha, Carlos Garnacho, Andy Holmes, Florian Müllner, Bastien Nocera
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Stas Solovey [ru], Daniel Șerbănescu [ro], Dušan Kazik [sk],
|
||||||
|
Rafael Fontenelle [pt_BR], Nathan Follens [nl], Dz Chen [zh_CN],
|
||||||
|
Matej Urbančič [sl], Hannie Dumoleyn [nl], Khaled Hosny [ar],
|
||||||
|
Guillaume Bernard [fr]
|
||||||
|
|
||||||
|
3.28.0
|
||||||
|
======
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
A S Alam [pa], gogo [hr], Chao-Hsiung Liao [zh_TW], Jordi Mas [ca],
|
||||||
|
Anders Jonsson [sv], Balázs Úr [hu]
|
||||||
|
|
||||||
|
3.27.92
|
||||||
|
=======
|
||||||
|
* Misc. bug fixes [Florian; #64, #66, #72]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Jonas Ådahl, Christian Kellner, Florian Müllner
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Daniel Mustieles [es], Wolfgang Stöggl [de], Cheng-Chia Tseng [zh_TW],
|
||||||
|
Dušan Kazik [sk], Changwoo Ryu [ko], Furkan Ahmet Kara [tr], Balázs Úr [hu],
|
||||||
|
Trần Ngọc Quân [vi], Milo Casagrande [it], GNOME Translation Robot [gd, nl],
|
||||||
|
Marek Cernocky [cs], Aurimas Černius [lt], Alain Lojewski [fr],
|
||||||
|
Rūdolfs Mazurs [lv], Stas Solovey [ru], Alan Mortensen [da]
|
||||||
|
|
||||||
3.27.91
|
3.27.91
|
||||||
=======
|
=======
|
||||||
* Fix wrong bluetooth state when disabled by HW airplane mode [Mario; #789110]
|
* Fix wrong bluetooth state when disabled by HW airplane mode [Mario; #789110]
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# GNOME Shell
|
||||||
GNOME Shell provides core user interface functions for the GNOME 3 desktop,
|
GNOME Shell provides core user interface functions for the GNOME 3 desktop,
|
||||||
like switching to windows and launching applications. GNOME Shell takes
|
like switching to windows and launching applications. GNOME Shell takes
|
||||||
advantage of the capabilities of modern graphics hardware and introduces
|
advantage of the capabilities of modern graphics hardware and introduces
|
||||||
@ -6,15 +7,14 @@ easy to use experience.
|
|||||||
|
|
||||||
For more information about GNOME Shell, including instructions on how
|
For more information about GNOME Shell, including instructions on how
|
||||||
to build GNOME Shell from source and how to get involved with the project,
|
to build GNOME Shell from source and how to get involved with the project,
|
||||||
see:
|
see the [project wiki][wiki]
|
||||||
|
|
||||||
https://wiki.gnome.org/Projects/GnomeShell
|
Bugs should be reported to the GNOME [bug tracking system][bug-tracker].
|
||||||
|
|
||||||
Bugs should be reported at http://bugzilla.gnome.org against the 'gnome-shell'
|
## License
|
||||||
product.
|
|
||||||
|
|
||||||
License
|
|
||||||
=======
|
|
||||||
GNOME Shell is distributed under the terms of the GNU General Public License,
|
GNOME Shell is distributed under the terms of the GNU General Public License,
|
||||||
version 2 or later. See the COPYING file for details.
|
version 2 or later. See the [COPYING][license] file for details.
|
||||||
|
|
||||||
|
[project-wiki]: https://wiki.gnome.org/Projects/GnomeShell
|
||||||
|
[bug-tracker]: https://gitlab.gnome.org/GNOME/gnome-shell/issues
|
||||||
|
[license]: COPYING
|
@ -4,14 +4,14 @@ the extensions repository to provide good integration, letting the website
|
|||||||
know which extensions are enabled and disabled, and allowing the website to
|
know which extensions are enabled and disabled, and allowing the website to
|
||||||
enable, disable and install them.
|
enable, disable and install them.
|
||||||
|
|
||||||
Bugs should be reported at http://bugzilla.gnome.org against the 'gnome-shell'
|
Bugs should be reported to the GNOME [bug tracking system][bug-tracker].
|
||||||
product.
|
|
||||||
|
|
||||||
License
|
## License
|
||||||
=======
|
|
||||||
The GNOME Shell Browser Plugin, like GNOME Shell itself is distributed under
|
The GNOME Shell Browser Plugin, like GNOME Shell itself is distributed under
|
||||||
the GNU General Public License, version 2 or later. The plugin also contains
|
the GNU General Public License, version 2 or later. The plugin also contains
|
||||||
header files from the "NPAPI SDK" project, tri-licensed under MPL 1.1, GPL 2.0
|
header files from the "NPAPI SDK" project, tri-licensed under MPL 1.1, GPL 2.0
|
||||||
and LGPL 2.1. These headers are third-party sources and can be retrieved from:
|
and LGPL 2.1. These headers are third-party sources and can be retrieved from:
|
||||||
|
|
||||||
http://code.google.com/p/npapi-sdk/
|
http://code.google.com/p/npapi-sdk/
|
||||||
|
|
||||||
|
[bug-tracker]: https://gitlab.gnome.org/GNOME/gnome-shell/issues
|
@ -1,3 +0,0 @@
|
|||||||
To generate the css files, from the project directory:
|
|
||||||
|
|
||||||
sass --sourcemap=none --update .
|
|
@ -1,31 +0,0 @@
|
|||||||
Summary
|
|
||||||
-------
|
|
||||||
|
|
||||||
* Do not edit the CSS directly, edit the source SCSS files and the CSS files will be generated
|
|
||||||
automatically when building with meson + ninja and left inside the build directory to be
|
|
||||||
incorporated into the gresource XML (you'll need to have sassc installed).
|
|
||||||
|
|
||||||
How to tweak the theme
|
|
||||||
----------------------
|
|
||||||
|
|
||||||
Adwaita is a complex theme, so to keep it maintainable it's written and processed in SASS, the
|
|
||||||
generated CSS is then transformed into a gresource file during gtk build and used at runtime in a
|
|
||||||
non-legible or editable form.
|
|
||||||
|
|
||||||
It is very likely your change will happen in the _common.scss file. That's where all the widget
|
|
||||||
selectors are defined. Here's a rundown of the "supporting" stylesheets, that are unlikely to be the
|
|
||||||
right place for a drive by stylesheet fix:
|
|
||||||
|
|
||||||
_colors.scss - global color definitions. We keep the number of defined colors to a necessary minimum,
|
|
||||||
most colors are derived from a handful of basics. It is an exact copy of the gtk+
|
|
||||||
counterpart. Light theme is used for the classic theme and dark is for GNOME3 shell
|
|
||||||
default.
|
|
||||||
|
|
||||||
_drawing.scss - drawing helper mixings/functions to allow easier definition of widget drawing under
|
|
||||||
specific context. This is why Adwaita isn't 15000 LOC.
|
|
||||||
|
|
||||||
_common.scss - actual definitions of style for each widget. This is where you are likely to add/remove
|
|
||||||
your changes.
|
|
||||||
|
|
||||||
You can read about SASS at http://sass-lang.com/documentation/. Once you make your changes to the
|
|
||||||
_common.scss file, you can run ninja to generate the final CSS files.
|
|
32
data/theme/README.md
Normal file
32
data/theme/README.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
## Summary
|
||||||
|
|
||||||
|
Do not edit the CSS directly, edit the source SCSS files and the CSS files
|
||||||
|
will be generated automatically when building with meson + ninja and left
|
||||||
|
inside the build directory to be incorporated into the gresource XML (you'll
|
||||||
|
need to have sassc installed).
|
||||||
|
|
||||||
|
## How to tweak the theme
|
||||||
|
|
||||||
|
Adwaita is a complex theme, so to keep it maintainable it's written and
|
||||||
|
processed in SASS, the generated CSS is then transformed into a gresource
|
||||||
|
file during gtk build and used at runtime in a non-legible or editable form.
|
||||||
|
|
||||||
|
It is very likely your change will happen in the [_common.scss][common] file.
|
||||||
|
That's where all the widget selectors are defined. Here's a rundown of
|
||||||
|
the "supporting" stylesheets, that are unlikely to be the right place
|
||||||
|
for a drive by stylesheet fix:
|
||||||
|
|
||||||
|
| File | Description |
|
||||||
|
| ------------------------ | ----------------- |
|
||||||
|
| [_colors.scss][colors] | global color definitions. We keep the number of defined colors to a necessary minimum, most colors are derived from a handful of basics. It is an exact copy of the gtk+ counterpart. Light theme is used for the classic theme and dark is for GNOME3 shell default. |
|
||||||
|
| [_drawing.scss][drawing] | drawing helper mixings/functions to allow easier definition of widget drawing under specific context. This is why Adwaita isn't 15000 LOC. |
|
||||||
|
| [_common.scss][common] | actual definitions of style for each widget. This is where you are likely to add/remove your changes. |
|
||||||
|
|
||||||
|
You can read about SASS on its [web page][sass-web]. Once you make your
|
||||||
|
changes to the [_common.scss][common] file, you can run ninja to generate the
|
||||||
|
final CSS files.
|
||||||
|
|
||||||
|
[common]: data/theme/gnome-shell-sass/_common.scss
|
||||||
|
[colors]: data/theme/gnome-shell-sass/_colors.scss
|
||||||
|
[drawing]: data/theme/gnome-shell-sass/_drawing.scss
|
||||||
|
[sass-web]: http://sass-lang.com/documentation/
|
@ -1,6 +0,0 @@
|
|||||||
--- Generating the css file ---
|
|
||||||
|
|
||||||
You need sass to generate the css file.
|
|
||||||
|
|
||||||
To generate them run from a command line in the project directory:
|
|
||||||
sass --sourcemap=none --update ./
|
|
@ -1,7 +0,0 @@
|
|||||||
GNOME Shell Sass is a project intended to allow the sharing of the theme sources in sass between gnome-shell and other projects like gnome-shell-extensions.
|
|
||||||
|
|
||||||
License
|
|
||||||
=======
|
|
||||||
GNOME Shell Sass is distributed under the terms of the GNU General Public License,
|
|
||||||
version 2 or later. See the COPYING file for details.
|
|
||||||
|
|
16
data/theme/gnome-shell-sass/README.md
Normal file
16
data/theme/gnome-shell-sass/README.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# GNOME Shell Sass
|
||||||
|
GNOME Shell Sass is a project intended to allow the sharing of the
|
||||||
|
theme sources in sass between gnome-shell and other projects like
|
||||||
|
gnome-shell-extensions.
|
||||||
|
|
||||||
|
Any changes should be done in the [GNOME Shell subtree][shell-subtree]
|
||||||
|
and not the stand-alone [gnome-shell-sass repository][sass-repo]. They
|
||||||
|
will then be synchronized periodically before releases.
|
||||||
|
|
||||||
|
## License
|
||||||
|
GNOME Shell Sass is distributed under the terms of the GNU General Public
|
||||||
|
License, version 2 or later. See the [COPYING][license] file for details.
|
||||||
|
|
||||||
|
[shell-subtree]: https://gitlab.gnome.org/GNOME/gnome-shell/tree/master/data/theme/gnome-shell-sass
|
||||||
|
[sass-repo]: https://gitlab.gnome.org/GNOME/gnome-shell-sass
|
||||||
|
[license]: COPYING
|
@ -1111,7 +1111,7 @@ StScrollBar {
|
|||||||
.aggregate-menu {
|
.aggregate-menu {
|
||||||
min-width: 21em;
|
min-width: 21em;
|
||||||
.popup-menu-icon { padding: 0 4px; }
|
.popup-menu-icon { padding: 0 4px; }
|
||||||
.popup-sub-menu .popup-menu-item :first-child {
|
.popup-sub-menu .popup-menu-item > :first-child {
|
||||||
&:ltr { /* 12px spacing + 2*4px padding */
|
&:ltr { /* 12px spacing + 2*4px padding */
|
||||||
padding-left: 20px; margin-left: 1.09em; }
|
padding-left: 20px; margin-left: 1.09em; }
|
||||||
&:rtl { /* 12px spacing + 2*4px padding */
|
&:rtl { /* 12px spacing + 2*4px padding */
|
||||||
@ -1788,20 +1788,19 @@ StScrollBar {
|
|||||||
.login-dialog-user-list-view { -st-vfade-offset: 1em; }
|
.login-dialog-user-list-view { -st-vfade-offset: 1em; }
|
||||||
.login-dialog-user-list {
|
.login-dialog-user-list {
|
||||||
spacing: 12px;
|
spacing: 12px;
|
||||||
padding: .2em;
|
|
||||||
width: 23em;
|
width: 23em;
|
||||||
&:expanded .login-dialog-user-list-item:selected { background-color: $selected_bg_color; color: $selected_fg_color; }
|
&:expanded .login-dialog-user-list-item:selected { background-color: $selected_bg_color; color: $selected_fg_color; }
|
||||||
&:expanded .login-dialog-user-list-item:logged-in { border-right: 2px solid $selected_bg_color; }
|
&:expanded .login-dialog-user-list-item:logged-in { border-right: 2px solid $selected_bg_color; }
|
||||||
}
|
}
|
||||||
.login-dialog-user-list-item {
|
.login-dialog-user-list-item {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: .2em;
|
padding: 6px;
|
||||||
color: darken($osd_fg_color,30%);
|
color: darken($osd_fg_color,30%);
|
||||||
&:ltr { padding-right: 1em; }
|
&:ltr .user-widget { padding-right: 1em; }
|
||||||
&:rtl { padding-left: 1em; }
|
&:rtl .user-widget { padding-left: 1em; }
|
||||||
.login-dialog-timed-login-indicator {
|
.login-dialog-timed-login-indicator {
|
||||||
height: 2px;
|
height: 2px;
|
||||||
margin: 2px 0 0 0;
|
margin-top: 6px;
|
||||||
background-color: $osd_fg_color;
|
background-color: $osd_fg_color;
|
||||||
}
|
}
|
||||||
&:focus .login-dialog-timed-login-indicator { background-color: $selected_fg_color; }
|
&:focus .login-dialog-timed-login-indicator { background-color: $selected_fg_color; }
|
||||||
@ -1816,8 +1815,8 @@ StScrollBar {
|
|||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
}
|
}
|
||||||
.user-widget-label {
|
.user-widget-label {
|
||||||
&:ltr { padding-left: 18px; }
|
&:ltr { padding-left: 14px; }
|
||||||
&:rtl { padding-right: 18px; }
|
&:rtl { padding-right: 14px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-dialog-prompt-layout {
|
.login-dialog-prompt-layout {
|
||||||
|
@ -25,7 +25,6 @@ const GLib = imports.gi.GLib;
|
|||||||
const GObject = imports.gi.GObject;
|
const GObject = imports.gi.GObject;
|
||||||
const Gtk = imports.gi.Gtk;
|
const Gtk = imports.gi.Gtk;
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const Mainloop = imports.mainloop;
|
|
||||||
const Meta = imports.gi.Meta;
|
const Meta = imports.gi.Meta;
|
||||||
const Pango = imports.gi.Pango;
|
const Pango = imports.gi.Pango;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
@ -86,7 +85,8 @@ var UserListItem = new Lang.Class({
|
|||||||
GObject.BindingFlags.SYNC_CREATE);
|
GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
|
||||||
this._timedLoginIndicator = new St.Bin({ style_class: 'login-dialog-timed-login-indicator',
|
this._timedLoginIndicator = new St.Bin({ style_class: 'login-dialog-timed-login-indicator',
|
||||||
scale_x: 0 });
|
scale_x: 0,
|
||||||
|
visible: false });
|
||||||
layout.add(this._timedLoginIndicator);
|
layout.add(this._timedLoginIndicator);
|
||||||
|
|
||||||
this.actor.connect('clicked', this._onClicked.bind(this));
|
this.actor.connect('clicked', this._onClicked.bind(this));
|
||||||
@ -126,6 +126,8 @@ var UserListItem = new Lang.Class({
|
|||||||
|
|
||||||
this.hideTimedLoginIndicator();
|
this.hideTimedLoginIndicator();
|
||||||
|
|
||||||
|
this._timedLoginIndicator.visible = true;
|
||||||
|
|
||||||
let startTime = GLib.get_monotonic_time();
|
let startTime = GLib.get_monotonic_time();
|
||||||
|
|
||||||
this._timedLoginTimeoutId = GLib.timeout_add (GLib.PRIORITY_DEFAULT, 33,
|
this._timedLoginTimeoutId = GLib.timeout_add (GLib.PRIORITY_DEFAULT, 33,
|
||||||
@ -152,6 +154,8 @@ var UserListItem = new Lang.Class({
|
|||||||
GLib.source_remove(this._timedLoginTimeoutId);
|
GLib.source_remove(this._timedLoginTimeoutId);
|
||||||
this._timedLoginTimeoutId = 0;
|
this._timedLoginTimeoutId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._timedLoginIndicator.visible = false;
|
||||||
this._timedLoginIndicator.scale_x = 0.;
|
this._timedLoginIndicator.scale_x = 0.;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -991,59 +995,81 @@ var LoginDialog = new Lang.Class({
|
|||||||
return hold;
|
return hold;
|
||||||
},
|
},
|
||||||
|
|
||||||
_showTimedLoginAnimation() {
|
|
||||||
this._timedLoginItem.actor.grab_key_focus();
|
|
||||||
return this._timedLoginItem.showTimedLoginIndicator(this._timedLoginAnimationTime);
|
|
||||||
},
|
|
||||||
|
|
||||||
_blockTimedLoginUntilIdle() {
|
_blockTimedLoginUntilIdle() {
|
||||||
// This blocks timed login from starting until a few
|
|
||||||
// seconds after the user stops interacting with the
|
|
||||||
// login screen.
|
|
||||||
//
|
|
||||||
// We skip this step if the timed login delay is very
|
|
||||||
// short.
|
|
||||||
if ((this._timedLoginDelay - _TIMED_LOGIN_IDLE_THRESHOLD) <= 0)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
let hold = new Batch.Hold();
|
let hold = new Batch.Hold();
|
||||||
|
|
||||||
this._timedLoginIdleTimeOutId = Mainloop.timeout_add_seconds(_TIMED_LOGIN_IDLE_THRESHOLD,
|
this._timedLoginIdleTimeOutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, _TIMED_LOGIN_IDLE_THRESHOLD,
|
||||||
() => {
|
() => {
|
||||||
this._timedLoginAnimationTime -= _TIMED_LOGIN_IDLE_THRESHOLD;
|
this._timedLoginIdleTimeOutId = 0;
|
||||||
hold.release();
|
hold.release();
|
||||||
return GLib.SOURCE_REMOVE;
|
return GLib.SOURCE_REMOVE;
|
||||||
});
|
});
|
||||||
GLib.Source.set_name_by_id(this._timedLoginIdleTimeOutId, '[gnome-shell] this._timedLoginAnimationTime');
|
GLib.Source.set_name_by_id(this._timedLoginIdleTimeOutId, '[gnome-shell] this._timedLoginIdleTimeOutId');
|
||||||
return hold;
|
return hold;
|
||||||
},
|
},
|
||||||
|
|
||||||
_startTimedLogin(userName, delay) {
|
_startTimedLogin(userName, delay) {
|
||||||
this._timedLoginItem = null;
|
let firstRun = true;
|
||||||
this._timedLoginDelay = delay;
|
|
||||||
this._timedLoginAnimationTime = delay;
|
// Cancel execution of old batch
|
||||||
|
if (this._timedLoginBatch) {
|
||||||
|
this._timedLoginBatch.cancel();
|
||||||
|
this._timedLoginBatch = null;
|
||||||
|
firstRun = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset previous idle-timeout
|
||||||
|
if (this._timedLoginIdleTimeOutId) {
|
||||||
|
GLib.source_remove(this._timedLoginIdleTimeOutId);
|
||||||
|
this._timedLoginIdleTimeOutId = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
let loginItem = null;
|
||||||
|
let animationTime;
|
||||||
|
|
||||||
let tasks = [() => this._waitForItemForUser(userName),
|
let tasks = [() => this._waitForItemForUser(userName),
|
||||||
|
|
||||||
() => {
|
() => {
|
||||||
this._timedLoginItem = this._userList.getItemFromUserName(userName);
|
loginItem = this._userList.getItemFromUserName(userName);
|
||||||
|
|
||||||
|
// If there is an animation running on the item, reset it.
|
||||||
|
loginItem.hideTimedLoginIndicator();
|
||||||
},
|
},
|
||||||
|
|
||||||
() => {
|
() => {
|
||||||
// If we're just starting out, start on the right
|
// If we're just starting out, start on the right item.
|
||||||
// item.
|
|
||||||
if (!this._userManager.is_loaded) {
|
if (!this._userManager.is_loaded) {
|
||||||
this._userList.jumpToItem(this._timedLoginItem);
|
this._userList.jumpToItem(loginItem);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
this._blockTimedLoginUntilIdle,
|
|
||||||
|
|
||||||
() => {
|
() => {
|
||||||
this._userList.scrollToItem(this._timedLoginItem);
|
// This blocks the timed login animation until a few
|
||||||
|
// seconds after the user stops interacting with the
|
||||||
|
// login screen.
|
||||||
|
|
||||||
|
// We skip this step if the timed login delay is very short.
|
||||||
|
if (delay > _TIMED_LOGIN_IDLE_THRESHOLD) {
|
||||||
|
animationTime = delay - _TIMED_LOGIN_IDLE_THRESHOLD;
|
||||||
|
return this._blockTimedLoginUntilIdle();
|
||||||
|
} else {
|
||||||
|
animationTime = delay;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
this._showTimedLoginAnimation,
|
() => {
|
||||||
|
// If idle timeout is done, make sure the timed login indicator is shown
|
||||||
|
if (delay > _TIMED_LOGIN_IDLE_THRESHOLD &&
|
||||||
|
this._authPrompt.actor.visible)
|
||||||
|
this._authPrompt.cancel();
|
||||||
|
|
||||||
|
if (delay > _TIMED_LOGIN_IDLE_THRESHOLD || firstRun) {
|
||||||
|
this._userList.scrollToItem(loginItem);
|
||||||
|
loginItem.actor.grab_key_focus();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
() => loginItem.showTimedLoginIndicator(animationTime),
|
||||||
|
|
||||||
() => {
|
() => {
|
||||||
this._timedLoginBatch = null;
|
this._timedLoginBatch = null;
|
||||||
@ -1055,37 +1081,17 @@ var LoginDialog = new Lang.Class({
|
|||||||
return this._timedLoginBatch.run();
|
return this._timedLoginBatch.run();
|
||||||
},
|
},
|
||||||
|
|
||||||
_resetTimedLogin() {
|
|
||||||
if (this._timedLoginBatch) {
|
|
||||||
this._timedLoginBatch.cancel();
|
|
||||||
this._timedLoginBatch = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this._timedLoginItem)
|
|
||||||
this._timedLoginItem.hideTimedLoginIndicator();
|
|
||||||
|
|
||||||
let userName = this._timedLoginItem.user.get_user_name();
|
|
||||||
|
|
||||||
if (userName)
|
|
||||||
this._startTimedLogin(userName, this._timedLoginDelay);
|
|
||||||
},
|
|
||||||
|
|
||||||
_onTimedLoginRequested(client, userName, seconds) {
|
_onTimedLoginRequested(client, userName, seconds) {
|
||||||
|
if (this._timedLoginBatch)
|
||||||
|
return;
|
||||||
|
|
||||||
this._startTimedLogin(userName, seconds);
|
this._startTimedLogin(userName, seconds);
|
||||||
|
|
||||||
|
// Restart timed login on user interaction
|
||||||
global.stage.connect('captured-event', (actor, event) => {
|
global.stage.connect('captured-event', (actor, event) => {
|
||||||
if (this._timedLoginDelay == undefined)
|
|
||||||
return Clutter.EVENT_PROPAGATE;
|
|
||||||
|
|
||||||
if (event.type() == Clutter.EventType.KEY_PRESS ||
|
if (event.type() == Clutter.EventType.KEY_PRESS ||
|
||||||
event.type() == Clutter.EventType.BUTTON_PRESS) {
|
event.type() == Clutter.EventType.BUTTON_PRESS) {
|
||||||
if (this._timedLoginBatch) {
|
this._startTimedLogin(userName, seconds);
|
||||||
this._timedLoginBatch.cancel();
|
|
||||||
this._timedLoginBatch = null;
|
|
||||||
}
|
|
||||||
} else if (event.type() == Clutter.EventType.KEY_RELEASE ||
|
|
||||||
event.type() == Clutter.EventType.BUTTON_RELEASE) {
|
|
||||||
this._resetTimedLogin();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
|
@ -188,8 +188,7 @@ var InputMethod = new Lang.Class({
|
|||||||
vfunc_filter_key_event(event) {
|
vfunc_filter_key_event(event) {
|
||||||
if (!this._context || !this._enabled)
|
if (!this._context || !this._enabled)
|
||||||
return false;
|
return false;
|
||||||
if (!this._currentSource ||
|
if (!this._currentSource)
|
||||||
this._currentSource.type == Keyboard.INPUT_SOURCE_TYPE_XKB)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
let state = event.get_state();
|
let state = event.get_state();
|
||||||
|
@ -89,6 +89,8 @@ var KeyboardManager = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setUserLayouts(ids) {
|
setUserLayouts(ids) {
|
||||||
|
let currentId = this._current ? this._current.id : null;
|
||||||
|
let currentGroupIndex = this._current ? this._current.groupIndex : null;
|
||||||
this._current = null;
|
this._current = null;
|
||||||
this._layoutInfos = {};
|
this._layoutInfos = {};
|
||||||
|
|
||||||
@ -115,6 +117,9 @@ var KeyboardManager = new Lang.Class({
|
|||||||
info.group = group;
|
info.group = group;
|
||||||
info.groupIndex = groupIndex;
|
info.groupIndex = groupIndex;
|
||||||
|
|
||||||
|
if (currentId == id && currentGroupIndex == groupIndex)
|
||||||
|
this._current = info;
|
||||||
|
|
||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -17,7 +17,7 @@ const Params = imports.misc.params;
|
|||||||
var SCROLL_TIME = 0.1;
|
var SCROLL_TIME = 0.1;
|
||||||
|
|
||||||
// http://daringfireball.net/2010/07/improved_regex_for_matching_urls
|
// http://daringfireball.net/2010/07/improved_regex_for_matching_urls
|
||||||
const _balancedParens = '\\((?:[^\\s()<>]+|(?:\\(?:[^\\s()<>]+\\)))*\\)';
|
const _balancedParens = '\\([^\\s()<>]+\\)';
|
||||||
const _leadingJunk = '[\\s`(\\[{\'\\"<\u00AB\u201C\u2018]';
|
const _leadingJunk = '[\\s`(\\[{\'\\"<\u00AB\u201C\u2018]';
|
||||||
const _notTrailingJunk = '[^\\s`!()\\[\\]{};:\'\\".,<>?\u00AB\u00BB\u201C\u201D\u2018\u2019]';
|
const _notTrailingJunk = '[^\\s`!()\\[\\]{};:\'\\".,<>?\u00AB\u00BB\u201C\u201D\u2018\u2019]';
|
||||||
|
|
||||||
|
@ -136,8 +136,7 @@ function run() {
|
|||||||
global.frame_finish_timestamp = true;
|
global.frame_finish_timestamp = true;
|
||||||
|
|
||||||
for (let k = 0; k < 5; k++)
|
for (let k = 0; k < 5; k++)
|
||||||
yield Scripting.createTestWindow(640, 480,
|
yield Scripting.createTestWindow({ maximized: true });
|
||||||
{ maximized: true });
|
|
||||||
yield Scripting.waitTestWindows();
|
yield Scripting.waitTestWindows();
|
||||||
|
|
||||||
yield Scripting.sleep(1000);
|
yield Scripting.sleep(1000);
|
||||||
@ -158,8 +157,7 @@ function run() {
|
|||||||
yield Scripting.destroyTestWindows();
|
yield Scripting.destroyTestWindows();
|
||||||
Main.overview.hide();
|
Main.overview.hide();
|
||||||
|
|
||||||
yield Scripting.createTestWindow(640, 480,
|
yield Scripting.createTestWindow({ maximized: true,
|
||||||
{ maximized: true,
|
|
||||||
redraws: true});
|
redraws: true});
|
||||||
yield Scripting.waitTestWindows();
|
yield Scripting.waitTestWindows();
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ const RENAMED_DESKTOP_IDS = {
|
|||||||
'dconf-editor.desktop': 'ca.desrt.dconf-editor.desktop',
|
'dconf-editor.desktop': 'ca.desrt.dconf-editor.desktop',
|
||||||
'empathy.desktop': 'org.gnome.Empathy.desktop',
|
'empathy.desktop': 'org.gnome.Empathy.desktop',
|
||||||
'epiphany.desktop': 'org.gnome.Epiphany.desktop',
|
'epiphany.desktop': 'org.gnome.Epiphany.desktop',
|
||||||
|
'evolution.desktop': 'org.gnome.Evolution.desktop',
|
||||||
'file-roller.desktop': 'org.gnome.FileRoller.desktop',
|
'file-roller.desktop': 'org.gnome.FileRoller.desktop',
|
||||||
'gcalctool.desktop': 'org.gnome.Calculator.desktop',
|
'gcalctool.desktop': 'org.gnome.Calculator.desktop',
|
||||||
'geary.desktop': 'org.gnome.Geary.desktop',
|
'geary.desktop': 'org.gnome.Geary.desktop',
|
||||||
@ -34,6 +35,7 @@ const RENAMED_DESKTOP_IDS = {
|
|||||||
'gnome-screenshot.desktop': 'org.gnome.Screenshot.desktop',
|
'gnome-screenshot.desktop': 'org.gnome.Screenshot.desktop',
|
||||||
'gnome-software.desktop': 'org.gnome.Software.desktop',
|
'gnome-software.desktop': 'org.gnome.Software.desktop',
|
||||||
'gnome-terminal.desktop': 'org.gnome.Terminal.desktop',
|
'gnome-terminal.desktop': 'org.gnome.Terminal.desktop',
|
||||||
|
'gnome-tweaks.desktop': 'org.gnome.tweaks.desktop',
|
||||||
'gnome-weather.desktop': 'org.gnome.Weather.Application.desktop',
|
'gnome-weather.desktop': 'org.gnome.Weather.Application.desktop',
|
||||||
'gnomine.desktop': 'gnome-mines.desktop',
|
'gnomine.desktop': 'gnome-mines.desktop',
|
||||||
'gnotravex.desktop': 'gnome-tetravex.desktop',
|
'gnotravex.desktop': 'gnome-tetravex.desktop',
|
||||||
|
@ -604,12 +604,17 @@ var NetworkAgent = new Lang.Class({
|
|||||||
|
|
||||||
this._native.connect('new-request', this._newRequest.bind(this));
|
this._native.connect('new-request', this._newRequest.bind(this));
|
||||||
this._native.connect('cancel-request', this._cancelRequest.bind(this));
|
this._native.connect('cancel-request', this._cancelRequest.bind(this));
|
||||||
try {
|
|
||||||
this._native.init(null);
|
this._initialized = false;
|
||||||
} catch(e) {
|
this._native.init_async(GLib.PRIORITY_DEFAULT, null, (o, res) => {
|
||||||
this._native = null;
|
try {
|
||||||
logError(e, 'error initializing the NetworkManager Agent');
|
this._native.init_finish(res);
|
||||||
}
|
this._initialized = true;
|
||||||
|
} catch(e) {
|
||||||
|
this._native = null;
|
||||||
|
logError(e, 'error initializing the NetworkManager Agent');
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
enable() {
|
enable() {
|
||||||
@ -617,7 +622,7 @@ var NetworkAgent = new Lang.Class({
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this._native.auto_register = true;
|
this._native.auto_register = true;
|
||||||
if (!this._native.registered)
|
if (this._initialized && !this._native.registered)
|
||||||
this._native.register_async(null, null);
|
this._native.register_async(null, null);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -640,7 +645,7 @@ var NetworkAgent = new Lang.Class({
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this._native.auto_register = false;
|
this._native.auto_register = false;
|
||||||
if (this._native.registered)
|
if (this._initialized && this._native.registered)
|
||||||
this._native.unregister_async(null, null);
|
this._native.unregister_async(null, null);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -655,7 +660,7 @@ var NetworkAgent = new Lang.Class({
|
|||||||
switch (connectionType) {
|
switch (connectionType) {
|
||||||
case '802-11-wireless':
|
case '802-11-wireless':
|
||||||
let wirelessSetting = connection.get_setting_wireless();
|
let wirelessSetting = connection.get_setting_wireless();
|
||||||
let ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid());
|
let ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid().get_data());
|
||||||
title = _("Authentication required by wireless network");
|
title = _("Authentication required by wireless network");
|
||||||
body = _("Passwords or encryption keys are required to access the wireless network “%s”.").format(ssid);
|
body = _("Passwords or encryption keys are required to access the wireless network “%s”.").format(ssid);
|
||||||
break;
|
break;
|
||||||
@ -765,57 +770,29 @@ var NetworkAgent = new Lang.Class({
|
|||||||
this._vpnCacheBuilt = true;
|
this._vpnCacheBuilt = true;
|
||||||
this._vpnBinaries = { };
|
this._vpnBinaries = { };
|
||||||
|
|
||||||
try {
|
NM.VpnPluginInfo.list_load().forEach(plugin => {
|
||||||
let fileEnum = this._pluginDir.enumerate_children('standard::name', Gio.FileQueryInfoFlags.NONE, null);
|
let service = plugin.get_service();
|
||||||
let info;
|
let fileName = plugin.get_auth_dialog();
|
||||||
|
let supportsHints = plugin.supports_hints();
|
||||||
|
let externalUIMode = false;
|
||||||
|
|
||||||
while ((info = fileEnum.next_file(null))) {
|
let prop = plugin.lookup_property('GNOME', 'supports-external-ui-mode');
|
||||||
let name = info.get_name();
|
if (prop) {
|
||||||
if (name.substr(-5) != '.name')
|
prop = prop.trim().toLowerCase();
|
||||||
continue;
|
externalUIMode = ['true', 'yes', 'on', '1'].includes(prop);
|
||||||
|
|
||||||
try {
|
|
||||||
let keyfile = new GLib.KeyFile();
|
|
||||||
keyfile.load_from_file(this._pluginDir.get_child(name).get_path(), GLib.KeyFileFlags.NONE);
|
|
||||||
let service = keyfile.get_string('VPN Connection', 'service');
|
|
||||||
let binary = keyfile.get_string('GNOME', 'auth-dialog');
|
|
||||||
let externalUIMode = false;
|
|
||||||
let hints = false;
|
|
||||||
|
|
||||||
try {
|
|
||||||
externalUIMode = keyfile.get_boolean('GNOME', 'supports-external-ui-mode');
|
|
||||||
} catch(e) { } // ignore errors if key does not exist
|
|
||||||
|
|
||||||
try {
|
|
||||||
hints = keyfile.get_boolean('GNOME', 'supports-hints');
|
|
||||||
} catch(e) { } // ignore errors if key does not exist
|
|
||||||
|
|
||||||
let path = binary;
|
|
||||||
if (!GLib.path_is_absolute(path)) {
|
|
||||||
path = GLib.build_filenamev([Config.LIBEXECDIR, path]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (GLib.file_test(path, GLib.FileTest.IS_EXECUTABLE)) {
|
|
||||||
this._vpnBinaries[service] = { fileName: path, externalUIMode: externalUIMode, supportsHints: hints };
|
|
||||||
try {
|
|
||||||
let aliases = keyfile.get_string_list('VPN Connection', 'aliases');
|
|
||||||
|
|
||||||
for (let alias of aliases) {
|
|
||||||
this._vpnBinaries[alias] = { fileName: path, externalUIMode: externalUIMode, supportsHints: hints };
|
|
||||||
}
|
|
||||||
} catch(e) { } // ignore errors if key does not exist
|
|
||||||
} else {
|
|
||||||
throw new Error('VPN plugin at %s is not executable'.format(path));
|
|
||||||
}
|
|
||||||
} catch(e) {
|
|
||||||
log('Error \'%s\' while processing VPN keyfile \'%s\''.
|
|
||||||
format(e.message, this._pluginDir.get_child(name).get_path()));
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch(e) {
|
|
||||||
logError(e, 'error while enumerating VPN auth helpers');
|
if (GLib.file_test(fileName, GLib.FileTest.IS_EXECUTABLE)) {
|
||||||
}
|
let binary = { fileName, externalUIMode, supportsHints };
|
||||||
|
this._vpnBinaries[service] = binary;
|
||||||
|
|
||||||
|
plugin.get_aliases().forEach(alias => {
|
||||||
|
this._vpnBinaries[alias] = binary;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
log('VPN plugin at %s is not executable'.format(fileName));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var Component = NetworkAgent;
|
var Component = NetworkAgent;
|
||||||
|
@ -16,6 +16,7 @@ const PolkitAgent = imports.gi.PolkitAgent;
|
|||||||
const Animation = imports.ui.animation;
|
const Animation = imports.ui.animation;
|
||||||
const Components = imports.ui.components;
|
const Components = imports.ui.components;
|
||||||
const Dialog = imports.ui.dialog;
|
const Dialog = imports.ui.dialog;
|
||||||
|
const Main = imports.ui.main;
|
||||||
const ModalDialog = imports.ui.modalDialog;
|
const ModalDialog = imports.ui.modalDialog;
|
||||||
const ShellEntry = imports.ui.shellEntry;
|
const ShellEntry = imports.ui.shellEntry;
|
||||||
const UserWidget = imports.ui.userWidget;
|
const UserWidget = imports.ui.userWidget;
|
||||||
@ -39,6 +40,10 @@ var AuthenticationDialog = new Lang.Class({
|
|||||||
this.userNames = userNames;
|
this.userNames = userNames;
|
||||||
this._wasDismissed = false;
|
this._wasDismissed = false;
|
||||||
|
|
||||||
|
this._sessionUpdatedId = Main.sessionMode.connect('updated', () => {
|
||||||
|
this._group.visible = !Main.sessionMode.isLocked;
|
||||||
|
});
|
||||||
|
|
||||||
let icon = new Gio.ThemedIcon({ name: 'dialog-password-symbolic' });
|
let icon = new Gio.ThemedIcon({ name: 'dialog-password-symbolic' });
|
||||||
let title = _("Authentication Required");
|
let title = _("Authentication Required");
|
||||||
|
|
||||||
@ -193,6 +198,14 @@ var AuthenticationDialog = new Lang.Class({
|
|||||||
this._session.initiate();
|
this._session.initiate();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
close(timestamp) {
|
||||||
|
this.parent(timestamp);
|
||||||
|
|
||||||
|
if (this._sessionUpdatedId)
|
||||||
|
Main.sessionMode.disconnect(this._sessionUpdatedId);
|
||||||
|
this._sessionUpdatedId = 0;
|
||||||
|
},
|
||||||
|
|
||||||
_ensureOpen() {
|
_ensureOpen() {
|
||||||
// NOTE: ModalDialog.open() is safe to call if the dialog is
|
// NOTE: ModalDialog.open() is safe to call if the dialog is
|
||||||
// already open - it just returns true without side-effects
|
// already open - it just returns true without side-effects
|
||||||
@ -348,6 +361,7 @@ var AuthenticationAgent = new Lang.Class({
|
|||||||
this._native = new Shell.PolkitAuthenticationAgent();
|
this._native = new Shell.PolkitAuthenticationAgent();
|
||||||
this._native.connect('initiate', this._onInitiate.bind(this));
|
this._native.connect('initiate', this._onInitiate.bind(this));
|
||||||
this._native.connect('cancel', this._onCancel.bind(this));
|
this._native.connect('cancel', this._onCancel.bind(this));
|
||||||
|
this._sessionUpdatedId = 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
enable() {
|
enable() {
|
||||||
@ -367,6 +381,17 @@ var AuthenticationAgent = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onInitiate(nativeAgent, actionId, message, iconName, cookie, userNames) {
|
_onInitiate(nativeAgent, actionId, message, iconName, cookie, userNames) {
|
||||||
|
// Don't pop up a dialog while locked
|
||||||
|
if (Main.sessionMode.isLocked) {
|
||||||
|
this._sessionUpdatedId = Main.sessionMode.connect('updated', () => {
|
||||||
|
Main.sessionMode.disconnect(this._sessionUpdatedId);
|
||||||
|
this._sessionUpdatedId = 0;
|
||||||
|
|
||||||
|
this._onInitiate(nativeAgent, actionId, message, iconName, cookie, userNames);
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this._currentDialog = new AuthenticationDialog(actionId, message, cookie, userNames);
|
this._currentDialog = new AuthenticationDialog(actionId, message, cookie, userNames);
|
||||||
|
|
||||||
// We actually don't want to open the dialog until we know for
|
// We actually don't want to open the dialog until we know for
|
||||||
@ -396,6 +421,10 @@ var AuthenticationAgent = new Lang.Class({
|
|||||||
this._currentDialog.destroySession();
|
this._currentDialog.destroySession();
|
||||||
this._currentDialog = null;
|
this._currentDialog = null;
|
||||||
|
|
||||||
|
if (this._sessionUpdatedId)
|
||||||
|
Main.sessionMode.disconnect(this._sessionUpdatedId);
|
||||||
|
this._sessionUpdatedId = 0;
|
||||||
|
|
||||||
this._native.complete(dismissed);
|
this._native.complete(dismissed);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -153,8 +153,10 @@ var WorldClocksSection = new Lang.Class({
|
|||||||
for (let i = 0; i < this._locations.length; i++) {
|
for (let i = 0; i < this._locations.length; i++) {
|
||||||
let l = this._locations[i].location;
|
let l = this._locations[i].location;
|
||||||
|
|
||||||
|
let name = l.get_level() == GWeather.LocationLevel.NAMED_TIMEZONE ? l.get_name()
|
||||||
|
: l.get_city_name();
|
||||||
let label = new St.Label({ style_class: 'world-clocks-city',
|
let label = new St.Label({ style_class: 'world-clocks-city',
|
||||||
text: l.get_city_name(),
|
text: name,
|
||||||
x_align: Clutter.ActorAlign.START,
|
x_align: Clutter.ActorAlign.START,
|
||||||
x_expand: true });
|
x_expand: true });
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ var CandidatePopup = new Lang.Class({
|
|||||||
this._panelService.cursor_down();
|
this._panelService.cursor_down();
|
||||||
});
|
});
|
||||||
|
|
||||||
this._candidateArea.connect('candidate-clicked', () => {
|
this._candidateArea.connect('candidate-clicked', (area, index, button, state) => {
|
||||||
this._panelService.candidate_clicked(index, button, state);
|
this._panelService.candidate_clicked(index, button, state);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@ const MagnifierDBus = imports.ui.magnifierDBus;
|
|||||||
const Params = imports.misc.params;
|
const Params = imports.misc.params;
|
||||||
const PointerWatcher = imports.ui.pointerWatcher;
|
const PointerWatcher = imports.ui.pointerWatcher;
|
||||||
|
|
||||||
var MOUSE_POLL_FREQUENCY = 50;
|
|
||||||
var CROSSHAIRS_CLIP_SIZE = [100, 100];
|
var CROSSHAIRS_CLIP_SIZE = [100, 100];
|
||||||
var NO_CHANGE = 0.0;
|
var NO_CHANGE = 0.0;
|
||||||
|
|
||||||
@ -152,8 +151,10 @@ var Magnifier = new Lang.Class({
|
|||||||
* Turn on mouse tracking, if not already doing so.
|
* Turn on mouse tracking, if not already doing so.
|
||||||
*/
|
*/
|
||||||
startTrackingMouse() {
|
startTrackingMouse() {
|
||||||
if (!this._pointerWatch)
|
if (!this._pointerWatch) {
|
||||||
this._pointerWatch = PointerWatcher.getPointerWatcher().addWatch(MOUSE_POLL_FREQUENCY, this.scrollToMousePos.bind(this));
|
let interval = 1000 / Clutter.get_default_frame_rate();
|
||||||
|
this._pointerWatch = PointerWatcher.getPointerWatcher().addWatch(interval, this.scrollToMousePos.bind(this));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -256,6 +256,14 @@ function _getStylesheet(name) {
|
|||||||
if (stylesheet.query_exists(null))
|
if (stylesheet.query_exists(null))
|
||||||
return stylesheet;
|
return stylesheet;
|
||||||
|
|
||||||
|
let dataDirs = GLib.get_system_data_dirs();
|
||||||
|
for (let i = 0; i < dataDirs.length; i++) {
|
||||||
|
let path = GLib.build_filenamev([dataDirs[i], 'gnome-shell', 'theme', name]);
|
||||||
|
let stylesheet = Gio.file_new_for_path(path);
|
||||||
|
if (stylesheet.query_exists(null))
|
||||||
|
return stylesheet;
|
||||||
|
}
|
||||||
|
|
||||||
stylesheet = Gio.File.new_for_path(global.datadir + '/theme/' + name);
|
stylesheet = Gio.File.new_for_path(global.datadir + '/theme/' + name);
|
||||||
if (stylesheet.query_exists(null))
|
if (stylesheet.query_exists(null))
|
||||||
return stylesheet;
|
return stylesheet;
|
||||||
|
@ -27,6 +27,7 @@ function _fixMarkup(text, allowMarkup) {
|
|||||||
|
|
||||||
// Support <b>, <i>, and <u>, escape anything else
|
// Support <b>, <i>, and <u>, escape anything else
|
||||||
// so it displays as raw markup.
|
// so it displays as raw markup.
|
||||||
|
// Ref: https://developer.gnome.org/notification-spec/#markup
|
||||||
_text = _text.replace(/<(?!\/?[biu]>)/g, '<');
|
_text = _text.replace(/<(?!\/?[biu]>)/g, '<');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -502,6 +503,7 @@ var Message = new Lang.Class({
|
|||||||
_sync() {
|
_sync() {
|
||||||
let visible = this.actor.hover && this.canClose();
|
let visible = this.actor.hover && this.canClose();
|
||||||
this._closeButton.opacity = visible ? 255 : 0;
|
this._closeButton.opacity = visible ? 255 : 0;
|
||||||
|
this._closeButton.reactive = visible;
|
||||||
},
|
},
|
||||||
|
|
||||||
_onClicked() {
|
_onClicked() {
|
||||||
|
@ -315,10 +315,10 @@ var NotificationApplicationPolicy = new Lang.Class({
|
|||||||
// You can add a secondary icon to the banner with 'secondaryGIcon'. There
|
// You can add a secondary icon to the banner with 'secondaryGIcon'. There
|
||||||
// is no fallback for this icon.
|
// is no fallback for this icon.
|
||||||
//
|
//
|
||||||
// If @params contains 'bannerMarkup', with the value %true, then
|
// If @params contains 'bannerMarkup', with the value %true, a subset (<b>,
|
||||||
// the corresponding element is assumed to use pango markup. If the
|
// <i> and <u>) of the markup in [1] will be interpreted within @banner. If
|
||||||
// parameter is not present for an element, then anything that looks
|
// the parameter is not present, then anything that looks like markup
|
||||||
// like markup in that element will appear literally in the output.
|
// in @banner will appear literally in the output.
|
||||||
//
|
//
|
||||||
// If @params contains a 'clear' parameter with the value %true, then
|
// If @params contains a 'clear' parameter with the value %true, then
|
||||||
// the content and the action area of the notification will be cleared.
|
// the content and the action area of the notification will be cleared.
|
||||||
@ -328,6 +328,8 @@ var NotificationApplicationPolicy = new Lang.Class({
|
|||||||
// If @params contains 'soundName' or 'soundFile', the corresponding
|
// If @params contains 'soundName' or 'soundFile', the corresponding
|
||||||
// event sound is played when the notification is shown (if the policy for
|
// event sound is played when the notification is shown (if the policy for
|
||||||
// @source allows playing sounds).
|
// @source allows playing sounds).
|
||||||
|
//
|
||||||
|
// [1] https://developer.gnome.org/notification-spec/#markup
|
||||||
var Notification = new Lang.Class({
|
var Notification = new Lang.Class({
|
||||||
Name: 'Notification',
|
Name: 'Notification',
|
||||||
|
|
||||||
|
@ -100,21 +100,8 @@ var ModalDialog = new Lang.Class({
|
|||||||
setButtons(buttons) {
|
setButtons(buttons) {
|
||||||
this.clearButtons();
|
this.clearButtons();
|
||||||
|
|
||||||
for (let i = 0; i < buttons.length; i++) {
|
for (let buttonInfo of buttons)
|
||||||
let buttonInfo = buttons[i];
|
|
||||||
|
|
||||||
let x_alignment;
|
|
||||||
if (buttons.length == 1)
|
|
||||||
x_alignment = St.Align.END;
|
|
||||||
else if (i == 0)
|
|
||||||
x_alignment = St.Align.START;
|
|
||||||
else if (i == buttons.length - 1)
|
|
||||||
x_alignment = St.Align.END;
|
|
||||||
else
|
|
||||||
x_alignment = St.Align.MIDDLE;
|
|
||||||
|
|
||||||
this.addButton(buttonInfo);
|
this.addButton(buttonInfo);
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
addButton(buttonInfo) {
|
addButton(buttonInfo) {
|
||||||
|
@ -204,7 +204,7 @@ var OsdWindow = new Lang.Class({
|
|||||||
|
|
||||||
let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
|
let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
|
||||||
this._icon.icon_size = popupSize / (2 * scaleFactor);
|
this._icon.icon_size = popupSize / (2 * scaleFactor);
|
||||||
this._box.translation_y = monitor.height / 4;
|
this._box.translation_y = Math.round(monitor.height / 4);
|
||||||
this._boxConstraint.minSize = popupSize;
|
this._boxConstraint.minSize = popupSize;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -488,7 +488,8 @@ var Overview = new Lang.Class({
|
|||||||
return false;
|
return false;
|
||||||
if (this._inItemDrag || this._inWindowDrag)
|
if (this._inItemDrag || this._inWindowDrag)
|
||||||
return false;
|
return false;
|
||||||
if (this._activationTime == 0 || Date.now() / 1000 - this._activationTime > OVERVIEW_ACTIVATION_TIMEOUT)
|
if (this._activationTime == 0 ||
|
||||||
|
GLib.get_monotonic_time() / GLib.USEC_PER_SEC - this._activationTime > OVERVIEW_ACTIVATION_TIMEOUT)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
@ -547,7 +548,7 @@ var Overview = new Lang.Class({
|
|||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.animationInProgress = true;
|
this.animationInProgress = true;
|
||||||
this.visibleTarget = true;
|
this.visibleTarget = true;
|
||||||
this._activationTime = Date.now() / 1000;
|
this._activationTime = GLib.get_monotonic_time() / GLib.USEC_PER_SEC;
|
||||||
|
|
||||||
Meta.disable_unredirect_for_screen(global.screen);
|
Meta.disable_unredirect_for_screen(global.screen);
|
||||||
this.viewSelector.show();
|
this.viewSelector.show();
|
||||||
|
@ -394,8 +394,9 @@ var PopupImageMenuItem = new Lang.Class({
|
|||||||
_init(text, icon, params) {
|
_init(text, icon, params) {
|
||||||
this.parent(params);
|
this.parent(params);
|
||||||
|
|
||||||
this._icon = new St.Icon({ style_class: 'popup-menu-icon' });
|
this._icon = new St.Icon({ style_class: 'popup-menu-icon',
|
||||||
this.actor.add_child(this._icon, { align: St.Align.END });
|
x_align: Clutter.ActorAlign.END });
|
||||||
|
this.actor.add_child(this._icon);
|
||||||
this.label = new St.Label({ text: text });
|
this.label = new St.Label({ text: text });
|
||||||
this.actor.add_child(this.label);
|
this.actor.add_child(this.label);
|
||||||
this.actor.label_actor = this.label;
|
this.actor.label_actor = this.label;
|
||||||
|
@ -119,6 +119,9 @@ var RemoteMenuItemMapper = new Lang.Class({
|
|||||||
this._trackerItem = trackerItem;
|
this._trackerItem = trackerItem;
|
||||||
|
|
||||||
this.menuItem = new PopupMenu.PopupBaseMenuItem();
|
this.menuItem = new PopupMenu.PopupBaseMenuItem();
|
||||||
|
this._icon = new St.Icon({ style_class: 'popup-menu-icon' });
|
||||||
|
this.menuItem.actor.add_child(this._icon);
|
||||||
|
|
||||||
this._label = new St.Label();
|
this._label = new St.Label();
|
||||||
this.menuItem.actor.add_child(this._label);
|
this.menuItem.actor.add_child(this._label);
|
||||||
this.menuItem.actor.label_actor = this._label;
|
this.menuItem.actor.label_actor = this._label;
|
||||||
@ -129,11 +132,13 @@ var RemoteMenuItemMapper = new Lang.Class({
|
|||||||
|
|
||||||
this._trackerItem.bind_property('visible', this.menuItem.actor, 'visible', GObject.BindingFlags.SYNC_CREATE);
|
this._trackerItem.bind_property('visible', this.menuItem.actor, 'visible', GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
|
||||||
|
this._trackerItem.connect('notify::icon', this._updateIcon.bind(this));
|
||||||
this._trackerItem.connect('notify::label', this._updateLabel.bind(this));
|
this._trackerItem.connect('notify::label', this._updateLabel.bind(this));
|
||||||
this._trackerItem.connect('notify::sensitive', this._updateSensitivity.bind(this));
|
this._trackerItem.connect('notify::sensitive', this._updateSensitivity.bind(this));
|
||||||
this._trackerItem.connect('notify::role', this._updateRole.bind(this));
|
this._trackerItem.connect('notify::role', this._updateRole.bind(this));
|
||||||
this._trackerItem.connect('notify::toggled', this._updateDecoration.bind(this));
|
this._trackerItem.connect('notify::toggled', this._updateDecoration.bind(this));
|
||||||
|
|
||||||
|
this._updateIcon();
|
||||||
this._updateLabel();
|
this._updateLabel();
|
||||||
this._updateSensitivity();
|
this._updateSensitivity();
|
||||||
this._updateRole();
|
this._updateRole();
|
||||||
@ -143,6 +148,11 @@ var RemoteMenuItemMapper = new Lang.Class({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_updateIcon() {
|
||||||
|
this._icon.gicon = this._trackerItem.icon;
|
||||||
|
this._icon.visible = (this._icon.gicon != null);
|
||||||
|
},
|
||||||
|
|
||||||
_updateLabel() {
|
_updateLabel() {
|
||||||
this._label.text = stripMnemonics(this._trackerItem.label);
|
this._label.text = stripMnemonics(this._trackerItem.label);
|
||||||
},
|
},
|
||||||
|
@ -295,7 +295,7 @@ var RemoteSearchProvider = new Lang.Class({
|
|||||||
name: metas[i]['name'],
|
name: metas[i]['name'],
|
||||||
description: metas[i]['description'],
|
description: metas[i]['description'],
|
||||||
createIcon: size => {
|
createIcon: size => {
|
||||||
this.createIcon(size, metas[i]);
|
return this.createIcon(size, metas[i]);
|
||||||
},
|
},
|
||||||
clipboardText: metas[i]['clipboardText'] });
|
clipboardText: metas[i]['clipboardText'] });
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ function _callRemote(obj, method, ...args) {
|
|||||||
* because of the normal X asynchronous mapping process, to actually wait
|
* because of the normal X asynchronous mapping process, to actually wait
|
||||||
* until the window has been mapped and exposed, use waitTestWindows().
|
* until the window has been mapped and exposed, use waitTestWindows().
|
||||||
*/
|
*/
|
||||||
function createTestWindow(width, height, params) {
|
function createTestWindow(params) {
|
||||||
params = Params.parse(params, { width: 640,
|
params = Params.parse(params, { width: 640,
|
||||||
height: 480,
|
height: 480,
|
||||||
alpha: false,
|
alpha: false,
|
||||||
|
@ -55,11 +55,11 @@ var EntryMenu = new Lang.Class({
|
|||||||
|
|
||||||
if (v) {
|
if (v) {
|
||||||
this._makePasswordItem();
|
this._makePasswordItem();
|
||||||
this._entry.input_purpose = Gtk.InputPurpose.PASSWORD;
|
this._entry.input_purpose = Clutter.InputContentPurpose.PASSWORD;
|
||||||
} else {
|
} else {
|
||||||
this._passwordItem.destroy();
|
this._passwordItem.destroy();
|
||||||
this._passwordItem = null;
|
this._passwordItem = null;
|
||||||
this._entry.input_purpose = Gtk.InputPurpose.FREE_FORM;
|
this._entry.input_purpose = Clutter.InputContentPurpose.NORMAL;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1944,6 +1944,7 @@ var NMApplet = new Lang.Class({
|
|||||||
this.indicators.visible = this._client.nm_running;
|
this.indicators.visible = this._client.nm_running;
|
||||||
this.menu.actor.visible = this._client.networking_enabled;
|
this.menu.actor.visible = this._client.networking_enabled;
|
||||||
|
|
||||||
|
this._updateIcon();
|
||||||
this._syncConnectivity();
|
this._syncConnectivity();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -17,10 +17,11 @@ const PanelMenu = imports.ui.panelMenu;
|
|||||||
const BoltClientInterface = '<node> \
|
const BoltClientInterface = '<node> \
|
||||||
<interface name="org.freedesktop.bolt1.Manager"> \
|
<interface name="org.freedesktop.bolt1.Manager"> \
|
||||||
<property name="Probing" type="b" access="read"></property> \
|
<property name="Probing" type="b" access="read"></property> \
|
||||||
|
<property name="AuthMode" type="s" access="readwrite"></property> \
|
||||||
<method name="EnrollDevice"> \
|
<method name="EnrollDevice"> \
|
||||||
<arg type="s" name="uid" direction="in"> </arg> \
|
<arg type="s" name="uid" direction="in"> </arg> \
|
||||||
<arg type="u" name="policy" direction="in"> </arg> \
|
<arg type="s" name="policy" direction="in"> </arg> \
|
||||||
<arg type="u" name="flags" direction="in"> </arg> \
|
<arg type="s" name="flags" direction="in"> </arg> \
|
||||||
<arg name="device" direction="out" type="o"> </arg> \
|
<arg name="device" direction="out" type="o"> </arg> \
|
||||||
</method> \
|
</method> \
|
||||||
<signal name="DeviceAdded"> \
|
<signal name="DeviceAdded"> \
|
||||||
@ -34,13 +35,17 @@ const BoltDeviceInterface = '<node> \
|
|||||||
<property name="Uid" type="s" access="read"></property> \
|
<property name="Uid" type="s" access="read"></property> \
|
||||||
<property name="Name" type="s" access="read"></property> \
|
<property name="Name" type="s" access="read"></property> \
|
||||||
<property name="Vendor" type="s" access="read"></property> \
|
<property name="Vendor" type="s" access="read"></property> \
|
||||||
<property name="Status" type="u" access="read"></property> \
|
<property name="Type" type="s" access="read"></property> \
|
||||||
<property name="SysfsPath" type="s" access="read"></property> \
|
<property name="Status" type="s" access="read"></property> \
|
||||||
<property name="Security" type="u" access="read"></property> \
|
|
||||||
<property name="Parent" type="s" access="read"></property> \
|
<property name="Parent" type="s" access="read"></property> \
|
||||||
|
<property name="SysfsPath" type="s" access="read"></property> \
|
||||||
<property name="Stored" type="b" access="read"></property> \
|
<property name="Stored" type="b" access="read"></property> \
|
||||||
<property name="Policy" type="u" access="read"></property> \
|
<property name="Policy" type="s" access="read"></property> \
|
||||||
<property name="Key" type="u" access="read"></property> \
|
<property name="Key" type="s" access="read"></property> \
|
||||||
|
<property name="Label" type="s" access="read"></property> \
|
||||||
|
<property name="ConnectTime" type="t" access="read"></property> \
|
||||||
|
<property name="AuthorizeTime" type="t" access="read"></property> \
|
||||||
|
<property name="StoreTime" type="t" access="read"></property> \
|
||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
@ -50,23 +55,27 @@ const BoltDeviceProxy = Gio.DBusProxy.makeProxyWrapper(BoltDeviceInterface);
|
|||||||
/* */
|
/* */
|
||||||
|
|
||||||
var Status = {
|
var Status = {
|
||||||
DISCONNECTED: 0,
|
DISCONNECTED: 'disconnected',
|
||||||
CONNECTED: 1,
|
CONNECTING: 'connecting',
|
||||||
AUTHORIZING: 2,
|
CONNECTED: 'connected',
|
||||||
AUTH_ERROR: 3,
|
AUTHORIZING: 'authorizing',
|
||||||
AUTHORIZED: 4,
|
AUTH_ERROR: 'auth-error',
|
||||||
AUTHORIZED_SECURE: 5,
|
AUTHORIZED: 'authorized'
|
||||||
AUTHORIZED_NEWKY: 6
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var Policy = {
|
var Policy = {
|
||||||
DEFAULT: 0,
|
DEFAULT: 'default',
|
||||||
MANUAL: 1,
|
MANUAL: 'manual',
|
||||||
AUTO:2
|
AUTO: 'auto'
|
||||||
};
|
};
|
||||||
|
|
||||||
var AuthFlags = {
|
var AuthCtrl = {
|
||||||
NONE: 0,
|
NONE: 'none',
|
||||||
|
};
|
||||||
|
|
||||||
|
var AuthMode = {
|
||||||
|
DISABLED: 'disabled',
|
||||||
|
ENABLED: 'enabled'
|
||||||
};
|
};
|
||||||
|
|
||||||
const BOLT_DBUS_NAME = 'org.freedesktop.bolt';
|
const BOLT_DBUS_NAME = 'org.freedesktop.bolt';
|
||||||
@ -131,9 +140,10 @@ var Client = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
enrollDevice(id, policy, callback) {
|
enrollDevice(id, policy, callback) {
|
||||||
this._proxy.EnrollDeviceRemote(id, policy, AuthFlags.NONE,
|
this._proxy.EnrollDeviceRemote(id, policy, AuthCtrl.NONE,
|
||||||
(res, error) => {
|
(res, error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
Gio.DBusError.strip_remote_error(error);
|
||||||
callback(null, error);
|
callback(null, error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -144,6 +154,10 @@ var Client = new Lang.Class({
|
|||||||
path);
|
path);
|
||||||
callback(device, null);
|
callback(device, null);
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
get authMode () {
|
||||||
|
return this._proxy.AuthMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -177,6 +191,14 @@ var AuthRobot = new Lang.Class({
|
|||||||
if (dev.Status !== Status.CONNECTED)
|
if (dev.Status !== Status.CONNECTED)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* check if authorization is enabled in the daemon. if not
|
||||||
|
* we won't even bother authorizing, because we will only
|
||||||
|
* get an error back. The exact contents of AuthMode might
|
||||||
|
* change in the future, but must contain AuthMode.ENABLED
|
||||||
|
* if it is enabled. */
|
||||||
|
if (!cli.authMode.split('|').includes(AuthMode.ENABLED))
|
||||||
|
return;
|
||||||
|
|
||||||
/* check if we should enroll the device */
|
/* check if we should enroll the device */
|
||||||
let res = [false];
|
let res = [false];
|
||||||
this.emit('enroll-device', dev, res);
|
this.emit('enroll-device', dev, res);
|
||||||
@ -206,7 +228,7 @@ var AuthRobot = new Lang.Class({
|
|||||||
|
|
||||||
_onEnrollDone(device, error) {
|
_onEnrollDone(device, error) {
|
||||||
if (error)
|
if (error)
|
||||||
this.emit('enroll-failed', error, device);
|
this.emit('enroll-failed', device, error);
|
||||||
|
|
||||||
/* TODO: scan the list of devices to be authorized for children
|
/* TODO: scan the list of devices to be authorized for children
|
||||||
* of this device and remove them (and their children and
|
* of this device and remove them (and their children and
|
||||||
@ -332,7 +354,7 @@ var Indicator = new Lang.Class({
|
|||||||
|
|
||||||
_onEnrollFailed(obj, device, error) {
|
_onEnrollFailed(obj, device, error) {
|
||||||
const title = _('Thunderbolt authorization error');
|
const title = _('Thunderbolt authorization error');
|
||||||
const body = _('Could not authorize the thunderbolt device: %s'.format(error.message));
|
const body = _('Could not authorize the Thunderbolt device: %s'.format(error.message));
|
||||||
this._notify(title, body);
|
this._notify(title, body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -517,7 +517,7 @@ var ViewSelector = new Lang.Class({
|
|||||||
|
|
||||||
let synthEvent = event.copy();
|
let synthEvent = event.copy();
|
||||||
synthEvent.set_source(this._text);
|
synthEvent.set_source(this._text);
|
||||||
this._text.event(synthEvent, true);
|
this._text.event(synthEvent, false);
|
||||||
},
|
},
|
||||||
|
|
||||||
// the entry does not show the hint
|
// the entry does not show the hint
|
||||||
@ -601,15 +601,6 @@ var ViewSelector = new Lang.Class({
|
|||||||
// - cancel the search
|
// - cancel the search
|
||||||
this.reset();
|
this.reset();
|
||||||
}
|
}
|
||||||
} else if (!(global.stage.get_key_focus() instanceof Clutter.Text) &&
|
|
||||||
(event.type() == Clutter.EventType.KEY_PRESS ||
|
|
||||||
event.type() == Clutter.EventType.KEY_RELEASE)) {
|
|
||||||
let unichar = event.get_key_unicode();
|
|
||||||
|
|
||||||
if (GLib.unichar_isprint(unichar)) {
|
|
||||||
this._text.grab_key_focus();
|
|
||||||
return this._text.event(event, false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
|
@ -660,7 +660,6 @@ var WindowOverlay = new Lang.Class({
|
|||||||
if (this._hidden)
|
if (this._hidden)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this._windowClone.actor.grab_key_focus();
|
|
||||||
this._animateVisible();
|
this._animateVisible();
|
||||||
this.emit('show-close-button');
|
this.emit('show-close-button');
|
||||||
},
|
},
|
||||||
@ -1852,7 +1851,12 @@ var Workspace = new Lang.Class({
|
|||||||
|
|
||||||
this.actor.add_actor(clone.actor);
|
this.actor.add_actor(clone.actor);
|
||||||
|
|
||||||
overlay.connect('show-close-button', this._onShowOverlayClose.bind(this));
|
overlay.connect('show-close-button', () => {
|
||||||
|
let focus = global.stage.key_focus;
|
||||||
|
if (focus == null || this.actor.contains(focus))
|
||||||
|
clone.actor.grab_key_focus();
|
||||||
|
this._onShowOverlayClose(overlay);
|
||||||
|
});
|
||||||
|
|
||||||
if (this._windows.length == 0)
|
if (this._windows.length == 0)
|
||||||
clone.setStackAbove(null);
|
clone.setStackAbove(null);
|
||||||
|
@ -275,8 +275,8 @@ var WorkspaceThumbnail = new Lang.Class({
|
|||||||
|
|
||||||
this._createBackground();
|
this._createBackground();
|
||||||
|
|
||||||
let monitor = Main.layoutManager.primaryMonitor;
|
let workArea = Main.layoutManager.getWorkAreaForMonitor(this.monitorIndex);
|
||||||
this.setPorthole(monitor.x, monitor.y, monitor.width, monitor.height);
|
this.setPorthole(workArea.x, workArea.y, workArea.width, workArea.height);
|
||||||
|
|
||||||
let windows = global.get_window_actors().filter(actor => {
|
let windows = global.get_window_actors().filter(actor => {
|
||||||
let win = actor.meta_window;
|
let win = actor.meta_window;
|
||||||
@ -321,8 +321,6 @@ var WorkspaceThumbnail = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setPorthole(x, y, width, height) {
|
setPorthole(x, y, width, height) {
|
||||||
this._portholeX = x;
|
|
||||||
this._portholeY = y;
|
|
||||||
this.actor.set_size(width, height);
|
this.actor.set_size(width, height);
|
||||||
this._contents.set_position(-x, -y);
|
this._contents.set_position(-x, -y);
|
||||||
},
|
},
|
||||||
@ -675,11 +673,7 @@ var ThumbnailsBox = new Lang.Class({
|
|||||||
this._settings.connect('changed::dynamic-workspaces',
|
this._settings.connect('changed::dynamic-workspaces',
|
||||||
this._updateSwitcherVisibility.bind(this));
|
this._updateSwitcherVisibility.bind(this));
|
||||||
|
|
||||||
Main.layoutManager.connect('monitors-changed', () => {
|
Main.layoutManager.connect('monitors-changed', this._rebuildThumbnails.bind(this));
|
||||||
this._destroyThumbnails();
|
|
||||||
if (Main.overview.visible)
|
|
||||||
this._createThumbnails();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_updateSwitcherVisibility() {
|
_updateSwitcherVisibility() {
|
||||||
@ -872,6 +866,9 @@ var ThumbnailsBox = new Lang.Class({
|
|||||||
Main.overview.connect('windows-restacked',
|
Main.overview.connect('windows-restacked',
|
||||||
this._syncStacking.bind(this));
|
this._syncStacking.bind(this));
|
||||||
|
|
||||||
|
this._workareasChangedId =
|
||||||
|
global.screen.connect('workareas-changed', this._rebuildThumbnails.bind(this));
|
||||||
|
|
||||||
this._targetScale = 0;
|
this._targetScale = 0;
|
||||||
this._scale = 0;
|
this._scale = 0;
|
||||||
this._pendingScaleUpdate = false;
|
this._pendingScaleUpdate = false;
|
||||||
@ -887,6 +884,9 @@ var ThumbnailsBox = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_destroyThumbnails() {
|
_destroyThumbnails() {
|
||||||
|
if (this._thumbnails.length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if (this._switchWorkspaceNotifyId > 0) {
|
if (this._switchWorkspaceNotifyId > 0) {
|
||||||
global.window_manager.disconnect(this._switchWorkspaceNotifyId);
|
global.window_manager.disconnect(this._switchWorkspaceNotifyId);
|
||||||
this._switchWorkspaceNotifyId = 0;
|
this._switchWorkspaceNotifyId = 0;
|
||||||
@ -901,12 +901,24 @@ var ThumbnailsBox = new Lang.Class({
|
|||||||
this._syncStackingId = 0;
|
this._syncStackingId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this._workareasChangedId > 0) {
|
||||||
|
global.screen.disconnect(this._workareasChangedId);
|
||||||
|
this._workareasChangedId = 0;
|
||||||
|
}
|
||||||
|
|
||||||
for (let w = 0; w < this._thumbnails.length; w++)
|
for (let w = 0; w < this._thumbnails.length; w++)
|
||||||
this._thumbnails[w].destroy();
|
this._thumbnails[w].destroy();
|
||||||
this._thumbnails = [];
|
this._thumbnails = [];
|
||||||
this._porthole = null;
|
this._porthole = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_rebuildThumbnails() {
|
||||||
|
this._destroyThumbnails();
|
||||||
|
|
||||||
|
if (Main.overview.visible)
|
||||||
|
this._createThumbnails();
|
||||||
|
},
|
||||||
|
|
||||||
_workspacesChanged() {
|
_workspacesChanged() {
|
||||||
let validThumbnails =
|
let validThumbnails =
|
||||||
this._thumbnails.filter(t => t.state <= ThumbnailState.NORMAL);
|
this._thumbnails.filter(t => t.state <= ThumbnailState.NORMAL);
|
||||||
@ -1159,7 +1171,7 @@ var ThumbnailsBox = new Lang.Class({
|
|||||||
// The "porthole" is the portion of the screen that we show in the
|
// The "porthole" is the portion of the screen that we show in the
|
||||||
// workspaces
|
// workspaces
|
||||||
_ensurePorthole() {
|
_ensurePorthole() {
|
||||||
if (!Main.layoutManager.primaryMonitor)
|
if (!Main.layoutManager.primaryMonitor || !Main.overview.visible)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!this._porthole)
|
if (!this._porthole)
|
||||||
|
12
meson.build
12
meson.build
@ -1,12 +1,12 @@
|
|||||||
project('gnome-shell', 'c',
|
project('gnome-shell', 'c',
|
||||||
version: '3.27.91',
|
version: '3.29.2',
|
||||||
meson_version: '>= 0.42.0',
|
meson_version: '>= 0.42.0',
|
||||||
license: 'GPLv2+'
|
license: 'GPLv2+'
|
||||||
)
|
)
|
||||||
|
|
||||||
# We depend on a specific version of the libmutter API. The mutter variants of
|
# We depend on a specific version of the libmutter API. The mutter variants of
|
||||||
# the Cogl and Clutter libraries also use this API version.
|
# the Cogl and Clutter libraries also use this API version.
|
||||||
mutter_api_version = '1'
|
mutter_api_version = '2'
|
||||||
|
|
||||||
clutter_pc = 'mutter-clutter-' + mutter_api_version
|
clutter_pc = 'mutter-clutter-' + mutter_api_version
|
||||||
cogl_pc = 'mutter-cogl-' + mutter_api_version
|
cogl_pc = 'mutter-cogl-' + mutter_api_version
|
||||||
@ -18,12 +18,12 @@ ecal_req = '>= 3.5.3'
|
|||||||
eds_req = '>= 3.17.2'
|
eds_req = '>= 3.17.2'
|
||||||
gcr_req = '>= 3.7.5'
|
gcr_req = '>= 3.7.5'
|
||||||
gdesktop_req = '>= 3.7.90'
|
gdesktop_req = '>= 3.7.90'
|
||||||
gio_req = '>= 2.53.0'
|
gio_req = '>= 2.56.0'
|
||||||
gi_req = '>= 1.49.1'
|
gi_req = '>= 1.49.1'
|
||||||
gjs_req = '>= 1.47.0'
|
gjs_req = '>= 1.47.0'
|
||||||
gtk_req = '>= 3.15.0'
|
gtk_req = '>= 3.15.0'
|
||||||
json_glib_req = '>= 0.13.2'
|
json_glib_req = '>= 0.13.2'
|
||||||
mutter_req = '>= 3.27.91'
|
mutter_req = '>= 3.29.2'
|
||||||
polkit_req = '>= 0.100'
|
polkit_req = '>= 0.100'
|
||||||
schemas_req = '>= 3.21.3'
|
schemas_req = '>= 3.21.3'
|
||||||
startup_req = '>= 0.11'
|
startup_req = '>= 0.11'
|
||||||
@ -31,7 +31,7 @@ ibus_req = '>= 1.5.2'
|
|||||||
|
|
||||||
bt_req = '>= 3.9.0'
|
bt_req = '>= 3.9.0'
|
||||||
gst_req = '>= 0.11.92'
|
gst_req = '>= 0.11.92'
|
||||||
nm_req = '>= 0.9.8'
|
nm_req = '>= 1.10.4'
|
||||||
secret_req = '>= 0.18'
|
secret_req = '>= 0.18'
|
||||||
|
|
||||||
gnome = import('gnome')
|
gnome = import('gnome')
|
||||||
@ -189,3 +189,5 @@ subdir('tests')
|
|||||||
if get_option('gtk_doc')
|
if get_option('gtk_doc')
|
||||||
subdir('docs/reference')
|
subdir('docs/reference')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
meson.add_install_script('meson/meson-postinstall.sh')
|
||||||
|
10
meson/meson-postinstall.sh
Executable file
10
meson/meson-postinstall.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Package managers set this so we don't need to run
|
||||||
|
if [ -z "$DESTDIR" ]; then
|
||||||
|
echo Compiling GSettings schemas...
|
||||||
|
glib-compile-schemas ${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas
|
||||||
|
|
||||||
|
echo Updating desktop database...
|
||||||
|
update-desktop-database -q ${MESON_INSTALL_PREFIX}/share/applications
|
||||||
|
fi
|
124
po/de.po
124
po/de.po
@ -10,7 +10,7 @@
|
|||||||
# Mario Klug <mario@klug.me>, 2010.
|
# Mario Klug <mario@klug.me>, 2010.
|
||||||
# Jakob Kramer <jakob.kramer@gmx.de>, 2010.
|
# Jakob Kramer <jakob.kramer@gmx.de>, 2010.
|
||||||
# Paul Seyfert <pseyfert@mathphys.fsk.uni-heidelberg.de>, 2010-2011.
|
# Paul Seyfert <pseyfert@mathphys.fsk.uni-heidelberg.de>, 2010-2011.
|
||||||
# Wolfgang Stöggl <c72578@yahoo.de>, 2012, 2014, 2017.
|
# Wolfgang Stöggl <c72578@yahoo.de>, 2012, 2014, 2017-2018.
|
||||||
# Christian Kirbach <christian.kirbach@gmail.com>, 2009-2013.
|
# Christian Kirbach <christian.kirbach@gmail.com>, 2009-2013.
|
||||||
# Tobias Endrigkeit <tobiasendrigkeit@outlook.com>, 2012-2013.
|
# Tobias Endrigkeit <tobiasendrigkeit@outlook.com>, 2012-2013.
|
||||||
# Benjamin Steinwender <b@stbe.at>, 2013-2014.
|
# Benjamin Steinwender <b@stbe.at>, 2013-2014.
|
||||||
@ -21,18 +21,17 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: gnome-shell master\n"
|
"Project-Id-Version: gnome-shell master\n"
|
||||||
"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-"
|
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell/issues\n"
|
||||||
"shell&keywords=I18N+L10N&component=general\n"
|
"POT-Creation-Date: 2018-02-20 23:03+0000\n"
|
||||||
"POT-Creation-Date: 2018-01-17 18:05+0000\n"
|
"PO-Revision-Date: 2018-02-23 15:54+0100\n"
|
||||||
"PO-Revision-Date: 2018-01-19 22:18+0100\n"
|
"Last-Translator: Wolfgang Stoeggl <c72578@yahoo.de>\n"
|
||||||
"Last-Translator: Mario Blättermann <mario.blaettermann@gmail.com>\n"
|
|
||||||
"Language-Team: Deutsch <gnome-de@gnome.org>\n"
|
"Language-Team: Deutsch <gnome-de@gnome.org>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: Poedit 2.0.5\n"
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
|
||||||
#: data/50-gnome-shell-system.xml:6
|
#: data/50-gnome-shell-system.xml:6
|
||||||
msgid "System"
|
msgid "System"
|
||||||
@ -374,20 +373,20 @@ msgctxt "button"
|
|||||||
msgid "Sign In"
|
msgid "Sign In"
|
||||||
msgstr "Anmelden"
|
msgstr "Anmelden"
|
||||||
|
|
||||||
#: js/gdm/loginDialog.js:308
|
#: js/gdm/loginDialog.js:322
|
||||||
msgid "Choose Session"
|
msgid "Choose Session"
|
||||||
msgstr "Sitzung wählen"
|
msgstr "Sitzung wählen"
|
||||||
|
|
||||||
#. translators: this message is shown below the user list on the
|
#. translators: this message is shown below the user list on the
|
||||||
#. login screen. It can be activated to reveal an entry for
|
#. login screen. It can be activated to reveal an entry for
|
||||||
#. manually entering the username.
|
#. manually entering the username.
|
||||||
#: js/gdm/loginDialog.js:458
|
#: js/gdm/loginDialog.js:468
|
||||||
msgid "Not listed?"
|
msgid "Not listed?"
|
||||||
msgstr "Nicht aufgeführt?"
|
msgstr "Nicht aufgeführt?"
|
||||||
|
|
||||||
#. Translators: this message is shown below the username entry field
|
#. Translators: this message is shown below the username entry field
|
||||||
#. to clue the user in on how to login to the local network realm
|
#. to clue the user in on how to login to the local network realm
|
||||||
#: js/gdm/loginDialog.js:888
|
#: js/gdm/loginDialog.js:898
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "(e.g., user or %s)"
|
msgid "(e.g., user or %s)"
|
||||||
msgstr "(z.B. Benutzer oder %s)"
|
msgstr "(z.B. Benutzer oder %s)"
|
||||||
@ -395,12 +394,12 @@ msgstr "(z.B. Benutzer oder %s)"
|
|||||||
#. TTLS and PEAP are actually much more complicated, but this complication
|
#. TTLS and PEAP are actually much more complicated, but this complication
|
||||||
#. is not visible here since we only care about phase2 authentication
|
#. is not visible here since we only care about phase2 authentication
|
||||||
#. (and don't even care of which one)
|
#. (and don't even care of which one)
|
||||||
#: js/gdm/loginDialog.js:893 js/ui/components/networkAgent.js:243
|
#: js/gdm/loginDialog.js:903 js/ui/components/networkAgent.js:243
|
||||||
#: js/ui/components/networkAgent.js:261
|
#: js/ui/components/networkAgent.js:261
|
||||||
msgid "Username: "
|
msgid "Username: "
|
||||||
msgstr "Benutzername: "
|
msgstr "Benutzername: "
|
||||||
|
|
||||||
#: js/gdm/loginDialog.js:1236
|
#: js/gdm/loginDialog.js:1246
|
||||||
msgid "Login Window"
|
msgid "Login Window"
|
||||||
msgstr "Anmeldefenster"
|
msgstr "Anmeldefenster"
|
||||||
|
|
||||||
@ -413,7 +412,7 @@ msgstr "Anmeldung fehlgeschlagen"
|
|||||||
#. as a cue to display our own message.
|
#. as a cue to display our own message.
|
||||||
#. Translators: this message is shown below the password entry field
|
#. Translators: this message is shown below the password entry field
|
||||||
#. to indicate the user can swipe their finger instead
|
#. to indicate the user can swipe their finger instead
|
||||||
#: js/gdm/util.js:478
|
#: js/gdm/util.js:483
|
||||||
msgid "(or swipe finger)"
|
msgid "(or swipe finger)"
|
||||||
msgstr "(oder wischen Sie mit einem Finger)"
|
msgstr "(oder wischen Sie mit einem Finger)"
|
||||||
|
|
||||||
@ -655,23 +654,23 @@ msgstr "Häufig"
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "Alle"
|
msgstr "Alle"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1918
|
#: js/ui/appDisplay.js:1919
|
||||||
msgid "New Window"
|
msgid "New Window"
|
||||||
msgstr "Neues Fenster"
|
msgstr "Neues Fenster"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1932
|
#: js/ui/appDisplay.js:1933
|
||||||
msgid "Launch using Dedicated Graphics Card"
|
msgid "Launch using Dedicated Graphics Card"
|
||||||
msgstr "Mit dedizierter Grafikkarte starten"
|
msgstr "Mit dedizierter Grafikkarte starten"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1959 js/ui/dash.js:285
|
#: js/ui/appDisplay.js:1960 js/ui/dash.js:285
|
||||||
msgid "Remove from Favorites"
|
msgid "Remove from Favorites"
|
||||||
msgstr "Aus Favoriten entfernen"
|
msgstr "Aus Favoriten entfernen"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1965
|
#: js/ui/appDisplay.js:1966
|
||||||
msgid "Add to Favorites"
|
msgid "Add to Favorites"
|
||||||
msgstr "Zu Favoriten hinzufügen"
|
msgstr "Zu Favoriten hinzufügen"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1975
|
#: js/ui/appDisplay.js:1976
|
||||||
msgid "Show Details"
|
msgid "Show Details"
|
||||||
msgstr "Details anzeigen"
|
msgstr "Details anzeigen"
|
||||||
|
|
||||||
@ -718,7 +717,7 @@ msgid "Settings"
|
|||||||
msgstr "Einstellungen"
|
msgstr "Einstellungen"
|
||||||
|
|
||||||
#. Translators: Enter 0-6 (Sunday-Saturday) for non-work days. Examples: "0" (Sunday) "6" (Saturday) "06" (Sunday and Saturday).
|
#. Translators: Enter 0-6 (Sunday-Saturday) for non-work days. Examples: "0" (Sunday) "6" (Saturday) "06" (Sunday and Saturday).
|
||||||
#: js/ui/calendar.js:47
|
#: js/ui/calendar.js:44
|
||||||
msgctxt "calendar-no-work"
|
msgctxt "calendar-no-work"
|
||||||
msgid "06"
|
msgid "06"
|
||||||
msgstr "06"
|
msgstr "06"
|
||||||
@ -728,47 +727,70 @@ msgstr "06"
|
|||||||
#. * NOTE: These grid abbreviations are always shown together
|
#. * NOTE: These grid abbreviations are always shown together
|
||||||
#. * and in order, e.g. "S M T W T F S".
|
#. * and in order, e.g. "S M T W T F S".
|
||||||
#.
|
#.
|
||||||
#: js/ui/calendar.js:76
|
#: js/ui/calendar.js:73
|
||||||
msgctxt "grid sunday"
|
msgctxt "grid sunday"
|
||||||
msgid "S"
|
msgid "S"
|
||||||
msgstr "S"
|
msgstr "S"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Monday
|
#. Translators: Calendar grid abbreviation for Monday
|
||||||
#: js/ui/calendar.js:78
|
#: js/ui/calendar.js:75
|
||||||
msgctxt "grid monday"
|
msgctxt "grid monday"
|
||||||
msgid "M"
|
msgid "M"
|
||||||
msgstr "M"
|
msgstr "M"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Tuesday
|
#. Translators: Calendar grid abbreviation for Tuesday
|
||||||
#: js/ui/calendar.js:80
|
#: js/ui/calendar.js:77
|
||||||
msgctxt "grid tuesday"
|
msgctxt "grid tuesday"
|
||||||
msgid "T"
|
msgid "T"
|
||||||
msgstr "D"
|
msgstr "D"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Wednesday
|
#. Translators: Calendar grid abbreviation for Wednesday
|
||||||
#: js/ui/calendar.js:82
|
#: js/ui/calendar.js:79
|
||||||
msgctxt "grid wednesday"
|
msgctxt "grid wednesday"
|
||||||
msgid "W"
|
msgid "W"
|
||||||
msgstr "M"
|
msgstr "M"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Thursday
|
#. Translators: Calendar grid abbreviation for Thursday
|
||||||
#: js/ui/calendar.js:84
|
#: js/ui/calendar.js:81
|
||||||
msgctxt "grid thursday"
|
msgctxt "grid thursday"
|
||||||
msgid "T"
|
msgid "T"
|
||||||
msgstr "D"
|
msgstr "D"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Friday
|
#. Translators: Calendar grid abbreviation for Friday
|
||||||
#: js/ui/calendar.js:86
|
#: js/ui/calendar.js:83
|
||||||
msgctxt "grid friday"
|
msgctxt "grid friday"
|
||||||
msgid "F"
|
msgid "F"
|
||||||
msgstr "F"
|
msgstr "F"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Saturday
|
#. Translators: Calendar grid abbreviation for Saturday
|
||||||
#: js/ui/calendar.js:88
|
#: js/ui/calendar.js:85
|
||||||
msgctxt "grid saturday"
|
msgctxt "grid saturday"
|
||||||
msgid "S"
|
msgid "S"
|
||||||
msgstr "S"
|
msgstr "S"
|
||||||
|
|
||||||
|
#. *
|
||||||
|
#. * Translators: The header displaying just the month name
|
||||||
|
#. * standalone, when this is a month of the current year.
|
||||||
|
#. * "%OB" is the new format specifier introduced in glibc 2.27,
|
||||||
|
#. * in most cases you should not change it.
|
||||||
|
#.
|
||||||
|
#: js/ui/calendar.js:382
|
||||||
|
msgid "%OB"
|
||||||
|
msgstr "%OB"
|
||||||
|
|
||||||
|
#. *
|
||||||
|
#. * Translators: The header displaying the month name and the year
|
||||||
|
#. * number, when this is a month of a different year. You can
|
||||||
|
#. * reorder the format specifiers or add other modifications
|
||||||
|
#. * according to the requirements of your language.
|
||||||
|
#. * "%OB" is the new format specifier introduced in glibc 2.27,
|
||||||
|
#. * in most cases you should not use the old "%B" here unless you
|
||||||
|
#. * absolutely know what you are doing.
|
||||||
|
#.
|
||||||
|
#: js/ui/calendar.js:392
|
||||||
|
msgid "%OB %Y"
|
||||||
|
msgstr "%OB %Y"
|
||||||
|
|
||||||
#: js/ui/calendar.js:449
|
#: js/ui/calendar.js:449
|
||||||
msgid "Previous month"
|
msgid "Previous month"
|
||||||
msgstr "Vorheriger Monat"
|
msgstr "Vorheriger Monat"
|
||||||
@ -1306,9 +1328,9 @@ msgstr "Ausschalten"
|
|||||||
msgid "Leave Off"
|
msgid "Leave Off"
|
||||||
msgstr "Ausgeschaltet lassen"
|
msgstr "Ausgeschaltet lassen"
|
||||||
|
|
||||||
#: js/ui/keyboard.js:739 js/ui/status/keyboard.js:783
|
#: js/ui/keyboard.js:198
|
||||||
msgid "Keyboard"
|
msgid "Region & Language Settings"
|
||||||
msgstr "Tastatur"
|
msgstr "Regions- und Spracheinstellungen"
|
||||||
|
|
||||||
#: js/ui/lookingGlass.js:642
|
#: js/ui/lookingGlass.js:642
|
||||||
msgid "No extensions installed"
|
msgid "No extensions installed"
|
||||||
@ -1447,7 +1469,7 @@ msgctxt "System menu in the top bar"
|
|||||||
msgid "System"
|
msgid "System"
|
||||||
msgstr "System"
|
msgstr "System"
|
||||||
|
|
||||||
#: js/ui/panel.js:812
|
#: js/ui/panel.js:814
|
||||||
msgid "Top Bar"
|
msgid "Top Bar"
|
||||||
msgstr "Oberes Panel"
|
msgstr "Oberes Panel"
|
||||||
|
|
||||||
@ -1514,11 +1536,11 @@ msgstr "GNOME muss den Bildschirm sperren"
|
|||||||
#.
|
#.
|
||||||
#. XXX: another option is to kick the user into the gdm login
|
#. XXX: another option is to kick the user into the gdm login
|
||||||
#. screen, where we're not affected by grabs
|
#. screen, where we're not affected by grabs
|
||||||
#: js/ui/screenShield.js:836 js/ui/screenShield.js:1308
|
#: js/ui/screenShield.js:836 js/ui/screenShield.js:1311
|
||||||
msgid "Unable to lock"
|
msgid "Unable to lock"
|
||||||
msgstr "Sperrung fehlgeschlagen"
|
msgstr "Sperrung fehlgeschlagen"
|
||||||
|
|
||||||
#: js/ui/screenShield.js:837 js/ui/screenShield.js:1309
|
#: js/ui/screenShield.js:837 js/ui/screenShield.js:1312
|
||||||
msgid "Lock was blocked by an application"
|
msgid "Lock was blocked by an application"
|
||||||
msgstr "Sperrung wurde von einer Anwendung blockiert"
|
msgstr "Sperrung wurde von einer Anwendung blockiert"
|
||||||
|
|
||||||
@ -1633,6 +1655,10 @@ msgstr "An"
|
|||||||
msgid "Brightness"
|
msgid "Brightness"
|
||||||
msgstr "Helligkeit"
|
msgstr "Helligkeit"
|
||||||
|
|
||||||
|
#: js/ui/status/keyboard.js:783
|
||||||
|
msgid "Keyboard"
|
||||||
|
msgstr "Tastatur"
|
||||||
|
|
||||||
#: js/ui/status/keyboard.js:806
|
#: js/ui/status/keyboard.js:806
|
||||||
msgid "Show Keyboard Layout"
|
msgid "Show Keyboard Layout"
|
||||||
msgstr "Tastaturbelegung anzeigen"
|
msgstr "Tastaturbelegung anzeigen"
|
||||||
@ -1963,6 +1989,32 @@ msgstr "In Bereitschaft versetzen"
|
|||||||
msgid "Power Off"
|
msgid "Power Off"
|
||||||
msgstr "Ausschalten"
|
msgstr "Ausschalten"
|
||||||
|
|
||||||
|
#: js/ui/status/thunderbolt.js:272
|
||||||
|
msgid "Thunderbolt"
|
||||||
|
msgstr "Thunderbolt"
|
||||||
|
|
||||||
|
#. we are done
|
||||||
|
#: js/ui/status/thunderbolt.js:330
|
||||||
|
msgid "Unknown Thunderbolt device"
|
||||||
|
msgstr "Unbekanntes Thunderbolt-Gerät"
|
||||||
|
|
||||||
|
#: js/ui/status/thunderbolt.js:331
|
||||||
|
msgid ""
|
||||||
|
"New device has been detected while you were away. Please disconnect and "
|
||||||
|
"reconnect the device to start using it."
|
||||||
|
msgstr ""
|
||||||
|
"Ein neues Gerät ist in der Zwischenzeit erkannt worden. Bitte trennen Sie "
|
||||||
|
"die Verbindung des Gerätes und schließen es wieder an, um es zu verwenden."
|
||||||
|
|
||||||
|
#: js/ui/status/thunderbolt.js:336
|
||||||
|
msgid "Thunderbolt authorization error"
|
||||||
|
msgstr "Thunderbolt-Legitimierungsfehler"
|
||||||
|
|
||||||
|
#: js/ui/status/thunderbolt.js:337
|
||||||
|
#, javascript-format
|
||||||
|
msgid "Could not authorize the thunderbolt device: %s"
|
||||||
|
msgstr "Das Thunderbolt-Gerät %s konnte nicht legitimiert werden"
|
||||||
|
|
||||||
#: js/ui/status/volume.js:128
|
#: js/ui/status/volume.js:128
|
||||||
msgid "Volume changed"
|
msgid "Volume changed"
|
||||||
msgstr "Lautstärke geändert"
|
msgstr "Lautstärke geändert"
|
||||||
@ -2123,21 +2175,21 @@ msgstr "Evolution-Kalender"
|
|||||||
msgid "evolution"
|
msgid "evolution"
|
||||||
msgstr "evolution"
|
msgstr "evolution"
|
||||||
|
|
||||||
#: src/main.c:437
|
#: src/main.c:432
|
||||||
msgid "Print version"
|
msgid "Print version"
|
||||||
msgstr "Version ausgeben"
|
msgstr "Version ausgeben"
|
||||||
|
|
||||||
#: src/main.c:443
|
#: src/main.c:438
|
||||||
msgid "Mode used by GDM for login screen"
|
msgid "Mode used by GDM for login screen"
|
||||||
msgstr "Der durch GDM im Anmeldefenster verwendete Modus"
|
msgstr "Der durch GDM im Anmeldefenster verwendete Modus"
|
||||||
|
|
||||||
#: src/main.c:449
|
#: src/main.c:444
|
||||||
msgid "Use a specific mode, e.g. “gdm” for login screen"
|
msgid "Use a specific mode, e.g. “gdm” for login screen"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Verwenden Sie einen spezifischen Modus wie z.B. »gdm« für den "
|
"Verwenden Sie einen spezifischen Modus wie z.B. »gdm« für den "
|
||||||
"Anmeldebildschirm"
|
"Anmeldebildschirm"
|
||||||
|
|
||||||
#: src/main.c:455
|
#: src/main.c:450
|
||||||
msgid "List possible modes"
|
msgid "List possible modes"
|
||||||
msgstr "Die möglichen Modi auflisten"
|
msgstr "Die möglichen Modi auflisten"
|
||||||
|
|
||||||
|
376
po/pt_BR.po
376
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
78
po/tr.po
78
po/tr.po
@ -7,17 +7,17 @@
|
|||||||
# Bayram Güçlü <byrmgcl@yandex.com.tr>, 2014.
|
# Bayram Güçlü <byrmgcl@yandex.com.tr>, 2014.
|
||||||
# sabri ünal <yakushabb@gmail.com>, 2014.
|
# sabri ünal <yakushabb@gmail.com>, 2014.
|
||||||
# Gökhan Gurbetoğlu <ggurbet@gmail.com>, 2014.
|
# Gökhan Gurbetoğlu <ggurbet@gmail.com>, 2014.
|
||||||
# Furkan Ahmet Kara <furkanahmetkara.fk@gmail.com>, 2017.
|
|
||||||
# Muhammet Kara <muhammetk@gmail.com>, 2011, 2012, 2013, 2014, 2015, 2016, 2017.
|
# Muhammet Kara <muhammetk@gmail.com>, 2011, 2012, 2013, 2014, 2015, 2016, 2017.
|
||||||
# Emin Tufan Çetin <etcetin@gmail.com>, 2017, 2018.
|
# Emin Tufan Çetin <etcetin@gmail.com>, 2017, 2018.
|
||||||
|
# Furkan Ahmet Kara <furkanahmetkara.fk@gmail.com>, 2017, 2018.
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: gnome-shell\n"
|
"Project-Id-Version: gnome-shell\n"
|
||||||
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell/issues\n"
|
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell/issues\n"
|
||||||
"POT-Creation-Date: 2018-02-06 01:15+0000\n"
|
"POT-Creation-Date: 2018-02-20 23:03+0000\n"
|
||||||
"PO-Revision-Date: 2018-02-07 13:19+0300\n"
|
"PO-Revision-Date: 2018-02-24 16:57+0200\n"
|
||||||
"Last-Translator: Emin Tufan Çetin <etcetin@gmail.com>\n"
|
"Last-Translator: Furkan Ahmet Kara <furkanahmetkara.fk@gmail.com>\n"
|
||||||
"Language-Team: Türkçe <gnome-turk@gnome.org>\n"
|
"Language-Team: Türkçe <gnome-turk@gnome.org>\n"
|
||||||
"Language: tr\n"
|
"Language: tr\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -365,20 +365,20 @@ msgctxt "button"
|
|||||||
msgid "Sign In"
|
msgid "Sign In"
|
||||||
msgstr "Giriş"
|
msgstr "Giriş"
|
||||||
|
|
||||||
#: js/gdm/loginDialog.js:308
|
#: js/gdm/loginDialog.js:322
|
||||||
msgid "Choose Session"
|
msgid "Choose Session"
|
||||||
msgstr "Oturum Seç"
|
msgstr "Oturum Seç"
|
||||||
|
|
||||||
#. translators: this message is shown below the user list on the
|
#. translators: this message is shown below the user list on the
|
||||||
#. login screen. It can be activated to reveal an entry for
|
#. login screen. It can be activated to reveal an entry for
|
||||||
#. manually entering the username.
|
#. manually entering the username.
|
||||||
#: js/gdm/loginDialog.js:458
|
#: js/gdm/loginDialog.js:468
|
||||||
msgid "Not listed?"
|
msgid "Not listed?"
|
||||||
msgstr "Listede yok mu?"
|
msgstr "Listede yok mu?"
|
||||||
|
|
||||||
#. Translators: this message is shown below the username entry field
|
#. Translators: this message is shown below the username entry field
|
||||||
#. to clue the user in on how to login to the local network realm
|
#. to clue the user in on how to login to the local network realm
|
||||||
#: js/gdm/loginDialog.js:888
|
#: js/gdm/loginDialog.js:898
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "(e.g., user or %s)"
|
msgid "(e.g., user or %s)"
|
||||||
msgstr "(örneğin, kullanıcı veya %s)"
|
msgstr "(örneğin, kullanıcı veya %s)"
|
||||||
@ -386,12 +386,12 @@ msgstr "(örneğin, kullanıcı veya %s)"
|
|||||||
#. TTLS and PEAP are actually much more complicated, but this complication
|
#. TTLS and PEAP are actually much more complicated, but this complication
|
||||||
#. is not visible here since we only care about phase2 authentication
|
#. is not visible here since we only care about phase2 authentication
|
||||||
#. (and don't even care of which one)
|
#. (and don't even care of which one)
|
||||||
#: js/gdm/loginDialog.js:893 js/ui/components/networkAgent.js:243
|
#: js/gdm/loginDialog.js:903 js/ui/components/networkAgent.js:243
|
||||||
#: js/ui/components/networkAgent.js:261
|
#: js/ui/components/networkAgent.js:261
|
||||||
msgid "Username: "
|
msgid "Username: "
|
||||||
msgstr "Kullanıcı Adı: "
|
msgstr "Kullanıcı Adı: "
|
||||||
|
|
||||||
#: js/gdm/loginDialog.js:1236
|
#: js/gdm/loginDialog.js:1246
|
||||||
msgid "Login Window"
|
msgid "Login Window"
|
||||||
msgstr "Oturum Açma Penceresi"
|
msgstr "Oturum Açma Penceresi"
|
||||||
|
|
||||||
@ -404,7 +404,7 @@ msgstr "Kimlik doğrulama hatası"
|
|||||||
#. as a cue to display our own message.
|
#. as a cue to display our own message.
|
||||||
#. Translators: this message is shown below the password entry field
|
#. Translators: this message is shown below the password entry field
|
||||||
#. to indicate the user can swipe their finger instead
|
#. to indicate the user can swipe their finger instead
|
||||||
#: js/gdm/util.js:478
|
#: js/gdm/util.js:483
|
||||||
msgid "(or swipe finger)"
|
msgid "(or swipe finger)"
|
||||||
msgstr "(ya da parmak izi okut)"
|
msgstr "(ya da parmak izi okut)"
|
||||||
|
|
||||||
@ -639,23 +639,23 @@ msgstr "Sık Sık"
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "Tümü"
|
msgstr "Tümü"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1918
|
#: js/ui/appDisplay.js:1919
|
||||||
msgid "New Window"
|
msgid "New Window"
|
||||||
msgstr "Yeni Pencere"
|
msgstr "Yeni Pencere"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1932
|
#: js/ui/appDisplay.js:1933
|
||||||
msgid "Launch using Dedicated Graphics Card"
|
msgid "Launch using Dedicated Graphics Card"
|
||||||
msgstr "Adanmış Ekran Kartıyla Başlat"
|
msgstr "Adanmış Ekran Kartıyla Başlat"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1959 js/ui/dash.js:285
|
#: js/ui/appDisplay.js:1960 js/ui/dash.js:285
|
||||||
msgid "Remove from Favorites"
|
msgid "Remove from Favorites"
|
||||||
msgstr "Sık Kullanılanlardan Çıkar"
|
msgstr "Sık Kullanılanlardan Çıkar"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1965
|
#: js/ui/appDisplay.js:1966
|
||||||
msgid "Add to Favorites"
|
msgid "Add to Favorites"
|
||||||
msgstr "Sık Kullanılanlara Ekle"
|
msgstr "Sık Kullanılanlara Ekle"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1975
|
#: js/ui/appDisplay.js:1976
|
||||||
msgid "Show Details"
|
msgid "Show Details"
|
||||||
msgstr "Ayrıntıları Göster"
|
msgstr "Ayrıntıları Göster"
|
||||||
|
|
||||||
@ -702,7 +702,7 @@ msgid "Settings"
|
|||||||
msgstr "Ayarlar"
|
msgstr "Ayarlar"
|
||||||
|
|
||||||
#. Translators: Enter 0-6 (Sunday-Saturday) for non-work days. Examples: "0" (Sunday) "6" (Saturday) "06" (Sunday and Saturday).
|
#. Translators: Enter 0-6 (Sunday-Saturday) for non-work days. Examples: "0" (Sunday) "6" (Saturday) "06" (Sunday and Saturday).
|
||||||
#: js/ui/calendar.js:47
|
#: js/ui/calendar.js:44
|
||||||
msgctxt "calendar-no-work"
|
msgctxt "calendar-no-work"
|
||||||
msgid "06"
|
msgid "06"
|
||||||
msgstr "06"
|
msgstr "06"
|
||||||
@ -712,47 +712,70 @@ msgstr "06"
|
|||||||
#. * NOTE: These grid abbreviations are always shown together
|
#. * NOTE: These grid abbreviations are always shown together
|
||||||
#. * and in order, e.g. "S M T W T F S".
|
#. * and in order, e.g. "S M T W T F S".
|
||||||
#.
|
#.
|
||||||
#: js/ui/calendar.js:76
|
#: js/ui/calendar.js:73
|
||||||
msgctxt "grid sunday"
|
msgctxt "grid sunday"
|
||||||
msgid "S"
|
msgid "S"
|
||||||
msgstr "P"
|
msgstr "P"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Monday
|
#. Translators: Calendar grid abbreviation for Monday
|
||||||
#: js/ui/calendar.js:78
|
#: js/ui/calendar.js:75
|
||||||
msgctxt "grid monday"
|
msgctxt "grid monday"
|
||||||
msgid "M"
|
msgid "M"
|
||||||
msgstr "P"
|
msgstr "P"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Tuesday
|
#. Translators: Calendar grid abbreviation for Tuesday
|
||||||
#: js/ui/calendar.js:80
|
#: js/ui/calendar.js:77
|
||||||
msgctxt "grid tuesday"
|
msgctxt "grid tuesday"
|
||||||
msgid "T"
|
msgid "T"
|
||||||
msgstr "S"
|
msgstr "S"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Wednesday
|
#. Translators: Calendar grid abbreviation for Wednesday
|
||||||
#: js/ui/calendar.js:82
|
#: js/ui/calendar.js:79
|
||||||
msgctxt "grid wednesday"
|
msgctxt "grid wednesday"
|
||||||
msgid "W"
|
msgid "W"
|
||||||
msgstr "Ç"
|
msgstr "Ç"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Thursday
|
#. Translators: Calendar grid abbreviation for Thursday
|
||||||
#: js/ui/calendar.js:84
|
#: js/ui/calendar.js:81
|
||||||
msgctxt "grid thursday"
|
msgctxt "grid thursday"
|
||||||
msgid "T"
|
msgid "T"
|
||||||
msgstr "P"
|
msgstr "P"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Friday
|
#. Translators: Calendar grid abbreviation for Friday
|
||||||
#: js/ui/calendar.js:86
|
#: js/ui/calendar.js:83
|
||||||
msgctxt "grid friday"
|
msgctxt "grid friday"
|
||||||
msgid "F"
|
msgid "F"
|
||||||
msgstr "C"
|
msgstr "C"
|
||||||
|
|
||||||
#. Translators: Calendar grid abbreviation for Saturday
|
#. Translators: Calendar grid abbreviation for Saturday
|
||||||
#: js/ui/calendar.js:88
|
#: js/ui/calendar.js:85
|
||||||
msgctxt "grid saturday"
|
msgctxt "grid saturday"
|
||||||
msgid "S"
|
msgid "S"
|
||||||
msgstr "C"
|
msgstr "C"
|
||||||
|
|
||||||
|
#. *
|
||||||
|
#. * Translators: The header displaying just the month name
|
||||||
|
#. * standalone, when this is a month of the current year.
|
||||||
|
#. * "%OB" is the new format specifier introduced in glibc 2.27,
|
||||||
|
#. * in most cases you should not change it.
|
||||||
|
#.
|
||||||
|
#: js/ui/calendar.js:382
|
||||||
|
msgid "%OB"
|
||||||
|
msgstr "%OB"
|
||||||
|
|
||||||
|
#. *
|
||||||
|
#. * Translators: The header displaying the month name and the year
|
||||||
|
#. * number, when this is a month of a different year. You can
|
||||||
|
#. * reorder the format specifiers or add other modifications
|
||||||
|
#. * according to the requirements of your language.
|
||||||
|
#. * "%OB" is the new format specifier introduced in glibc 2.27,
|
||||||
|
#. * in most cases you should not use the old "%B" here unless you
|
||||||
|
#. * absolutely know what you are doing.
|
||||||
|
#.
|
||||||
|
#: js/ui/calendar.js:392
|
||||||
|
msgid "%OB %Y"
|
||||||
|
msgstr "%OB %Y"
|
||||||
|
|
||||||
#: js/ui/calendar.js:449
|
#: js/ui/calendar.js:449
|
||||||
msgid "Previous month"
|
msgid "Previous month"
|
||||||
msgstr "Önceki ay"
|
msgstr "Önceki ay"
|
||||||
@ -1217,12 +1240,10 @@ msgid "Allow"
|
|||||||
msgstr "İzin ver"
|
msgstr "İzin ver"
|
||||||
|
|
||||||
#: js/ui/kbdA11yDialog.js:33
|
#: js/ui/kbdA11yDialog.js:33
|
||||||
#| msgid "Slow Keys"
|
|
||||||
msgid "Slow Keys Turned On"
|
msgid "Slow Keys Turned On"
|
||||||
msgstr "Yavaş Tuşlar Açık"
|
msgstr "Yavaş Tuşlar Açık"
|
||||||
|
|
||||||
#: js/ui/kbdA11yDialog.js:34
|
#: js/ui/kbdA11yDialog.js:34
|
||||||
#| msgid "Slow Keys"
|
|
||||||
msgid "Slow Keys Turned Off"
|
msgid "Slow Keys Turned Off"
|
||||||
msgstr "Yavaş Tuşlar Kapalı"
|
msgstr "Yavaş Tuşlar Kapalı"
|
||||||
|
|
||||||
@ -1235,12 +1256,10 @@ msgstr ""
|
|||||||
"etkileyen Yavaş Tuşlar özelliğinin kısayoludur."
|
"etkileyen Yavaş Tuşlar özelliğinin kısayoludur."
|
||||||
|
|
||||||
#: js/ui/kbdA11yDialog.js:42
|
#: js/ui/kbdA11yDialog.js:42
|
||||||
#| msgid "Sticky Keys"
|
|
||||||
msgid "Sticky Keys Turned On"
|
msgid "Sticky Keys Turned On"
|
||||||
msgstr "Yapışkan Tuşlar Açık"
|
msgstr "Yapışkan Tuşlar Açık"
|
||||||
|
|
||||||
#: js/ui/kbdA11yDialog.js:43
|
#: js/ui/kbdA11yDialog.js:43
|
||||||
#| msgid "Sticky Keys"
|
|
||||||
msgid "Sticky Keys Turned Off"
|
msgid "Sticky Keys Turned Off"
|
||||||
msgstr "Yapışkan Tuşlar Kapalı"
|
msgstr "Yapışkan Tuşlar Kapalı"
|
||||||
|
|
||||||
@ -1283,7 +1302,6 @@ msgid "Leave Off"
|
|||||||
msgstr "Kapalı Bırak"
|
msgstr "Kapalı Bırak"
|
||||||
|
|
||||||
#: js/ui/keyboard.js:198
|
#: js/ui/keyboard.js:198
|
||||||
#| msgid "Date & Time Settings"
|
|
||||||
msgid "Region & Language Settings"
|
msgid "Region & Language Settings"
|
||||||
msgstr "Bölge ve Dil Ayarları"
|
msgstr "Bölge ve Dil Ayarları"
|
||||||
|
|
||||||
@ -1486,11 +1504,11 @@ msgstr "GNOME’un ekranı kilitlemesi gerekiyor"
|
|||||||
#.
|
#.
|
||||||
#. XXX: another option is to kick the user into the gdm login
|
#. XXX: another option is to kick the user into the gdm login
|
||||||
#. screen, where we're not affected by grabs
|
#. screen, where we're not affected by grabs
|
||||||
#: js/ui/screenShield.js:836 js/ui/screenShield.js:1308
|
#: js/ui/screenShield.js:836 js/ui/screenShield.js:1311
|
||||||
msgid "Unable to lock"
|
msgid "Unable to lock"
|
||||||
msgstr "Kilitlenemedi"
|
msgstr "Kilitlenemedi"
|
||||||
|
|
||||||
#: js/ui/screenShield.js:837 js/ui/screenShield.js:1309
|
#: js/ui/screenShield.js:837 js/ui/screenShield.js:1312
|
||||||
msgid "Lock was blocked by an application"
|
msgid "Lock was blocked by an application"
|
||||||
msgstr "Kilitleme bir uygulama tarafından engellendi"
|
msgstr "Kilitleme bir uygulama tarafından engellendi"
|
||||||
|
|
||||||
|
577
po/zh_CN.po
577
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
550
po/zh_TW.po
550
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
@ -590,6 +590,11 @@ app_load_events (App *app)
|
|||||||
g_list_free (app->live_views);
|
g_list_free (app->live_views);
|
||||||
app->live_views = NULL;
|
app->live_views = NULL;
|
||||||
|
|
||||||
|
if (!app->since || !app->until)
|
||||||
|
{
|
||||||
|
print_debug ("Skipping load of events, no time interval set yet");
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* timezone could have changed */
|
/* timezone could have changed */
|
||||||
app_update_timezone (app);
|
app_update_timezone (app);
|
||||||
|
|
||||||
|
@ -347,10 +347,10 @@ if options.perf == None:
|
|||||||
options.perf = 'core'
|
options.perf = 'core'
|
||||||
|
|
||||||
if options.extra_filter is None:
|
if options.extra_filter is None:
|
||||||
if options.hwtest:
|
options.extra_filter = []
|
||||||
options.extra_filter = ['Gedit']
|
|
||||||
else:
|
if options.perf == 'hwtest':
|
||||||
options.extra_filter = []
|
options.extra_filter.append('Gedit')
|
||||||
|
|
||||||
if args:
|
if args:
|
||||||
parser.print_usage()
|
parser.print_usage()
|
||||||
|
@ -200,6 +200,7 @@ gtk_menu_tracker_item_finalize (GObject *object)
|
|||||||
GtkMenuTrackerItem *self = GTK_MENU_TRACKER_ITEM (object);
|
GtkMenuTrackerItem *self = GTK_MENU_TRACKER_ITEM (object);
|
||||||
|
|
||||||
g_free (self->action_namespace);
|
g_free (self->action_namespace);
|
||||||
|
g_free (self->action_and_target);
|
||||||
|
|
||||||
if (self->observable)
|
if (self->observable)
|
||||||
g_object_unref (self->observable);
|
g_object_unref (self->observable);
|
||||||
|
@ -73,8 +73,8 @@ struct _ShellGlobal {
|
|||||||
ShellWM *wm;
|
ShellWM *wm;
|
||||||
GSettings *settings;
|
GSettings *settings;
|
||||||
const char *datadir;
|
const char *datadir;
|
||||||
const char *imagedir;
|
char *imagedir;
|
||||||
const char *userdatadir;
|
char *userdatadir;
|
||||||
GFile *userdatadir_path;
|
GFile *userdatadir_path;
|
||||||
GFile *runtime_state_path;
|
GFile *runtime_state_path;
|
||||||
|
|
||||||
@ -337,6 +337,10 @@ shell_global_finalize (GObject *object)
|
|||||||
g_clear_object (&global->userdatadir_path);
|
g_clear_object (&global->userdatadir_path);
|
||||||
g_clear_object (&global->runtime_state_path);
|
g_clear_object (&global->runtime_state_path);
|
||||||
|
|
||||||
|
g_free (global->session_mode);
|
||||||
|
g_free (global->imagedir);
|
||||||
|
g_free (global->userdatadir);
|
||||||
|
|
||||||
G_OBJECT_CLASS(shell_global_parent_class)->finalize (object);
|
G_OBJECT_CLASS(shell_global_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ libst_gir = gnome.generate_gir(libst,
|
|||||||
sources: st_gir_sources,
|
sources: st_gir_sources,
|
||||||
nsversion: '1.0',
|
nsversion: '1.0',
|
||||||
namespace: 'St',
|
namespace: 'St',
|
||||||
includes: ['Clutter-' + mutter_api_version, 'Gtk-3.0'],
|
includes: ['Clutter-' + mutter_api_version, 'Cally-' + mutter_api_version, 'Gtk-3.0'],
|
||||||
dependencies: [mutter_dep],
|
dependencies: [mutter_dep],
|
||||||
include_directories: include_directories('..'),
|
include_directories: include_directories('..'),
|
||||||
extra_args: ['-DST_COMPILATION', '--quiet'],
|
extra_args: ['-DST_COMPILATION', '--quiet'],
|
||||||
|
@ -308,9 +308,8 @@ st_entry_style_changed (StWidget *self)
|
|||||||
}
|
}
|
||||||
|
|
||||||
theme_node = st_widget_get_theme_node (self);
|
theme_node = st_widget_get_theme_node (self);
|
||||||
|
|
||||||
st_theme_node_get_foreground_color (theme_node, &color);
|
_st_set_text_from_style (CLUTTER_TEXT (priv->entry), theme_node);
|
||||||
clutter_text_set_color (CLUTTER_TEXT (priv->entry), &color);
|
|
||||||
|
|
||||||
if (st_theme_node_lookup_length (theme_node, "caret-size", TRUE, &size))
|
if (st_theme_node_lookup_length (theme_node, "caret-size", TRUE, &size))
|
||||||
clutter_text_set_cursor_size (CLUTTER_TEXT (priv->entry), (int)(.5 + size));
|
clutter_text_set_cursor_size (CLUTTER_TEXT (priv->entry), (int)(.5 + size));
|
||||||
|
@ -116,6 +116,7 @@ _st_set_text_from_style (ClutterText *text,
|
|||||||
PangoAttrList *attribs = NULL;
|
PangoAttrList *attribs = NULL;
|
||||||
const PangoFontDescription *font;
|
const PangoFontDescription *font;
|
||||||
StTextAlign align;
|
StTextAlign align;
|
||||||
|
gdouble spacing;
|
||||||
|
|
||||||
st_theme_node_get_foreground_color (theme_node, &color);
|
st_theme_node_get_foreground_color (theme_node, &color);
|
||||||
clutter_text_set_color (text, &color);
|
clutter_text_set_color (text, &color);
|
||||||
@ -123,11 +124,11 @@ _st_set_text_from_style (ClutterText *text,
|
|||||||
font = st_theme_node_get_font (theme_node);
|
font = st_theme_node_get_font (theme_node);
|
||||||
clutter_text_set_font_description (text, (PangoFontDescription *) font);
|
clutter_text_set_font_description (text, (PangoFontDescription *) font);
|
||||||
|
|
||||||
|
attribs = pango_attr_list_new ();
|
||||||
|
|
||||||
decoration = st_theme_node_get_text_decoration (theme_node);
|
decoration = st_theme_node_get_text_decoration (theme_node);
|
||||||
if (decoration)
|
if (decoration)
|
||||||
{
|
{
|
||||||
attribs = pango_attr_list_new ();
|
|
||||||
|
|
||||||
if (decoration & ST_TEXT_DECORATION_UNDERLINE)
|
if (decoration & ST_TEXT_DECORATION_UNDERLINE)
|
||||||
{
|
{
|
||||||
PangoAttribute *underline = pango_attr_underline_new (PANGO_UNDERLINE_SINGLE);
|
PangoAttribute *underline = pango_attr_underline_new (PANGO_UNDERLINE_SINGLE);
|
||||||
@ -143,6 +144,13 @@ _st_set_text_from_style (ClutterText *text,
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spacing = st_theme_node_get_letter_spacing (theme_node);
|
||||||
|
if (spacing)
|
||||||
|
{
|
||||||
|
PangoAttribute *letter_spacing = pango_attr_letter_spacing_new ((int)(.5 + spacing) * PANGO_SCALE);
|
||||||
|
pango_attr_list_insert (attribs, letter_spacing);
|
||||||
|
}
|
||||||
|
|
||||||
clutter_text_set_attributes (text, attribs);
|
clutter_text_set_attributes (text, attribs);
|
||||||
|
|
||||||
if (attribs)
|
if (attribs)
|
||||||
@ -414,11 +422,9 @@ _st_create_shadow_pipeline_from_actor (StShadow *shadow_spec,
|
|||||||
ClutterActor *actor)
|
ClutterActor *actor)
|
||||||
{
|
{
|
||||||
CoglPipeline *shadow_pipeline = NULL;
|
CoglPipeline *shadow_pipeline = NULL;
|
||||||
ClutterActorBox box;
|
|
||||||
float width, height;
|
float width, height;
|
||||||
|
|
||||||
clutter_actor_get_allocation_box (actor, &box);
|
clutter_actor_get_size (actor, &width, &height);
|
||||||
clutter_actor_box_get_size (&box, &width, &height);
|
|
||||||
|
|
||||||
if (width == 0 || height == 0)
|
if (width == 0 || height == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -441,6 +447,7 @@ _st_create_shadow_pipeline_from_actor (StShadow *shadow_spec,
|
|||||||
CoglFramebuffer *fb;
|
CoglFramebuffer *fb;
|
||||||
CoglColor clear_color;
|
CoglColor clear_color;
|
||||||
CoglError *catch_error = NULL;
|
CoglError *catch_error = NULL;
|
||||||
|
float x, y;
|
||||||
|
|
||||||
buffer = cogl_texture_new_with_size (width,
|
buffer = cogl_texture_new_with_size (width,
|
||||||
height,
|
height,
|
||||||
@ -462,6 +469,7 @@ _st_create_shadow_pipeline_from_actor (StShadow *shadow_spec,
|
|||||||
}
|
}
|
||||||
|
|
||||||
cogl_color_init_from_4ub (&clear_color, 0, 0, 0, 0);
|
cogl_color_init_from_4ub (&clear_color, 0, 0, 0, 0);
|
||||||
|
clutter_actor_get_position (actor, &x, &y);
|
||||||
|
|
||||||
/* XXX: There's no way to render a ClutterActor to an offscreen
|
/* XXX: There's no way to render a ClutterActor to an offscreen
|
||||||
* as it uses the implicit API. */
|
* as it uses the implicit API. */
|
||||||
@ -470,7 +478,7 @@ _st_create_shadow_pipeline_from_actor (StShadow *shadow_spec,
|
|||||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||||
|
|
||||||
cogl_framebuffer_clear (fb, COGL_BUFFER_BIT_COLOR, &clear_color);
|
cogl_framebuffer_clear (fb, COGL_BUFFER_BIT_COLOR, &clear_color);
|
||||||
cogl_framebuffer_translate (fb, -box.x1, -box.y1, 0);
|
cogl_framebuffer_translate (fb, -x, -y, 0);
|
||||||
cogl_framebuffer_orthographic (fb, 0, 0, width, height, 0, 1.0);
|
cogl_framebuffer_orthographic (fb, 0, 0, width, height, 0, 1.0);
|
||||||
|
|
||||||
clutter_actor_set_opacity_override (actor, 255);
|
clutter_actor_set_opacity_override (actor, 255);
|
||||||
|
@ -2545,6 +2545,28 @@ st_theme_node_get_text_align(StThemeNode *node)
|
|||||||
return ST_TEXT_ALIGN_LEFT;
|
return ST_TEXT_ALIGN_LEFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* st_theme_node_get_letter_spacing:
|
||||||
|
* @node: a #StThemeNode
|
||||||
|
*
|
||||||
|
* Gets the value for the letter-spacing style property, in pixels.
|
||||||
|
*
|
||||||
|
* Return value: the value of the letter-spacing property, if
|
||||||
|
* found, or zero if such property has not been found.
|
||||||
|
*/
|
||||||
|
gdouble
|
||||||
|
st_theme_node_get_letter_spacing (StThemeNode *node)
|
||||||
|
{
|
||||||
|
gdouble spacing = 0.;
|
||||||
|
|
||||||
|
g_return_val_if_fail (ST_IS_THEME_NODE (node), spacing);
|
||||||
|
|
||||||
|
ensure_properties (node);
|
||||||
|
|
||||||
|
st_theme_node_lookup_length (node, "letter-spacing", FALSE, &spacing);
|
||||||
|
return spacing;
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
font_family_from_terms (CRTerm *term,
|
font_family_from_terms (CRTerm *term,
|
||||||
char **family)
|
char **family)
|
||||||
|
@ -223,6 +223,8 @@ StTextDecoration st_theme_node_get_text_decoration (StThemeNode *node);
|
|||||||
|
|
||||||
StTextAlign st_theme_node_get_text_align (StThemeNode *node);
|
StTextAlign st_theme_node_get_text_align (StThemeNode *node);
|
||||||
|
|
||||||
|
double st_theme_node_get_letter_spacing (StThemeNode *node);
|
||||||
|
|
||||||
/* Font rule processing is pretty complicated, so we just hardcode it
|
/* Font rule processing is pretty complicated, so we just hardcode it
|
||||||
* under the standard font/font-family/font-size/etc names. This means
|
* under the standard font/font-family/font-size/etc names. This means
|
||||||
* you can't have multiple separate styled fonts for a single item,
|
* you can't have multiple separate styled fonts for a single item,
|
||||||
|
@ -38,6 +38,10 @@ const tests = [
|
|||||||
output: [ { url: 'http://www.gnome.org:99/port', pos: 10 } ] },
|
output: [ { url: 'http://www.gnome.org:99/port', pos: 10 } ] },
|
||||||
{ input: 'This is an ftp://www.gnome.org/ test.',
|
{ input: 'This is an ftp://www.gnome.org/ test.',
|
||||||
output: [ { url: 'ftp://www.gnome.org/', pos: 11 } ] },
|
output: [ { url: 'ftp://www.gnome.org/', pos: 11 } ] },
|
||||||
|
{ input: 'https://www.gnome.org/(some_url,_with_very_unusual_characters)',
|
||||||
|
output: [ { url: 'https://www.gnome.org/(some_url,_with_very_unusual_characters)', pos: 0 } ] },
|
||||||
|
{ input: 'https://www.gnome.org/(some_url_with_unbalanced_parenthesis',
|
||||||
|
output: [ { url: 'https://www.gnome.org/', pos: 0 } ] },
|
||||||
|
|
||||||
{ input: 'Visit http://www.gnome.org/ and http://developer.gnome.org',
|
{ input: 'Visit http://www.gnome.org/ and http://developer.gnome.org',
|
||||||
output: [ { url: 'http://www.gnome.org/', pos: 6 },
|
output: [ { url: 'http://www.gnome.org/', pos: 6 },
|
||||||
@ -68,4 +72,4 @@ for (let i = 0; i < tests.length; i++) {
|
|||||||
JsUnit.assertEquals('Test ' + i + ', match ' + j + ' position',
|
JsUnit.assertEquals('Test ' + i + ', match ' + j + ' position',
|
||||||
match[j].pos, tests[i].output[j].pos);
|
match[j].pos, tests[i].output[j].pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user