Compare commits
149 Commits
wip/carlos
...
gbsneto/ne
Author | SHA1 | Date | |
---|---|---|---|
![]() |
224ab2e543 | ||
![]() |
dee738e24f | ||
![]() |
84c7890917 | ||
![]() |
fd484099ae | ||
![]() |
727c84251d | ||
![]() |
37e55df298 | ||
![]() |
2644f62318 | ||
![]() |
893bde0ca1 | ||
![]() |
bd0bf3d3d0 | ||
![]() |
05c918dc1a | ||
![]() |
3651cb2047 | ||
![]() |
b9c7631a55 | ||
![]() |
b59c9c6946 | ||
![]() |
f02313c1c6 | ||
![]() |
6493789bc9 | ||
![]() |
4081b97462 | ||
![]() |
c20451c2e7 | ||
![]() |
16dcb1ac15 | ||
![]() |
c1ee656c35 | ||
![]() |
cd09144069 | ||
![]() |
7851069d9c | ||
![]() |
e42700a308 | ||
![]() |
febc0690c1 | ||
![]() |
308b4f81b5 | ||
![]() |
66a3ad42da | ||
![]() |
1b84a3ecb2 | ||
![]() |
78fd9d9e4f | ||
![]() |
baa5bfcf49 | ||
![]() |
5d88729fc1 | ||
![]() |
15b59414d6 | ||
![]() |
2b39d6e95a | ||
![]() |
73eaf0df9f | ||
![]() |
54e2d3ceb7 | ||
![]() |
d3cfb5801b | ||
![]() |
143cda628e | ||
![]() |
e90940ae10 | ||
![]() |
34207cc457 | ||
![]() |
cedcda0ccc | ||
![]() |
cfcf1d5192 | ||
![]() |
8d9bc4bc4c | ||
![]() |
d456e938d2 | ||
![]() |
f15208e26d | ||
![]() |
1999a359fa | ||
![]() |
3c180bc8f7 | ||
![]() |
8de42d1f63 | ||
![]() |
1769a96362 | ||
![]() |
37a3d0d09a | ||
![]() |
e16def0c43 | ||
![]() |
83d083f189 | ||
![]() |
b1ea4f6c35 | ||
![]() |
60c540e93a | ||
![]() |
f3b56e0eb1 | ||
![]() |
c8d02be14a | ||
![]() |
42b50051ac | ||
![]() |
bda18888c0 | ||
![]() |
c150fe95b9 | ||
![]() |
8b4b9d396b | ||
![]() |
9c0f069f86 | ||
![]() |
8929c89d1f | ||
![]() |
881eab7669 | ||
![]() |
141652b7ec | ||
![]() |
b5651e38c7 | ||
![]() |
33ae220ad2 | ||
![]() |
6ec996e45b | ||
![]() |
4f3e847897 | ||
![]() |
07a1f107cc | ||
![]() |
e062f27edc | ||
![]() |
36c417e6d9 | ||
![]() |
87ca1e034f | ||
![]() |
dbf1ffc9d4 | ||
![]() |
c5bed7e963 | ||
![]() |
fa915ff7ea | ||
![]() |
cbced1ce28 | ||
![]() |
900d36d0ea | ||
![]() |
62441ebeb4 | ||
![]() |
051f081db7 | ||
![]() |
ddbc4ef42e | ||
![]() |
fc4dfa11c3 | ||
![]() |
60f12da3cd | ||
![]() |
40f7d61524 | ||
![]() |
1263f84c3f | ||
![]() |
9d91b586d8 | ||
![]() |
ab8bce35f1 | ||
![]() |
7287ee3651 | ||
![]() |
9d7a319721 | ||
![]() |
b7df1133b8 | ||
![]() |
dfb8737007 | ||
![]() |
a06a418ac1 | ||
![]() |
35063c9e7c | ||
![]() |
ded4586781 | ||
![]() |
89790ac723 | ||
![]() |
d253b0671b | ||
![]() |
e58dcd3040 | ||
![]() |
050a1898ab | ||
![]() |
79a8fa2ede | ||
![]() |
7819f8f82e | ||
![]() |
5c570460cf | ||
![]() |
07882c4b6a | ||
![]() |
f26eb304f5 | ||
![]() |
7b33e240ed | ||
![]() |
a205f4e249 | ||
![]() |
e16c64dbdd | ||
![]() |
404ae0a897 | ||
![]() |
9e00e8a0fb | ||
![]() |
529829a561 | ||
![]() |
ed84541050 | ||
![]() |
075f4a5efc | ||
![]() |
f1bd94a367 | ||
![]() |
db69ad876a | ||
![]() |
c6f297e4e5 | ||
![]() |
1067642300 | ||
![]() |
059524b007 | ||
![]() |
1d72f28a1c | ||
![]() |
5b92e3a9a8 | ||
![]() |
8795668c41 | ||
![]() |
872c84a1c3 | ||
![]() |
b47879d0a7 | ||
![]() |
679fc20765 | ||
![]() |
db85e7084c | ||
![]() |
1afd2c6ad2 | ||
![]() |
a74a9f6443 | ||
![]() |
f49e20bbae | ||
![]() |
9916989272 | ||
![]() |
1054f7533a | ||
![]() |
5f457f6ed2 | ||
![]() |
9df2edc87e | ||
![]() |
28eb94402e | ||
![]() |
d2bf869c16 | ||
![]() |
05ea1bdac2 | ||
![]() |
454e85f0a9 | ||
![]() |
45c5f21f6c | ||
![]() |
59bd2dd1e3 | ||
![]() |
3c47923953 | ||
![]() |
dbaf5687dd | ||
![]() |
20895c7791 | ||
![]() |
ddeb2fa05d | ||
![]() |
7a1f4f9af3 | ||
![]() |
dc578a9e79 | ||
![]() |
040c1638ea | ||
![]() |
ded8412a2a | ||
![]() |
2f3738fae0 | ||
![]() |
a59da75830 | ||
![]() |
2b184a10d6 | ||
![]() |
fc36837606 | ||
![]() |
4871845d01 | ||
![]() |
53ac00eabb | ||
![]() |
75905ebd3c | ||
![]() |
12f033ee0f | ||
![]() |
964106513e |
42
NEWS
42
NEWS
@@ -1,3 +1,45 @@
|
|||||||
|
3.35.90
|
||||||
|
=======
|
||||||
|
* Update default favorite apps [Michael; !907]
|
||||||
|
* Add Shell.Blur effect [Georges; !864, !924]
|
||||||
|
* Overhaul scroll/swipe gestures [Alexander; !821, !825, !826]
|
||||||
|
* Fix VPN connections when delaying request [Florian; #2008]
|
||||||
|
* Overhaul theme [Sam, Jakub, nana-4; !904, !931, !957]
|
||||||
|
* Improve visual appearance of Weather integration [Florian; #1143]
|
||||||
|
* Implement new system dialog designs [Jonas; #1343]
|
||||||
|
* Animate position changes of app icons [Georges; !882]
|
||||||
|
* Add St.Viewport [Georges; !929]
|
||||||
|
* Make app folders behave as dialogs [Georges; !896]
|
||||||
|
* Add do-not-disturb functionality to calendar popup [Florian; #239]
|
||||||
|
* Show hint actor in focused entries [Jonas; !944]
|
||||||
|
* Switch screen-recorder back to VP8 [Björn; #256]
|
||||||
|
* Allow to run perf-tool as wayland compositor [Olivier; !941]
|
||||||
|
* Handle extension updates [Florian; !945]
|
||||||
|
* Animate showing and hiding caps-lock warning [Jonas; !952]
|
||||||
|
* Support "auto" lengths in CSS [Florian; !971]
|
||||||
|
* Turn extension-prefs into the offical Extensions app [Florian; #1968]
|
||||||
|
* Sandbox the portal helper [Michael; !983]
|
||||||
|
* Misc. bug fixes and cleanups [Florian, Björn, Jakub, Alexander, Daniel V.,
|
||||||
|
Jonas, nana-4, Carlos, Sebastian, Daniel G., Georges, Piotr; !918, !917,
|
||||||
|
!919, !920, #763, #791659, !927, #2091, !930, !926, !888, !934, !168, #2133,
|
||||||
|
#682, #2142, #2131, !943, #2132, #1958, #2146, !951, #1779, #2130, !964,
|
||||||
|
!965, !948, #2151, #1746, !967, !760, !968, !970, !973, #2169, #2176, !978,
|
||||||
|
!980, !979, #2177, !981, #2180, !974]
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Michael Catanzaro, Björn Daase, Jonas Dreßler, Piotr Drąg, Olivier Fourdan,
|
||||||
|
Carlos Garnacho, Sam Hewitt, Sebastian Keller, Andre Klapper,
|
||||||
|
Alexander Mikhaylenko, Daniel García Moreno, Florian Müllner,
|
||||||
|
Georges Basile Stavracas Neto, Jakub Steiner, Daniel van Vugt, nana-4
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
Asier Sarasua Garmendia [eu], Daniel Mustieles [es], Andrej Shadura [sk],
|
||||||
|
Carmen Bianca BAKKER [eo], Sucipto [id], Dušan Kazik [sk], Goran Vidović [hr],
|
||||||
|
sicklylife [ja], Kukuh Syafaat [id], Yi-Jyun Pan [zh_TW],
|
||||||
|
Rafael Fontenelle [pt_BR], Jordi Mas [ca], Jiri Grönroos [fi],
|
||||||
|
Fabio Tomat [fur], Umarzuki Bin Mochlis Moktar [ms], Daniel Korostil [uk],
|
||||||
|
Jor Teron [mjw], Anders Jonsson [sv], Aurimas Černius [lt]
|
||||||
|
|
||||||
3.35.3
|
3.35.3
|
||||||
======
|
======
|
||||||
* Add discrete GPU support for NVidia drivers [Bastien; #1810]
|
* Add discrete GPU support for NVidia drivers [Bastien; #1810]
|
||||||
|
@@ -18,7 +18,6 @@
|
|||||||
<file alias="icons/message-indicator-symbolic.svg">message-indicator-symbolic.svg</file>
|
<file alias="icons/message-indicator-symbolic.svg">message-indicator-symbolic.svg</file>
|
||||||
<file>no-events.svg</file>
|
<file>no-events.svg</file>
|
||||||
<file>no-notifications.svg</file>
|
<file>no-notifications.svg</file>
|
||||||
<file>noise-texture.png</file>
|
|
||||||
<file>pad-osd.css</file>
|
<file>pad-osd.css</file>
|
||||||
<file alias="icons/eye-open-negative-filled-symbolic.svg">eye-open-negative-filled-symbolic.svg</file>
|
<file alias="icons/eye-open-negative-filled-symbolic.svg">eye-open-negative-filled-symbolic.svg</file>
|
||||||
<file alias="icons/eye-not-looking-symbolic.svg">eye-not-looking-symbolic.svg</file>
|
<file alias="icons/eye-not-looking-symbolic.svg">eye-not-looking-symbolic.svg</file>
|
||||||
|
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="128px" height="128px" viewBox="0 0 128 128" version="1.1">
|
||||||
|
<g id="surface43907">
|
||||||
|
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(10.196079%,37.254903%,70.588237%);fill-opacity:1;" d="M 58.847656 15.683594 L 49.074219 30.632812 C 46.921875 33.84375 42.480469 36.65625 39.378906 35.300781 C 34.488281 33.164062 35.859375 28.144531 31.28125 25.292969 C 28.070312 23.292969 16.839844 20.449219 14.804688 27.644531 C 13.761719 31.339844 14.480469 37.410156 17.398438 41.019531 C 20.164062 44.441406 26.8125 43.355469 28.898438 47.230469 C 30.34375 49.925781 29.738281 51.628906 28.347656 54.351562 C 26.796875 57.375 22.839844 61.359375 19.265625 64.585938 C 17.480469 66.199219 13.273438 65.710938 12.03125 66.730469 C 11.753906 66.949219 12.511719 70.285156 12.511719 70.285156 C 12.511719 70.285156 19.90625 82.707031 25.539062 87.285156 C 27.773438 89.101562 30.089844 91.808594 32.742188 90.695312 C 36.035156 89.316406 35.304688 82.289062 37.644531 79.597656 C 41.976562 74.605469 50.292969 73.761719 55.582031 78.144531 C 61.277344 82.867188 60.882812 89.472656 57.941406 94.683594 C 55.175781 99.578125 49.472656 98.453125 47.484375 102.28125 C 46.730469 103.730469 47.578125 105.664062 48.765625 106.785156 C 54.628906 112.335938 71.210938 118.988281 71.210938 118.988281 L 81.605469 102.429688 C 83.757812 99.222656 86.707031 97.742188 90.011719 98.46875 C 94.605469 99.472656 95.160156 105.945312 98.914062 108.785156 C 103.195312 112.019531 110.546875 111.765625 114.351562 105.753906 C 117.128906 101.371094 116.761719 97.449219 113.765625 91.414062 C 111.808594 87.476562 103.253906 89.382812 101.171875 85.507812 C 99.722656 82.8125 99.992188 80.214844 101.859375 77.796875 C 106.332031 72 117.003906 62.699219 117.003906 62.699219 C 117.003906 62.699219 117.144531 60.824219 116.246094 59.363281 C 115.15625 57.589844 107.472656 49.273438 104.65625 46.984375 C 102.421875 45.167969 99.6875 41.921875 97.03125 43.035156 C 93.742188 44.414062 94.417969 51.058594 92.082031 53.753906 C 86.5 60.179688 78.4375 59.101562 73.914062 54.648438 C 68.644531 49.453125 68.511719 44.488281 71.453125 39.277344 C 74.222656 34.382812 79.921875 35.3125 81.910156 31.484375 C 82.664062 30.035156 81.484375 27.070312 80.597656 25.390625 C 79.277344 22.890625 65.976562 18.902344 58.847656 15.683594 Z M 58.847656 15.683594 "/>
|
||||||
|
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(20.784314%,51.764709%,89.411765%);fill-opacity:1;" d="M 58.089844 12.347656 L 48.316406 27.300781 C 46.164062 30.507812 41.726562 33.320312 38.625 31.964844 C 33.734375 29.828125 35.101562 24.808594 30.523438 21.960938 C 27.3125 19.957031 19.445312 19.160156 15.683594 25.625 C 13.730469 28.976562 13.722656 34.074219 16.644531 37.6875 C 19.410156 41.105469 26.058594 40.023438 28.140625 43.898438 C 29.589844 46.589844 28.984375 48.292969 27.589844 51.015625 C 24.492188 57.066406 11.753906 66.949219 11.753906 66.949219 C 11.753906 66.949219 19.148438 79.371094 24.785156 83.949219 C 27.019531 85.765625 29.332031 88.472656 31.988281 87.363281 C 35.277344 85.984375 34.550781 78.957031 36.886719 76.261719 C 41.21875 71.273438 49.535156 70.425781 54.824219 74.8125 C 60.519531 79.53125 60.125 86.140625 57.183594 91.347656 C 54.417969 96.242188 48.714844 95.117188 46.726562 98.949219 C 45.976562 100.398438 46.824219 102.328125 48.011719 103.449219 C 53.871094 109 70.457031 115.652344 70.457031 115.652344 L 80.847656 99.097656 C 83 95.886719 85.953125 94.40625 89.257812 95.132812 C 93.847656 96.140625 94.402344 102.609375 98.160156 105.449219 C 102.4375 108.683594 109.789062 108.433594 113.597656 102.421875 C 116.375 98.035156 116.152344 94.195312 112.175781 89.128906 C 109.460938 85.667969 102.496094 86.046875 100.414062 82.171875 C 98.96875 79.480469 99.234375 76.878906 101.101562 74.460938 C 105.578125 68.667969 116.246094 59.363281 116.246094 59.363281 C 116.246094 59.363281 109.535156 48.226562 103.898438 43.648438 C 101.664062 41.835938 98.929688 38.585938 96.277344 39.699219 C 92.988281 41.078125 93.660156 47.726562 91.324219 50.417969 C 85.746094 56.84375 77.679688 55.769531 73.15625 51.3125 C 67.886719 46.121094 67.757812 41.152344 70.699219 35.945312 C 73.464844 31.046875 79.164062 31.980469 81.152344 28.148438 C 81.90625 26.699219 80.066406 24.476562 78.878906 23.355469 C 73.015625 17.804688 58.089844 12.347656 58.089844 12.347656 Z M 58.089844 12.347656 "/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 4.4 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M6.5 1C5.669 1 5 1.669 5 2.5V4H2c-.554 0-1 .446-1 1v3h1.5C3.331 8 4 8.669 4 9.5S3.331 11 2.5 11H1v3c0 .554.446 1 1 1h3v-1.5c0-.831.669-1.5 1.5-1.5s1.5.669 1.5 1.5V15h3c.554 0 1-.446 1-1v-3h1.5c.831 0 1.5-.669 1.5-1.5S14.331 8 13.5 8H12V5c0-.554-.446-1-1-1H8V2.5C8 1.669 7.331 1 6.5 1z" style="isolation:auto;mix-blend-mode:normal;marker:none" color="#000" overflow="visible" fill="#474747"/></svg>
|
After Width: | Height: | Size: 469 B |
1
data/icons/meson.build
Normal file
1
data/icons/meson.build
Normal file
@@ -0,0 +1 @@
|
|||||||
|
install_subdir('hicolor', install_dir: icondir)
|
@@ -1,6 +1,6 @@
|
|||||||
desktop_files = [
|
desktop_files = [
|
||||||
'org.gnome.Shell.desktop',
|
'org.gnome.Shell.desktop',
|
||||||
'gnome-shell-extension-prefs.desktop'
|
'org.gnome.Extensions.desktop',
|
||||||
]
|
]
|
||||||
service_files = []
|
service_files = []
|
||||||
|
|
||||||
@@ -43,6 +43,7 @@ endforeach
|
|||||||
|
|
||||||
|
|
||||||
subdir('dbus-interfaces')
|
subdir('dbus-interfaces')
|
||||||
|
subdir('icons')
|
||||||
subdir('theme')
|
subdir('theme')
|
||||||
|
|
||||||
data_resources = [
|
data_resources = [
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Shell Extensions
|
Name=Extensions
|
||||||
|
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
|
||||||
|
Icon=org.gnome.Extensions
|
||||||
Comment=Configure GNOME Shell Extensions
|
Comment=Configure GNOME Shell Extensions
|
||||||
Exec=@bindir@/gnome-shell-extension-prefs %u
|
Exec=@bindir@/gnome-shell-extension-prefs %u
|
||||||
Categories=GNOME;GTK;
|
Categories=GNOME;GTK;
|
||||||
OnlyShowIn=GNOME;
|
OnlyShowIn=GNOME;
|
||||||
NoDisplay=true
|
|
@@ -91,13 +91,9 @@ stage {
|
|||||||
|
|
||||||
// icon tiles
|
// icon tiles
|
||||||
%icon_tile {
|
%icon_tile {
|
||||||
background-color: transparent; // no background
|
|
||||||
color: $osd_fg_color;
|
|
||||||
border-radius: $base_border_radius + 4px;
|
border-radius: $base_border_radius + 4px;
|
||||||
padding: $base_padding;
|
padding: $base_padding;
|
||||||
border-width: 2px;
|
border: 2px solid transparent;
|
||||||
border-style: solid;
|
|
||||||
border-color: transparent;
|
|
||||||
transition-duration: 100ms;
|
transition-duration: 100ms;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@@ -155,14 +151,17 @@ stage {
|
|||||||
|
|
||||||
|
|
||||||
// notification styling
|
// notification styling
|
||||||
%notification_bubble {
|
@mixin notification_bubble($flat: false) {
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-radius:$base_border_radius + 2px;
|
border-radius: $base_border_radius + 2px;
|
||||||
padding: 0;
|
|
||||||
margin: $base_margin;
|
margin: $base_margin;
|
||||||
|
|
||||||
@include button(normal);
|
@if $flat {
|
||||||
|
@include button(undecorated);
|
||||||
|
} @else {
|
||||||
|
@include button(normal);
|
||||||
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
@include button(focus);
|
@include button(focus);
|
||||||
|
@@ -137,7 +137,7 @@
|
|||||||
// normal button
|
// normal button
|
||||||
@if $t==normal {
|
@if $t==normal {
|
||||||
color: $tc;
|
color: $tc;
|
||||||
background-color: lighten($c, 3%) !important;
|
background-color: lighten($c, 3%);
|
||||||
border-color: draw_border_color($c);
|
border-color: draw_border_color($c);
|
||||||
@include draw_shadows($button_shadow);
|
@include draw_shadows($button_shadow);
|
||||||
// box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
|
// box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
// hover button
|
// hover button
|
||||||
@else if $t==hover {
|
@else if $t==hover {
|
||||||
color: $tc;
|
color: $tc;
|
||||||
background-color: lighten($c, if($variant == 'light', 8%, 5%)) !important;
|
background-color: lighten($c, if($variant == 'light', 8%, 5%));
|
||||||
border-color: if($variant == 'light', draw_border_color(lighten($c, 7%)), draw_border_color($c));
|
border-color: if($variant == 'light', draw_border_color(lighten($c, 7%)), draw_border_color($c));
|
||||||
@include draw_shadows($button_shadow);
|
@include draw_shadows($button_shadow);
|
||||||
text-shadow: 0 1px $text_shadow_color;
|
text-shadow: 0 1px $text_shadow_color;
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
// active button
|
// active button
|
||||||
@else if $t==active {
|
@else if $t==active {
|
||||||
color: $tc;
|
color: $tc;
|
||||||
background-color: darken($c,3%) !important;
|
background-color: darken($c,3%);
|
||||||
border-color: draw_border_color(if($variant == 'light', $c, darken($c,7%)));
|
border-color: draw_border_color(if($variant == 'light', $c, darken($c,7%)));
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
icon-shadow: none;
|
icon-shadow: none;
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
@else if $t==insensitive {
|
@else if $t==insensitive {
|
||||||
color: $insensitive_fg_color;
|
color: $insensitive_fg_color;
|
||||||
border-color: $insensitive_borders_color;
|
border-color: $insensitive_borders_color;
|
||||||
background-color: $insensitive_bg_color !important;
|
background-color: $insensitive_bg_color;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
icon-shadow: none;
|
icon-shadow: none;
|
||||||
@@ -194,3 +194,38 @@
|
|||||||
icon-shadow: none;
|
icon-shadow: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// overview icons
|
||||||
|
@mixin overview-icon($color) {
|
||||||
|
.overview-icon {
|
||||||
|
@extend %icon_tile;
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:selected {
|
||||||
|
.overview-icon {
|
||||||
|
background-color: transparentize($color, .9);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
.overview-icon {
|
||||||
|
background-color: transparentize($color, .7);
|
||||||
|
// border-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:drop {
|
||||||
|
.overview-icon {
|
||||||
|
background-color: transparentize($selected_bg_color, .15);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
.overview-icon {
|
||||||
|
background-color: transparentize(darken($osd_bg_color, 10%), .5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -11,7 +11,6 @@ $app_icon_padding: 24px;
|
|||||||
|
|
||||||
.overview-icon {
|
.overview-icon {
|
||||||
icon-size: $app_icon_size;
|
icon-size: $app_icon_size;
|
||||||
StIcon { margin-bottom: $base_margin; } // margin on icon so label isn't close
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,47 +32,14 @@ $app_grid_fg_color: #fff;
|
|||||||
|
|
||||||
// Icon tiles in the app grid
|
// Icon tiles in the app grid
|
||||||
.app-well-app,
|
.app-well-app,
|
||||||
.app-folder {
|
%app-well-app {
|
||||||
|
@include overview-icon($app_grid_fg_color);
|
||||||
|
|
||||||
.overview-icon {
|
.overview-icon.overview-icon-with-label {
|
||||||
@extend %icon_tile;
|
padding: 10px 8px 5px 8px;
|
||||||
color: $app_grid_fg_color !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:selected {
|
> StBoxLayout {
|
||||||
.overview-icon {
|
spacing: $base_spacing;
|
||||||
background-color: transparentize($osd_bg_color,0.7);
|
|
||||||
color: $app_grid_fg_color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus,
|
|
||||||
&:selected {
|
|
||||||
.overview-icon {
|
|
||||||
background-color: transparentize($osd_fg_color,0.9);
|
|
||||||
color: $osd_fg_color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:focus {
|
|
||||||
.overview-icon {
|
|
||||||
background-color: transparentize($osd_fg_color,0.7 );
|
|
||||||
// border-color: $selected_bg_color;
|
|
||||||
color: $app_grid_fg_color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:drop {
|
|
||||||
.overview-icon {
|
|
||||||
background-color: transparentize($selected_bg_color,.15);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active,
|
|
||||||
&:checked {
|
|
||||||
.overview-icon {
|
|
||||||
background-color: transparentize(darken($osd_bg_color,10%), 0.5);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -81,18 +47,18 @@ $app_grid_fg_color: #fff;
|
|||||||
/* App Folders */
|
/* App Folders */
|
||||||
.app-folder {
|
.app-folder {
|
||||||
.overview-icon {
|
.overview-icon {
|
||||||
@extend %icon_tile;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// expanded folder
|
// expanded folder
|
||||||
.app-folder-dialog {
|
.app-folder-dialog {
|
||||||
border-radius: 8px;
|
border-radius: $modal_radius * 1.5;
|
||||||
spacing: 24px;
|
border: 1px solid $osd_outer_borders_color;
|
||||||
|
spacing: 12px;
|
||||||
background-color: transparentize(darken($osd_bg_color,10%), 0.05);
|
background-color: transparentize(darken($osd_bg_color,10%), 0.05);
|
||||||
|
|
||||||
& .folder-name-container {
|
& .folder-name-container {
|
||||||
padding: 12px 18px;
|
padding: 24px 36px 0;
|
||||||
spacing: 12px;
|
spacing: 12px;
|
||||||
|
|
||||||
& .folder-name-label,
|
& .folder-name-label,
|
||||||
@@ -117,6 +83,10 @@ $app_grid_fg_color: #fff;
|
|||||||
& > StIcon { icon-size: 16px }
|
& > StIcon { icon-size: 16px }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& StButton#vhandle,
|
||||||
|
& StButton#vhandle:hover,
|
||||||
|
& StButton#vhandle:active { background-color: transparent; }
|
||||||
}
|
}
|
||||||
.app-folder-dialog-container {
|
.app-folder-dialog-container {
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
@@ -173,11 +143,6 @@ $app_grid_fg_color: #fff;
|
|||||||
padding: 0px 88px 10px 88px;
|
padding: 0px 88px 10px 88px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-well-app > .overview-icon.overview-icon-with-label {
|
|
||||||
padding: 10px 8px 5px 8px;
|
|
||||||
spacing: $base_spacing;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Label when no frequent apps
|
// Label when no frequent apps
|
||||||
.no-frequent-applications-label { @extend %status_text; }
|
.no-frequent-applications-label { @extend %status_text; }
|
||||||
|
|
||||||
@@ -197,41 +162,35 @@ $app_grid_fg_color: #fff;
|
|||||||
}
|
}
|
||||||
|
|
||||||
// buttons
|
// buttons
|
||||||
.app-view-control {
|
.app-view-control {
|
||||||
padding: $base_padding $base_padding*5;
|
padding: 4px 32px;
|
||||||
margin: 0;
|
margin: 0 4px;
|
||||||
background-color: transparentize($osd_bg_color, 0.5);
|
|
||||||
border-width: 1px;
|
|
||||||
color: darken($osd_fg_color, 25%);
|
|
||||||
|
|
||||||
&:hover {
|
&, &:hover, &:checked {
|
||||||
background-color: transparentize($osd_bg_color, 0.5) !important;
|
@include button(undecorated);
|
||||||
box-shadow:none !important;
|
|
||||||
color: darken($osd_fg_color, 25%);
|
color: darken($osd_fg_color, 25%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
box-shadow: inset 0 -2px darken($osd_fg_color, 25%);
|
||||||
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
box-shadow: none;
|
box-shadow: inset 0 -2px $osd_fg_color;
|
||||||
background-color: $selected_bg_color !important;
|
|
||||||
&:hover {
|
|
||||||
background-color: lighten($selected_bg_color, 11%) !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:checked {
|
&:checked {
|
||||||
background-color: $selected_bg_color !important;
|
color: $osd_fg_color;
|
||||||
color: $selected_fg_color;
|
box-shadow: inset 0 -2px $selected_bg_color;
|
||||||
box-shadow: none;
|
|
||||||
&:active { background-color: darken($selected_bg_color, 4%) !important; }
|
|
||||||
&:hover { background-color: lighten($selected_bg_color, 7%) !important; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-right-width: 0 !important;
|
border-right-width: 0;
|
||||||
border-radius: $base_border_radius 0 0 $base_border_radius;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-radius: 0 $base_border_radius $base_border_radius 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -5,83 +5,54 @@
|
|||||||
// overall menu
|
// overall menu
|
||||||
#calendarArea {
|
#calendarArea {
|
||||||
padding:0;
|
padding:0;
|
||||||
margin:0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calendar menu side column
|
// Calendar menu side column
|
||||||
.datemenu-calendar-column {
|
.datemenu-calendar-column {
|
||||||
spacing: 0;
|
spacing: $base_spacing;
|
||||||
border: 0 solid $bubble_borders_color;
|
border: 0 solid $bubble_borders_color;
|
||||||
padding: $base_padding * 2;
|
padding: 0 $base_padding * 2;
|
||||||
padding-bottom: 3em; // account for the notifications clear button
|
|
||||||
padding-top:0;
|
|
||||||
|
|
||||||
&:ltr {margin-right: $base_margin * 2; border-left-width: 1px; }
|
&:ltr {margin-right: $base_margin * 2; border-left-width: 1px; }
|
||||||
&:rtl {margin-left: $base_margin * 2; border-right-width: 1px; }
|
&:rtl {margin-left: $base_margin * 2; border-right-width: 1px; }
|
||||||
|
|
||||||
// today button (the date)
|
|
||||||
.datemenu-today-button {
|
|
||||||
padding: $base_padding * 1.5;
|
|
||||||
margin: $base_margin;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
border-radius: $base_border_radius + 2px;
|
|
||||||
|
|
||||||
&:hover { @include button(hover);}
|
|
||||||
&:focus { @include button(focus);}
|
|
||||||
|
|
||||||
&:active {
|
|
||||||
@include button(active);
|
|
||||||
}
|
|
||||||
|
|
||||||
// weekday label
|
|
||||||
.day-label {
|
|
||||||
@include fontsize($base_font_size+1);
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
// date label
|
|
||||||
.date-label {
|
|
||||||
@include fontsize($base_font_size+7);
|
|
||||||
font-weight: 1000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// calendar
|
|
||||||
.calendar {
|
|
||||||
@extend %notification_bubble;
|
|
||||||
margin:$base_margin !important;
|
|
||||||
margin-bottom: $base_padding + $base_margin !important;
|
|
||||||
padding:$base_padding !important;
|
|
||||||
|
|
||||||
// more below for sub-elements
|
|
||||||
}
|
|
||||||
|
|
||||||
.datemenu-displays-section {
|
.datemenu-displays-section {
|
||||||
margin:0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.datemenu-displays-box {
|
.datemenu-displays-box {
|
||||||
spacing: $base_spacing;
|
spacing: $base_spacing;
|
||||||
margin:0;
|
|
||||||
|
|
||||||
// world clocks and weather
|
|
||||||
.world-clocks-button,
|
|
||||||
.weather-button {
|
|
||||||
@extend %notification_bubble;
|
|
||||||
padding:$base_padding !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.events-section-title {
|
.events-section-title {
|
||||||
|
@include notification_bubble($flat: true);
|
||||||
color: desaturate(darken($fg_color,40%), 10%);
|
color: desaturate(darken($fg_color,40%), 10%);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-radius: 4px;
|
|
||||||
padding: .4em;
|
padding: .4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* today button (the date) */
|
||||||
|
.datemenu-today-button {
|
||||||
|
@include notification_bubble($flat: true);
|
||||||
|
padding: $base_padding * 1.5;
|
||||||
|
|
||||||
|
// weekday label
|
||||||
|
.day-label {
|
||||||
|
@include fontsize($base_font_size+1);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
// date label
|
||||||
|
.date-label {
|
||||||
|
@include fontsize($base_font_size+7);
|
||||||
|
font-weight: 1000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Calendar */
|
/* Calendar */
|
||||||
.calendar {
|
.calendar {
|
||||||
|
@include notification_bubble;
|
||||||
|
padding: $base_padding;
|
||||||
|
|
||||||
// month
|
// month
|
||||||
.calendar-month-label {
|
.calendar-month-label {
|
||||||
@@ -132,6 +103,7 @@
|
|||||||
@include fontsize($base_font_size - 4);
|
@include fontsize($base_font_size - 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-day { //border collapse hack - see calendar.js
|
.calendar-day { //border collapse hack - see calendar.js
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
}
|
}
|
||||||
@@ -140,8 +112,12 @@
|
|||||||
border-top-width: 1px;
|
border-top-width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-day-left { border-left-width: 1px; }
|
.calendar-day-left {
|
||||||
|
border-left-width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
.calendar-work-day {}
|
.calendar-work-day {}
|
||||||
|
|
||||||
.calendar-nonwork-day {
|
.calendar-nonwork-day {
|
||||||
color: $insensitive_fg_color;
|
color: $insensitive_fg_color;
|
||||||
}
|
}
|
||||||
@@ -161,13 +137,14 @@
|
|||||||
&:active,&:selected {
|
&:active,&:selected {
|
||||||
background-color: $selected_bg_color;
|
background-color: $selected_bg_color;
|
||||||
color: $selected_fg_color;
|
color: $selected_fg_color;
|
||||||
|
|
||||||
&:hover,&:focus {
|
&:hover,&:focus {
|
||||||
background-color:lighten($selected_bg_color, 3%);
|
background-color:lighten($selected_bg_color, 3%);
|
||||||
color: $selected_fg_color;
|
color: $selected_fg_color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-day-with-events {
|
.calendar-day-with-events {
|
||||||
color: lighten($fg_color,10%);
|
color: lighten($fg_color,10%);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -176,7 +153,6 @@
|
|||||||
|
|
||||||
.calendar-other-month-day {
|
.calendar-other-month-day {
|
||||||
color: transparentize($fg_color ,0.5);
|
color: transparentize($fg_color ,0.5);
|
||||||
opacity: 0.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-week-number {
|
.calendar-week-number {
|
||||||
@@ -192,51 +168,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* World clocks */
|
||||||
|
.world-clocks-button {
|
||||||
|
@include notification_bubble;
|
||||||
|
padding: $base_padding * 2;
|
||||||
|
|
||||||
/* Weather */
|
.world-clocks-grid {
|
||||||
.weather-box {
|
|
||||||
spacing: $base_spacing;
|
|
||||||
padding:$base_padding;
|
|
||||||
|
|
||||||
.weather-header {
|
|
||||||
color: desaturate(darken($fg_color,40%), 10%);
|
|
||||||
font-weight: bold;
|
|
||||||
&.location {
|
|
||||||
font-weight: normal;
|
|
||||||
@include fontsize($base_font_size - 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.weather-grid {
|
|
||||||
margin-top: $base_margin;
|
|
||||||
spacing-rows: $base_spacing;
|
spacing-rows: $base_spacing;
|
||||||
spacing-columns: $base_spacing * 2;
|
spacing-columns: $base_spacing * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.weather-forecast-time {
|
|
||||||
color: darken($fg_color,30%);
|
|
||||||
font-feature-settings: "tnum";
|
|
||||||
@include fontsize($base_font_size - 2);
|
|
||||||
font-weight: normal;
|
|
||||||
padding-top: 0.2em;
|
|
||||||
padding-bottom: 0.4em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.weather-forecast-icon {
|
|
||||||
icon-size: $base_icon_size * 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.weather-forecast-temp {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* World clocks */
|
|
||||||
.world-clocks-grid {
|
|
||||||
padding:$base_padding;
|
|
||||||
spacing-rows: $base_spacing;
|
|
||||||
spacing-columns: $base_spacing * 2;
|
|
||||||
|
|
||||||
// title
|
// title
|
||||||
.world-clocks-header {
|
.world-clocks-header {
|
||||||
color: desaturate(darken($fg_color,40%), 10%);
|
color: desaturate(darken($fg_color,40%), 10%);
|
||||||
@@ -266,3 +207,49 @@
|
|||||||
@include fontsize($base_font_size - 1);
|
@include fontsize($base_font_size - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Weather */
|
||||||
|
.weather-button {
|
||||||
|
@include notification_bubble;
|
||||||
|
padding: $base_padding * 2;
|
||||||
|
|
||||||
|
.weather-box {
|
||||||
|
spacing: $base_spacing + $base_margin;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-header-box {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-header {
|
||||||
|
color: desaturate(darken($fg_color,40%), 10%);
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
&.location {
|
||||||
|
font-weight: normal;
|
||||||
|
@include fontsize($base_font_size - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-grid {
|
||||||
|
spacing-rows: $base_spacing;
|
||||||
|
spacing-columns: $base_spacing * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-forecast-time {
|
||||||
|
color: darken($fg_color,30%);
|
||||||
|
font-feature-settings: "tnum";
|
||||||
|
@include fontsize($base_font_size - 2);
|
||||||
|
font-weight: normal;
|
||||||
|
padding-top: 0.2em;
|
||||||
|
padding-bottom: 0.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-forecast-icon {
|
||||||
|
icon-size: $base_icon_size * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weather-forecast-temp {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -9,12 +9,11 @@ $dash_border_radius: $modal_radius * 1.5;
|
|||||||
@include fontsize($base_font_size - 2);
|
@include fontsize($base_font_size - 2);
|
||||||
padding: ($dash_spacing / 2) 0;
|
padding: ($dash_spacing / 2) 0;
|
||||||
|
|
||||||
//fixme: can't have non uniform borders :(
|
|
||||||
border-radius: 0 $dash_border_radius $dash_border_radius 0;
|
border-radius: 0 $dash_border_radius $dash_border_radius 0;
|
||||||
border-left-width: 0 !important;
|
border-left-width: 0;
|
||||||
&:rtl {
|
&:rtl {
|
||||||
border-radius: $dash_border_radius 0 0 $dash_border_radius;
|
border-radius: $dash_border_radius 0 0 $dash_border_radius;
|
||||||
border-right-width: 0 !important;
|
border-right-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder {
|
.placeholder {
|
||||||
@@ -49,36 +48,13 @@ $dash_border_radius: $modal_radius * 1.5;
|
|||||||
|
|
||||||
// Show apps button
|
// Show apps button
|
||||||
.show-apps {
|
.show-apps {
|
||||||
color: $osd_fg_color;
|
@include overview-icon($osd_fg_color);
|
||||||
|
|
||||||
& .overview-icon {
|
|
||||||
@extend %icon_tile;
|
|
||||||
color: $osd_fg_color;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus,
|
&:focus,
|
||||||
&:selected {
|
&:checked {
|
||||||
.overview-icon {
|
|
||||||
background-color: transparentize($osd_fg_color,0.9);
|
|
||||||
color: $osd_fg_color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:drop .overview-icon {
|
|
||||||
background-color: transparentize($selected_bg_color,.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active, &:checked {
|
|
||||||
.overview-icon {
|
.overview-icon {
|
||||||
background-color: darken($osd_bg_color,10%);
|
background-color: darken($osd_bg_color,10%);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:checked, &:focus {
|
|
||||||
.show-apps-icon {
|
|
||||||
color: $fg_color;
|
color: $fg_color;
|
||||||
transition-duration: 100ms;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -84,76 +84,58 @@
|
|||||||
/* Password or Authentication Dialog */
|
/* Password or Authentication Dialog */
|
||||||
|
|
||||||
.prompt-dialog {
|
.prompt-dialog {
|
||||||
//this is the width of the entire modal popup
|
width: 28em;
|
||||||
width: 34em;
|
|
||||||
|
|
||||||
.message-dialog-content { spacing: $base_spacing * 4; }
|
.modal-dialog-content-box {
|
||||||
.message-dialog-title { color: lighten($fg_color,15%); }
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.prompt-dialog-description:rtl {
|
.prompt-dialog-password-grid {
|
||||||
text-align: right;
|
spacing-rows: 8px;
|
||||||
|
spacing-columns: 4px;
|
||||||
|
|
||||||
|
.prompt-dialog-password-entry {
|
||||||
|
width: auto;
|
||||||
|
|
||||||
|
// 4px (spacing) + 16px (spinner-width)
|
||||||
|
&:ltr { margin-left: 20px; }
|
||||||
|
&:rtl { margin-right: 20px; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.prompt-dialog-password-box {
|
.prompt-dialog-password-layout {
|
||||||
spacing: 1em;
|
spacing: 8px;
|
||||||
padding-bottom: 1em;
|
}
|
||||||
|
|
||||||
|
.prompt-dialog-password-entry {
|
||||||
|
width: 20em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prompt-dialog-error-label,
|
||||||
|
.prompt-dialog-info-label,
|
||||||
|
.prompt-dialog-null-label {
|
||||||
|
text-align: center;
|
||||||
|
@include fontsize($base_font_size - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.prompt-dialog-error-label {
|
.prompt-dialog-error-label {
|
||||||
@include fontsize($base_font_size - 1);
|
|
||||||
color: $warning_color;
|
color: $warning_color;
|
||||||
padding-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt-dialog-info-label {
|
|
||||||
@include fontsize($base_font_size - 1);
|
|
||||||
padding-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt-dialog-null-label {
|
|
||||||
@include fontsize($base_font_size - 1);
|
|
||||||
padding-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt-dialog-pim-box {
|
|
||||||
spacing: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt-dialog-grid {
|
|
||||||
spacing-rows: 15px;
|
|
||||||
spacing-columns: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt-dialog-keyfiles-box {
|
|
||||||
spacing: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt-dialog-button.button {
|
|
||||||
padding: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Polkit Dialog */
|
/* Polkit Dialog */
|
||||||
|
|
||||||
.polkit-dialog-user-layout {
|
.polkit-dialog-user-layout {
|
||||||
padding-left: 10px;
|
text-align: center;
|
||||||
spacing: 10px;
|
spacing: 8px;
|
||||||
&:rtl {
|
margin-bottom: 6px;
|
||||||
padding-left: 0px;
|
|
||||||
padding-right: 10px;
|
.polkit-dialog-user-icon {
|
||||||
|
border-radius: 99px;
|
||||||
|
background-size: contain;
|
||||||
}
|
}
|
||||||
}
|
.polkit-dialog-user-root-label { color: $warning_color; }
|
||||||
|
|
||||||
.polkit-dialog-user-root-label {
|
|
||||||
color: $warning_color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.polkit-dialog-user-icon {
|
|
||||||
border-radius: 99px;
|
|
||||||
background-size: contain;
|
|
||||||
width: 48px;
|
|
||||||
height: 48px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Audio selection dialog */
|
/* Audio selection dialog */
|
||||||
@@ -185,15 +167,3 @@
|
|||||||
.access-dialog {
|
.access-dialog {
|
||||||
spacing: 30px;
|
spacing: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Network Agent Dialog */
|
|
||||||
|
|
||||||
.network-dialog-secret-table {
|
|
||||||
spacing-rows: 15px;
|
|
||||||
spacing-columns: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.keyring-dialog-control-table {
|
|
||||||
spacing-rows: 15px;
|
|
||||||
spacing-columns: 1em;
|
|
||||||
}
|
|
||||||
|
@@ -10,7 +10,7 @@ $default_key_bg_color: if($variant=='light', darken($osd_bg_color, 11%), lighten
|
|||||||
// draw keys using button function
|
// draw keys using button function
|
||||||
#keyboard {
|
#keyboard {
|
||||||
background-color: transparentize(if($variant=='light', darken($bg_color, 5%), darken($bg_color, 8%)), 0.1);
|
background-color: transparentize(if($variant=='light', darken($bg_color, 5%), darken($bg_color, 8%)), 0.1);
|
||||||
box-shadow: inset 0 1px 0 0 $osd_outer_borders_color !important;
|
box-shadow: inset 0 1px 0 0 $osd_outer_borders_color;
|
||||||
|
|
||||||
.page-indicator {
|
.page-indicator {
|
||||||
padding: $base_padding;
|
padding: $base_padding;
|
||||||
@@ -121,4 +121,4 @@ $default_key_bg_color: if($variant=='light', darken($osd_bg_color, 11%), lighten
|
|||||||
@include fontsize($base_font_size + 3);
|
@include fontsize($base_font_size + 3);
|
||||||
spacing: 12px;
|
spacing: 12px;
|
||||||
min-height: 20pt;
|
min-height: 20pt;
|
||||||
}
|
}
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
.message-list-sections {
|
.message-list-sections {
|
||||||
spacing: $base_spacing;
|
spacing: $base_spacing;
|
||||||
margin: $base_margin * 4; // to account for scrollbar
|
margin: 0 $base_margin * 4; // to account for scrollbar
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-list-section,
|
.message-list-section,
|
||||||
@@ -19,40 +19,61 @@
|
|||||||
spacing: $base_spacing;
|
spacing: $base_spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-list-section-list {
|
|
||||||
&:ltr {padding:0;}
|
|
||||||
&:rtl {padding:0;}
|
|
||||||
}
|
|
||||||
|
|
||||||
// do-not-disturb + clear button
|
// do-not-disturb + clear button
|
||||||
.message-list-controls {
|
.message-list-controls {
|
||||||
margin: $base_margin $base_margin*2;
|
margin: ($base_margin * 2) ($base_margin * 4) 0;
|
||||||
|
// NOTE: remove the padding if notification_bubble could remove margin for drop shadow
|
||||||
|
padding: $base_margin;
|
||||||
spacing: $base_spacing;
|
spacing: $base_spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
// message bubbles
|
// message bubbles
|
||||||
.message {
|
.message {
|
||||||
@extend %notification_bubble;
|
@include notification_bubble;
|
||||||
|
|
||||||
// title
|
// icon container
|
||||||
.message-title {
|
.message-icon-bin {
|
||||||
color: $fg_color;
|
padding: ($base_padding * 3) 0 ($base_padding * 3) ($base_padding * 2);
|
||||||
font-weight: bold;
|
|
||||||
margin-bottom:4px;
|
&:rtl {
|
||||||
|
padding: ($base_padding * 3) ($base_padding * 2) ($base_padding * 3) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// icon size and color
|
||||||
|
> StIcon {
|
||||||
|
icon-size: $base_icon_size*2; // 32px
|
||||||
|
-st-icon-style: symbolic;
|
||||||
|
}
|
||||||
|
|
||||||
|
// fallback
|
||||||
|
> .fallback-app-icon {
|
||||||
|
width: $base_icon_size;
|
||||||
|
height: $base_icon_size;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// content
|
// content
|
||||||
.message-content {
|
.message-content {
|
||||||
color: darken($fg_color, 10%);
|
padding: $base_padding + $base_margin * 2;
|
||||||
padding: $base_padding 0;
|
spacing: 4px;
|
||||||
margin:$base_margin * 2;
|
}
|
||||||
&:ltr {
|
|
||||||
margin-left: $base_margin;
|
// title
|
||||||
padding-right:$base_padding;
|
.message-title {
|
||||||
}
|
font-weight: bold;
|
||||||
&:rtl {
|
}
|
||||||
margin-right: $base_margin;
|
|
||||||
padding-left:$base_padding;
|
// secondary container in title box
|
||||||
|
.message-secondary-bin {
|
||||||
|
padding: 0 $base_margin * 2;
|
||||||
|
|
||||||
|
// notification time stamp
|
||||||
|
> .event-time {
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
@include fontsize($base_font_size - 2);
|
||||||
|
text-align: right;
|
||||||
|
/* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
|
||||||
|
padding-bottom: 0.13em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,48 +84,10 @@
|
|||||||
&:active { color: if($variant=='light', lighten($fg_color, 40%), darken($fg_color, 20%)); }
|
&:active { color: if($variant=='light', lighten($fg_color, 40%), darken($fg_color, 20%)); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// body
|
||||||
// icon container
|
.message-body {
|
||||||
.message-icon-bin {
|
color: darken($fg_color, 10%);
|
||||||
padding: $base_padding;
|
|
||||||
margin:$base_padding 0;
|
|
||||||
|
|
||||||
&:rtl {
|
|
||||||
// padding: $base_padding;
|
|
||||||
}
|
|
||||||
|
|
||||||
// icon size and color
|
|
||||||
> StIcon {
|
|
||||||
color: $fg_color;
|
|
||||||
icon-size: $base_icon_size*2; // 32px
|
|
||||||
-st-icon-style: symbolic;
|
|
||||||
|
|
||||||
padding:0;
|
|
||||||
margin:$base_padding;
|
|
||||||
}
|
|
||||||
|
|
||||||
// fallback
|
|
||||||
> .fallback-app-icon {
|
|
||||||
width: $base_icon_size;
|
|
||||||
height: $base_icon_size;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// secondary container in title box
|
|
||||||
.message-secondary-bin {
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
// notification time stamp
|
|
||||||
> .event-time {
|
|
||||||
color: transparentize($fg_color, 0.5);
|
|
||||||
@include fontsize($base_font_size - 2);
|
|
||||||
text-align: right;
|
|
||||||
margin: 0 $base_margin * 2;
|
|
||||||
/* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
|
|
||||||
padding-bottom: $base_padding;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Media Controls */
|
/* Media Controls */
|
||||||
@@ -125,9 +108,9 @@
|
|||||||
|
|
||||||
&:insensitive { color: darken($fg_color,40%); }
|
&:insensitive { color: darken($fg_color,40%); }
|
||||||
|
|
||||||
// fix border-radius for last button on hover
|
// fix border-radius for last button
|
||||||
&:last-child:ltr { &:hover {border-radius: 0 $base_border_radius+2 $base_border_radius+2 0;} }
|
&:last-child:ltr { border-radius: 0 $base_border_radius+2 $base_border_radius+2 0; }
|
||||||
&:last-child:rtl { &:hover {border-radius: $base_border_radius+2 0 0 $base_border_radius+2;} }
|
&:last-child:rtl { border-radius: $base_border_radius+2 0 0 $base_border_radius+2; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// album-art
|
// album-art
|
||||||
@@ -142,6 +125,5 @@
|
|||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: $base_border_radius;
|
border-radius: $base_border_radius;
|
||||||
icon-size: $base_icon_size * 2 !important;
|
icon-size: $base_icon_size * 2 !important;
|
||||||
padding: $base_padding * 2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -60,8 +60,8 @@
|
|||||||
|
|
||||||
// Caps-lock warning
|
// Caps-lock warning
|
||||||
.caps-lock-warning-label {
|
.caps-lock-warning-label {
|
||||||
|
text-align: center;
|
||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
padding-left: 6.2em;
|
|
||||||
@include fontsize($base_font_size - 1);
|
@include fontsize($base_font_size - 1);
|
||||||
color: $warning_color;
|
color: $warning_color;
|
||||||
}
|
}
|
||||||
|
@@ -7,39 +7,8 @@ $notification_banner_width: 34em;
|
|||||||
.notification-banner {
|
.notification-banner {
|
||||||
min-height: $notification_banner_height;
|
min-height: $notification_banner_height;
|
||||||
width: $notification_banner_width;
|
width: $notification_banner_width;
|
||||||
@include fontsize($base_font_size);
|
|
||||||
margin: $base_margin;
|
|
||||||
border-radius: $modal_radius;
|
|
||||||
|
|
||||||
.message-title { color: $fg_color }
|
|
||||||
.message-content { color: $fg_color; }
|
|
||||||
|
|
||||||
&:hover { background: $bg_color; }
|
|
||||||
&, &:focus, &:active {
|
|
||||||
background-color: $bg_color;
|
|
||||||
.message-title { color: $fg_color }
|
|
||||||
.message-content { color: $fg_color; }
|
|
||||||
}
|
|
||||||
|
|
||||||
// icon
|
|
||||||
.message-icon-bin > StIcon {
|
|
||||||
icon-size: $base_icon_size * 2;
|
|
||||||
color: $fg_color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification-icon {
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification-content {
|
|
||||||
padding: 5px;
|
|
||||||
spacing: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.secondary-icon { icon-size: $base_icon_size; }
|
|
||||||
|
|
||||||
.notification-actions {
|
.notification-actions {
|
||||||
padding-top: 0;
|
|
||||||
spacing: 0;
|
spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,8 +32,6 @@ $notification_banner_width: 34em;
|
|||||||
border-radius: 0.9em; // should be 0.8 but whatever; wish I could do 50%;
|
border-radius: 0.9em; // should be 0.8 but whatever; wish I could do 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.secondary-icon { icon-size: $base_icon_size; }
|
|
||||||
|
|
||||||
// chat bubbles
|
// chat bubbles
|
||||||
.chat-body { spacing: 5px; }
|
.chat-body { spacing: 5px; }
|
||||||
.chat-response { margin: 5px; }
|
.chat-response { margin: 5px; }
|
||||||
@@ -87,4 +54,4 @@ $notification_banner_width: 34em;
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: lighten($fg_color,18%);
|
color: lighten($fg_color,18%);
|
||||||
&:rtl { padding-left: 0; padding-right: 4px; }
|
&:rtl { padding-left: 0; padding-right: 4px; }
|
||||||
}
|
}
|
||||||
|
@@ -15,8 +15,7 @@ $panel_height: 1.86em;
|
|||||||
|
|
||||||
// transparent panel on lock & login screens
|
// transparent panel on lock & login screens
|
||||||
&.unlock-screen,
|
&.unlock-screen,
|
||||||
&.login-screen,
|
&.login-screen {
|
||||||
&.lock-screen {
|
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
.panel-corner {
|
.panel-corner {
|
||||||
@@ -77,8 +76,7 @@ $panel_height: 1.86em;
|
|||||||
|
|
||||||
// lock & login screen styles
|
// lock & login screen styles
|
||||||
.unlock-screen &,
|
.unlock-screen &,
|
||||||
.login-screen &,
|
.login-screen & {
|
||||||
.lock-screen & {
|
|
||||||
color: lighten($fg_color, 10%);
|
color: lighten($fg_color, 10%);
|
||||||
&:focus, &:hover, &:active { color: lighten($fg_color, 10%); }
|
&:focus, &:hover, &:active { color: lighten($fg_color, 10%); }
|
||||||
}
|
}
|
||||||
|
@@ -87,7 +87,6 @@ $popover_arrow_height: 12px;
|
|||||||
height: 1px; //not really the whole box
|
height: 1px; //not really the whole box
|
||||||
margin: 6px 64px;
|
margin: 6px 64px;
|
||||||
background-color: lighten($borders_color, 2%);
|
background-color: lighten($borders_color, 2%);
|
||||||
border: none !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// desktop background menu
|
// desktop background menu
|
||||||
@@ -118,4 +117,4 @@ $popover_arrow_height: 12px;
|
|||||||
margin-right: $base_icon_size;
|
margin-right: $base_icon_size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,68 +1,53 @@
|
|||||||
/* Screen Shield */
|
/* Screen Shield */
|
||||||
|
|
||||||
$_screenshield_shadow: 0px 0px 6px rgba(0, 0, 0, 0.726);
|
.unlock-dialog-clock {
|
||||||
|
|
||||||
.screen-shield-arrows {
|
|
||||||
padding-bottom: 3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-shield-arrows Gjs_Arrow {
|
|
||||||
color: white;
|
color: white;
|
||||||
width: 80px;
|
font-weight: 300;
|
||||||
height: 48px;
|
|
||||||
-arrow-thickness: 12px;
|
|
||||||
-arrow-shadow: $_screenshield_shadow;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-shield-clock {
|
|
||||||
color: white;
|
|
||||||
text-shadow: $_screenshield_shadow;
|
|
||||||
font-weight: bold;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-bottom: 1.5em;
|
padding-bottom: 2.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen-shield-clock-time {
|
.unlock-dialog-clock-time {
|
||||||
font-size: 72pt;
|
font-size: 64pt;
|
||||||
text-shadow: $_screenshield_shadow;
|
padding-bottom: 24px;
|
||||||
font-feature-settings: "tnum";
|
font-feature-settings: "tnum";
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen-shield-clock-date {
|
.unlock-dialog-clock-date {
|
||||||
font-size: 28pt;
|
font-size: 16pt;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen-shield-notifications-container {
|
.unlock-dialog-notifications-container {
|
||||||
|
margin: 12px 0;
|
||||||
spacing: 6px;
|
spacing: 6px;
|
||||||
width: 30em;
|
width: 23em;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
max-height: 500px;
|
|
||||||
.summary-notification-stack-scrollview {
|
.summary-notification-stack-scrollview {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification,
|
.notification,
|
||||||
.screen-shield-notification-source {
|
.unlock-dialog-notification-source {
|
||||||
padding: 12px 6px;
|
padding: 12px 6px;
|
||||||
border: 1px solid $osd_outer_borders_color;
|
border: 1px solid $osd_outer_borders_color;
|
||||||
background-color: transparentize($osd_bg_color,0.5);
|
background-color: transparentize($osd_bg_color,0.5);
|
||||||
color: $osd_fg_color;
|
color: $osd_fg_color;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
|
&.critical { background-color: transparentize($osd_bg_color,0.1) }
|
||||||
}
|
}
|
||||||
.notification { margin-right: 15px; } //compensate for space allocated to the scrollbar
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.unlock-dialog-notification-label {
|
||||||
.screen-shield-notification-label {
|
|
||||||
font-weight: bold;
|
|
||||||
padding: 0px 0px 0px 12px;
|
padding: 0px 0px 0px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen-shield-notification-count-text { padding: 0px 0px 0px 12px; }
|
.unlock-dialog-notification-count-text {
|
||||||
|
weight: bold;
|
||||||
#panel.lock-screen { background-color: transparentize($osd_bg_color, 0.5); }
|
padding: 0px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.screen-shield-background { //just the shadow, really
|
.screen-shield-background { //just the shadow, really
|
||||||
background: black;
|
background: black;
|
||||||
@@ -70,14 +55,13 @@ $_screenshield_shadow: 0px 0px 6px rgba(0, 0, 0, 0.726);
|
|||||||
}
|
}
|
||||||
|
|
||||||
#lockDialogGroup {
|
#lockDialogGroup {
|
||||||
background: lighten(#2e3436, 8%) url(resource:///org/gnome/shell/theme/noise-texture.png);
|
background-color: lighten(#2e3436, 8%);
|
||||||
background-repeat: repeat;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#screenShieldNotifications {
|
#unlockDialogNotifications {
|
||||||
StButton#vhandle, StButton#hhandle {
|
StButton#vhandle, StButton#hhandle {
|
||||||
background-color: transparentize($bg_color,0.7);
|
background-color: transparentize($bg_color,0.7);
|
||||||
&:hover, &:focus { background-color: transparentize($bg_color,0.5); }
|
&:hover, &:focus { background-color: transparentize($bg_color,0.5); }
|
||||||
&:active { background-color: transparentize($selected_bg_color,0.5); }
|
&:active { background-color: transparentize($selected_bg_color,0.5); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,19 +3,16 @@
|
|||||||
// search overview container
|
// search overview container
|
||||||
#searchResultsContent {
|
#searchResultsContent {
|
||||||
max-width: 1024px;
|
max-width: 1024px;
|
||||||
|
spacing: $base_margin * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// search results sections "the boxes"
|
// search results sections "the boxes"
|
||||||
.search-section {
|
.search-section {
|
||||||
|
// This should be equal to #searchResultsContent spacing
|
||||||
spacing: $base_margin * 2;
|
spacing: $base_margin * 2;
|
||||||
padding:0 !important;
|
|
||||||
margin:0 !important;
|
|
||||||
background-color:transparent;
|
|
||||||
box-shadow:none;
|
|
||||||
border:none;
|
|
||||||
// separator
|
// separator
|
||||||
.search-section-separator {
|
.search-section-separator {
|
||||||
// margin-top: $base_padding * 2;
|
|
||||||
// height: 1px;
|
// height: 1px;
|
||||||
// background-color: $osd_outer_borders_color;
|
// background-color: $osd_outer_borders_color;
|
||||||
height: 0;
|
height: 0;
|
||||||
@@ -32,8 +29,24 @@
|
|||||||
text-shadow: 0 1px if($variant == 'light', rgba(255,255,255,0.2), rgba(0,0,0,0.2));
|
text-shadow: 0 1px if($variant == 'light', rgba(255,255,255,0.2), rgba(0,0,0,0.2));
|
||||||
color: $osd_fg_color;
|
color: $osd_fg_color;
|
||||||
padding: $base_padding * 3;
|
padding: $base_padding * 3;
|
||||||
margin: $base_margin 0;
|
// This is the space between the provider icon and the results container
|
||||||
spacing: 0;
|
spacing: $base_margin * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
%search-section-content-item {
|
||||||
|
@extend %icon_tile;
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&:hover,
|
||||||
|
&:selected {
|
||||||
|
background-color: transparentize($osd_fg_color, .9);
|
||||||
|
transition-duration: 200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
background-color: transparentize(darken($osd_bg_color, 10%), .1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// "no results" text
|
// "no results" text
|
||||||
@@ -43,54 +56,12 @@
|
|||||||
|
|
||||||
// Search results with icons
|
// Search results with icons
|
||||||
.grid-search-result {
|
.grid-search-result {
|
||||||
> .overview-icon {
|
@extend %app-well-app;
|
||||||
@extend %icon_tile;
|
|
||||||
color: $osd_fg_color;
|
|
||||||
}
|
|
||||||
|
|
||||||
> .overview-icon.overview-icon-with-label {
|
|
||||||
padding: 10px 8px 5px 8px;
|
|
||||||
spacing: $base_spacing;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus,
|
|
||||||
&:selected {
|
|
||||||
.overview-icon {
|
|
||||||
background-color: transparentize($osd_bg_color,0.8);
|
|
||||||
color: $osd_fg_color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:drop .overview-icon {
|
|
||||||
background-color: transparentize($selected_bg_color,.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active .overview-icon,
|
|
||||||
&:checked .overview-icon {
|
|
||||||
background-color: transparentize(darken($osd_bg_color,10%), 0.5);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// search result provider
|
// search result provider
|
||||||
.search-provider-icon {
|
.search-provider-icon {
|
||||||
@extend %icon_tile;
|
@extend %search-section-content-item;
|
||||||
|
|
||||||
padding: $base_padding;
|
|
||||||
spacing: 0;
|
|
||||||
margin-right: $base_margin * 2;
|
|
||||||
|
|
||||||
&:focus,
|
|
||||||
&:selected,
|
|
||||||
&:hover {
|
|
||||||
background-color: transparentize($osd_fg_color,.9);
|
|
||||||
transition-duration: 200ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active,
|
|
||||||
&:checked {
|
|
||||||
background-color: transparentize(darken($osd_bg_color,10%),.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// content
|
// content
|
||||||
.list-search-provider-content {
|
.list-search-provider-content {
|
||||||
@@ -113,34 +84,16 @@
|
|||||||
|
|
||||||
// search result listitem
|
// search result listitem
|
||||||
.list-search-result {
|
.list-search-result {
|
||||||
@extend %icon_tile;
|
@extend %search-section-content-item;
|
||||||
spacing: 0;
|
|
||||||
padding: $base_padding;
|
|
||||||
color: $osd_fg_color;
|
|
||||||
|
|
||||||
border-radius: $base_border_radius + 2px !important;
|
|
||||||
|
|
||||||
&:focus,
|
|
||||||
&:selected,
|
|
||||||
&:hover {
|
|
||||||
background-color: transparentize($osd_fg_color,.9);
|
|
||||||
transition-duration: 200ms;
|
|
||||||
}
|
|
||||||
&:active,
|
|
||||||
&:checked {
|
|
||||||
background-color: transparentize(darken($osd_bg_color,10%),.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// content
|
// content
|
||||||
.list-search-result-content {
|
.list-search-result-content {
|
||||||
spacing: 0;
|
spacing: $base_padding;
|
||||||
}
|
}
|
||||||
|
|
||||||
// list item title
|
// list item title (with leading icon)
|
||||||
.list-search-result-title {
|
.list-search-result-title {
|
||||||
color: $osd_fg_color;
|
|
||||||
spacing: $base_spacing * 2;
|
spacing: $base_spacing * 2;
|
||||||
padding-right: $base_padding;
|
|
||||||
// font-weight: bold;
|
// font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -45,14 +45,11 @@
|
|||||||
padding: $base_padding;
|
padding: $base_padding;
|
||||||
|
|
||||||
border-radius: $modal_radius 0 0 $modal_radius;
|
border-radius: $modal_radius 0 0 $modal_radius;
|
||||||
border-right-width: 0 !important;
|
border-right-width: 0;
|
||||||
//fixme: can't have non uniform borders :(
|
|
||||||
border-top-left-radius:0 !important;
|
|
||||||
border-bottom-left-radius:0 !important;
|
|
||||||
|
|
||||||
&:rtl {
|
&:rtl {
|
||||||
border-radius: 0 $modal_radius $modal_radius 0;
|
border-radius: 0 $modal_radius $modal_radius 0;
|
||||||
border-left-width: 0 !important;
|
border-left-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// drag and drop indicator
|
// drag and drop indicator
|
||||||
@@ -69,4 +66,4 @@
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
// background-color: transparentize($selected_bg_color, 0.9);
|
// background-color: transparentize($selected_bg_color, 0.9);
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 78 KiB |
11
js/extensionPrefs/css/application.css
Normal file
11
js/extensionPrefs/css/application.css
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
.details-button image {
|
||||||
|
transition: 250ms;
|
||||||
|
}
|
||||||
|
.details-button.expanded:dir(ltr) image {
|
||||||
|
-gtk-icon-transform: rotate(0.25turn);
|
||||||
|
}
|
||||||
|
.details-button.expanded:dir(rtl) image {
|
||||||
|
-gtk-icon-transform: rotate(-0.25turn);
|
||||||
|
}
|
||||||
|
|
||||||
|
image.warning { color: @warning_color; }
|
@@ -3,15 +3,16 @@ imports.gi.versions.Gdk = '3.0';
|
|||||||
imports.gi.versions.Gtk = '3.0';
|
imports.gi.versions.Gtk = '3.0';
|
||||||
|
|
||||||
const Gettext = imports.gettext;
|
const Gettext = imports.gettext;
|
||||||
const { Gdk, GLib, Gio, GObject, Gtk, Pango } = imports.gi;
|
const { Gdk, GLib, Gio, GObject, Gtk } = imports.gi;
|
||||||
const Format = imports.format;
|
const Format = imports.format;
|
||||||
|
|
||||||
const _ = Gettext.gettext;
|
const _ = Gettext.gettext;
|
||||||
|
|
||||||
|
const Config = imports.misc.config;
|
||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
const { loadInterfaceXML } = imports.misc.fileUtils;
|
const { loadInterfaceXML } = imports.misc.fileUtils;
|
||||||
|
|
||||||
const { ExtensionState } = ExtensionUtils;
|
const { ExtensionState, ExtensionType } = ExtensionUtils;
|
||||||
|
|
||||||
const GnomeShellIface = loadInterfaceXML('org.gnome.Shell.Extensions');
|
const GnomeShellIface = loadInterfaceXML('org.gnome.Shell.Extensions');
|
||||||
const GnomeShellProxy = Gio.DBusProxy.makeProxyWrapper(GnomeShellIface);
|
const GnomeShellProxy = Gio.DBusProxy.makeProxyWrapper(GnomeShellIface);
|
||||||
@@ -27,26 +28,144 @@ class Application extends Gtk.Application {
|
|||||||
_init() {
|
_init() {
|
||||||
GLib.set_prgname('gnome-shell-extension-prefs');
|
GLib.set_prgname('gnome-shell-extension-prefs');
|
||||||
super._init({
|
super._init({
|
||||||
application_id: 'org.gnome.shell.ExtensionPrefs',
|
application_id: 'org.gnome.Extensions',
|
||||||
flags: Gio.ApplicationFlags.HANDLES_COMMAND_LINE,
|
flags: Gio.ApplicationFlags.HANDLES_COMMAND_LINE,
|
||||||
});
|
});
|
||||||
|
|
||||||
this._startupUuid = null;
|
|
||||||
this._loaded = false;
|
|
||||||
this._skipMainWindow = false;
|
|
||||||
this._shellProxy = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get shellProxy() {
|
get shellProxy() {
|
||||||
return this._shellProxy;
|
return this._shellProxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
_showPrefs(uuid) {
|
vfunc_activate() {
|
||||||
let row = this._extensionSelector.get_children().find(c => {
|
this._shellProxy.CheckForUpdatesRemote();
|
||||||
return c.uuid === uuid && c.hasPrefs;
|
this._window.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
vfunc_startup() {
|
||||||
|
super.vfunc_startup();
|
||||||
|
|
||||||
|
let provider = new Gtk.CssProvider();
|
||||||
|
let uri = 'resource:///org/gnome/shell/css/application.css';
|
||||||
|
try {
|
||||||
|
provider.load_from_file(Gio.File.new_for_uri(uri));
|
||||||
|
} catch (e) {
|
||||||
|
logError(e, 'Failed to add application style');
|
||||||
|
}
|
||||||
|
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
|
||||||
|
provider,
|
||||||
|
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
|
||||||
|
|
||||||
|
this._shellProxy = new GnomeShellProxy(Gio.DBus.session, 'org.gnome.Shell', '/org/gnome/Shell');
|
||||||
|
this._window = new ExtensionsWindow({ application: this });
|
||||||
|
}
|
||||||
|
|
||||||
|
vfunc_command_line(commandLine) {
|
||||||
|
let args = commandLine.get_arguments();
|
||||||
|
|
||||||
|
if (args.length) {
|
||||||
|
let uuid = args[0];
|
||||||
|
|
||||||
|
// Strip off "extension:///" prefix which fakes a URI, if it exists
|
||||||
|
uuid = stripPrefix(uuid, 'extension:///');
|
||||||
|
|
||||||
|
this._window.openPrefs(uuid);
|
||||||
|
} else {
|
||||||
|
this.activate();
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var ExtensionsWindow = GObject.registerClass({
|
||||||
|
GTypeName: 'ExtensionsWindow',
|
||||||
|
Template: 'resource:///org/gnome/shell/ui/extensions-window.ui',
|
||||||
|
InternalChildren: [
|
||||||
|
'userList',
|
||||||
|
'systemList',
|
||||||
|
'killSwitch',
|
||||||
|
'mainBox',
|
||||||
|
'mainStack',
|
||||||
|
'scrolledWindow',
|
||||||
|
'updatesBar',
|
||||||
|
'updatesLabel',
|
||||||
|
],
|
||||||
|
}, class ExtensionsWindow extends Gtk.ApplicationWindow {
|
||||||
|
_init(params) {
|
||||||
|
super._init(params);
|
||||||
|
|
||||||
|
this._startupUuid = null;
|
||||||
|
this._loaded = false;
|
||||||
|
this._prefsDialog = null;
|
||||||
|
this._updatesCheckId = 0;
|
||||||
|
|
||||||
|
this._mainBox.set_focus_vadjustment(this._scrolledWindow.vadjustment);
|
||||||
|
|
||||||
|
let action;
|
||||||
|
action = new Gio.SimpleAction({ name: 'show-about' });
|
||||||
|
action.connect('activate', this._showAbout.bind(this));
|
||||||
|
this.add_action(action);
|
||||||
|
|
||||||
|
action = new Gio.SimpleAction({ name: 'logout' });
|
||||||
|
action.connect('activate', this._logout.bind(this));
|
||||||
|
this.add_action(action);
|
||||||
|
|
||||||
|
this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell' });
|
||||||
|
this._settings.bind('disable-user-extensions',
|
||||||
|
this._killSwitch, 'active',
|
||||||
|
Gio.SettingsBindFlags.DEFAULT | Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
||||||
|
|
||||||
|
this._userList.set_sort_func(this._sortList.bind(this));
|
||||||
|
this._userList.set_header_func(this._updateHeader.bind(this));
|
||||||
|
|
||||||
|
this._systemList.set_sort_func(this._sortList.bind(this));
|
||||||
|
this._systemList.set_header_func(this._updateHeader.bind(this));
|
||||||
|
|
||||||
|
this._shellProxy.connectSignal('ExtensionStateChanged',
|
||||||
|
this._onExtensionStateChanged.bind(this));
|
||||||
|
|
||||||
|
this._scanExtensions();
|
||||||
|
}
|
||||||
|
|
||||||
|
get _shellProxy() {
|
||||||
|
return this.application.shellProxy;
|
||||||
|
}
|
||||||
|
|
||||||
|
uninstall(uuid) {
|
||||||
|
let row = this._findExtensionRow(uuid);
|
||||||
|
|
||||||
|
let dialog = new Gtk.MessageDialog({
|
||||||
|
transient_for: this,
|
||||||
|
modal: true,
|
||||||
|
text: _('Remove “%s”?').format(row.name),
|
||||||
|
secondary_text: _('If you remove the extension, you need to return to download it if you want to enable it again'),
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!row)
|
dialog.add_button(_('Cancel'), Gtk.ResponseType.CANCEL);
|
||||||
|
dialog.add_button(_('Remove'), Gtk.ResponseType.ACCEPT)
|
||||||
|
.get_style_context().add_class('destructive-action');
|
||||||
|
|
||||||
|
dialog.connect('response', (dlg, response) => {
|
||||||
|
if (response === Gtk.ResponseType.ACCEPT)
|
||||||
|
this._shellProxy.UninstallExtensionRemote(uuid);
|
||||||
|
dialog.destroy();
|
||||||
|
});
|
||||||
|
dialog.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
openPrefs(uuid) {
|
||||||
|
if (!this._loaded)
|
||||||
|
this._startupUuid = uuid;
|
||||||
|
else if (!this._showPrefs(uuid))
|
||||||
|
this.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
_showPrefs(uuid) {
|
||||||
|
if (this._prefsDialog)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
let row = this._findExtensionRow(uuid);
|
||||||
|
if (!row || !row.hasPrefs)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
let widget;
|
let widget;
|
||||||
@@ -57,33 +176,73 @@ class Application extends Gtk.Application {
|
|||||||
widget = this._buildErrorUI(row, e);
|
widget = this._buildErrorUI(row, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
let dialog = new Gtk.Window({
|
this._prefsDialog = new Gtk.Window({
|
||||||
modal: !this._skipMainWindow,
|
application: this.application,
|
||||||
|
default_width: 600,
|
||||||
|
default_height: 400,
|
||||||
|
modal: this.visible,
|
||||||
type_hint: Gdk.WindowTypeHint.DIALOG,
|
type_hint: Gdk.WindowTypeHint.DIALOG,
|
||||||
|
window_position: Gtk.WindowPosition.CENTER,
|
||||||
});
|
});
|
||||||
dialog.set_titlebar(new Gtk.HeaderBar({
|
|
||||||
|
this._prefsDialog.set_titlebar(new Gtk.HeaderBar({
|
||||||
show_close_button: true,
|
show_close_button: true,
|
||||||
title: row.name,
|
title: row.name,
|
||||||
visible: true,
|
visible: true,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (this._skipMainWindow) {
|
if (this.visible)
|
||||||
this.add_window(dialog);
|
this._prefsDialog.transient_for = this;
|
||||||
if (this._window)
|
|
||||||
this._window.destroy();
|
|
||||||
this._window = dialog;
|
|
||||||
this._window.window_position = Gtk.WindowPosition.CENTER;
|
|
||||||
} else {
|
|
||||||
dialog.transient_for = this._window;
|
|
||||||
}
|
|
||||||
|
|
||||||
dialog.set_default_size(600, 400);
|
this._prefsDialog.connect('destroy', () => {
|
||||||
dialog.add(widget);
|
this._prefsDialog = null;
|
||||||
dialog.show();
|
|
||||||
|
if (!this.visible)
|
||||||
|
this.destroy();
|
||||||
|
});
|
||||||
|
|
||||||
|
this._prefsDialog.add(widget);
|
||||||
|
this._prefsDialog.show();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_showAbout() {
|
||||||
|
let aboutDialog = new Gtk.AboutDialog({
|
||||||
|
authors: [
|
||||||
|
'Florian Müllner <fmuellner@gnome.org>',
|
||||||
|
'Jasper St. Pierre <jstpierre@mecheye.net>',
|
||||||
|
'Didier Roche <didrocks@ubuntu.com>',
|
||||||
|
],
|
||||||
|
translator_credits: _('translator-credits'),
|
||||||
|
program_name: _('Extensions'),
|
||||||
|
comments: _('Manage your GNOME Extensions'),
|
||||||
|
license_type: Gtk.License.GPL_2_0,
|
||||||
|
logo_icon_name: 'org.gnome.Extensions',
|
||||||
|
version: Config.PACKAGE_VERSION,
|
||||||
|
|
||||||
|
transient_for: this,
|
||||||
|
modal: true,
|
||||||
|
});
|
||||||
|
aboutDialog.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
_logout() {
|
||||||
|
this.application.get_dbus_connection().call(
|
||||||
|
'org.gnome.SessionManager',
|
||||||
|
'/org/gnome/SessionManager',
|
||||||
|
'org.gnome.SessionManager',
|
||||||
|
'Logout',
|
||||||
|
new GLib.Variant('(u)', [0]),
|
||||||
|
null,
|
||||||
|
Gio.DBusCallFlags.NONE,
|
||||||
|
-1,
|
||||||
|
null,
|
||||||
|
(o, res) => {
|
||||||
|
o.call_finish(res);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
_buildErrorUI(row, exc) {
|
_buildErrorUI(row, exc) {
|
||||||
let scroll = new Gtk.ScrolledWindow({
|
let scroll = new Gtk.ScrolledWindow({
|
||||||
hscrollbar_policy: Gtk.PolicyType.NEVER,
|
hscrollbar_policy: Gtk.PolicyType.NEVER,
|
||||||
@@ -178,7 +337,7 @@ class Application extends Gtk.Application {
|
|||||||
label: _("Homepage"),
|
label: _("Homepage"),
|
||||||
tooltip_text: _("Visit extension homepage"),
|
tooltip_text: _("Visit extension homepage"),
|
||||||
no_show_all: true,
|
no_show_all: true,
|
||||||
visible: row.url != null,
|
visible: row.url !== '',
|
||||||
});
|
});
|
||||||
toolbar.add(urlButton);
|
toolbar.add(urlButton);
|
||||||
|
|
||||||
@@ -199,47 +358,6 @@ class Application extends Gtk.Application {
|
|||||||
return scroll;
|
return scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
_buildUI() {
|
|
||||||
this._window = new Gtk.ApplicationWindow({ application: this,
|
|
||||||
window_position: Gtk.WindowPosition.CENTER });
|
|
||||||
|
|
||||||
this._window.set_default_size(800, 500);
|
|
||||||
|
|
||||||
this._titlebar = new Gtk.HeaderBar({ show_close_button: true,
|
|
||||||
title: _("Shell Extensions") });
|
|
||||||
this._window.set_titlebar(this._titlebar);
|
|
||||||
|
|
||||||
let killSwitch = new Gtk.Switch({ valign: Gtk.Align.CENTER });
|
|
||||||
this._titlebar.pack_end(killSwitch);
|
|
||||||
|
|
||||||
this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell' });
|
|
||||||
this._settings.bind('disable-user-extensions', killSwitch, 'active',
|
|
||||||
Gio.SettingsBindFlags.DEFAULT |
|
|
||||||
Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
|
||||||
|
|
||||||
this._mainStack = new Gtk.Stack({
|
|
||||||
transition_type: Gtk.StackTransitionType.CROSSFADE,
|
|
||||||
});
|
|
||||||
this._window.add(this._mainStack);
|
|
||||||
|
|
||||||
let scroll = new Gtk.ScrolledWindow({ hscrollbar_policy: Gtk.PolicyType.NEVER });
|
|
||||||
|
|
||||||
this._extensionSelector = new Gtk.ListBox({ selection_mode: Gtk.SelectionMode.NONE });
|
|
||||||
this._extensionSelector.set_sort_func(this._sortList.bind(this));
|
|
||||||
this._extensionSelector.set_header_func(this._updateHeader.bind(this));
|
|
||||||
|
|
||||||
scroll.add(this._extensionSelector);
|
|
||||||
|
|
||||||
this._mainStack.add_named(scroll, 'listing');
|
|
||||||
this._mainStack.add_named(new EmptyPlaceholder(), 'placeholder');
|
|
||||||
|
|
||||||
this._shellProxy = new GnomeShellProxy(Gio.DBus.session, 'org.gnome.Shell', '/org/gnome/Shell');
|
|
||||||
this._shellProxy.connectSignal('ExtensionStateChanged',
|
|
||||||
this._onExtensionStateChanged.bind(this));
|
|
||||||
|
|
||||||
this._window.show_all();
|
|
||||||
}
|
|
||||||
|
|
||||||
_sortList(row1, row2) {
|
_sortList(row1, row2) {
|
||||||
return row1.name.localeCompare(row2.name);
|
return row1.name.localeCompare(row2.name);
|
||||||
}
|
}
|
||||||
@@ -253,13 +371,26 @@ class Application extends Gtk.Application {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_findExtensionRow(uuid) {
|
_findExtensionRow(uuid) {
|
||||||
return this._extensionSelector.get_children().find(c => c.uuid === uuid);
|
return [
|
||||||
|
...this._userList.get_children(),
|
||||||
|
...this._systemList.get_children(),
|
||||||
|
].find(c => c.uuid === uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onExtensionStateChanged(proxy, senderName, [uuid, newState]) {
|
_onExtensionStateChanged(proxy, senderName, [uuid, newState]) {
|
||||||
let extension = ExtensionUtils.deserializeExtension(newState);
|
let extension = ExtensionUtils.deserializeExtension(newState);
|
||||||
let row = this._findExtensionRow(uuid);
|
let row = this._findExtensionRow(uuid);
|
||||||
|
|
||||||
|
this._queueUpdatesCheck();
|
||||||
|
|
||||||
|
// the extension's type changed; remove the corresponding row
|
||||||
|
// and reset the variable to null so that we create a new row
|
||||||
|
// below and add it to the appropriate list
|
||||||
|
if (row && row.type !== extension.type) {
|
||||||
|
row.destroy();
|
||||||
|
row = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (row) {
|
if (row) {
|
||||||
if (extension.state === ExtensionState.UNINSTALLED)
|
if (extension.state === ExtensionState.UNINSTALLED)
|
||||||
row.destroy();
|
row.destroy();
|
||||||
@@ -273,7 +404,6 @@ class Application extends Gtk.Application {
|
|||||||
if (e) {
|
if (e) {
|
||||||
if (e instanceof Gio.DBusError) {
|
if (e instanceof Gio.DBusError) {
|
||||||
log(`Failed to connect to shell proxy: ${e}`);
|
log(`Failed to connect to shell proxy: ${e}`);
|
||||||
this._mainStack.add_named(new NoShellPlaceholder(), 'noshell');
|
|
||||||
this._mainStack.visible_child_name = 'noshell';
|
this._mainStack.visible_child_name = 'noshell';
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
@@ -291,58 +421,53 @@ class Application extends Gtk.Application {
|
|||||||
|
|
||||||
_addExtensionRow(extension) {
|
_addExtensionRow(extension) {
|
||||||
let row = new ExtensionRow(extension);
|
let row = new ExtensionRow(extension);
|
||||||
|
|
||||||
row.prefsButton.connect('clicked', () => {
|
|
||||||
this._showPrefs(row.uuid);
|
|
||||||
});
|
|
||||||
|
|
||||||
row.show_all();
|
row.show_all();
|
||||||
this._extensionSelector.add(row);
|
|
||||||
|
if (row.type === ExtensionType.PER_USER)
|
||||||
|
this._userList.add(row);
|
||||||
|
else
|
||||||
|
this._systemList.add(row);
|
||||||
|
}
|
||||||
|
|
||||||
|
_queueUpdatesCheck() {
|
||||||
|
if (this._updatesCheckId)
|
||||||
|
return;
|
||||||
|
|
||||||
|
this._updatesCheckId = GLib.timeout_add_seconds(
|
||||||
|
GLib.PRIORITY_DEFAULT, 1, () => {
|
||||||
|
this._checkUpdates();
|
||||||
|
|
||||||
|
this._updatesCheckId = 0;
|
||||||
|
return GLib.SOURCE_REMOVE;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
_checkUpdates() {
|
||||||
|
let nUpdates = this._userList.get_children().filter(c => c.hasUpdate).length;
|
||||||
|
|
||||||
|
this._updatesLabel.label = Gettext.ngettext(
|
||||||
|
'%d extension will be updated on next login.',
|
||||||
|
'%d extensions will be updated on next login.',
|
||||||
|
nUpdates).format(nUpdates);
|
||||||
|
this._updatesBar.visible = nUpdates > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_extensionsLoaded() {
|
_extensionsLoaded() {
|
||||||
if (this._extensionSelector.get_children().length > 0)
|
this._userList.visible = this._userList.get_children().length > 0;
|
||||||
this._mainStack.visible_child_name = 'listing';
|
this._systemList.visible = this._systemList.get_children().length > 0;
|
||||||
|
|
||||||
|
if (this._userList.visible || this._systemList.visible)
|
||||||
|
this._mainStack.visible_child_name = 'main';
|
||||||
else
|
else
|
||||||
this._mainStack.visible_child_name = 'placeholder';
|
this._mainStack.visible_child_name = 'placeholder';
|
||||||
|
|
||||||
|
this._checkUpdates();
|
||||||
|
|
||||||
if (this._startupUuid)
|
if (this._startupUuid)
|
||||||
this._showPrefs(this._startupUuid);
|
this._showPrefs(this._startupUuid);
|
||||||
this._startupUuid = null;
|
this._startupUuid = null;
|
||||||
this._skipMainWindow = false;
|
|
||||||
this._loaded = true;
|
this._loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
vfunc_activate() {
|
|
||||||
this._window.present();
|
|
||||||
}
|
|
||||||
|
|
||||||
vfunc_startup() {
|
|
||||||
super.vfunc_startup();
|
|
||||||
|
|
||||||
this._buildUI();
|
|
||||||
this._scanExtensions();
|
|
||||||
}
|
|
||||||
|
|
||||||
vfunc_command_line(commandLine) {
|
|
||||||
this.activate();
|
|
||||||
let args = commandLine.get_arguments();
|
|
||||||
|
|
||||||
if (args.length) {
|
|
||||||
let uuid = args[0];
|
|
||||||
|
|
||||||
this._skipMainWindow = true;
|
|
||||||
|
|
||||||
// Strip off "extension:///" prefix which fakes a URI, if it exists
|
|
||||||
uuid = stripPrefix(uuid, "extension:///");
|
|
||||||
|
|
||||||
if (!this._loaded)
|
|
||||||
this._startupUuid = uuid;
|
|
||||||
else if (!this._showPrefs(uuid))
|
|
||||||
this._skipMainWindow = false;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var Expander = GObject.registerClass({
|
var Expander = GObject.registerClass({
|
||||||
@@ -444,113 +569,19 @@ var Expander = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var EmptyPlaceholder = GObject.registerClass(
|
var ExtensionRow = GObject.registerClass({
|
||||||
class EmptyPlaceholder extends Gtk.Box {
|
GTypeName: 'ExtensionRow',
|
||||||
_init() {
|
Template: 'resource:///org/gnome/shell/ui/extension-row.ui',
|
||||||
super._init({
|
InternalChildren: [
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
'nameLabel',
|
||||||
spacing: 6,
|
'descriptionLabel',
|
||||||
margin: 32,
|
'versionLabel',
|
||||||
});
|
'authorLabel',
|
||||||
|
'updatesIcon',
|
||||||
let image = new Gtk.Image({
|
'revealButton',
|
||||||
icon_name: 'application-x-addon-symbolic',
|
'revealer',
|
||||||
pixel_size: 96,
|
],
|
||||||
visible: true,
|
}, class ExtensionRow extends Gtk.ListBoxRow {
|
||||||
vexpand: true,
|
|
||||||
valign: Gtk.Align.END,
|
|
||||||
});
|
|
||||||
image.get_style_context().add_class(Gtk.STYLE_CLASS_DIM_LABEL);
|
|
||||||
this.add(image);
|
|
||||||
|
|
||||||
let label = new Gtk.Label({
|
|
||||||
label: `<b><span size="x-large">${_("No Extensions Installed")}</span></b>`,
|
|
||||||
use_markup: true,
|
|
||||||
visible: true,
|
|
||||||
});
|
|
||||||
label.get_style_context().add_class(Gtk.STYLE_CLASS_DIM_LABEL);
|
|
||||||
this.add(label);
|
|
||||||
|
|
||||||
let appInfo = Gio.DesktopAppInfo.new('org.gnome.Software.desktop');
|
|
||||||
|
|
||||||
let desc = new Gtk.Label({
|
|
||||||
label: _("Extensions can be installed through Software or <a href=\"https://extensions.gnome.org\">extensions.gnome.org</a>."),
|
|
||||||
use_markup: true,
|
|
||||||
wrap: true,
|
|
||||||
justify: Gtk.Justification.CENTER,
|
|
||||||
visible: true,
|
|
||||||
max_width_chars: 50,
|
|
||||||
hexpand: true,
|
|
||||||
vexpand: appInfo == null,
|
|
||||||
halign: Gtk.Align.CENTER,
|
|
||||||
valign: Gtk.Align.START,
|
|
||||||
});
|
|
||||||
this.add(desc);
|
|
||||||
|
|
||||||
if (appInfo) {
|
|
||||||
let button = new Gtk.Button({
|
|
||||||
label: _("Browse in Software"),
|
|
||||||
image: new Gtk.Image({
|
|
||||||
icon_name: "org.gnome.Software-symbolic",
|
|
||||||
}),
|
|
||||||
always_show_image: true,
|
|
||||||
margin_top: 12,
|
|
||||||
visible: true,
|
|
||||||
halign: Gtk.Align.CENTER,
|
|
||||||
valign: Gtk.Align.START,
|
|
||||||
vexpand: true,
|
|
||||||
});
|
|
||||||
this.add(button);
|
|
||||||
|
|
||||||
button.connect('clicked', w => {
|
|
||||||
let context = w.get_display().get_app_launch_context();
|
|
||||||
appInfo.launch([], context);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var NoShellPlaceholder = GObject.registerClass(
|
|
||||||
class NoShellPlaceholder extends Gtk.Box {
|
|
||||||
_init() {
|
|
||||||
super._init({
|
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
|
||||||
spacing: 12,
|
|
||||||
margin: 100,
|
|
||||||
margin_bottom: 60,
|
|
||||||
});
|
|
||||||
|
|
||||||
let label = new Gtk.Label({
|
|
||||||
label: '<span size="x-large">%s</span>'.format(
|
|
||||||
_("Something’s gone wrong")),
|
|
||||||
use_markup: true,
|
|
||||||
});
|
|
||||||
label.get_style_context().add_class(Gtk.STYLE_CLASS_DIM_LABEL);
|
|
||||||
this.add(label);
|
|
||||||
|
|
||||||
label = new Gtk.Label({
|
|
||||||
label: _("We’re very sorry, but it was not possible to get the list of installed extensions. Make sure you are logged into GNOME and try again."),
|
|
||||||
justify: Gtk.Justification.CENTER,
|
|
||||||
wrap: true,
|
|
||||||
});
|
|
||||||
this.add(label);
|
|
||||||
|
|
||||||
this.show_all();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var DescriptionLabel = GObject.registerClass(
|
|
||||||
class DescriptionLabel extends Gtk.Label {
|
|
||||||
vfunc_get_preferred_height_for_width(width) {
|
|
||||||
// Hack: Request the maximum height allowed by the line limit
|
|
||||||
if (this.lines > 0)
|
|
||||||
return super.vfunc_get_preferred_height_for_width(0);
|
|
||||||
return super.vfunc_get_preferred_height_for_width(width);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var ExtensionRow = GObject.registerClass(
|
|
||||||
class ExtensionRow extends Gtk.ListBoxRow {
|
|
||||||
_init(extension) {
|
_init(extension) {
|
||||||
super._init();
|
super._init();
|
||||||
|
|
||||||
@@ -558,9 +589,67 @@ class ExtensionRow extends Gtk.ListBoxRow {
|
|||||||
this._extension = extension;
|
this._extension = extension;
|
||||||
this._prefsModule = null;
|
this._prefsModule = null;
|
||||||
|
|
||||||
this.connect('destroy', this._onDestroy.bind(this));
|
this._actionGroup = new Gio.SimpleActionGroup();
|
||||||
|
this.insert_action_group('row', this._actionGroup);
|
||||||
|
|
||||||
this._buildUI();
|
let action;
|
||||||
|
action = new Gio.SimpleAction({
|
||||||
|
name: 'show-prefs',
|
||||||
|
enabled: this.hasPrefs,
|
||||||
|
});
|
||||||
|
action.connect('activate', () => this.get_toplevel().openPrefs(this.uuid));
|
||||||
|
this._actionGroup.add_action(action);
|
||||||
|
|
||||||
|
action = new Gio.SimpleAction({
|
||||||
|
name: 'show-url',
|
||||||
|
enabled: this.url !== '',
|
||||||
|
});
|
||||||
|
action.connect('activate', () => {
|
||||||
|
Gio.AppInfo.launch_default_for_uri(
|
||||||
|
this.url, this.get_display().get_app_launch_context());
|
||||||
|
});
|
||||||
|
this._actionGroup.add_action(action);
|
||||||
|
|
||||||
|
action = new Gio.SimpleAction({
|
||||||
|
name: 'uninstall',
|
||||||
|
enabled: this.type === ExtensionType.PER_USER,
|
||||||
|
});
|
||||||
|
action.connect('activate', () => this.get_toplevel().uninstall(this.uuid));
|
||||||
|
this._actionGroup.add_action(action);
|
||||||
|
|
||||||
|
action = new Gio.SimpleAction({
|
||||||
|
name: 'enabled',
|
||||||
|
state: new GLib.Variant('b', false),
|
||||||
|
});
|
||||||
|
action.connect('activate', () => {
|
||||||
|
let state = action.get_state();
|
||||||
|
action.change_state(new GLib.Variant('b', !state.get_boolean()));
|
||||||
|
});
|
||||||
|
action.connect('change-state', (a, state) => {
|
||||||
|
if (state.get_boolean())
|
||||||
|
this._app.shellProxy.EnableExtensionRemote(this.uuid);
|
||||||
|
else
|
||||||
|
this._app.shellProxy.DisableExtensionRemote(this.uuid);
|
||||||
|
});
|
||||||
|
this._actionGroup.add_action(action);
|
||||||
|
|
||||||
|
let name = GLib.markup_escape_text(this.name, -1);
|
||||||
|
this._nameLabel.label = name;
|
||||||
|
|
||||||
|
let desc = this._extension.metadata.description.split('\n')[0];
|
||||||
|
this._descriptionLabel.label = desc;
|
||||||
|
|
||||||
|
this._revealButton.connect('clicked', () => {
|
||||||
|
this._revealer.reveal_child = !this._revealer.reveal_child;
|
||||||
|
});
|
||||||
|
this._revealer.connect('notify::reveal-child', () => {
|
||||||
|
if (this._revealer.reveal_child)
|
||||||
|
this._revealButton.get_style_context().add_class('expanded');
|
||||||
|
else
|
||||||
|
this._revealButton.get_style_context().remove_class('expanded');
|
||||||
|
});
|
||||||
|
|
||||||
|
this.connect('destroy', this._onDestroy.bind(this));
|
||||||
|
|
||||||
this._extensionStateChangedId = this._app.shellProxy.connectSignal(
|
this._extensionStateChangedId = this._app.shellProxy.connectSignal(
|
||||||
'ExtensionStateChanged', (p, sender, [uuid, newState]) => {
|
'ExtensionStateChanged', (p, sender, [uuid, newState]) => {
|
||||||
@@ -568,14 +657,9 @@ class ExtensionRow extends Gtk.ListBoxRow {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this._extension = ExtensionUtils.deserializeExtension(newState);
|
this._extension = ExtensionUtils.deserializeExtension(newState);
|
||||||
let state = this._extension.state == ExtensionState.ENABLED;
|
this._updateState();
|
||||||
|
|
||||||
this._switch.block_signal_handler(this._notifyActiveId);
|
|
||||||
this._switch.state = state;
|
|
||||||
this._switch.unblock_signal_handler(this._notifyActiveId);
|
|
||||||
|
|
||||||
this._switch.sensitive = this._canToggle();
|
|
||||||
});
|
});
|
||||||
|
this._updateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
get uuid() {
|
get uuid() {
|
||||||
@@ -590,8 +674,40 @@ class ExtensionRow extends Gtk.ListBoxRow {
|
|||||||
return this._extension.hasPrefs;
|
return this._extension.hasPrefs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get hasUpdate() {
|
||||||
|
return this._extension.hasUpdate || false;
|
||||||
|
}
|
||||||
|
|
||||||
|
get type() {
|
||||||
|
return this._extension.type;
|
||||||
|
}
|
||||||
|
|
||||||
|
get creator() {
|
||||||
|
return this._extension.metadata.creator || '';
|
||||||
|
}
|
||||||
|
|
||||||
get url() {
|
get url() {
|
||||||
return this._extension.metadata.url;
|
return this._extension.metadata.url || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
get version() {
|
||||||
|
return this._extension.metadata.version || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateState() {
|
||||||
|
let state = this._extension.state === ExtensionState.ENABLED;
|
||||||
|
|
||||||
|
let action = this._actionGroup.lookup('enabled');
|
||||||
|
action.set_state(new GLib.Variant('b', state));
|
||||||
|
action.enabled = this._canToggle();
|
||||||
|
|
||||||
|
this._updatesIcon.visible = this.hasUpdate;
|
||||||
|
|
||||||
|
this._versionLabel.label = `${this.version}`;
|
||||||
|
this._versionLabel.visible = this.version !== '';
|
||||||
|
|
||||||
|
this._authorLabel.label = `${this.creator}`;
|
||||||
|
this._authorLabel.visible = this.creator !== '';
|
||||||
}
|
}
|
||||||
|
|
||||||
_onDestroy() {
|
_onDestroy() {
|
||||||
@@ -603,54 +719,6 @@ class ExtensionRow extends Gtk.ListBoxRow {
|
|||||||
this._extensionStateChangedId = 0;
|
this._extensionStateChangedId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_buildUI() {
|
|
||||||
let hbox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL,
|
|
||||||
hexpand: true, margin_end: 24, spacing: 24,
|
|
||||||
margin: 12 });
|
|
||||||
this.add(hbox);
|
|
||||||
|
|
||||||
let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL,
|
|
||||||
spacing: 6, hexpand: true });
|
|
||||||
hbox.add(vbox);
|
|
||||||
|
|
||||||
let name = GLib.markup_escape_text(this.name, -1);
|
|
||||||
let label = new Gtk.Label({ label: '<b>' + name + '</b>',
|
|
||||||
use_markup: true,
|
|
||||||
halign: Gtk.Align.START });
|
|
||||||
vbox.add(label);
|
|
||||||
|
|
||||||
let desc = this._extension.metadata.description.split('\n')[0];
|
|
||||||
label = new DescriptionLabel({ label: desc, wrap: true, lines: 2,
|
|
||||||
ellipsize: Pango.EllipsizeMode.END,
|
|
||||||
xalign: 0, yalign: 0 });
|
|
||||||
vbox.add(label);
|
|
||||||
|
|
||||||
let button = new Gtk.Button({ valign: Gtk.Align.CENTER,
|
|
||||||
visible: this.hasPrefs,
|
|
||||||
no_show_all: true });
|
|
||||||
button.set_image(new Gtk.Image({ icon_name: 'emblem-system-symbolic',
|
|
||||||
icon_size: Gtk.IconSize.BUTTON,
|
|
||||||
visible: true }));
|
|
||||||
button.get_style_context().add_class('circular');
|
|
||||||
hbox.add(button);
|
|
||||||
|
|
||||||
this.prefsButton = button;
|
|
||||||
|
|
||||||
this._switch = new Gtk.Switch({
|
|
||||||
valign: Gtk.Align.CENTER,
|
|
||||||
sensitive: this._canToggle(),
|
|
||||||
state: this._extension.state === ExtensionState.ENABLED,
|
|
||||||
});
|
|
||||||
this._notifyActiveId = this._switch.connect('notify::active', () => {
|
|
||||||
if (this._switch.active)
|
|
||||||
this._app.shellProxy.EnableExtensionRemote(this.uuid);
|
|
||||||
else
|
|
||||||
this._app.shellProxy.DisableExtensionRemote(this.uuid);
|
|
||||||
});
|
|
||||||
this._switch.connect('state-set', () => true);
|
|
||||||
hbox.add(this._switch);
|
|
||||||
}
|
|
||||||
|
|
||||||
_canToggle() {
|
_canToggle() {
|
||||||
return this._extension.canChange;
|
return this._extension.canChange;
|
||||||
}
|
}
|
||||||
|
218
js/extensionPrefs/ui/extension-row.ui
Normal file
218
js/extensionPrefs/ui/extension-row.ui
Normal file
@@ -0,0 +1,218 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generated with glade 3.22.0 -->
|
||||||
|
<interface>
|
||||||
|
<requires lib="gtk+" version="3.20"/>
|
||||||
|
<template class="ExtensionRow" parent="GtkListBoxRow">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="activatable">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="margin">12</property>
|
||||||
|
<property name="column_spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="nameLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="updatesIcon">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="icon_name">software-update-available-symbolic</property>
|
||||||
|
<style>
|
||||||
|
<class name="warning"/>>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="prefsButton">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="prefsButton"
|
||||||
|
bind-property="sensitive"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="action-name">row.show-prefs</property>
|
||||||
|
<style>
|
||||||
|
<class name="circular"/>>
|
||||||
|
<class name="image-button"/>>
|
||||||
|
</style>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="icon_name">emblem-system-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="action-name">row.enabled</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSeparator">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="revealButton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<style>
|
||||||
|
<class name="details-button"/>
|
||||||
|
<class name="image-button"/>
|
||||||
|
<class name="flat"/>
|
||||||
|
</style>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="icon_name">pan-end-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkRevealer" id="revealer">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="margin_top">12</property>
|
||||||
|
<property name="row_spacing">6</property>
|
||||||
|
<property name="column_spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Description</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="descriptionLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
|
<property name="max_width_chars">60</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="yalign">0</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="versionLabel"
|
||||||
|
bind-property="visible"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="label" translatable="yes">Version</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="versionLabel">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="authorLabel"
|
||||||
|
bind-property="visible"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="label" translatable="yes">Author</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="authorLabel">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Website</property>
|
||||||
|
<property name="action_name">row.show-url</property>
|
||||||
|
<property name="valign">end</property>
|
||||||
|
<property name="margin-top">12</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="removeButton">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="removeButton"
|
||||||
|
bind-property="sensitive"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<property name="label" translatable="yes">Remove…</property>
|
||||||
|
<property name="action_name">row.uninstall</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="halign">end</property>
|
||||||
|
<property name="valign">end</property>
|
||||||
|
<style>
|
||||||
|
<class name="destructive-action"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="width">7</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</template>
|
||||||
|
</interface>
|
305
js/extensionPrefs/ui/extensions-window.ui
Normal file
305
js/extensionPrefs/ui/extensions-window.ui
Normal file
@@ -0,0 +1,305 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generated with glade 3.22.0 -->
|
||||||
|
<interface>
|
||||||
|
<requires lib="gtk+" version="3.20"/>
|
||||||
|
<menu id="primary-menu">
|
||||||
|
<section>
|
||||||
|
<item>
|
||||||
|
<attribute name="label" translatable="yes">Help</attribute>
|
||||||
|
<attribute name="action">win.show-help</attribute>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<attribute name="label" translatable="yes">About Extensions</attribute>
|
||||||
|
<attribute name="action">win.show-about</attribute>
|
||||||
|
</item>
|
||||||
|
</section>
|
||||||
|
</menu>
|
||||||
|
<object class="GtkPopover" id="infoPopover">
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="margin">12</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">To find and add extensions, visit <a href="https://extensions.gnome.org">extensions.gnome.org</a>.</property>
|
||||||
|
<property name="use_markup">True</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Warning</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="margin_top">6</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Extensions can cause system issues, including performance problems. If you encounter problems with your system, it is recommended to disable all extensions.</property>
|
||||||
|
<property name="wrap">True</property>
|
||||||
|
<property name="max_width_chars">40</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<template class="ExtensionsWindow" parent="GtkApplicationWindow">
|
||||||
|
<property name="default_width">800</property>
|
||||||
|
<property name="default_height">500</property>
|
||||||
|
<child type="titlebar">
|
||||||
|
<object class="GtkHeaderBar">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="title" translatable="yes">Extensions</property>
|
||||||
|
<property name="show_close_button">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuButton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="popover">infoPopover</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="icon_name">dialog-information-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuButton" id="menuButton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="menu_model">primary-menu</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="icon_name">open-menu-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch" id="killSwitch">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStack" id="mainStack">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="transition_type">crossfade</property>
|
||||||
|
<property name="vexpand">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkScrolledWindow" id="scrolledWindow">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="hscrollbar_policy">never</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkViewport">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="mainBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="margin">36</property>
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="userList"
|
||||||
|
bind-property="visible"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="label" translatable="yes">Manually Installed</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkListBox" id="userList">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="selection_mode">none</property>
|
||||||
|
<property name="margin_bottom">24</property>
|
||||||
|
<style>
|
||||||
|
<class name="frame"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible"
|
||||||
|
bind-source="systemList"
|
||||||
|
bind-property="visible"
|
||||||
|
bind-flags="sync-create"/>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">True</property>
|
||||||
|
<property name="label" translatable="yes">Built-In</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkListBox" id="systemList">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="selection_mode">none</property>
|
||||||
|
<style>
|
||||||
|
<class name="frame"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">main</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="margin">32</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="pixel_size">96</property>
|
||||||
|
<property name="icon_name">org.gnome.Extensions-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">No Installed Extensions</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
<attribute name="scale" value="1.44"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">placeholder</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="margin_left">100</property>
|
||||||
|
<property name="margin_right">100</property>
|
||||||
|
<property name="margin_top">100</property>
|
||||||
|
<property name="margin_bottom">60</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Something’s gone wrong</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="scale" value="1.44"/>
|
||||||
|
</attributes>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">We’re very sorry, but it was not possible to get the list of installed extensions. Make sure you are logged into GNOME and try again.</property>
|
||||||
|
<property name="justify">center</property>
|
||||||
|
<property name="wrap">True</property>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">noshell</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkActionBar" id="updatesBar">
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="pixel-size">24</property>
|
||||||
|
<property name="margin">6</property>
|
||||||
|
<property name="icon_name">software-update-available-symbolic</property>
|
||||||
|
<style>
|
||||||
|
<class name="warning"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="label">Extension Updates Ready</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="bold"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="updatesLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton">
|
||||||
|
<property name="label" translatable="yes">Log Out…</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="action-name">win.logout</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<style>
|
||||||
|
<class name="suggested-action"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</template>
|
||||||
|
</interface>
|
@@ -17,10 +17,6 @@ var DEFAULT_BUTTON_WELL_ANIMATION_TIME = 300;
|
|||||||
|
|
||||||
var MESSAGE_FADE_OUT_ANIMATION_TIME = 500;
|
var MESSAGE_FADE_OUT_ANIMATION_TIME = 500;
|
||||||
|
|
||||||
const WIGGLE_OFFSET = 6;
|
|
||||||
const WIGGLE_DURATION = 65;
|
|
||||||
const N_WIGGLES = 3;
|
|
||||||
|
|
||||||
var AuthPromptMode = {
|
var AuthPromptMode = {
|
||||||
UNLOCK_ONLY: 0,
|
UNLOCK_ONLY: 0,
|
||||||
UNLOCK_OR_LOG_IN: 1,
|
UNLOCK_OR_LOG_IN: 1,
|
||||||
@@ -282,11 +278,7 @@ var AuthPrompt = GObject.registerClass({
|
|||||||
this.setActorInDefaultButtonWell(null);
|
this.setActorInDefaultButtonWell(null);
|
||||||
this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED;
|
this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED;
|
||||||
|
|
||||||
Util.wiggle(this._entry, {
|
Util.wiggle(this._entry);
|
||||||
offset: WIGGLE_OFFSET,
|
|
||||||
duration: WIGGLE_DURATION,
|
|
||||||
wiggleCount: N_WIGGLES,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_onVerificationComplete() {
|
_onVerificationComplete() {
|
||||||
|
@@ -409,7 +409,10 @@ var SessionMenuButton = GObject.registerClass({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var LoginDialog = GObject.registerClass({
|
var LoginDialog = GObject.registerClass({
|
||||||
Signals: { 'failed': {} },
|
Signals: {
|
||||||
|
'failed': {},
|
||||||
|
'wake-up-screen': {},
|
||||||
|
},
|
||||||
}, class LoginDialog extends St.Widget {
|
}, class LoginDialog extends St.Widget {
|
||||||
_init(parentActor) {
|
_init(parentActor) {
|
||||||
super._init({ style_class: 'login-dialog', visible: false });
|
super._init({ style_class: 'login-dialog', visible: false });
|
||||||
@@ -1225,13 +1228,18 @@ var LoginDialog = GObject.registerClass({
|
|||||||
return GLib.SOURCE_REMOVE;
|
return GLib.SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
activate() {
|
||||||
|
this._userList.grab_key_focus();
|
||||||
|
this.show();
|
||||||
|
}
|
||||||
|
|
||||||
open() {
|
open() {
|
||||||
Main.ctrlAltTabManager.addGroup(this,
|
Main.ctrlAltTabManager.addGroup(this,
|
||||||
_("Login Window"),
|
_("Login Window"),
|
||||||
'dialog-password-symbolic',
|
'dialog-password-symbolic',
|
||||||
{ sortGroup: CtrlAltTab.SortGroup.MIDDLE });
|
{ sortGroup: CtrlAltTab.SortGroup.MIDDLE });
|
||||||
this._userList.grab_key_focus();
|
this.activate();
|
||||||
this.show();
|
|
||||||
this.opacity = 0;
|
this.opacity = 0;
|
||||||
|
|
||||||
Main.pushModal(this, { actionMode: Shell.ActionMode.LOGIN_SCREEN });
|
Main.pushModal(this, { actionMode: Shell.ActionMode.LOGIN_SCREEN });
|
||||||
|
@@ -11,6 +11,10 @@ const Params = imports.misc.params;
|
|||||||
|
|
||||||
var SCROLL_TIME = 100;
|
var SCROLL_TIME = 100;
|
||||||
|
|
||||||
|
const WIGGLE_OFFSET = 6;
|
||||||
|
const WIGGLE_DURATION = 65;
|
||||||
|
const N_WIGGLES = 3;
|
||||||
|
|
||||||
// http://daringfireball.net/2010/07/improved_regex_for_matching_urls
|
// http://daringfireball.net/2010/07/improved_regex_for_matching_urls
|
||||||
const _balancedParens = '\\([^\\s()<>]+\\)';
|
const _balancedParens = '\\([^\\s()<>]+\\)';
|
||||||
const _leadingJunk = '[\\s`(\\[{\'\\"<\u00AB\u201C\u2018]';
|
const _leadingJunk = '[\\s`(\\[{\'\\"<\u00AB\u201C\u2018]';
|
||||||
@@ -442,9 +446,9 @@ function ensureActorVisibleInScrollView(scrollView, actor) {
|
|||||||
|
|
||||||
function wiggle(actor, params) {
|
function wiggle(actor, params) {
|
||||||
params = Params.parse(params, {
|
params = Params.parse(params, {
|
||||||
offset: 0,
|
offset: WIGGLE_OFFSET,
|
||||||
duration: 0,
|
duration: WIGGLE_DURATION,
|
||||||
wiggleCount: 0,
|
wiggleCount: N_WIGGLES,
|
||||||
});
|
});
|
||||||
actor.translation_x = 0;
|
actor.translation_x = 0;
|
||||||
|
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
/* exported main */
|
/* exported main */
|
||||||
|
imports.gi.versions.Gtk = '3.0';
|
||||||
|
|
||||||
const Format = imports.format;
|
const Format = imports.format;
|
||||||
const Gettext = imports.gettext;
|
const Gettext = imports.gettext;
|
||||||
const { Gio, GLib, GObject, Gtk, Pango, Soup, WebKit2: WebKit } = imports.gi;
|
const { Gio, GLib, GObject, Gtk, Pango, Soup, WebKit2: WebKit } = imports.gi;
|
||||||
@@ -116,6 +118,10 @@ class PortalWindow extends Gtk.ApplicationWindow {
|
|||||||
this._webContext = WebKit.WebContext.new_ephemeral();
|
this._webContext = WebKit.WebContext.new_ephemeral();
|
||||||
this._webContext.set_cache_model(WebKit.CacheModel.DOCUMENT_VIEWER);
|
this._webContext.set_cache_model(WebKit.CacheModel.DOCUMENT_VIEWER);
|
||||||
this._webContext.set_network_proxy_settings(WebKit.NetworkProxyMode.NO_PROXY, null);
|
this._webContext.set_network_proxy_settings(WebKit.NetworkProxyMode.NO_PROXY, null);
|
||||||
|
if (this._webContext.set_sandbox_enabled) {
|
||||||
|
// We have WebKitGTK 2.26 or newer.
|
||||||
|
this._webContext.set_sandbox_enabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
this._webView = WebKit.WebView.new_with_context(this._webContext);
|
this._webView = WebKit.WebView.new_with_context(this._webContext);
|
||||||
this._webView.connect('decide-policy', this._onDecidePolicy.bind(this));
|
this._webView.connect('decide-policy', this._onDecidePolicy.bind(this));
|
||||||
|
@@ -7,5 +7,10 @@
|
|||||||
<file>misc/extensionUtils.js</file>
|
<file>misc/extensionUtils.js</file>
|
||||||
<file>misc/fileUtils.js</file>
|
<file>misc/fileUtils.js</file>
|
||||||
<file>misc/params.js</file>
|
<file>misc/params.js</file>
|
||||||
|
|
||||||
|
<file alias="css/application.css">extensionPrefs/css/application.css</file>
|
||||||
|
|
||||||
|
<file alias="ui/extension-row.ui">extensionPrefs/ui/extension-row.ui</file>
|
||||||
|
<file alias="ui/extensions-window.ui">extensionPrefs/ui/extensions-window.ui</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
</gresources>
|
</gresources>
|
||||||
|
@@ -530,8 +530,10 @@ var AllView = GObject.registerClass({
|
|||||||
// Overridden from BaseAppView
|
// Overridden from BaseAppView
|
||||||
animate(animationDirection, onComplete) {
|
animate(animationDirection, onComplete) {
|
||||||
this._scrollView.reactive = false;
|
this._scrollView.reactive = false;
|
||||||
|
this._swipeTracker.enabled = false;
|
||||||
let completionFunc = () => {
|
let completionFunc = () => {
|
||||||
this._scrollView.reactive = true;
|
this._scrollView.reactive = true;
|
||||||
|
this._swipeTracker.enabled = this.mapped;
|
||||||
if (onComplete)
|
if (onComplete)
|
||||||
onComplete();
|
onComplete();
|
||||||
};
|
};
|
||||||
@@ -1523,10 +1525,10 @@ var FolderIcon = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
vfunc_unmap() {
|
vfunc_unmap() {
|
||||||
super.vfunc_unmap();
|
|
||||||
|
|
||||||
if (this._dialog)
|
if (this._dialog)
|
||||||
this._dialog.popdown();
|
this._dialog.popdown();
|
||||||
|
|
||||||
|
super.vfunc_unmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
open() {
|
open() {
|
||||||
|
@@ -504,12 +504,9 @@ var SystemBackground = GObject.registerClass({
|
|||||||
Signals: { 'loaded': {} },
|
Signals: { 'loaded': {} },
|
||||||
}, class SystemBackground extends Meta.BackgroundActor {
|
}, class SystemBackground extends Meta.BackgroundActor {
|
||||||
_init() {
|
_init() {
|
||||||
let file = Gio.File.new_for_uri('resource:///org/gnome/shell/theme/noise-texture.png');
|
|
||||||
|
|
||||||
if (_systemBackground == null) {
|
if (_systemBackground == null) {
|
||||||
_systemBackground = new Meta.Background({ meta_display: global.display });
|
_systemBackground = new Meta.Background({ meta_display: global.display });
|
||||||
_systemBackground.set_color(DEFAULT_BACKGROUND_COLOR);
|
_systemBackground.set_color(DEFAULT_BACKGROUND_COLOR);
|
||||||
_systemBackground.set_file(file, GDesktopEnums.BackgroundStyle.WALLPAPER);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
super._init({
|
super._init({
|
||||||
@@ -518,22 +515,11 @@ var SystemBackground = GObject.registerClass({
|
|||||||
background: _systemBackground,
|
background: _systemBackground,
|
||||||
});
|
});
|
||||||
|
|
||||||
let cache = Meta.BackgroundImageCache.get_default();
|
let id = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
|
||||||
let image = cache.load(file);
|
this.emit('loaded');
|
||||||
if (image.is_loaded()) {
|
return GLib.SOURCE_REMOVE;
|
||||||
image = null;
|
});
|
||||||
let id = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
|
GLib.Source.set_name_by_id(id, '[gnome-shell] SystemBackground.loaded');
|
||||||
this.emit('loaded');
|
|
||||||
return GLib.SOURCE_REMOVE;
|
|
||||||
});
|
|
||||||
GLib.Source.set_name_by_id(id, '[gnome-shell] SystemBackground.loaded');
|
|
||||||
} else {
|
|
||||||
let id = image.connect('loaded', () => {
|
|
||||||
this.emit('loaded');
|
|
||||||
image.disconnect(id);
|
|
||||||
image = null;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -3,13 +3,11 @@
|
|||||||
|
|
||||||
const { Clutter, Gcr, Gio, GObject, Pango, Shell, St } = imports.gi;
|
const { Clutter, Gcr, Gio, GObject, Pango, Shell, St } = imports.gi;
|
||||||
|
|
||||||
const Animation = imports.ui.animation;
|
|
||||||
const Dialog = imports.ui.dialog;
|
const Dialog = imports.ui.dialog;
|
||||||
const ModalDialog = imports.ui.modalDialog;
|
const ModalDialog = imports.ui.modalDialog;
|
||||||
const ShellEntry = imports.ui.shellEntry;
|
const ShellEntry = imports.ui.shellEntry;
|
||||||
const CheckBox = imports.ui.checkBox;
|
const CheckBox = imports.ui.checkBox;
|
||||||
|
const Util = imports.misc.util;
|
||||||
var WORK_SPINNER_ICON_SIZE = 16;
|
|
||||||
|
|
||||||
var KeyringDialog = GObject.registerClass(
|
var KeyringDialog = GObject.registerClass(
|
||||||
class KeyringDialog extends ModalDialog.ModalDialog {
|
class KeyringDialog extends ModalDialog.ModalDialog {
|
||||||
@@ -21,141 +19,97 @@ class KeyringDialog extends ModalDialog.ModalDialog {
|
|||||||
this.prompt.connect('show-confirm', this._onShowConfirm.bind(this));
|
this.prompt.connect('show-confirm', this._onShowConfirm.bind(this));
|
||||||
this.prompt.connect('prompt-close', this._onHidePrompt.bind(this));
|
this.prompt.connect('prompt-close', this._onHidePrompt.bind(this));
|
||||||
|
|
||||||
this._content = new Dialog.MessageDialogContent();
|
let content = new Dialog.MessageDialogContent();
|
||||||
this.contentLayout.add(this._content);
|
|
||||||
|
|
||||||
this.prompt.bind_property('message', this._content, 'title', GObject.BindingFlags.SYNC_CREATE);
|
this.prompt.bind_property('message',
|
||||||
this.prompt.bind_property('description', this._content, 'description', GObject.BindingFlags.SYNC_CREATE);
|
content, 'title', GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
this.prompt.bind_property('description',
|
||||||
|
content, 'description', GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
|
||||||
this._workSpinner = null;
|
let passwordBox = new St.BoxLayout({
|
||||||
this._controlTable = null;
|
style_class: 'prompt-dialog-password-layout',
|
||||||
|
vertical: true,
|
||||||
|
});
|
||||||
|
|
||||||
this._cancelButton = this.addButton({ label: '',
|
this._passwordEntry = new St.PasswordEntry({
|
||||||
action: this._onCancelButton.bind(this),
|
style_class: 'prompt-dialog-password-entry',
|
||||||
key: Clutter.KEY_Escape });
|
can_focus: true,
|
||||||
this._continueButton = this.addButton({ label: '',
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
action: this._onContinueButton.bind(this),
|
});
|
||||||
default: true });
|
ShellEntry.addContextMenu(this._passwordEntry);
|
||||||
|
this._passwordEntry.clutter_text.connect('activate', this._onPasswordActivate.bind(this));
|
||||||
|
this.prompt.bind_property('password-visible',
|
||||||
|
this._passwordEntry, 'visible', GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
passwordBox.add_child(this._passwordEntry);
|
||||||
|
|
||||||
|
this._confirmEntry = new St.PasswordEntry({
|
||||||
|
style_class: 'prompt-dialog-password-entry',
|
||||||
|
can_focus: true,
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
|
});
|
||||||
|
ShellEntry.addContextMenu(this._confirmEntry);
|
||||||
|
this._confirmEntry.clutter_text.connect('activate', this._onConfirmActivate.bind(this));
|
||||||
|
this.prompt.bind_property('confirm-visible',
|
||||||
|
this._confirmEntry, 'visible', GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
passwordBox.add_child(this._confirmEntry);
|
||||||
|
|
||||||
|
this.prompt.set_password_actor(this._passwordEntry.clutter_text);
|
||||||
|
this.prompt.set_confirm_actor(this._confirmEntry.clutter_text);
|
||||||
|
|
||||||
|
let warningBox = new St.BoxLayout({ vertical: true });
|
||||||
|
|
||||||
|
let capsLockWarning = new ShellEntry.CapsLockWarning();
|
||||||
|
let syncCapsLockWarningVisibility = () => {
|
||||||
|
capsLockWarning.visible =
|
||||||
|
this.prompt.password_visible || this.prompt.confirm_visible;
|
||||||
|
};
|
||||||
|
this.prompt.connect('notify::password-visible', syncCapsLockWarningVisibility);
|
||||||
|
this.prompt.connect('notify::confirm-visible', syncCapsLockWarningVisibility);
|
||||||
|
warningBox.add_child(capsLockWarning);
|
||||||
|
|
||||||
|
let warning = new St.Label({ style_class: 'prompt-dialog-error-label' });
|
||||||
|
warning.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||||
|
warning.clutter_text.line_wrap = true;
|
||||||
|
this.prompt.bind_property('warning',
|
||||||
|
warning, 'text', GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
this.prompt.connect('notify::warning-visible', () => {
|
||||||
|
warning.opacity = this.prompt.warning_visible ? 255 : 0;
|
||||||
|
});
|
||||||
|
this.prompt.connect('notify::warning', () => {
|
||||||
|
if (this._passwordEntry && warning !== '')
|
||||||
|
Util.wiggle(this._passwordEntry);
|
||||||
|
});
|
||||||
|
warningBox.add_child(warning);
|
||||||
|
|
||||||
|
passwordBox.add_child(warningBox);
|
||||||
|
content.add_child(passwordBox);
|
||||||
|
|
||||||
|
this._choice = new CheckBox.CheckBox();
|
||||||
|
this.prompt.bind_property('choice-label', this._choice.getLabelActor(),
|
||||||
|
'text', GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
this.prompt.bind_property('choice-chosen', this._choice,
|
||||||
|
'checked', GObject.BindingFlags.SYNC_CREATE | GObject.BindingFlags.BIDIRECTIONAL);
|
||||||
|
this.prompt.bind_property('choice-visible', this._choice,
|
||||||
|
'visible', GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
content.add_child(this._choice);
|
||||||
|
|
||||||
|
this.contentLayout.add_child(content);
|
||||||
|
|
||||||
|
this._cancelButton = this.addButton({
|
||||||
|
label: '',
|
||||||
|
action: this._onCancelButton.bind(this),
|
||||||
|
key: Clutter.KEY_Escape,
|
||||||
|
});
|
||||||
|
this._continueButton = this.addButton({
|
||||||
|
label: '',
|
||||||
|
action: this._onContinueButton.bind(this),
|
||||||
|
default: true,
|
||||||
|
});
|
||||||
|
|
||||||
this.prompt.bind_property('cancel-label', this._cancelButton, 'label', GObject.BindingFlags.SYNC_CREATE);
|
this.prompt.bind_property('cancel-label', this._cancelButton, 'label', GObject.BindingFlags.SYNC_CREATE);
|
||||||
this.prompt.bind_property('continue-label', this._continueButton, 'label', GObject.BindingFlags.SYNC_CREATE);
|
this.prompt.bind_property('continue-label', this._continueButton, 'label', GObject.BindingFlags.SYNC_CREATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
_setWorking(working) {
|
|
||||||
if (!this._workSpinner)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (working)
|
|
||||||
this._workSpinner.play();
|
|
||||||
else
|
|
||||||
this._workSpinner.stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
_buildControlTable() {
|
|
||||||
let layout = new Clutter.GridLayout({ orientation: Clutter.Orientation.VERTICAL });
|
|
||||||
let table = new St.Widget({
|
|
||||||
style_class: 'keyring-dialog-control-table',
|
|
||||||
layout_manager: layout,
|
|
||||||
x_expand: true,
|
|
||||||
y_expand: true,
|
|
||||||
});
|
|
||||||
layout.hookup_style(table);
|
|
||||||
let rtl = table.get_text_direction() == Clutter.TextDirection.RTL;
|
|
||||||
let row = 0;
|
|
||||||
|
|
||||||
if (this.prompt.password_visible) {
|
|
||||||
let label = new St.Label({ style_class: 'prompt-dialog-password-label',
|
|
||||||
x_align: Clutter.ActorAlign.START,
|
|
||||||
y_align: Clutter.ActorAlign.CENTER });
|
|
||||||
label.set_text(_("Password:"));
|
|
||||||
label.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
|
||||||
this._passwordEntry = new St.PasswordEntry({
|
|
||||||
style_class: 'prompt-dialog-password-entry',
|
|
||||||
text: '',
|
|
||||||
can_focus: true,
|
|
||||||
x_expand: true,
|
|
||||||
});
|
|
||||||
ShellEntry.addContextMenu(this._passwordEntry);
|
|
||||||
this._passwordEntry.clutter_text.connect('activate', this._onPasswordActivate.bind(this));
|
|
||||||
|
|
||||||
this._workSpinner = new Animation.Spinner(WORK_SPINNER_ICON_SIZE, {
|
|
||||||
animate: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (rtl) {
|
|
||||||
layout.attach(this._workSpinner, 0, row, 1, 1);
|
|
||||||
layout.attach(this._passwordEntry, 1, row, 1, 1);
|
|
||||||
layout.attach(label, 2, row, 1, 1);
|
|
||||||
} else {
|
|
||||||
layout.attach(label, 0, row, 1, 1);
|
|
||||||
layout.attach(this._passwordEntry, 1, row, 1, 1);
|
|
||||||
layout.attach(this._workSpinner, 2, row, 1, 1);
|
|
||||||
}
|
|
||||||
row++;
|
|
||||||
} else {
|
|
||||||
this._workSpinner = null;
|
|
||||||
this._passwordEntry = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.prompt.confirm_visible) {
|
|
||||||
var label = new St.Label({ style_class: 'prompt-dialog-password-label',
|
|
||||||
x_align: Clutter.ActorAlign.START,
|
|
||||||
y_align: Clutter.ActorAlign.CENTER });
|
|
||||||
label.set_text(_("Type again:"));
|
|
||||||
this._confirmEntry = new St.PasswordEntry({
|
|
||||||
style_class: 'prompt-dialog-password-entry',
|
|
||||||
text: '',
|
|
||||||
can_focus: true,
|
|
||||||
x_expand: true,
|
|
||||||
});
|
|
||||||
ShellEntry.addContextMenu(this._confirmEntry);
|
|
||||||
this._confirmEntry.clutter_text.connect('activate', this._onConfirmActivate.bind(this));
|
|
||||||
if (rtl) {
|
|
||||||
layout.attach(this._confirmEntry, 0, row, 1, 1);
|
|
||||||
layout.attach(label, 1, row, 1, 1);
|
|
||||||
} else {
|
|
||||||
layout.attach(label, 0, row, 1, 1);
|
|
||||||
layout.attach(this._confirmEntry, 1, row, 1, 1);
|
|
||||||
}
|
|
||||||
row++;
|
|
||||||
} else {
|
|
||||||
this._confirmEntry = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.prompt.set_password_actor(this._passwordEntry ? this._passwordEntry.clutter_text : null);
|
|
||||||
this.prompt.set_confirm_actor(this._confirmEntry ? this._confirmEntry.clutter_text : null);
|
|
||||||
|
|
||||||
if (this._passwordEntry || this._confirmEntry) {
|
|
||||||
this._capsLockWarningLabel = new ShellEntry.CapsLockWarning();
|
|
||||||
layout.attach(this._capsLockWarningLabel, 1, row, 1, 1);
|
|
||||||
row++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.prompt.choice_visible) {
|
|
||||||
let choice = new CheckBox.CheckBox();
|
|
||||||
this.prompt.bind_property('choice-label', choice.getLabelActor(), 'text', GObject.BindingFlags.SYNC_CREATE);
|
|
||||||
this.prompt.bind_property('choice-chosen', choice, 'checked', GObject.BindingFlags.SYNC_CREATE | GObject.BindingFlags.BIDIRECTIONAL);
|
|
||||||
layout.attach(choice, rtl ? 0 : 1, row, 1, 1);
|
|
||||||
row++;
|
|
||||||
}
|
|
||||||
|
|
||||||
let warning = new St.Label({ style_class: 'prompt-dialog-error-label',
|
|
||||||
x_align: Clutter.ActorAlign.START });
|
|
||||||
warning.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
|
||||||
warning.clutter_text.line_wrap = true;
|
|
||||||
layout.attach(warning, rtl ? 0 : 1, row, 1, 1);
|
|
||||||
this.prompt.bind_property('warning-visible', warning, 'visible', GObject.BindingFlags.SYNC_CREATE);
|
|
||||||
this.prompt.bind_property('warning', warning, 'text', GObject.BindingFlags.SYNC_CREATE);
|
|
||||||
|
|
||||||
if (this._controlTable) {
|
|
||||||
this._controlTable.destroy_all_children();
|
|
||||||
this._controlTable.destroy();
|
|
||||||
}
|
|
||||||
|
|
||||||
this._controlTable = table;
|
|
||||||
this._content.add_child(table);
|
|
||||||
}
|
|
||||||
|
|
||||||
_updateSensitivity(sensitive) {
|
_updateSensitivity(sensitive) {
|
||||||
if (this._passwordEntry) {
|
if (this._passwordEntry) {
|
||||||
this._passwordEntry.reactive = sensitive;
|
this._passwordEntry.reactive = sensitive;
|
||||||
@@ -169,7 +123,6 @@ class KeyringDialog extends ModalDialog.ModalDialog {
|
|||||||
|
|
||||||
this._continueButton.can_focus = sensitive;
|
this._continueButton.can_focus = sensitive;
|
||||||
this._continueButton.reactive = sensitive;
|
this._continueButton.reactive = sensitive;
|
||||||
this._setWorking(!sensitive);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_ensureOpen() {
|
_ensureOpen() {
|
||||||
@@ -191,16 +144,16 @@ class KeyringDialog extends ModalDialog.ModalDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onShowPassword() {
|
_onShowPassword() {
|
||||||
this._buildControlTable();
|
|
||||||
this._ensureOpen();
|
this._ensureOpen();
|
||||||
this._updateSensitivity(true);
|
this._updateSensitivity(true);
|
||||||
|
this._passwordEntry.text = '';
|
||||||
this._passwordEntry.grab_key_focus();
|
this._passwordEntry.grab_key_focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onShowConfirm() {
|
_onShowConfirm() {
|
||||||
this._buildControlTable();
|
|
||||||
this._ensureOpen();
|
this._ensureOpen();
|
||||||
this._updateSensitivity(true);
|
this._updateSensitivity(true);
|
||||||
|
this._confirmEntry.text = '';
|
||||||
this._continueButton.grab_key_focus();
|
this._continueButton.grab_key_focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -33,38 +33,26 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
|
|||||||
title: this._content.title,
|
title: this._content.title,
|
||||||
description: this._content.message,
|
description: this._content.message,
|
||||||
});
|
});
|
||||||
this.contentLayout.add_actor(contentBox);
|
|
||||||
|
|
||||||
let layout = new Clutter.GridLayout({ orientation: Clutter.Orientation.VERTICAL });
|
|
||||||
let secretTable = new St.Widget({ style_class: 'network-dialog-secret-table',
|
|
||||||
layout_manager: layout });
|
|
||||||
layout.hookup_style(secretTable);
|
|
||||||
|
|
||||||
let rtl = secretTable.get_text_direction() == Clutter.TextDirection.RTL;
|
|
||||||
let initialFocusSet = false;
|
let initialFocusSet = false;
|
||||||
let pos = 0;
|
|
||||||
for (let i = 0; i < this._content.secrets.length; i++) {
|
for (let i = 0; i < this._content.secrets.length; i++) {
|
||||||
let secret = this._content.secrets[i];
|
let secret = this._content.secrets[i];
|
||||||
let label = new St.Label({ style_class: 'prompt-dialog-password-label',
|
|
||||||
text: secret.label,
|
|
||||||
x_align: Clutter.ActorAlign.START,
|
|
||||||
y_align: Clutter.ActorAlign.CENTER });
|
|
||||||
label.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
|
||||||
|
|
||||||
let reactive = secret.key != null;
|
let reactive = secret.key != null;
|
||||||
|
|
||||||
let entryParams = {
|
let entryParams = {
|
||||||
style_class: 'prompt-dialog-password-entry',
|
style_class: 'prompt-dialog-password-entry',
|
||||||
|
hint_text: secret.label,
|
||||||
text: secret.value,
|
text: secret.value,
|
||||||
can_focus: reactive,
|
can_focus: reactive,
|
||||||
reactive,
|
reactive,
|
||||||
x_expand: true,
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
};
|
};
|
||||||
if (secret.password)
|
if (secret.password)
|
||||||
secret.entry = new St.PasswordEntry(entryParams);
|
secret.entry = new St.PasswordEntry(entryParams);
|
||||||
else
|
else
|
||||||
secret.entry = new St.Entry(entryParams);
|
secret.entry = new St.Entry(entryParams);
|
||||||
ShellEntry.addContextMenu(secret.entry);
|
ShellEntry.addContextMenu(secret.entry);
|
||||||
|
contentBox.add_child(secret.entry);
|
||||||
|
|
||||||
if (secret.validate)
|
if (secret.validate)
|
||||||
secret.valid = secret.validate(secret);
|
secret.valid = secret.validate(secret);
|
||||||
@@ -89,36 +77,26 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
|
|||||||
} else {
|
} else {
|
||||||
secret.valid = true;
|
secret.valid = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtl) {
|
|
||||||
layout.attach(secret.entry, 0, pos, 1, 1);
|
|
||||||
layout.attach(label, 1, pos, 1, 1);
|
|
||||||
} else {
|
|
||||||
layout.attach(label, 0, pos, 1, 1);
|
|
||||||
layout.attach(secret.entry, 1, pos, 1, 1);
|
|
||||||
}
|
|
||||||
pos++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._content.secrets.some(s => s.password)) {
|
if (this._content.secrets.some(s => s.password)) {
|
||||||
this._capsLockWarningLabel = new ShellEntry.CapsLockWarning();
|
let capsLockWarning = new ShellEntry.CapsLockWarning();
|
||||||
if (rtl)
|
contentBox.add_child(capsLockWarning);
|
||||||
layout.attach(this._capsLockWarningLabel, 0, pos, 1, 1);
|
|
||||||
else
|
|
||||||
layout.attach(this._capsLockWarningLabel, 1, pos, 1, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
contentBox.add_child(secretTable);
|
|
||||||
|
|
||||||
if (flags & NM.SecretAgentGetSecretsFlags.WPS_PBC_ACTIVE) {
|
if (flags & NM.SecretAgentGetSecretsFlags.WPS_PBC_ACTIVE) {
|
||||||
let descriptionLabel = new St.Label({ style_class: 'prompt-dialog-description',
|
let descriptionLabel = new St.Label({
|
||||||
text: _("Alternatively you can connect by pushing the “WPS” button on your router.") });
|
text: _('Alternatively you can connect by pushing the “WPS” button on your router.'),
|
||||||
|
style_class: 'message-dialog-description',
|
||||||
|
});
|
||||||
descriptionLabel.clutter_text.line_wrap = true;
|
descriptionLabel.clutter_text.line_wrap = true;
|
||||||
descriptionLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
descriptionLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||||
|
|
||||||
contentBox.add_child(descriptionLabel);
|
contentBox.add_child(descriptionLabel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.contentLayout.add_child(contentBox);
|
||||||
|
|
||||||
this._okButton = {
|
this._okButton = {
|
||||||
label: _("Connect"),
|
label: _("Connect"),
|
||||||
action: this._onOk.bind(this),
|
action: this._onOk.bind(this),
|
||||||
@@ -325,7 +303,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
|
|||||||
case '802-11-wireless':
|
case '802-11-wireless':
|
||||||
wirelessSetting = this._connection.get_setting_wireless();
|
wirelessSetting = this._connection.get_setting_wireless();
|
||||||
ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid().get_data());
|
ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid().get_data());
|
||||||
content.title = _("Authentication required by wireless network");
|
content.title = _('Authentication required');
|
||||||
content.message = _("Passwords or encryption keys are required to access the wireless network “%s”.").format(ssid);
|
content.message = _("Passwords or encryption keys are required to access the wireless network “%s”.").format(ssid);
|
||||||
this._getWirelessSecrets(content.secrets, wirelessSetting);
|
this._getWirelessSecrets(content.secrets, wirelessSetting);
|
||||||
break;
|
break;
|
||||||
@@ -353,7 +331,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
|
|||||||
// fall through
|
// fall through
|
||||||
case 'cdma':
|
case 'cdma':
|
||||||
case 'bluetooth':
|
case 'bluetooth':
|
||||||
content.title = _("Mobile broadband network password");
|
content.title = _('Authentication required');
|
||||||
content.message = _("A password is required to connect to “%s”.").format(connectionSetting.get_id());
|
content.message = _("A password is required to connect to “%s”.").format(connectionSetting.get_id());
|
||||||
this._getMobileSecrets(content.secrets, connectionType);
|
this._getMobileSecrets(content.secrets, connectionType);
|
||||||
break;
|
break;
|
||||||
@@ -700,7 +678,7 @@ var NetworkAgent = class {
|
|||||||
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().get_data());
|
let ssid = NM.utils_ssid_to_utf8(wirelessSetting.get_ssid().get_data());
|
||||||
title = _("Authentication required by wireless network");
|
title = _('Authentication required');
|
||||||
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;
|
||||||
}
|
}
|
||||||
@@ -721,7 +699,7 @@ var NetworkAgent = class {
|
|||||||
// fall through
|
// fall through
|
||||||
case 'cdma':
|
case 'cdma':
|
||||||
case 'bluetooth':
|
case 'bluetooth':
|
||||||
title = _("Mobile broadband network password");
|
title = _('Authentication required');
|
||||||
body = _("A password is required to connect to “%s”.").format(connectionSetting.get_id());
|
body = _("A password is required to connect to “%s”.").format(connectionSetting.get_id());
|
||||||
break;
|
break;
|
||||||
case 'vpn':
|
case 'vpn':
|
||||||
|
@@ -4,21 +4,19 @@
|
|||||||
const { AccountsService, Clutter, GLib,
|
const { AccountsService, Clutter, GLib,
|
||||||
GObject, Pango, PolkitAgent, Polkit, Shell, St } = imports.gi;
|
GObject, Pango, PolkitAgent, Polkit, Shell, St } = imports.gi;
|
||||||
|
|
||||||
const Animation = imports.ui.animation;
|
|
||||||
const Dialog = imports.ui.dialog;
|
const Dialog = imports.ui.dialog;
|
||||||
const Main = imports.ui.main;
|
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;
|
||||||
|
const Util = imports.misc.util;
|
||||||
|
|
||||||
const DialogMode = {
|
const DialogMode = {
|
||||||
AUTH: 0,
|
AUTH: 0,
|
||||||
CONFIRM: 1,
|
CONFIRM: 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
var DIALOG_ICON_SIZE = 48;
|
const DIALOG_ICON_SIZE = 64;
|
||||||
|
|
||||||
var WORK_SPINNER_ICON_SIZE = 16;
|
|
||||||
|
|
||||||
const DELAYED_RESET_TIMEOUT = 200;
|
const DELAYED_RESET_TIMEOUT = 200;
|
||||||
|
|
||||||
@@ -40,8 +38,10 @@ var AuthenticationDialog = GObject.registerClass({
|
|||||||
|
|
||||||
let title = _("Authentication Required");
|
let title = _("Authentication Required");
|
||||||
|
|
||||||
let content = new Dialog.MessageDialogContent({ title, description });
|
let headerContent = new Dialog.MessageDialogContent({ title, description });
|
||||||
this.contentLayout.add_actor(content);
|
this.contentLayout.add_child(headerContent);
|
||||||
|
|
||||||
|
let bodyContent = new Dialog.MessageDialogContent();
|
||||||
|
|
||||||
if (userNames.length > 1) {
|
if (userNames.length > 1) {
|
||||||
log(`polkitAuthenticationAgent: Received ${userNames.length} ` +
|
log(`polkitAuthenticationAgent: Received ${userNames.length} ` +
|
||||||
@@ -59,22 +59,21 @@ var AuthenticationDialog = GObject.registerClass({
|
|||||||
|
|
||||||
let userBox = new St.BoxLayout({
|
let userBox = new St.BoxLayout({
|
||||||
style_class: 'polkit-dialog-user-layout',
|
style_class: 'polkit-dialog-user-layout',
|
||||||
vertical: false,
|
vertical: true,
|
||||||
});
|
});
|
||||||
content.add_child(userBox);
|
bodyContent.add_child(userBox);
|
||||||
|
|
||||||
this._userAvatar = new UserWidget.Avatar(this._user, {
|
this._userAvatar = new UserWidget.Avatar(this._user, {
|
||||||
iconSize: DIALOG_ICON_SIZE,
|
iconSize: DIALOG_ICON_SIZE,
|
||||||
styleClass: 'polkit-dialog-user-icon',
|
styleClass: 'polkit-dialog-user-icon',
|
||||||
});
|
});
|
||||||
|
this._userAvatar.x_align = Clutter.ActorAlign.CENTER;
|
||||||
userBox.add_child(this._userAvatar);
|
userBox.add_child(this._userAvatar);
|
||||||
|
|
||||||
this._userLabel = new St.Label({
|
this._userLabel = new St.Label({
|
||||||
style_class: userName === 'root'
|
style_class: userName === 'root'
|
||||||
? 'polkit-dialog-user-root-label'
|
? 'polkit-dialog-user-root-label'
|
||||||
: 'polkit-dialog-user-label',
|
: 'polkit-dialog-user-label',
|
||||||
x_expand: true,
|
|
||||||
y_align: Clutter.ActorAlign.CENTER,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (userName === 'root')
|
if (userName === 'root')
|
||||||
@@ -82,58 +81,60 @@ var AuthenticationDialog = GObject.registerClass({
|
|||||||
|
|
||||||
userBox.add_child(this._userLabel);
|
userBox.add_child(this._userLabel);
|
||||||
|
|
||||||
this._passwordBox = new St.BoxLayout({ vertical: false, style_class: 'prompt-dialog-password-box' });
|
let passwordBox = new St.BoxLayout({
|
||||||
content.add_child(this._passwordBox);
|
style_class: 'prompt-dialog-password-layout',
|
||||||
this._passwordLabel = new St.Label({
|
vertical: true,
|
||||||
style_class: 'prompt-dialog-password-label',
|
|
||||||
y_align: Clutter.ActorAlign.CENTER,
|
|
||||||
});
|
});
|
||||||
this._passwordBox.add_child(this._passwordLabel);
|
|
||||||
this._passwordEntry = new St.PasswordEntry({
|
this._passwordEntry = new St.PasswordEntry({
|
||||||
style_class: 'prompt-dialog-password-entry',
|
style_class: 'prompt-dialog-password-entry',
|
||||||
text: "",
|
text: "",
|
||||||
can_focus: true,
|
can_focus: true,
|
||||||
x_expand: true,
|
visible: false,
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
});
|
});
|
||||||
ShellEntry.addContextMenu(this._passwordEntry);
|
ShellEntry.addContextMenu(this._passwordEntry);
|
||||||
this._passwordEntry.clutter_text.connect('activate', this._onEntryActivate.bind(this));
|
this._passwordEntry.clutter_text.connect('activate', this._onEntryActivate.bind(this));
|
||||||
this._passwordEntry.bind_property('reactive',
|
this._passwordEntry.bind_property('reactive',
|
||||||
this._passwordEntry.clutter_text, 'editable',
|
this._passwordEntry.clutter_text, 'editable',
|
||||||
GObject.BindingFlags.SYNC_CREATE);
|
GObject.BindingFlags.SYNC_CREATE);
|
||||||
this._passwordBox.add_child(this._passwordEntry);
|
passwordBox.add_child(this._passwordEntry);
|
||||||
|
|
||||||
this._workSpinner = new Animation.Spinner(WORK_SPINNER_ICON_SIZE, {
|
let warningBox = new St.BoxLayout({ vertical: true });
|
||||||
animate: true,
|
|
||||||
});
|
|
||||||
this._passwordBox.add(this._workSpinner);
|
|
||||||
|
|
||||||
this._passwordBox.hide();
|
|
||||||
let capsLockWarning = new ShellEntry.CapsLockWarning();
|
let capsLockWarning = new ShellEntry.CapsLockWarning();
|
||||||
content.add_child(capsLockWarning);
|
this._passwordEntry.bind_property('visible',
|
||||||
|
capsLockWarning, 'visible',
|
||||||
|
GObject.BindingFlags.SYNC_CREATE);
|
||||||
|
warningBox.add_child(capsLockWarning);
|
||||||
|
|
||||||
this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label' });
|
this._errorMessageLabel = new St.Label({
|
||||||
|
style_class: 'prompt-dialog-error-label',
|
||||||
|
visible: false,
|
||||||
|
});
|
||||||
this._errorMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
this._errorMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||||
this._errorMessageLabel.clutter_text.line_wrap = true;
|
this._errorMessageLabel.clutter_text.line_wrap = true;
|
||||||
content.add_child(this._errorMessageLabel);
|
warningBox.add_child(this._errorMessageLabel);
|
||||||
this._errorMessageLabel.hide();
|
|
||||||
|
|
||||||
this._infoMessageLabel = new St.Label({ style_class: 'prompt-dialog-info-label' });
|
this._infoMessageLabel = new St.Label({
|
||||||
|
style_class: 'prompt-dialog-info-label',
|
||||||
|
visible: false,
|
||||||
|
});
|
||||||
this._infoMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
this._infoMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||||
this._infoMessageLabel.clutter_text.line_wrap = true;
|
this._infoMessageLabel.clutter_text.line_wrap = true;
|
||||||
content.add_child(this._infoMessageLabel);
|
warningBox.add_child(this._infoMessageLabel);
|
||||||
this._infoMessageLabel.hide();
|
|
||||||
|
|
||||||
/* text is intentionally non-blank otherwise the height is not the same as for
|
/* text is intentionally non-blank otherwise the height is not the same as for
|
||||||
* infoMessage and errorMessageLabel - but it is still invisible because
|
* infoMessage and errorMessageLabel - but it is still invisible because
|
||||||
* gnome-shell.css sets the color to be transparent
|
* gnome-shell.css sets the color to be transparent
|
||||||
*/
|
*/
|
||||||
this._nullMessageLabel = new St.Label({ style_class: 'prompt-dialog-null-label',
|
this._nullMessageLabel = new St.Label({ style_class: 'prompt-dialog-null-label' });
|
||||||
text: 'abc' });
|
|
||||||
this._nullMessageLabel.add_style_class_name('hidden');
|
|
||||||
this._nullMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
this._nullMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||||
this._nullMessageLabel.clutter_text.line_wrap = true;
|
this._nullMessageLabel.clutter_text.line_wrap = true;
|
||||||
content.add_child(this._nullMessageLabel);
|
warningBox.add_child(this._nullMessageLabel);
|
||||||
this._nullMessageLabel.show();
|
|
||||||
|
passwordBox.add_child(warningBox);
|
||||||
|
bodyContent.add_child(passwordBox);
|
||||||
|
|
||||||
this._cancelButton = this.addButton({ label: _("Cancel"),
|
this._cancelButton = this.addButton({ label: _("Cancel"),
|
||||||
action: this.cancel.bind(this),
|
action: this.cancel.bind(this),
|
||||||
@@ -149,6 +150,8 @@ var AuthenticationDialog = GObject.registerClass({
|
|||||||
this._okButton.reactive = text.get_text().length > 0;
|
this._okButton.reactive = text.get_text().length > 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.contentLayout.add_child(bodyContent);
|
||||||
|
|
||||||
this._doneEmitted = false;
|
this._doneEmitted = false;
|
||||||
|
|
||||||
this._mode = -1;
|
this._mode = -1;
|
||||||
@@ -163,13 +166,6 @@ var AuthenticationDialog = GObject.registerClass({
|
|||||||
this._onUserChanged();
|
this._onUserChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
_setWorking(working) {
|
|
||||||
if (working)
|
|
||||||
this._workSpinner.play();
|
|
||||||
else
|
|
||||||
this._workSpinner.stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
_initiateSession() {
|
_initiateSession() {
|
||||||
this._destroySession(DELAYED_RESET_TIMEOUT);
|
this._destroySession(DELAYED_RESET_TIMEOUT);
|
||||||
|
|
||||||
@@ -218,7 +214,6 @@ var AuthenticationDialog = GObject.registerClass({
|
|||||||
|
|
||||||
this._passwordEntry.reactive = false;
|
this._passwordEntry.reactive = false;
|
||||||
this._okButton.reactive = false;
|
this._okButton.reactive = false;
|
||||||
this._setWorking(true);
|
|
||||||
|
|
||||||
this._session.response(response);
|
this._session.response(response);
|
||||||
// When the user responds, dismiss already shown info and
|
// When the user responds, dismiss already shown info and
|
||||||
@@ -260,6 +255,8 @@ var AuthenticationDialog = GObject.registerClass({
|
|||||||
this._errorMessageLabel.show();
|
this._errorMessageLabel.show();
|
||||||
this._infoMessageLabel.hide();
|
this._infoMessageLabel.hide();
|
||||||
this._nullMessageLabel.hide();
|
this._nullMessageLabel.hide();
|
||||||
|
|
||||||
|
Util.wiggle(this._passwordEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try and authenticate again */
|
/* Try and authenticate again */
|
||||||
@@ -273,19 +270,20 @@ var AuthenticationDialog = GObject.registerClass({
|
|||||||
this._sessionRequestTimeoutId = 0;
|
this._sessionRequestTimeoutId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cheap localization trick
|
// Hack: The request string comes directly from PAM, if it's "Password:"
|
||||||
if (request == 'Password:' || request == 'Password: ')
|
// we replace it with our own, if it's something else we replace the
|
||||||
this._passwordLabel.set_text(_("Password:"));
|
// last colon and any trailing spaces with a "…".
|
||||||
|
if (request === 'Password:' || request === 'Password: ')
|
||||||
|
this._passwordEntry.hint_text = _('Enter Password…');
|
||||||
else
|
else
|
||||||
this._passwordLabel.set_text(request);
|
this._passwordEntry.hint_text = request.replace(/: *$/, '…');
|
||||||
|
|
||||||
this._passwordEntry.password_visible = echoOn;
|
this._passwordEntry.password_visible = echoOn;
|
||||||
|
|
||||||
this._passwordBox.show();
|
this._passwordEntry.show();
|
||||||
this._passwordEntry.set_text('');
|
this._passwordEntry.set_text('');
|
||||||
this._passwordEntry.reactive = true;
|
this._passwordEntry.reactive = true;
|
||||||
this._okButton.reactive = false;
|
this._okButton.reactive = false;
|
||||||
this._setWorking(false);
|
|
||||||
|
|
||||||
this._ensureOpen();
|
this._ensureOpen();
|
||||||
this._passwordEntry.grab_key_focus();
|
this._passwordEntry.grab_key_focus();
|
||||||
@@ -332,7 +330,7 @@ var AuthenticationDialog = GObject.registerClass({
|
|||||||
if (this.state != ModalDialog.State.OPENED)
|
if (this.state != ModalDialog.State.OPENED)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this._passwordBox.hide();
|
this._passwordEntry.hide();
|
||||||
this._cancelButton.grab_key_focus();
|
this._cancelButton.grab_key_focus();
|
||||||
this._okButton.reactive = false;
|
this._okButton.reactive = false;
|
||||||
};
|
};
|
||||||
|
12
js/ui/dnd.js
12
js/ui/dnd.js
@@ -411,14 +411,18 @@ var _Draggable = class _Draggable {
|
|||||||
this._snapBackY = this._dragStartY + this._dragOffsetY;
|
this._snapBackY = this._dragStartY + this._dragOffsetY;
|
||||||
this._snapBackScale = this._dragActor.scale_x;
|
this._snapBackScale = this._dragActor.scale_x;
|
||||||
|
|
||||||
|
let origDragOffsetX = this._dragOffsetX;
|
||||||
|
let origDragOffsetY = this._dragOffsetY;
|
||||||
|
let [transX, transY] = this._dragActor.get_translation();
|
||||||
|
this._dragOffsetX -= transX;
|
||||||
|
this._dragOffsetY -= transY;
|
||||||
|
|
||||||
if (this._dragActorMaxSize != undefined) {
|
if (this._dragActorMaxSize != undefined) {
|
||||||
let [scaledWidth, scaledHeight] = this._dragActor.get_transformed_size();
|
let [scaledWidth, scaledHeight] = this._dragActor.get_transformed_size();
|
||||||
let currentSize = Math.max(scaledWidth, scaledHeight);
|
let currentSize = Math.max(scaledWidth, scaledHeight);
|
||||||
if (currentSize > this._dragActorMaxSize) {
|
if (currentSize > this._dragActorMaxSize) {
|
||||||
let scale = this._dragActorMaxSize / currentSize;
|
let scale = this._dragActorMaxSize / currentSize;
|
||||||
let origScale = this._dragActor.scale_x;
|
let origScale = this._dragActor.scale_x;
|
||||||
let origDragOffsetX = this._dragOffsetX;
|
|
||||||
let origDragOffsetY = this._dragOffsetY;
|
|
||||||
|
|
||||||
// The position of the actor changes as we scale
|
// The position of the actor changes as we scale
|
||||||
// around the drag position, but we can't just tween
|
// around the drag position, but we can't just tween
|
||||||
@@ -435,8 +439,8 @@ var _Draggable = class _Draggable {
|
|||||||
|
|
||||||
this._dragActor.get_transition('scale-x').connect('new-frame', () => {
|
this._dragActor.get_transition('scale-x').connect('new-frame', () => {
|
||||||
let currentScale = this._dragActor.scale_x / origScale;
|
let currentScale = this._dragActor.scale_x / origScale;
|
||||||
this._dragOffsetX = currentScale * origDragOffsetX;
|
this._dragOffsetX = currentScale * origDragOffsetX - transX;
|
||||||
this._dragOffsetY = currentScale * origDragOffsetY;
|
this._dragOffsetY = currentScale * origDragOffsetY - transY;
|
||||||
this._dragActor.set_position(
|
this._dragActor.set_position(
|
||||||
this._dragX + this._dragOffsetX,
|
this._dragX + this._dragOffsetX,
|
||||||
this._dragY + this._dragOffsetY);
|
this._dragY + this._dragOffsetY);
|
||||||
|
@@ -1,12 +1,14 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
/* exported init connect disconnect */
|
/* exported init connect disconnect */
|
||||||
|
|
||||||
const { GLib, Gio, St } = imports.gi;
|
const { GLib, Gio, GObject, Shell, St } = imports.gi;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
|
|
||||||
|
const ExtensionDownloader = imports.ui.extensionDownloader;
|
||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
const FileUtils = imports.misc.fileUtils;
|
const FileUtils = imports.misc.fileUtils;
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
|
const MessageTray = imports.ui.messageTray;
|
||||||
|
|
||||||
const { ExtensionState, ExtensionType } = ExtensionUtils;
|
const { ExtensionState, ExtensionType } = ExtensionUtils;
|
||||||
|
|
||||||
@@ -15,10 +17,13 @@ const DISABLED_EXTENSIONS_KEY = 'disabled-extensions';
|
|||||||
const DISABLE_USER_EXTENSIONS_KEY = 'disable-user-extensions';
|
const DISABLE_USER_EXTENSIONS_KEY = 'disable-user-extensions';
|
||||||
const EXTENSION_DISABLE_VERSION_CHECK_KEY = 'disable-extension-version-validation';
|
const EXTENSION_DISABLE_VERSION_CHECK_KEY = 'disable-extension-version-validation';
|
||||||
|
|
||||||
|
const UPDATE_CHECK_TIMEOUT = 24 * 60 * 60; // 1 day in seconds
|
||||||
|
|
||||||
var ExtensionManager = class {
|
var ExtensionManager = class {
|
||||||
constructor() {
|
constructor() {
|
||||||
this._initialized = false;
|
this._initialized = false;
|
||||||
this._enabled = false;
|
this._enabled = false;
|
||||||
|
this._updateNotified = false;
|
||||||
|
|
||||||
this._extensions = new Map();
|
this._extensions = new Map();
|
||||||
this._enabledExtensions = [];
|
this._enabledExtensions = [];
|
||||||
@@ -47,6 +52,12 @@ var ExtensionManager = class {
|
|||||||
|
|
||||||
this._installExtensionUpdates();
|
this._installExtensionUpdates();
|
||||||
this._sessionUpdated();
|
this._sessionUpdated();
|
||||||
|
|
||||||
|
GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, UPDATE_CHECK_TIMEOUT, () => {
|
||||||
|
ExtensionDownloader.checkForUpdates();
|
||||||
|
return GLib.SOURCE_CONTINUE;
|
||||||
|
});
|
||||||
|
ExtensionDownloader.checkForUpdates();
|
||||||
}
|
}
|
||||||
|
|
||||||
lookup(uuid) {
|
lookup(uuid) {
|
||||||
@@ -206,6 +217,18 @@ var ExtensionManager = class {
|
|||||||
|
|
||||||
extension.hasUpdate = true;
|
extension.hasUpdate = true;
|
||||||
this.emit('extension-state-changed', extension);
|
this.emit('extension-state-changed', extension);
|
||||||
|
|
||||||
|
if (!this._updateNotified) {
|
||||||
|
this._updateNotified = true;
|
||||||
|
|
||||||
|
let source = new ExtensionUpdateSource();
|
||||||
|
Main.messageTray.add(source);
|
||||||
|
|
||||||
|
let notification = new MessageTray.Notification(source,
|
||||||
|
_('Extension Updates Available'),
|
||||||
|
_('Extension updates are ready to be installed.'));
|
||||||
|
source.showNotification(notification);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
logExtensionError(uuid, error) {
|
logExtensionError(uuid, error) {
|
||||||
@@ -557,3 +580,27 @@ var ExtensionManager = class {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
Signals.addSignalMethods(ExtensionManager.prototype);
|
Signals.addSignalMethods(ExtensionManager.prototype);
|
||||||
|
|
||||||
|
const ExtensionUpdateSource = GObject.registerClass(
|
||||||
|
class ExtensionUpdateSource extends MessageTray.Source {
|
||||||
|
_init() {
|
||||||
|
let appSys = Shell.AppSystem.get_default();
|
||||||
|
this._app = appSys.lookup_app('org.gnome.Extensions.desktop');
|
||||||
|
|
||||||
|
super._init(this._app.get_name());
|
||||||
|
}
|
||||||
|
|
||||||
|
getIcon() {
|
||||||
|
return this._app.app_info.get_icon();
|
||||||
|
}
|
||||||
|
|
||||||
|
_createPolicy() {
|
||||||
|
return new MessageTray.NotificationApplicationPolicy(this._app.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
open() {
|
||||||
|
this._app.activate();
|
||||||
|
Main.overview.hide();
|
||||||
|
Main.panel.closeCalendar();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
@@ -195,7 +195,7 @@ function zoomOutActorAtPos(actor, x, y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function animateIconPosition(icon, box, flags, nChangedIcons) {
|
function animateIconPosition(icon, box, flags, nChangedIcons) {
|
||||||
if (!icon.has_allocation() || icon.allocation.equal(box)) {
|
if (!icon.has_allocation() || icon.allocation.equal(box) || icon.opacity === 0) {
|
||||||
icon.allocate(box, flags);
|
icon.allocate(box, flags);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -1102,6 +1102,9 @@ var KeyboardManager = class KeyBoardManager {
|
|||||||
this._a11yApplicationsSettings = new Gio.Settings({ schema_id: A11Y_APPLICATIONS_SCHEMA });
|
this._a11yApplicationsSettings = new Gio.Settings({ schema_id: A11Y_APPLICATIONS_SCHEMA });
|
||||||
this._a11yApplicationsSettings.connect('changed', this._syncEnabled.bind(this));
|
this._a11yApplicationsSettings.connect('changed', this._syncEnabled.bind(this));
|
||||||
|
|
||||||
|
this._seat = Clutter.get_default_backend().get_default_seat();
|
||||||
|
this._seat.connect('notify::touch-mode', this._syncEnabled.bind(this));
|
||||||
|
|
||||||
this._lastDevice = null;
|
this._lastDevice = null;
|
||||||
Meta.get_backend().connect('last-device-changed', (backend, device) => {
|
Meta.get_backend().connect('last-device-changed', (backend, device) => {
|
||||||
if (device.get_device_name().indexOf('XTEST') < 0) {
|
if (device.get_device_name().indexOf('XTEST') < 0) {
|
||||||
@@ -1122,7 +1125,9 @@ var KeyboardManager = class KeyBoardManager {
|
|||||||
|
|
||||||
_syncEnabled() {
|
_syncEnabled() {
|
||||||
let enableKeyboard = this._a11yApplicationsSettings.get_boolean(SHOW_KEYBOARD);
|
let enableKeyboard = this._a11yApplicationsSettings.get_boolean(SHOW_KEYBOARD);
|
||||||
let enabled = enableKeyboard || this._lastDeviceIsTouchscreen();
|
let autoEnabled = this._seat.get_touch_mode() && this._lastDeviceIsTouchscreen();
|
||||||
|
let enabled = enableKeyboard || autoEnabled;
|
||||||
|
|
||||||
if (!enabled && !this._keyboard)
|
if (!enabled && !this._keyboard)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@@ -430,8 +430,10 @@ var Magnifier = class Magnifier {
|
|||||||
* lines making up the crosshairs.
|
* lines making up the crosshairs.
|
||||||
*/
|
*/
|
||||||
setCrosshairsLength(length) {
|
setCrosshairsLength(length) {
|
||||||
if (this._crossHairs)
|
if (this._crossHairs) {
|
||||||
this._crossHairs.setLength(length);
|
let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
|
||||||
|
this._crossHairs.setLength(length / scaleFactor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -745,8 +747,7 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
this._xCaret = 0;
|
this._xCaret = 0;
|
||||||
this._yCaret = 0;
|
this._yCaret = 0;
|
||||||
|
|
||||||
let seat = Clutter.get_default_backend().get_default_seat();
|
this._pointerIdleMonitor = Meta.IdleMonitor.get_core();
|
||||||
this._pointerIdleMonitor = Meta.IdleMonitor.get_for_device(seat.get_pointer());
|
|
||||||
this._scrollContentsTimerId = 0;
|
this._scrollContentsTimerId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -798,9 +799,14 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
[this._xFocus, this._yFocus] = [extents.x + (extents.width / 2),
|
let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
|
||||||
extents.y + (extents.height / 2)];
|
let [xFocus, yFocus] = [(extents.x + (extents.width / 2)) * scaleFactor,
|
||||||
this._centerFromFocusPosition();
|
(extents.y + (extents.height / 2)) * scaleFactor];
|
||||||
|
|
||||||
|
if (this._xFocus !== xFocus || this._yFocus !== yFocus) {
|
||||||
|
[this._xFocus, this._yFocus] = [xFocus, yFocus];
|
||||||
|
this._centerFromFocusPosition();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateCaret(caller, event) {
|
_updateCaret(caller, event) {
|
||||||
@@ -815,8 +821,13 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
[this._xCaret, this._yCaret] = [extents.x, extents.y];
|
let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
|
||||||
this._centerFromCaretPosition();
|
let [xCaret, yCaret] = [extents.x * scaleFactor, extents.y * scaleFactor];
|
||||||
|
|
||||||
|
if (this._xCaret !== xCaret || this._yCaret !== yCaret) {
|
||||||
|
[this._xCaret, this._yCaret] = [xCaret, yCaret];
|
||||||
|
this._centerFromCaretPosition();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -864,7 +875,8 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
setMagFactor(xMagFactor, yMagFactor) {
|
setMagFactor(xMagFactor, yMagFactor) {
|
||||||
this._changeROI({ xMagFactor,
|
this._changeROI({ xMagFactor,
|
||||||
yMagFactor,
|
yMagFactor,
|
||||||
redoCursorTracking: this._followingCursor });
|
redoCursorTracking: this._followingCursor,
|
||||||
|
animate: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1122,6 +1134,13 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
return this._screenPosition;
|
return this._screenPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_clearScrollContentsTimer() {
|
||||||
|
if (this._scrollContentsTimerId !== 0) {
|
||||||
|
GLib.source_remove(this._scrollContentsTimerId);
|
||||||
|
this._scrollContentsTimerId = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* scrollToMousePos:
|
* scrollToMousePos:
|
||||||
* Set the region of interest based on the position of the system pointer.
|
* Set the region of interest based on the position of the system pointer.
|
||||||
@@ -1135,28 +1154,29 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
else
|
else
|
||||||
this._updateMousePosition();
|
this._updateMousePosition();
|
||||||
|
|
||||||
|
this._clearScrollContentsTimer();
|
||||||
|
this._scrollContentsTimerId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, POINTER_REST_TIME, () => {
|
||||||
|
this._followingCursor = false;
|
||||||
|
if (this._xDelayed !== null && this._yDelayed !== null) {
|
||||||
|
this._scrollContentsToDelayed(this._xDelayed, this._yDelayed);
|
||||||
|
this._xDelayed = null;
|
||||||
|
this._yDelayed = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return GLib.SOURCE_REMOVE;
|
||||||
|
});
|
||||||
|
|
||||||
// Determine whether the system mouse pointer is over this zoom region.
|
// Determine whether the system mouse pointer is over this zoom region.
|
||||||
return this._isMouseOverRegion();
|
return this._isMouseOverRegion();
|
||||||
}
|
}
|
||||||
|
|
||||||
_clearScrollContentsTimer() {
|
|
||||||
if (this._scrollContentsTimerId != 0) {
|
|
||||||
GLib.source_remove(this._scrollContentsTimerId);
|
|
||||||
this._scrollContentsTimerId = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
_scrollContentsToDelayed(x, y) {
|
_scrollContentsToDelayed(x, y) {
|
||||||
if (this._pointerIdleMonitor.get_idletime() >= POINTER_REST_TIME) {
|
if (this._followingCursor) {
|
||||||
|
this._xDelayed = x;
|
||||||
|
this._yDelayed = y;
|
||||||
|
} else {
|
||||||
this.scrollContentsTo(x, y);
|
this.scrollContentsTo(x, y);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._clearScrollContentsTimer();
|
|
||||||
this._scrollContentsTimerId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, POINTER_REST_TIME, () => {
|
|
||||||
this._scrollContentsToDelayed(x, y);
|
|
||||||
return GLib.SOURCE_REMOVE;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1167,11 +1187,16 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
* @param {number} y: The y-coord of the point to center on.
|
* @param {number} y: The y-coord of the point to center on.
|
||||||
*/
|
*/
|
||||||
scrollContentsTo(x, y) {
|
scrollContentsTo(x, y) {
|
||||||
|
if (x < 0 || x > global.screen_width ||
|
||||||
|
y < 0 || y > global.screen_height)
|
||||||
|
return;
|
||||||
|
|
||||||
this._clearScrollContentsTimer();
|
this._clearScrollContentsTimer();
|
||||||
|
|
||||||
this._followingCursor = false;
|
this._followingCursor = false;
|
||||||
this._changeROI({ xCenter: x,
|
this._changeROI({ xCenter: x,
|
||||||
yCenter: y });
|
yCenter: y,
|
||||||
|
animate: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1323,7 +1348,7 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
this._crossHairsActor = null;
|
this._crossHairsActor = null;
|
||||||
|
|
||||||
// Contrast and brightness effects.
|
// Contrast and brightness effects.
|
||||||
this._magShaderEffects = new MagShaderEffects(this._uiGroupClone);
|
this._magShaderEffects = new MagShaderEffects(mainGroup);
|
||||||
this._magShaderEffects.setColorSaturation(this._colorSaturation);
|
this._magShaderEffects.setColorSaturation(this._colorSaturation);
|
||||||
this._magShaderEffects.setInvertLightness(this._invertLightness);
|
this._magShaderEffects.setInvertLightness(this._invertLightness);
|
||||||
this._magShaderEffects.setBrightness(this._brightness);
|
this._magShaderEffects.setBrightness(this._brightness);
|
||||||
@@ -1380,7 +1405,8 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
yMagFactor: this._yMagFactor,
|
yMagFactor: this._yMagFactor,
|
||||||
xCenter: this._xCenter,
|
xCenter: this._xCenter,
|
||||||
yCenter: this._yCenter,
|
yCenter: this._yCenter,
|
||||||
redoCursorTracking: false });
|
redoCursorTracking: false,
|
||||||
|
animate: false });
|
||||||
|
|
||||||
if (params.xMagFactor <= 0)
|
if (params.xMagFactor <= 0)
|
||||||
params.xMagFactor = this._xMagFactor;
|
params.xMagFactor = this._xMagFactor;
|
||||||
@@ -1419,8 +1445,7 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
height: this._viewPortHeight }, true);
|
height: this._viewPortHeight }, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._updateCloneGeometry();
|
this._updateCloneGeometry(params.animate);
|
||||||
this._updateMousePosition();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_isMouseOverRegion() {
|
_isMouseOverRegion() {
|
||||||
@@ -1558,38 +1583,64 @@ var ZoomRegion = class ZoomRegion {
|
|||||||
this._magView.set_position(this._viewPortX, this._viewPortY);
|
this._magView.set_position(this._viewPortX, this._viewPortY);
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateCloneGeometry() {
|
_updateCloneGeometry(animate = false) {
|
||||||
if (!this.isActive())
|
if (!this.isActive())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this._uiGroupClone.set_scale(this._xMagFactor, this._yMagFactor);
|
|
||||||
this._mouseActor.set_scale(this._xMagFactor, this._yMagFactor);
|
|
||||||
|
|
||||||
let [x, y] = this._screenToViewPort(0, 0);
|
let [x, y] = this._screenToViewPort(0, 0);
|
||||||
this._uiGroupClone.set_position(Math.round(x), Math.round(y));
|
this._uiGroupClone.ease({
|
||||||
|
x: Math.round(x),
|
||||||
|
y: Math.round(y),
|
||||||
|
scale_x: this._xMagFactor,
|
||||||
|
scale_y: this._yMagFactor,
|
||||||
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
|
duration: animate ? 100 : 0,
|
||||||
|
});
|
||||||
|
|
||||||
this._updateMousePosition();
|
let [mouseX, mouseY] = this._getMousePosition();
|
||||||
|
this._mouseActor.ease({
|
||||||
|
x: mouseX,
|
||||||
|
y: mouseY,
|
||||||
|
scale_x: this._xMagFactor,
|
||||||
|
scale_y: this._yMagFactor,
|
||||||
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
|
duration: animate ? 100 : 0,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (this._crossHairsActor) {
|
||||||
|
let [crossX, crossY] = this._getCrossHairsPosition();
|
||||||
|
this._crossHairsActor.ease({
|
||||||
|
x: crossX,
|
||||||
|
y: crossY,
|
||||||
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
|
duration: animate ? 100 : 0,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateMousePosition() {
|
_updateMousePosition() {
|
||||||
if (!this.isActive())
|
let [xMagMouse, yMagMouse] = this._getMousePosition();
|
||||||
return;
|
|
||||||
|
|
||||||
let [xMagMouse, yMagMouse] = this._screenToViewPort(this._magnifier.xMouse,
|
|
||||||
this._magnifier.yMouse);
|
|
||||||
|
|
||||||
xMagMouse = Math.round(xMagMouse);
|
|
||||||
yMagMouse = Math.round(yMagMouse);
|
|
||||||
|
|
||||||
this._mouseActor.set_position(xMagMouse, yMagMouse);
|
this._mouseActor.set_position(xMagMouse, yMagMouse);
|
||||||
|
|
||||||
if (this._crossHairsActor) {
|
if (this._crossHairsActor) {
|
||||||
let [groupWidth, groupHeight] = this._crossHairsActor.get_size();
|
let [crossX, crossY] = this._getCrossHairsPosition();
|
||||||
this._crossHairsActor.set_position(xMagMouse - groupWidth / 2,
|
this._crossHairsActor.set_position(crossX, crossY);
|
||||||
yMagMouse - groupHeight / 2);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_getMousePosition() {
|
||||||
|
let [xMagMouse, yMagMouse] = this._screenToViewPort(
|
||||||
|
this._magnifier.xMouse, this._magnifier.yMouse);
|
||||||
|
return [Math.round(xMagMouse), Math.round(yMagMouse)];
|
||||||
|
}
|
||||||
|
|
||||||
|
_getCrossHairsPosition() {
|
||||||
|
let [xMagMouse, yMagMouse] = this._getMousePosition();
|
||||||
|
let [groupWidth, groupHeight] = this._crossHairsActor.get_size();
|
||||||
|
|
||||||
|
return [xMagMouse - groupWidth / 2, yMagMouse - groupHeight / 2];
|
||||||
|
}
|
||||||
|
|
||||||
_monitorsChanged() {
|
_monitorsChanged() {
|
||||||
this._background.set_size(global.screen_width, global.screen_height);
|
this._background.set_size(global.screen_width, global.screen_height);
|
||||||
this._updateScreenPosition();
|
this._updateScreenPosition();
|
||||||
@@ -1808,12 +1859,10 @@ class Crosshairs extends Clutter.Actor {
|
|||||||
let clipWidth = this._clipSize[0];
|
let clipWidth = this._clipSize[0];
|
||||||
let clipHeight = this._clipSize[1];
|
let clipHeight = this._clipSize[1];
|
||||||
|
|
||||||
// Note that clip, if present, is not centred on the cross hair
|
let left = groupWidth / 2 - clipWidth / 2 - leftLength - thickness / 2;
|
||||||
// intersection, but biased towards the top left.
|
let right = groupWidth / 2 + clipWidth / 2 + thickness / 2;
|
||||||
let left = groupWidth / 2 - clipWidth * 0.25 - leftLength;
|
let top = groupHeight / 2 - clipHeight / 2 - topLength - thickness / 2;
|
||||||
let right = groupWidth / 2 + clipWidth * 0.75;
|
let bottom = groupHeight / 2 + clipHeight / 2 + thickness / 2;
|
||||||
let top = groupHeight / 2 - clipHeight * 0.25 - topLength - thickness / 2;
|
|
||||||
let bottom = groupHeight / 2 + clipHeight * 0.75 + thickness / 2;
|
|
||||||
this._horizLeftHair.set_position(left, (groupHeight - thickness) / 2);
|
this._horizLeftHair.set_position(left, (groupHeight - thickness) / 2);
|
||||||
this._horizRightHair.set_position(right, (groupHeight - thickness) / 2);
|
this._horizRightHair.set_position(right, (groupHeight - thickness) / 2);
|
||||||
this._vertTopHair.set_position((groupWidth - thickness) / 2, top);
|
this._vertTopHair.set_position((groupWidth - thickness) / 2, top);
|
||||||
|
@@ -137,6 +137,7 @@ class OverviewActor extends St.BoxLayout {
|
|||||||
var Overview = class {
|
var Overview = class {
|
||||||
constructor() {
|
constructor() {
|
||||||
this._initCalled = false;
|
this._initCalled = false;
|
||||||
|
this._visible = false;
|
||||||
|
|
||||||
Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
|
Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
|
||||||
this._sessionUpdated();
|
this._sessionUpdated();
|
||||||
|
@@ -1,13 +1,10 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
|
|
||||||
const { AccountsService, Clutter, Gio, GLib,
|
const { AccountsService, Clutter, Gio,
|
||||||
GnomeDesktop, GObject, Graphene, Meta, Shell, St } = imports.gi;
|
GLib, Graphene, Meta, Shell, St } = imports.gi;
|
||||||
const Cairo = imports.cairo;
|
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
|
|
||||||
const Background = imports.ui.background;
|
|
||||||
const GnomeSession = imports.misc.gnomeSession;
|
const GnomeSession = imports.misc.gnomeSession;
|
||||||
const Layout = imports.ui.layout;
|
|
||||||
const OVirt = imports.gdm.oVirt;
|
const OVirt = imports.gdm.oVirt;
|
||||||
const LoginManager = imports.misc.loginManager;
|
const LoginManager = imports.misc.loginManager;
|
||||||
const Lightbox = imports.ui.lightbox;
|
const Lightbox = imports.ui.lightbox;
|
||||||
@@ -27,17 +24,6 @@ const LOCKDOWN_SCHEMA = 'org.gnome.desktop.lockdown';
|
|||||||
const DISABLE_LOCK_KEY = 'disable-lock-screen';
|
const DISABLE_LOCK_KEY = 'disable-lock-screen';
|
||||||
|
|
||||||
const LOCKED_STATE_STR = 'screenShield.locked';
|
const LOCKED_STATE_STR = 'screenShield.locked';
|
||||||
// fraction of screen height the arrow must reach before completing
|
|
||||||
// the slide up automatically
|
|
||||||
var ARROW_DRAG_THRESHOLD = 0.1;
|
|
||||||
|
|
||||||
// Parameters for the arrow animation
|
|
||||||
var N_ARROWS = 3;
|
|
||||||
var ARROW_ANIMATION_TIME = 600;
|
|
||||||
var ARROW_ANIMATION_PEAK_OPACITY = 0.4;
|
|
||||||
var ARROW_IDLE_TIME = 30000; // ms
|
|
||||||
|
|
||||||
var SUMMARY_ICON_SIZE = 48;
|
|
||||||
|
|
||||||
// ScreenShield animation time
|
// ScreenShield animation time
|
||||||
// - STANDARD_FADE_TIME is used when the session goes idle
|
// - STANDARD_FADE_TIME is used when the session goes idle
|
||||||
@@ -48,384 +34,6 @@ var STANDARD_FADE_TIME = 10000;
|
|||||||
var MANUAL_FADE_TIME = 300;
|
var MANUAL_FADE_TIME = 300;
|
||||||
var CURTAIN_SLIDE_TIME = 300;
|
var CURTAIN_SLIDE_TIME = 300;
|
||||||
|
|
||||||
var Clock = GObject.registerClass(
|
|
||||||
class ScreenShieldClock extends St.BoxLayout {
|
|
||||||
_init() {
|
|
||||||
super._init({ style_class: 'screen-shield-clock', vertical: true });
|
|
||||||
|
|
||||||
this._time = new St.Label({
|
|
||||||
style_class: 'screen-shield-clock-time',
|
|
||||||
x_align: Clutter.ActorAlign.CENTER,
|
|
||||||
});
|
|
||||||
this._date = new St.Label({
|
|
||||||
style_class: 'screen-shield-clock-date',
|
|
||||||
x_align: Clutter.ActorAlign.CENTER,
|
|
||||||
});
|
|
||||||
|
|
||||||
this.add_child(this._time);
|
|
||||||
this.add_child(this._date);
|
|
||||||
|
|
||||||
this._wallClock = new GnomeDesktop.WallClock({ time_only: true });
|
|
||||||
this._wallClock.connect('notify::clock', this._updateClock.bind(this));
|
|
||||||
|
|
||||||
this._updateClock();
|
|
||||||
|
|
||||||
this.connect('destroy', this._onDestroy.bind(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
_updateClock() {
|
|
||||||
this._time.text = this._wallClock.clock;
|
|
||||||
|
|
||||||
let date = new Date();
|
|
||||||
/* Translators: This is a time format for a date in
|
|
||||||
long format */
|
|
||||||
let dateFormat = Shell.util_translate_time_string(N_("%A, %B %d"));
|
|
||||||
this._date.text = date.toLocaleFormat(dateFormat);
|
|
||||||
}
|
|
||||||
|
|
||||||
_onDestroy() {
|
|
||||||
this._wallClock.run_dispose();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var NotificationsBox = GObject.registerClass({
|
|
||||||
Signals: { 'wake-up-screen': {} },
|
|
||||||
}, class NotificationsBox extends St.BoxLayout {
|
|
||||||
_init() {
|
|
||||||
super._init({
|
|
||||||
vertical: true,
|
|
||||||
name: 'screenShieldNotifications',
|
|
||||||
style_class: 'screen-shield-notifications-container',
|
|
||||||
});
|
|
||||||
|
|
||||||
this._scrollView = new St.ScrollView({ hscrollbar_policy: St.PolicyType.NEVER });
|
|
||||||
this._notificationBox = new St.BoxLayout({ vertical: true,
|
|
||||||
style_class: 'screen-shield-notifications-container' });
|
|
||||||
this._scrollView.add_actor(this._notificationBox);
|
|
||||||
|
|
||||||
this.add_child(this._scrollView);
|
|
||||||
|
|
||||||
this._sources = new Map();
|
|
||||||
Main.messageTray.getSources().forEach(source => {
|
|
||||||
this._sourceAdded(Main.messageTray, source, true);
|
|
||||||
});
|
|
||||||
this._updateVisibility();
|
|
||||||
|
|
||||||
this._sourceAddedId = Main.messageTray.connect('source-added', this._sourceAdded.bind(this));
|
|
||||||
|
|
||||||
this.connect('destroy', this._onDestroy.bind(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
_onDestroy() {
|
|
||||||
if (this._sourceAddedId) {
|
|
||||||
Main.messageTray.disconnect(this._sourceAddedId);
|
|
||||||
this._sourceAddedId = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
let items = this._sources.entries();
|
|
||||||
for (let [source, obj] of items)
|
|
||||||
this._removeSource(source, obj);
|
|
||||||
}
|
|
||||||
|
|
||||||
_updateVisibility() {
|
|
||||||
this._notificationBox.visible =
|
|
||||||
this._notificationBox.get_children().some(a => a.visible);
|
|
||||||
|
|
||||||
this.visible = this._notificationBox.visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
_makeNotificationCountText(count, isChat) {
|
|
||||||
if (isChat)
|
|
||||||
return ngettext("%d new message", "%d new messages", count).format(count);
|
|
||||||
else
|
|
||||||
return ngettext("%d new notification", "%d new notifications", count).format(count);
|
|
||||||
}
|
|
||||||
|
|
||||||
_makeNotificationSource(source, box) {
|
|
||||||
let sourceActor = new MessageTray.SourceActor(source, SUMMARY_ICON_SIZE);
|
|
||||||
box.add_child(sourceActor);
|
|
||||||
|
|
||||||
let textBox = new St.BoxLayout({ vertical: true });
|
|
||||||
box.add_child(textBox);
|
|
||||||
|
|
||||||
let title = new St.Label({ text: source.title,
|
|
||||||
style_class: 'screen-shield-notification-label' });
|
|
||||||
textBox.add(title);
|
|
||||||
|
|
||||||
let count = source.unseenCount;
|
|
||||||
let countLabel = new St.Label({ text: this._makeNotificationCountText(count, source.isChat),
|
|
||||||
style_class: 'screen-shield-notification-count-text' });
|
|
||||||
textBox.add(countLabel);
|
|
||||||
|
|
||||||
box.visible = count != 0;
|
|
||||||
return [title, countLabel];
|
|
||||||
}
|
|
||||||
|
|
||||||
_makeNotificationDetailedSource(source, box) {
|
|
||||||
let sourceActor = new MessageTray.SourceActor(source, SUMMARY_ICON_SIZE);
|
|
||||||
let sourceBin = new St.Bin({ child: sourceActor });
|
|
||||||
box.add(sourceBin);
|
|
||||||
|
|
||||||
let textBox = new St.BoxLayout({ vertical: true });
|
|
||||||
box.add_child(textBox);
|
|
||||||
|
|
||||||
let title = new St.Label({ text: source.title,
|
|
||||||
style_class: 'screen-shield-notification-label' });
|
|
||||||
textBox.add(title);
|
|
||||||
|
|
||||||
let visible = false;
|
|
||||||
for (let i = 0; i < source.notifications.length; i++) {
|
|
||||||
let n = source.notifications[i];
|
|
||||||
|
|
||||||
if (n.acknowledged)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
let body = '';
|
|
||||||
if (n.bannerBodyText) {
|
|
||||||
body = n.bannerBodyMarkup
|
|
||||||
? n.bannerBodyText
|
|
||||||
: GLib.markup_escape_text(n.bannerBodyText, -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
let label = new St.Label({ style_class: 'screen-shield-notification-count-text' });
|
|
||||||
label.clutter_text.set_markup(`<b>${n.title}</b> ${body}`);
|
|
||||||
textBox.add(label);
|
|
||||||
|
|
||||||
visible = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
box.visible = visible;
|
|
||||||
return [title, null];
|
|
||||||
}
|
|
||||||
|
|
||||||
_shouldShowDetails(source) {
|
|
||||||
return source.policy.detailsInLockScreen ||
|
|
||||||
source.narrowestPrivacyScope == MessageTray.PrivacyScope.SYSTEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
_showSource(source, obj, box) {
|
|
||||||
if (obj.detailed)
|
|
||||||
[obj.titleLabel, obj.countLabel] = this._makeNotificationDetailedSource(source, box);
|
|
||||||
else
|
|
||||||
[obj.titleLabel, obj.countLabel] = this._makeNotificationSource(source, box);
|
|
||||||
|
|
||||||
box.visible = obj.visible && (source.unseenCount > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
_sourceAdded(tray, source, initial) {
|
|
||||||
let obj = {
|
|
||||||
visible: source.policy.showInLockScreen,
|
|
||||||
detailed: this._shouldShowDetails(source),
|
|
||||||
sourceDestroyId: 0,
|
|
||||||
sourceCountChangedId: 0,
|
|
||||||
sourceTitleChangedId: 0,
|
|
||||||
sourceUpdatedId: 0,
|
|
||||||
sourceBox: null,
|
|
||||||
titleLabel: null,
|
|
||||||
countLabel: null,
|
|
||||||
};
|
|
||||||
|
|
||||||
obj.sourceBox = new St.BoxLayout({ style_class: 'screen-shield-notification-source',
|
|
||||||
x_expand: true });
|
|
||||||
this._showSource(source, obj, obj.sourceBox);
|
|
||||||
this._notificationBox.add_child(obj.sourceBox);
|
|
||||||
|
|
||||||
obj.sourceCountChangedId = source.connect('notify::count', () => {
|
|
||||||
this._countChanged(source, obj);
|
|
||||||
});
|
|
||||||
obj.sourceTitleChangedId = source.connect('notify::title', () => {
|
|
||||||
this._titleChanged(source, obj);
|
|
||||||
});
|
|
||||||
obj.policyChangedId = source.policy.connect('notify', (policy, pspec) => {
|
|
||||||
if (pspec.name == 'show-in-lock-screen')
|
|
||||||
this._visibleChanged(source, obj);
|
|
||||||
else
|
|
||||||
this._detailedChanged(source, obj);
|
|
||||||
});
|
|
||||||
obj.sourceDestroyId = source.connect('destroy', () => {
|
|
||||||
this._onSourceDestroy(source, obj);
|
|
||||||
});
|
|
||||||
|
|
||||||
this._sources.set(source, obj);
|
|
||||||
|
|
||||||
if (!initial) {
|
|
||||||
// block scrollbars while animating, if they're not needed now
|
|
||||||
let boxHeight = this._notificationBox.height;
|
|
||||||
if (this._scrollView.height >= boxHeight)
|
|
||||||
this._scrollView.vscrollbar_policy = St.PolicyType.NEVER;
|
|
||||||
|
|
||||||
let widget = obj.sourceBox;
|
|
||||||
let [, natHeight] = widget.get_preferred_height(-1);
|
|
||||||
widget.height = 0;
|
|
||||||
widget.ease({
|
|
||||||
height: natHeight,
|
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
|
||||||
duration: 250,
|
|
||||||
onComplete: () => {
|
|
||||||
this._scrollView.vscrollbar_policy = St.PolicyType.AUTOMATIC;
|
|
||||||
widget.set_height(-1);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
this._updateVisibility();
|
|
||||||
if (obj.sourceBox.visible)
|
|
||||||
this.emit('wake-up-screen');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
_titleChanged(source, obj) {
|
|
||||||
obj.titleLabel.text = source.title;
|
|
||||||
}
|
|
||||||
|
|
||||||
_countChanged(source, obj) {
|
|
||||||
// A change in the number of notifications may change whether we show
|
|
||||||
// details.
|
|
||||||
let newDetailed = this._shouldShowDetails(source);
|
|
||||||
let oldDetailed = obj.detailed;
|
|
||||||
|
|
||||||
obj.detailed = newDetailed;
|
|
||||||
|
|
||||||
if (obj.detailed || oldDetailed != newDetailed) {
|
|
||||||
// A new notification was pushed, or a previous notification was destroyed.
|
|
||||||
// Give up, and build the list again.
|
|
||||||
|
|
||||||
obj.sourceBox.destroy_all_children();
|
|
||||||
obj.titleLabel = obj.countLabel = null;
|
|
||||||
this._showSource(source, obj, obj.sourceBox);
|
|
||||||
} else {
|
|
||||||
let count = source.unseenCount;
|
|
||||||
obj.countLabel.text = this._makeNotificationCountText(count, source.isChat);
|
|
||||||
}
|
|
||||||
|
|
||||||
obj.sourceBox.visible = obj.visible && (source.unseenCount > 0);
|
|
||||||
|
|
||||||
this._updateVisibility();
|
|
||||||
if (obj.sourceBox.visible)
|
|
||||||
this.emit('wake-up-screen');
|
|
||||||
}
|
|
||||||
|
|
||||||
_visibleChanged(source, obj) {
|
|
||||||
if (obj.visible == source.policy.showInLockScreen)
|
|
||||||
return;
|
|
||||||
|
|
||||||
obj.visible = source.policy.showInLockScreen;
|
|
||||||
obj.sourceBox.visible = obj.visible && source.unseenCount > 0;
|
|
||||||
|
|
||||||
this._updateVisibility();
|
|
||||||
if (obj.sourceBox.visible)
|
|
||||||
this.emit('wake-up-screen');
|
|
||||||
}
|
|
||||||
|
|
||||||
_detailedChanged(source, obj) {
|
|
||||||
let newDetailed = this._shouldShowDetails(source);
|
|
||||||
if (obj.detailed == newDetailed)
|
|
||||||
return;
|
|
||||||
|
|
||||||
obj.detailed = newDetailed;
|
|
||||||
|
|
||||||
obj.sourceBox.destroy_all_children();
|
|
||||||
obj.titleLabel = obj.countLabel = null;
|
|
||||||
this._showSource(source, obj, obj.sourceBox);
|
|
||||||
}
|
|
||||||
|
|
||||||
_onSourceDestroy(source, obj) {
|
|
||||||
this._removeSource(source, obj);
|
|
||||||
this._updateVisibility();
|
|
||||||
}
|
|
||||||
|
|
||||||
_removeSource(source, obj) {
|
|
||||||
obj.sourceBox.destroy();
|
|
||||||
obj.sourceBox = obj.titleLabel = obj.countLabel = null;
|
|
||||||
|
|
||||||
source.disconnect(obj.sourceDestroyId);
|
|
||||||
source.disconnect(obj.sourceCountChangedId);
|
|
||||||
source.disconnect(obj.sourceTitleChangedId);
|
|
||||||
source.policy.disconnect(obj.policyChangedId);
|
|
||||||
|
|
||||||
this._sources.delete(source);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var Arrow = GObject.registerClass(
|
|
||||||
class ScreenShieldArrow extends St.Bin {
|
|
||||||
_init(params) {
|
|
||||||
super._init(params);
|
|
||||||
|
|
||||||
this._drawingArea = new St.DrawingArea({
|
|
||||||
x_expand: true,
|
|
||||||
y_expand: true,
|
|
||||||
});
|
|
||||||
this._drawingArea.connect('repaint', this._drawArrow.bind(this));
|
|
||||||
this.child = this._drawingArea;
|
|
||||||
|
|
||||||
this._shadowHelper = null;
|
|
||||||
this._shadowWidth = this._shadowHeight = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
_drawArrow(arrow) {
|
|
||||||
let cr = arrow.get_context();
|
|
||||||
let [w, h] = arrow.get_surface_size();
|
|
||||||
let node = this.get_theme_node();
|
|
||||||
let thickness = node.get_length('-arrow-thickness');
|
|
||||||
|
|
||||||
Clutter.cairo_set_source_color(cr, node.get_foreground_color());
|
|
||||||
|
|
||||||
cr.setLineCap(Cairo.LineCap.ROUND);
|
|
||||||
cr.setLineWidth(thickness);
|
|
||||||
|
|
||||||
cr.moveTo(thickness / 2, h - thickness / 2);
|
|
||||||
cr.lineTo(w / 2, thickness);
|
|
||||||
cr.lineTo(w - thickness / 2, h - thickness / 2);
|
|
||||||
cr.stroke();
|
|
||||||
cr.$dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
vfunc_get_paint_volume(volume) {
|
|
||||||
if (!super.vfunc_get_paint_volume(volume))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (!this._shadow)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
let shadowBox = new Clutter.ActorBox();
|
|
||||||
this._shadow.get_box(this._drawingArea.get_allocation_box(), shadowBox);
|
|
||||||
|
|
||||||
volume.set_width(Math.max(shadowBox.x2 - shadowBox.x1, volume.get_width()));
|
|
||||||
volume.set_height(Math.max(shadowBox.y2 - shadowBox.y1, volume.get_height()));
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
vfunc_style_changed() {
|
|
||||||
let node = this.get_theme_node();
|
|
||||||
this._shadow = node.get_shadow('-arrow-shadow');
|
|
||||||
if (this._shadow)
|
|
||||||
this._shadowHelper = St.ShadowHelper.new(this._shadow);
|
|
||||||
else
|
|
||||||
this._shadowHelper = null;
|
|
||||||
|
|
||||||
super.vfunc_style_changed();
|
|
||||||
}
|
|
||||||
|
|
||||||
vfunc_paint(paintContext) {
|
|
||||||
if (this._shadowHelper) {
|
|
||||||
this._shadowHelper.update(this._drawingArea);
|
|
||||||
|
|
||||||
let allocation = this._drawingArea.get_allocation_box();
|
|
||||||
let paintOpacity = this._drawingArea.get_paint_opacity();
|
|
||||||
let framebuffer = paintContext.get_framebuffer();
|
|
||||||
|
|
||||||
this._shadowHelper.paint(framebuffer, allocation, paintOpacity);
|
|
||||||
}
|
|
||||||
|
|
||||||
this._drawingArea.paint(paintContext);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function clamp(value, min, max) {
|
|
||||||
return Math.max(min, Math.min(max, value));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If you are setting org.gnome.desktop.session.idle-delay directly in dconf,
|
* If you are setting org.gnome.desktop.session.idle-delay directly in dconf,
|
||||||
* rather than through System Settings, you also need to set
|
* rather than through System Settings, you also need to set
|
||||||
@@ -447,59 +55,18 @@ var ScreenShield = class {
|
|||||||
name: 'lockScreenGroup',
|
name: 'lockScreenGroup',
|
||||||
visible: false,
|
visible: false,
|
||||||
});
|
});
|
||||||
this._lockScreenGroup.connect('key-press-event',
|
|
||||||
this._onLockScreenKeyPress.bind(this));
|
|
||||||
this._lockScreenGroup.connect('scroll-event',
|
|
||||||
this._onLockScreenScroll.bind(this));
|
|
||||||
Main.ctrlAltTabManager.addGroup(this._lockScreenGroup, _("Lock"), 'changes-prevent-symbolic');
|
|
||||||
|
|
||||||
this._lockScreenContents = new St.Widget({ layout_manager: new Clutter.BinLayout(),
|
this._lockDialogGroup = new St.Widget({
|
||||||
name: 'lockScreenContents' });
|
x_expand: true,
|
||||||
this._lockScreenContents.add_constraint(new Layout.MonitorConstraint({ primary: true }));
|
y_expand: true,
|
||||||
|
reactive: true,
|
||||||
|
can_focus: true,
|
||||||
|
pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }),
|
||||||
|
name: 'lockDialogGroup',
|
||||||
|
});
|
||||||
|
|
||||||
this._lockScreenGroup.add_actor(this._lockScreenContents);
|
|
||||||
|
|
||||||
this._backgroundGroup = new Clutter.Actor();
|
|
||||||
|
|
||||||
this._lockScreenGroup.add_actor(this._backgroundGroup);
|
|
||||||
this._lockScreenGroup.set_child_below_sibling(this._backgroundGroup, null);
|
|
||||||
this._bgManagers = [];
|
|
||||||
|
|
||||||
this._updateBackgrounds();
|
|
||||||
Main.layoutManager.connect('monitors-changed', this._updateBackgrounds.bind(this));
|
|
||||||
|
|
||||||
this._arrowAnimationId = 0;
|
|
||||||
this._arrowWatchId = 0;
|
|
||||||
this._arrowActiveWatchId = 0;
|
|
||||||
this._arrowContainer = new St.BoxLayout({ style_class: 'screen-shield-arrows',
|
|
||||||
vertical: true,
|
|
||||||
x_align: Clutter.ActorAlign.CENTER,
|
|
||||||
y_align: Clutter.ActorAlign.END,
|
|
||||||
// HACK: without these, ClutterBinLayout
|
|
||||||
// ignores alignment properties on the actor
|
|
||||||
x_expand: true,
|
|
||||||
y_expand: true });
|
|
||||||
|
|
||||||
for (let i = 0; i < N_ARROWS; i++) {
|
|
||||||
let arrow = new Arrow({ opacity: 0 });
|
|
||||||
this._arrowContainer.add_actor(arrow);
|
|
||||||
}
|
|
||||||
this._lockScreenContents.add_actor(this._arrowContainer);
|
|
||||||
|
|
||||||
this._dragAction = new Clutter.GestureAction();
|
|
||||||
this._dragAction.connect('gesture-begin', this._onDragBegin.bind(this));
|
|
||||||
this._dragAction.connect('gesture-progress', this._onDragMotion.bind(this));
|
|
||||||
this._dragAction.connect('gesture-end', this._onDragEnd.bind(this));
|
|
||||||
this._lockScreenGroup.add_action(this._dragAction);
|
|
||||||
|
|
||||||
this._lockDialogGroup = new St.Widget({ x_expand: true,
|
|
||||||
y_expand: true,
|
|
||||||
reactive: true,
|
|
||||||
pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }),
|
|
||||||
name: 'lockDialogGroup' });
|
|
||||||
|
|
||||||
this.actor.add_actor(this._lockDialogGroup);
|
|
||||||
this.actor.add_actor(this._lockScreenGroup);
|
this.actor.add_actor(this._lockScreenGroup);
|
||||||
|
this.actor.add_actor(this._lockDialogGroup);
|
||||||
|
|
||||||
this._presence = new GnomeSession.Presence((proxy, error) => {
|
this._presence = new GnomeSession.Presence((proxy, error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
@@ -519,14 +86,14 @@ var ScreenShield = class {
|
|||||||
this._smartcardManager.connect('smartcard-inserted',
|
this._smartcardManager.connect('smartcard-inserted',
|
||||||
(manager, token) => {
|
(manager, token) => {
|
||||||
if (this._isLocked && token.UsedToLogin)
|
if (this._isLocked && token.UsedToLogin)
|
||||||
this._liftShield(true, 0);
|
this._activateDialog();
|
||||||
});
|
});
|
||||||
|
|
||||||
this._oVirtCredentialsManager = OVirt.getOVirtCredentialsManager();
|
this._oVirtCredentialsManager = OVirt.getOVirtCredentialsManager();
|
||||||
this._oVirtCredentialsManager.connect('user-authenticated',
|
this._oVirtCredentialsManager.connect('user-authenticated',
|
||||||
() => {
|
() => {
|
||||||
if (this._isLocked)
|
if (this._isLocked)
|
||||||
this._liftShield(true, 0);
|
this._activateDialog();
|
||||||
});
|
});
|
||||||
|
|
||||||
this._loginManager = LoginManager.getLoginManager();
|
this._loginManager = LoginManager.getLoginManager();
|
||||||
@@ -551,7 +118,6 @@ var ScreenShield = class {
|
|||||||
this._lockSettings.connect(`changed::${DISABLE_LOCK_KEY}`, this._syncInhibitor.bind(this));
|
this._lockSettings.connect(`changed::${DISABLE_LOCK_KEY}`, this._syncInhibitor.bind(this));
|
||||||
|
|
||||||
this._isModal = false;
|
this._isModal = false;
|
||||||
this._hasLockScreen = false;
|
|
||||||
this._isGreeter = false;
|
this._isGreeter = false;
|
||||||
this._isActive = false;
|
this._isActive = false;
|
||||||
this._isLocked = false;
|
this._isLocked = false;
|
||||||
@@ -591,39 +157,10 @@ var ScreenShield = class {
|
|||||||
this._syncInhibitor();
|
this._syncInhibitor();
|
||||||
}
|
}
|
||||||
|
|
||||||
_createBackground(monitorIndex) {
|
_activateDialog() {
|
||||||
let monitor = Main.layoutManager.monitors[monitorIndex];
|
|
||||||
let widget = new St.Widget({ style_class: 'screen-shield-background',
|
|
||||||
x: monitor.x,
|
|
||||||
y: monitor.y,
|
|
||||||
width: monitor.width,
|
|
||||||
height: monitor.height });
|
|
||||||
|
|
||||||
let bgManager = new Background.BackgroundManager({ container: widget,
|
|
||||||
monitorIndex,
|
|
||||||
controlPosition: false,
|
|
||||||
settingsSchema: SCREENSAVER_SCHEMA });
|
|
||||||
|
|
||||||
this._bgManagers.push(bgManager);
|
|
||||||
|
|
||||||
this._backgroundGroup.add_child(widget);
|
|
||||||
}
|
|
||||||
|
|
||||||
_updateBackgrounds() {
|
|
||||||
for (let i = 0; i < this._bgManagers.length; i++)
|
|
||||||
this._bgManagers[i].destroy();
|
|
||||||
|
|
||||||
this._bgManagers = [];
|
|
||||||
this._backgroundGroup.destroy_all_children();
|
|
||||||
|
|
||||||
for (let i = 0; i < Main.layoutManager.monitors.length; i++)
|
|
||||||
this._createBackground(i);
|
|
||||||
}
|
|
||||||
|
|
||||||
_liftShield(onPrimary, velocity) {
|
|
||||||
if (this._isLocked) {
|
if (this._isLocked) {
|
||||||
if (this._ensureUnlockDialog(onPrimary, true /* allowCancel */))
|
this._ensureUnlockDialog(true /* allowCancel */);
|
||||||
this._hideLockScreen(true /* animate */, velocity);
|
this._dialog.activate();
|
||||||
} else {
|
} else {
|
||||||
this.deactivate(true /* animate */);
|
this.deactivate(true /* animate */);
|
||||||
}
|
}
|
||||||
@@ -638,9 +175,7 @@ var ScreenShield = class {
|
|||||||
// LoginDialog.cancel() will grab the key focus
|
// LoginDialog.cancel() will grab the key focus
|
||||||
// on its own, so ensure it stays on lock screen
|
// on its own, so ensure it stays on lock screen
|
||||||
// instead
|
// instead
|
||||||
this._lockScreenGroup.grab_key_focus();
|
this._dialog.grab_key_focus();
|
||||||
} else {
|
|
||||||
this._dialog = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -659,55 +194,6 @@ var ScreenShield = class {
|
|||||||
return this._isModal;
|
return this._isModal;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onLockScreenKeyPress(actor, event) {
|
|
||||||
let symbol = event.get_key_symbol();
|
|
||||||
let unichar = event.get_key_unicode();
|
|
||||||
|
|
||||||
// Do nothing if the lock screen is not fully shown.
|
|
||||||
// This avoids reusing the previous (and stale) unlock
|
|
||||||
// dialog if esc is pressed while the curtain is going
|
|
||||||
// down after cancel.
|
|
||||||
|
|
||||||
if (this._lockScreenState != MessageTray.State.SHOWN)
|
|
||||||
return Clutter.EVENT_PROPAGATE;
|
|
||||||
|
|
||||||
let isEnter = symbol == Clutter.KEY_Return ||
|
|
||||||
symbol == Clutter.KEY_KP_Enter ||
|
|
||||||
symbol == Clutter.KEY_ISO_Enter;
|
|
||||||
let isEscape = symbol == Clutter.KEY_Escape;
|
|
||||||
let isLiftChar = GLib.unichar_isprint(unichar) &&
|
|
||||||
(this._isLocked || !GLib.unichar_isgraph(unichar));
|
|
||||||
if (!isEnter && !isEscape && !isLiftChar)
|
|
||||||
return Clutter.EVENT_PROPAGATE;
|
|
||||||
|
|
||||||
if (this._isLocked &&
|
|
||||||
this._ensureUnlockDialog(true, true) &&
|
|
||||||
GLib.unichar_isgraph(unichar))
|
|
||||||
this._dialog.addCharacter(unichar);
|
|
||||||
|
|
||||||
this._liftShield(true, 0);
|
|
||||||
return Clutter.EVENT_STOP;
|
|
||||||
}
|
|
||||||
|
|
||||||
_onLockScreenScroll(actor, event) {
|
|
||||||
if (this._lockScreenState != MessageTray.State.SHOWN)
|
|
||||||
return Clutter.EVENT_PROPAGATE;
|
|
||||||
|
|
||||||
let delta = 0;
|
|
||||||
if (event.get_scroll_direction() == Clutter.ScrollDirection.SMOOTH)
|
|
||||||
delta = Math.abs(event.get_scroll_delta()[0]);
|
|
||||||
else
|
|
||||||
delta = 5;
|
|
||||||
|
|
||||||
this._lockScreenScrollCounter += delta;
|
|
||||||
|
|
||||||
// 7 standard scrolls to lift up
|
|
||||||
if (this._lockScreenScrollCounter > 35)
|
|
||||||
this._liftShield(true, 0);
|
|
||||||
|
|
||||||
return Clutter.EVENT_STOP;
|
|
||||||
}
|
|
||||||
|
|
||||||
_syncInhibitor() {
|
_syncInhibitor() {
|
||||||
let lockEnabled = this._settings.get_boolean(LOCK_ENABLED_KEY);
|
let lockEnabled = this._settings.get_boolean(LOCK_ENABLED_KEY);
|
||||||
let lockLocked = this._lockSettings.get_boolean(DISABLE_LOCK_KEY);
|
let lockLocked = this._lockSettings.get_boolean(DISABLE_LOCK_KEY);
|
||||||
@@ -736,78 +222,6 @@ var ScreenShield = class {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_animateArrows() {
|
|
||||||
let arrows = this._arrowContainer.get_children();
|
|
||||||
let unitaryDelay = ARROW_ANIMATION_TIME / (arrows.length + 1);
|
|
||||||
let maxOpacity = 255 * ARROW_ANIMATION_PEAK_OPACITY;
|
|
||||||
for (let i = 0; i < arrows.length; i++) {
|
|
||||||
arrows[i].opacity = 0;
|
|
||||||
arrows[i].ease({
|
|
||||||
opacity: maxOpacity,
|
|
||||||
delay: unitaryDelay * (N_ARROWS - (i + 1)),
|
|
||||||
duration: ARROW_ANIMATION_TIME / 2,
|
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
|
||||||
onComplete: () => {
|
|
||||||
arrows[i].ease({
|
|
||||||
opacity: 0,
|
|
||||||
duration: ARROW_ANIMATION_TIME / 2,
|
|
||||||
mode: Clutter.AnimationMode.EASE_IN_QUAD,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return GLib.SOURCE_CONTINUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
_onDragBegin() {
|
|
||||||
this._lockScreenGroup.remove_all_transitions();
|
|
||||||
this._lockScreenState = MessageTray.State.HIDING;
|
|
||||||
|
|
||||||
if (this._isLocked)
|
|
||||||
this._ensureUnlockDialog(false, false);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
_onDragMotion() {
|
|
||||||
let [, origY] = this._dragAction.get_press_coords(0);
|
|
||||||
let [, currentY] = this._dragAction.get_motion_coords(0);
|
|
||||||
|
|
||||||
let newY = currentY - origY;
|
|
||||||
newY = clamp(newY, -global.stage.height, 0);
|
|
||||||
|
|
||||||
this._lockScreenGroup.translation_y = newY;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
_onDragEnd(_action, _actor, _eventX, _eventY, _modifiers) {
|
|
||||||
if (this._lockScreenState != MessageTray.State.HIDING)
|
|
||||||
return;
|
|
||||||
if (this._lockScreenGroup.translation_y < -(ARROW_DRAG_THRESHOLD * global.stage.height)) {
|
|
||||||
// Complete motion automatically
|
|
||||||
let [velocity_, velocityX_, velocityY] = this._dragAction.get_velocity(0);
|
|
||||||
this._liftShield(true, -velocityY);
|
|
||||||
} else {
|
|
||||||
// restore the lock screen to its original place
|
|
||||||
// try to use the same speed as the normal animation
|
|
||||||
let h = global.stage.height;
|
|
||||||
let duration = MANUAL_FADE_TIME * -this._lockScreenGroup.translation_y / h;
|
|
||||||
this._lockScreenGroup.remove_all_transitions();
|
|
||||||
this._lockScreenGroup.ease({
|
|
||||||
translation_y: 0,
|
|
||||||
duration,
|
|
||||||
mode: Clutter.AnimationMode.EASE_IN_QUAD,
|
|
||||||
onComplete: () => {
|
|
||||||
this._lockScreenState = MessageTray.State.SHOWN;
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
this._maybeCancelDialog();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
_onStatusChanged(status) {
|
_onStatusChanged(status) {
|
||||||
if (status != GnomeSession.PresenceStatus.IDLE)
|
if (status != GnomeSession.PresenceStatus.IDLE)
|
||||||
return;
|
return;
|
||||||
@@ -913,14 +327,10 @@ var ScreenShield = class {
|
|||||||
this.actor.show();
|
this.actor.show();
|
||||||
this._isGreeter = Main.sessionMode.isGreeter;
|
this._isGreeter = Main.sessionMode.isGreeter;
|
||||||
this._isLocked = true;
|
this._isLocked = true;
|
||||||
if (this._ensureUnlockDialog(true, true))
|
this._ensureUnlockDialog(true);
|
||||||
this._hideLockScreen(false, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_hideLockScreenComplete() {
|
_hideLockScreenComplete() {
|
||||||
if (Main.sessionMode.currentMode == 'lock-screen')
|
|
||||||
Main.sessionMode.popMode('lock-screen');
|
|
||||||
|
|
||||||
this._lockScreenState = MessageTray.State.HIDDEN;
|
this._lockScreenState = MessageTray.State.HIDDEN;
|
||||||
this._lockScreenGroup.hide();
|
this._lockScreenGroup.hide();
|
||||||
|
|
||||||
@@ -930,13 +340,13 @@ var ScreenShield = class {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_hideLockScreen(animate, velocity) {
|
_hideLockScreen(animate) {
|
||||||
if (this._lockScreenState == MessageTray.State.HIDDEN)
|
if (this._lockScreenState == MessageTray.State.HIDDEN)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this._lockScreenState = MessageTray.State.HIDING;
|
this._lockScreenState = MessageTray.State.HIDING;
|
||||||
|
|
||||||
this._lockScreenGroup.remove_all_transitions();
|
this._lockDialogGroup.remove_all_transitions();
|
||||||
|
|
||||||
if (animate) {
|
if (animate) {
|
||||||
// Tween the lock screen out of screen
|
// Tween the lock screen out of screen
|
||||||
@@ -944,16 +354,14 @@ var ScreenShield = class {
|
|||||||
// use the same speed regardless of original position
|
// use the same speed regardless of original position
|
||||||
// if velocity is specified, it's in pixels per milliseconds
|
// if velocity is specified, it's in pixels per milliseconds
|
||||||
let h = global.stage.height;
|
let h = global.stage.height;
|
||||||
let delta = h + this._lockScreenGroup.translation_y;
|
let delta = h + this._lockDialogGroup.translation_y;
|
||||||
let minVelocity = global.stage.height / CURTAIN_SLIDE_TIME;
|
let velocity = global.stage.height / CURTAIN_SLIDE_TIME;
|
||||||
|
|
||||||
velocity = Math.max(minVelocity, velocity);
|
|
||||||
let duration = delta / velocity;
|
let duration = delta / velocity;
|
||||||
|
|
||||||
this._lockScreenGroup.ease({
|
this._lockDialogGroup.ease({
|
||||||
translation_y: -h,
|
translation_y: -h,
|
||||||
duration,
|
duration,
|
||||||
mode: Clutter.AnimationMode.EASE_IN_QUAD,
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
onComplete: () => this._hideLockScreenComplete(),
|
onComplete: () => this._hideLockScreenComplete(),
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -963,7 +371,7 @@ var ScreenShield = class {
|
|||||||
this._cursorTracker.set_pointer_visible(true);
|
this._cursorTracker.set_pointer_visible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ensureUnlockDialog(onPrimary, allowCancel) {
|
_ensureUnlockDialog(allowCancel) {
|
||||||
if (!this._dialog) {
|
if (!this._dialog) {
|
||||||
let constructor = Main.sessionMode.unlockDialog;
|
let constructor = Main.sessionMode.unlockDialog;
|
||||||
if (!constructor) {
|
if (!constructor) {
|
||||||
@@ -975,7 +383,7 @@ var ScreenShield = class {
|
|||||||
this._dialog = new constructor(this._lockDialogGroup);
|
this._dialog = new constructor(this._lockDialogGroup);
|
||||||
|
|
||||||
let time = global.get_current_time();
|
let time = global.get_current_time();
|
||||||
if (!this._dialog.open(time, onPrimary)) {
|
if (!this._dialog.open(time)) {
|
||||||
// This is kind of an impossible error: we're already modal
|
// This is kind of an impossible error: we're already modal
|
||||||
// by the time we reach this...
|
// by the time we reach this...
|
||||||
log('Could not open login dialog: failed to acquire grab');
|
log('Could not open login dialog: failed to acquire grab');
|
||||||
@@ -984,9 +392,12 @@ var ScreenShield = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._dialog.connect('failed', this._onUnlockFailed.bind(this));
|
this._dialog.connect('failed', this._onUnlockFailed.bind(this));
|
||||||
|
this._wakeUpScreenId = this._dialog.connect(
|
||||||
|
'wake-up-screen', this._wakeUpScreen.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
this._dialog.allowCancel = allowCancel;
|
this._dialog.allowCancel = allowCancel;
|
||||||
|
this._dialog.grab_key_focus();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1003,21 +414,17 @@ var ScreenShield = class {
|
|||||||
if (this._lockScreenState != MessageTray.State.HIDDEN)
|
if (this._lockScreenState != MessageTray.State.HIDDEN)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this._ensureLockScreen();
|
|
||||||
this._lockDialogGroup.scale_x = 1;
|
|
||||||
this._lockDialogGroup.scale_y = 1;
|
|
||||||
|
|
||||||
this._lockScreenGroup.show();
|
this._lockScreenGroup.show();
|
||||||
this._lockScreenState = MessageTray.State.SHOWING;
|
this._lockScreenState = MessageTray.State.SHOWING;
|
||||||
|
|
||||||
let fadeToBlack = params.fadeToBlack;
|
let fadeToBlack = params.fadeToBlack;
|
||||||
|
|
||||||
if (params.animateLockScreen) {
|
if (params.animateLockScreen) {
|
||||||
this._lockScreenGroup.translation_y = -global.screen_height;
|
this._lockDialogGroup.translation_y = -global.screen_height;
|
||||||
this._lockScreenGroup.remove_all_transitions();
|
this._lockDialogGroup.remove_all_transitions();
|
||||||
this._lockScreenGroup.ease({
|
this._lockDialogGroup.ease({
|
||||||
translation_y: 0,
|
translation_y: 0,
|
||||||
duration: MANUAL_FADE_TIME,
|
duration: Overview.ANIMATION_TIME,
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
onComplete: () => {
|
onComplete: () => {
|
||||||
this._lockScreenShown({ fadeToBlack, animateFade: true });
|
this._lockScreenShown({ fadeToBlack, animateFade: true });
|
||||||
@@ -1028,69 +435,10 @@ var ScreenShield = class {
|
|||||||
this._lockScreenShown({ fadeToBlack, animateFade: false });
|
this._lockScreenShown({ fadeToBlack, animateFade: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
this._lockScreenGroup.grab_key_focus();
|
this._dialog.grab_key_focus();
|
||||||
|
|
||||||
if (Main.sessionMode.currentMode != 'lock-screen')
|
|
||||||
Main.sessionMode.pushMode('lock-screen');
|
|
||||||
}
|
|
||||||
|
|
||||||
_startArrowAnimation() {
|
|
||||||
this._arrowActiveWatchId = 0;
|
|
||||||
|
|
||||||
if (!this._arrowAnimationId) {
|
|
||||||
this._arrowAnimationId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 6000, this._animateArrows.bind(this));
|
|
||||||
GLib.Source.set_name_by_id(this._arrowAnimationId, '[gnome-shell] this._animateArrows');
|
|
||||||
this._animateArrows();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this._arrowWatchId) {
|
|
||||||
this._arrowWatchId = this.idleMonitor.add_idle_watch(ARROW_IDLE_TIME,
|
|
||||||
this._pauseArrowAnimation.bind(this));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
_pauseArrowAnimation() {
|
|
||||||
if (this._arrowAnimationId) {
|
|
||||||
GLib.source_remove(this._arrowAnimationId);
|
|
||||||
this._arrowAnimationId = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this._arrowActiveWatchId)
|
|
||||||
this._arrowActiveWatchId = this.idleMonitor.add_user_active_watch(this._startArrowAnimation.bind(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
_stopArrowAnimation() {
|
|
||||||
if (this._arrowAnimationId) {
|
|
||||||
GLib.source_remove(this._arrowAnimationId);
|
|
||||||
this._arrowAnimationId = 0;
|
|
||||||
}
|
|
||||||
if (this._arrowActiveWatchId) {
|
|
||||||
this.idleMonitor.remove_watch(this._arrowActiveWatchId);
|
|
||||||
this._arrowActiveWatchId = 0;
|
|
||||||
}
|
|
||||||
if (this._arrowWatchId) {
|
|
||||||
this.idleMonitor.remove_watch(this._arrowWatchId);
|
|
||||||
this._arrowWatchId = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
_checkArrowAnimation() {
|
|
||||||
let idleTime = this.idleMonitor.get_idletime();
|
|
||||||
|
|
||||||
if (idleTime < ARROW_IDLE_TIME)
|
|
||||||
this._startArrowAnimation();
|
|
||||||
else
|
|
||||||
this._pauseArrowAnimation();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_lockScreenShown(params) {
|
_lockScreenShown(params) {
|
||||||
if (this._dialog && !this._isGreeter) {
|
|
||||||
this._dialog.destroy();
|
|
||||||
this._dialog = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
this._checkArrowAnimation();
|
|
||||||
|
|
||||||
let motionId = global.stage.connect('captured-event', (stage, event) => {
|
let motionId = global.stage.connect('captured-event', (stage, event) => {
|
||||||
if (event.type() == Clutter.EventType.MOTION) {
|
if (event.type() == Clutter.EventType.MOTION) {
|
||||||
this._cursorTracker.set_pointer_visible(true);
|
this._cursorTracker.set_pointer_visible(true);
|
||||||
@@ -1102,7 +450,6 @@ var ScreenShield = class {
|
|||||||
this._cursorTracker.set_pointer_visible(false);
|
this._cursorTracker.set_pointer_visible(false);
|
||||||
|
|
||||||
this._lockScreenState = MessageTray.State.SHOWN;
|
this._lockScreenState = MessageTray.State.SHOWN;
|
||||||
this._lockScreenScrollCounter = 0;
|
|
||||||
|
|
||||||
if (params.fadeToBlack && params.animateFade) {
|
if (params.fadeToBlack && params.animateFade) {
|
||||||
// Take a beat
|
// Take a beat
|
||||||
@@ -1125,52 +472,11 @@ var ScreenShield = class {
|
|||||||
this.emit('lock-screen-shown');
|
this.emit('lock-screen-shown');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some of the actors in the lock screen are heavy in
|
|
||||||
// resources, so we only create them when needed
|
|
||||||
_ensureLockScreen() {
|
|
||||||
if (this._hasLockScreen)
|
|
||||||
return;
|
|
||||||
|
|
||||||
this._lockScreenContentsBox = new St.BoxLayout({ x_align: Clutter.ActorAlign.CENTER,
|
|
||||||
y_align: Clutter.ActorAlign.CENTER,
|
|
||||||
x_expand: true,
|
|
||||||
y_expand: true,
|
|
||||||
vertical: true,
|
|
||||||
style_class: 'screen-shield-contents-box' });
|
|
||||||
this._clock = new Clock();
|
|
||||||
this._lockScreenContentsBox.add_child(this._clock);
|
|
||||||
|
|
||||||
this._lockScreenContents.add_actor(this._lockScreenContentsBox);
|
|
||||||
|
|
||||||
this._notificationsBox = new NotificationsBox();
|
|
||||||
this._wakeUpScreenId = this._notificationsBox.connect('wake-up-screen', this._wakeUpScreen.bind(this));
|
|
||||||
this._lockScreenContentsBox.add_child(this._notificationsBox);
|
|
||||||
|
|
||||||
this._hasLockScreen = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
_wakeUpScreen() {
|
_wakeUpScreen() {
|
||||||
this._onUserBecameActive();
|
this._onUserBecameActive();
|
||||||
this.emit('wake-up-screen');
|
this.emit('wake-up-screen');
|
||||||
}
|
}
|
||||||
|
|
||||||
_clearLockScreen() {
|
|
||||||
this._clock.destroy();
|
|
||||||
this._clock = null;
|
|
||||||
|
|
||||||
if (this._notificationsBox) {
|
|
||||||
this._notificationsBox.disconnect(this._wakeUpScreenId);
|
|
||||||
this._notificationsBox.destroy();
|
|
||||||
this._notificationsBox = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
this._stopArrowAnimation();
|
|
||||||
|
|
||||||
this._lockScreenContentsBox.destroy();
|
|
||||||
|
|
||||||
this._hasLockScreen = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
get locked() {
|
get locked() {
|
||||||
return this._isLocked;
|
return this._isLocked;
|
||||||
}
|
}
|
||||||
@@ -1191,13 +497,8 @@ var ScreenShield = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_continueDeactivate(animate) {
|
_continueDeactivate(animate) {
|
||||||
this._hideLockScreen(animate, 0);
|
this._hideLockScreen(animate);
|
||||||
|
|
||||||
if (this._hasLockScreen)
|
|
||||||
this._clearLockScreen();
|
|
||||||
|
|
||||||
if (Main.sessionMode.currentMode == 'lock-screen')
|
|
||||||
Main.sessionMode.popMode('lock-screen');
|
|
||||||
if (Main.sessionMode.currentMode == 'unlock-dialog')
|
if (Main.sessionMode.currentMode == 'unlock-dialog')
|
||||||
Main.sessionMode.popMode('unlock-dialog');
|
Main.sessionMode.popMode('unlock-dialog');
|
||||||
|
|
||||||
@@ -1223,9 +524,8 @@ var ScreenShield = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._lockDialogGroup.ease({
|
this._lockDialogGroup.ease({
|
||||||
scale_x: 0,
|
translation_y: -global.screen_height,
|
||||||
scale_y: 0,
|
duration: Overview.ANIMATION_TIME,
|
||||||
duration: animate ? Overview.ANIMATION_TIME : 0,
|
|
||||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
onComplete: () => this._completeDeactivate(),
|
onComplete: () => this._completeDeactivate(),
|
||||||
});
|
});
|
||||||
@@ -1262,10 +562,11 @@ var ScreenShield = class {
|
|||||||
if (this._activationTime == 0)
|
if (this._activationTime == 0)
|
||||||
this._activationTime = GLib.get_monotonic_time();
|
this._activationTime = GLib.get_monotonic_time();
|
||||||
|
|
||||||
|
this._ensureUnlockDialog(true);
|
||||||
|
|
||||||
this.actor.show();
|
this.actor.show();
|
||||||
|
|
||||||
if (Main.sessionMode.currentMode != 'unlock-dialog' &&
|
if (Main.sessionMode.currentMode !== 'unlock-dialog') {
|
||||||
Main.sessionMode.currentMode != 'lock-screen') {
|
|
||||||
this._isGreeter = Main.sessionMode.isGreeter;
|
this._isGreeter = Main.sessionMode.isGreeter;
|
||||||
if (!this._isGreeter)
|
if (!this._isGreeter)
|
||||||
Main.sessionMode.pushMode('unlock-dialog');
|
Main.sessionMode.pushMode('unlock-dialog');
|
||||||
|
@@ -53,19 +53,6 @@ const _modes = {
|
|||||||
panelStyle: 'login-screen',
|
panelStyle: 'login-screen',
|
||||||
},
|
},
|
||||||
|
|
||||||
'lock-screen': {
|
|
||||||
isLocked: true,
|
|
||||||
isGreeter: undefined,
|
|
||||||
unlockDialog: undefined,
|
|
||||||
components: ['polkitAgent', 'telepathyClient'],
|
|
||||||
panel: {
|
|
||||||
left: [],
|
|
||||||
center: [],
|
|
||||||
right: ['aggregateMenu'],
|
|
||||||
},
|
|
||||||
panelStyle: 'lock-screen',
|
|
||||||
},
|
|
||||||
|
|
||||||
'unlock-dialog': {
|
'unlock-dialog': {
|
||||||
isLocked: true,
|
isLocked: true,
|
||||||
unlockDialog: undefined,
|
unlockDialog: undefined,
|
||||||
|
@@ -302,7 +302,7 @@ var GnomeShellExtensions = class {
|
|||||||
|
|
||||||
LaunchExtensionPrefs(uuid) {
|
LaunchExtensionPrefs(uuid) {
|
||||||
let appSys = Shell.AppSystem.get_default();
|
let appSys = Shell.AppSystem.get_default();
|
||||||
let app = appSys.lookup_app('gnome-shell-extension-prefs.desktop');
|
let app = appSys.lookup_app('org.gnome.Extensions.desktop');
|
||||||
let info = app.get_app_info();
|
let info = app.get_app_info();
|
||||||
let timestamp = global.display.get_current_time_roundtrip();
|
let timestamp = global.display.get_current_time_roundtrip();
|
||||||
info.launch_uris([`extension:///${uuid}`],
|
info.launch_uris([`extension:///${uuid}`],
|
||||||
|
@@ -164,7 +164,9 @@ class CapsLockWarning extends St.Label {
|
|||||||
this.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
this.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||||
this.clutter_text.line_wrap = true;
|
this.clutter_text.line_wrap = true;
|
||||||
|
|
||||||
this._keymap = Clutter.get_default_backend().get_keymap();
|
let seat = Clutter.get_default_backend().get_default_seat();
|
||||||
|
this._keymap = seat.get_keymap();
|
||||||
|
this._stateChangedId = 0;
|
||||||
|
|
||||||
this.connect('notify::mapped', () => {
|
this.connect('notify::mapped', () => {
|
||||||
if (this.is_mapped()) {
|
if (this.is_mapped()) {
|
||||||
|
@@ -13,6 +13,7 @@ const Params = imports.misc.params;
|
|||||||
const ShellEntry = imports.ui.shellEntry;
|
const ShellEntry = imports.ui.shellEntry;
|
||||||
|
|
||||||
const { loadInterfaceXML } = imports.misc.fileUtils;
|
const { loadInterfaceXML } = imports.misc.fileUtils;
|
||||||
|
const Util = imports.misc.util;
|
||||||
|
|
||||||
var LIST_ITEM_ICON_SIZE = 48;
|
var LIST_ITEM_ICON_SIZE = 48;
|
||||||
var WORK_SPINNER_ICON_SIZE = 16;
|
var WORK_SPINNER_ICON_SIZE = 16;
|
||||||
@@ -269,21 +270,18 @@ var ShellMountPasswordDialog = GObject.registerClass({
|
|||||||
let disksApp = Shell.AppSystem.get_default().lookup_app('org.gnome.DiskUtility.desktop');
|
let disksApp = Shell.AppSystem.get_default().lookup_app('org.gnome.DiskUtility.desktop');
|
||||||
|
|
||||||
let content = new Dialog.MessageDialogContent({ title, description });
|
let content = new Dialog.MessageDialogContent({ title, description });
|
||||||
this.contentLayout.add_actor(content);
|
|
||||||
|
|
||||||
let layout = new Clutter.GridLayout({ orientation: Clutter.Orientation.VERTICAL });
|
let passwordGridLayout = new Clutter.GridLayout({ orientation: Clutter.Orientation.VERTICAL });
|
||||||
let grid = new St.Widget({ style_class: 'prompt-dialog-grid',
|
let passwordGrid = new St.Widget({
|
||||||
layout_manager: layout });
|
style_class: 'prompt-dialog-password-grid',
|
||||||
layout.hookup_style(grid);
|
layout_manager: passwordGridLayout,
|
||||||
let rtl = grid.get_text_direction() === Clutter.TextDirection.RTL;
|
});
|
||||||
|
passwordGridLayout.hookup_style(passwordGrid);
|
||||||
|
|
||||||
|
let rtl = passwordGrid.get_text_direction() === Clutter.TextDirection.RTL;
|
||||||
|
let curGridRow = 0;
|
||||||
|
|
||||||
if (flags & Gio.AskPasswordFlags.TCRYPT) {
|
if (flags & Gio.AskPasswordFlags.TCRYPT) {
|
||||||
this._keyfilesLabel = new St.Label({
|
|
||||||
style_class: 'prompt-dialog-keyfiles-label',
|
|
||||||
visible: false,
|
|
||||||
y_align: Clutter.ActorAlign.CENTER,
|
|
||||||
});
|
|
||||||
|
|
||||||
this._hiddenVolume = new CheckBox.CheckBox(_("Hidden Volume"));
|
this._hiddenVolume = new CheckBox.CheckBox(_("Hidden Volume"));
|
||||||
content.add_child(this._hiddenVolume);
|
content.add_child(this._hiddenVolume);
|
||||||
|
|
||||||
@@ -294,6 +292,7 @@ var ShellMountPasswordDialog = GObject.registerClass({
|
|||||||
this._keyfilesCheckbox.connect("clicked", this._onKeyfilesCheckboxClicked.bind(this));
|
this._keyfilesCheckbox.connect("clicked", this._onKeyfilesCheckboxClicked.bind(this));
|
||||||
content.add_child(this._keyfilesCheckbox);
|
content.add_child(this._keyfilesCheckbox);
|
||||||
|
|
||||||
|
this._keyfilesLabel = new St.Label({ visible: false });
|
||||||
this._keyfilesLabel.clutter_text.set_markup(
|
this._keyfilesLabel.clutter_text.set_markup(
|
||||||
/* Translators: %s is the Disks application */
|
/* Translators: %s is the Disks application */
|
||||||
_("To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead.").format(disksApp.get_name())
|
_("To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead.").format(disksApp.get_name())
|
||||||
@@ -302,71 +301,65 @@ var ShellMountPasswordDialog = GObject.registerClass({
|
|||||||
this._keyfilesLabel.clutter_text.line_wrap = true;
|
this._keyfilesLabel.clutter_text.line_wrap = true;
|
||||||
content.add_child(this._keyfilesLabel);
|
content.add_child(this._keyfilesLabel);
|
||||||
|
|
||||||
this._pimLabel = new St.Label({ style_class: 'prompt-dialog-password-label',
|
|
||||||
text: _("PIM Number"),
|
|
||||||
y_align: Clutter.ActorAlign.CENTER });
|
|
||||||
this._pimEntry = new St.PasswordEntry({
|
this._pimEntry = new St.PasswordEntry({
|
||||||
style_class: 'prompt-dialog-password-entry',
|
style_class: 'prompt-dialog-password-entry',
|
||||||
|
hint_text: _('Enter PIM Number…'),
|
||||||
can_focus: true,
|
can_focus: true,
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
});
|
});
|
||||||
this._pimEntry.clutter_text.connect('activate', this._onEntryActivate.bind(this));
|
this._pimEntry.clutter_text.connect('activate', this._onEntryActivate.bind(this));
|
||||||
ShellEntry.addContextMenu(this._pimEntry);
|
ShellEntry.addContextMenu(this._pimEntry);
|
||||||
|
|
||||||
if (rtl) {
|
if (rtl)
|
||||||
layout.attach(this._pimEntry, 0, 0, 1, 1);
|
passwordGridLayout.attach(this._pimEntry, 1, curGridRow, 1, 1);
|
||||||
layout.attach(this._pimLabel, 1, 0, 1, 1);
|
else
|
||||||
} else {
|
passwordGridLayout.attach(this._pimEntry, 0, curGridRow, 1, 1);
|
||||||
layout.attach(this._pimLabel, 0, 0, 1, 1);
|
curGridRow += 1;
|
||||||
layout.attach(this._pimEntry, 1, 0, 1, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
this._pimErrorMessageLabel = new St.Label({ style_class: 'prompt-dialog-password-entry',
|
|
||||||
text: _("The PIM must be a number or empty."),
|
|
||||||
visible: false });
|
|
||||||
layout.attach(this._pimErrorMessageLabel, 0, 2, 2, 1);
|
|
||||||
} else {
|
} else {
|
||||||
this._hiddenVolume = null;
|
this._hiddenVolume = null;
|
||||||
this._systemVolume = null;
|
this._systemVolume = null;
|
||||||
this._pimEntry = null;
|
this._pimEntry = null;
|
||||||
this._pimErrorMessageLabel = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._passwordLabel = new St.Label({ style_class: 'prompt-dialog-password-label',
|
|
||||||
text: _("Password"),
|
|
||||||
y_align: Clutter.ActorAlign.CENTER });
|
|
||||||
this._passwordEntry = new St.PasswordEntry({
|
this._passwordEntry = new St.PasswordEntry({
|
||||||
style_class: 'prompt-dialog-password-entry',
|
style_class: 'prompt-dialog-password-entry',
|
||||||
|
hint_text: _('Enter Password…'),
|
||||||
can_focus: true,
|
can_focus: true,
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
});
|
});
|
||||||
this._passwordEntry.clutter_text.connect('activate', this._onEntryActivate.bind(this));
|
this._passwordEntry.clutter_text.connect('activate', this._onEntryActivate.bind(this));
|
||||||
ShellEntry.addContextMenu(this._passwordEntry);
|
|
||||||
this.setInitialKeyFocus(this._passwordEntry);
|
this.setInitialKeyFocus(this._passwordEntry);
|
||||||
|
ShellEntry.addContextMenu(this._passwordEntry);
|
||||||
|
|
||||||
this._workSpinner = new Animation.Spinner(WORK_SPINNER_ICON_SIZE, {
|
this._workSpinner = new Animation.Spinner(WORK_SPINNER_ICON_SIZE, {
|
||||||
animate: true,
|
animate: true,
|
||||||
});
|
});
|
||||||
this._passwordEntry.secondary_icon = this._workSpinner;
|
|
||||||
this._capsLockWarningLabel = new ShellEntry.CapsLockWarning();
|
|
||||||
|
|
||||||
if (rtl) {
|
if (rtl) {
|
||||||
layout.attach(this._passwordEntry, 0, 1, 1, 1);
|
passwordGridLayout.attach(this._workSpinner, 0, curGridRow, 1, 1);
|
||||||
layout.attach(this._passwordLabel, 1, 1, 1, 1);
|
passwordGridLayout.attach(this._passwordEntry, 1, curGridRow, 1, 1);
|
||||||
layout.attach(this._capsLockWarningLabel, 0, 2, 1, 1);
|
|
||||||
} else {
|
} else {
|
||||||
layout.attach(this._passwordLabel, 0, 1, 1, 1);
|
passwordGridLayout.attach(this._passwordEntry, 0, curGridRow, 1, 1);
|
||||||
layout.attach(this._passwordEntry, 1, 1, 1, 1);
|
passwordGridLayout.attach(this._workSpinner, 1, curGridRow, 1, 1);
|
||||||
layout.attach(this._capsLockWarningLabel, 1, 2, 1, 1);
|
|
||||||
}
|
}
|
||||||
|
curGridRow += 1;
|
||||||
|
|
||||||
content.add_child(grid);
|
let warningBox = new St.BoxLayout({ vertical: true });
|
||||||
|
|
||||||
this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label',
|
let capsLockWarning = new ShellEntry.CapsLockWarning();
|
||||||
text: _("Sorry, that didn’t work. Please try again.") });
|
warningBox.add_child(capsLockWarning);
|
||||||
|
|
||||||
|
this._errorMessageLabel = new St.Label({
|
||||||
|
style_class: 'prompt-dialog-error-label',
|
||||||
|
opacity: 0,
|
||||||
|
});
|
||||||
this._errorMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
this._errorMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||||
this._errorMessageLabel.clutter_text.line_wrap = true;
|
this._errorMessageLabel.clutter_text.line_wrap = true;
|
||||||
this._errorMessageLabel.hide();
|
warningBox.add_child(this._errorMessageLabel);
|
||||||
content.add_child(this._errorMessageLabel);
|
|
||||||
|
passwordGridLayout.attach(warningBox, 0, curGridRow, 2, 1);
|
||||||
|
|
||||||
|
content.add_child(passwordGrid);
|
||||||
|
|
||||||
if (flags & Gio.AskPasswordFlags.SAVING_SUPPORTED) {
|
if (flags & Gio.AskPasswordFlags.SAVING_SUPPORTED) {
|
||||||
this._rememberChoice = new CheckBox.CheckBox(_("Remember Password"));
|
this._rememberChoice = new CheckBox.CheckBox(_("Remember Password"));
|
||||||
@@ -377,6 +370,8 @@ var ShellMountPasswordDialog = GObject.registerClass({
|
|||||||
this._rememberChoice = null;
|
this._rememberChoice = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.contentLayout.add_child(content);
|
||||||
|
|
||||||
this._defaultButtons = [{
|
this._defaultButtons = [{
|
||||||
label: _("Cancel"),
|
label: _("Cancel"),
|
||||||
action: this._onCancelButton.bind(this),
|
action: this._onCancelButton.bind(this),
|
||||||
@@ -402,9 +397,12 @@ var ShellMountPasswordDialog = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
reaskPassword() {
|
reaskPassword() {
|
||||||
this._passwordEntry.set_text('');
|
|
||||||
this._errorMessageLabel.show();
|
|
||||||
this._workSpinner.stop();
|
this._workSpinner.stop();
|
||||||
|
this._passwordEntry.set_text('');
|
||||||
|
this._errorMessageLabel.text = _('Sorry, that didn’t work. Please try again.');
|
||||||
|
this._errorMessageLabel.opacity = 255;
|
||||||
|
|
||||||
|
Util.wiggle(this._passwordEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onCancelButton() {
|
_onCancelButton() {
|
||||||
@@ -417,14 +415,17 @@ var ShellMountPasswordDialog = GObject.registerClass({
|
|||||||
|
|
||||||
_onEntryActivate() {
|
_onEntryActivate() {
|
||||||
let pim = 0;
|
let pim = 0;
|
||||||
if (this._pimEntry !== null)
|
if (this._pimEntry !== null) {
|
||||||
pim = this._pimEntry.get_text();
|
pim = this._pimEntry.get_text();
|
||||||
if (isNaN(pim)) {
|
|
||||||
this._pimEntry.set_text('');
|
if (isNaN(pim)) {
|
||||||
this._pimErrorMessageLabel.show();
|
this._pimEntry.set_text('');
|
||||||
return;
|
this._errorMessageLabel.text = _('The PIM must be a number or empty.');
|
||||||
} else if (this._pimErrorMessageLabel !== null) {
|
this._errorMessageLabel.opacity = 255;
|
||||||
this._pimErrorMessageLabel.hide();
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._errorMessageLabel.opacity = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
global.settings.set_boolean(REMEMBER_MOUNT_PASSWORD_KEY,
|
global.settings.set_boolean(REMEMBER_MOUNT_PASSWORD_KEY,
|
||||||
|
@@ -20,9 +20,13 @@ class Indicator extends PanelMenu.SystemIndicator {
|
|||||||
this._createSubMenu();
|
this._createSubMenu();
|
||||||
|
|
||||||
this._loginScreenItem.connect('notify::visible',
|
this._loginScreenItem.connect('notify::visible',
|
||||||
() => this._updateMultiUser());
|
() => this._updateSessionSubMenu());
|
||||||
this._logoutItem.connect('notify::visible',
|
this._logoutItem.connect('notify::visible',
|
||||||
() => this._updateMultiUser());
|
() => this._updateSessionSubMenu());
|
||||||
|
this._suspendItem.connect('notify::visible',
|
||||||
|
() => this._updateSessionSubMenu());
|
||||||
|
this._powerOffItem.connect('notify::visible',
|
||||||
|
() => this._updateSessionSubMenu());
|
||||||
// Whether shutdown is available or not depends on both lockdown
|
// Whether shutdown is available or not depends on both lockdown
|
||||||
// settings (disable-log-out) and Polkit policy - the latter doesn't
|
// settings (disable-log-out) and Polkit policy - the latter doesn't
|
||||||
// notify, so we update the menu item each time the menu opens or
|
// notify, so we update the menu item each time the menu opens or
|
||||||
@@ -33,7 +37,7 @@ class Indicator extends PanelMenu.SystemIndicator {
|
|||||||
|
|
||||||
this._systemActions.forceUpdate();
|
this._systemActions.forceUpdate();
|
||||||
});
|
});
|
||||||
this._updateMultiUser();
|
this._updateSessionSubMenu();
|
||||||
|
|
||||||
Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
|
Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
|
||||||
this._sessionUpdated();
|
this._sessionUpdated();
|
||||||
@@ -43,11 +47,12 @@ class Indicator extends PanelMenu.SystemIndicator {
|
|||||||
this._settingsItem.visible = Main.sessionMode.allowSettings;
|
this._settingsItem.visible = Main.sessionMode.allowSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateMultiUser() {
|
_updateSessionSubMenu() {
|
||||||
let hasSwitchUser = this._loginScreenItem.visible;
|
this._sessionSubMenu.visible =
|
||||||
let hasLogout = this._logoutItem.visible;
|
this._loginScreenItem.visible ||
|
||||||
|
this._logoutItem.visible ||
|
||||||
this._sessionSubMenu.visible = hasSwitchUser || hasLogout;
|
this._suspendItem.visible ||
|
||||||
|
this._powerOffItem.visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
_createSubMenu() {
|
_createSubMenu() {
|
||||||
|
@@ -270,6 +270,8 @@ const ScrollGesture = GObject.registerClass({
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this._enabled = enabled;
|
this._enabled = enabled;
|
||||||
|
this._began = false;
|
||||||
|
|
||||||
this.notify('enabled');
|
this.notify('enabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,41 +1,539 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
/* exported UnlockDialog */
|
/* exported UnlockDialog */
|
||||||
|
|
||||||
const { AccountsService, Atk, Clutter,
|
const { AccountsService, Atk, Clutter, Gdm, Gio,
|
||||||
Gdm, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
|
GnomeDesktop, GLib, GObject, Meta, Shell, St } = imports.gi;
|
||||||
|
|
||||||
|
const Background = imports.ui.background;
|
||||||
const Layout = imports.ui.layout;
|
const Layout = imports.ui.layout;
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
|
const MessageTray = imports.ui.messageTray;
|
||||||
|
|
||||||
const AuthPrompt = imports.gdm.authPrompt;
|
const AuthPrompt = imports.gdm.authPrompt;
|
||||||
|
|
||||||
// The timeout before going back automatically to the lock screen (in seconds)
|
// The timeout before going back automatically to the lock screen (in seconds)
|
||||||
const IDLE_TIMEOUT = 2 * 60;
|
const IDLE_TIMEOUT = 2 * 60;
|
||||||
|
|
||||||
|
const SCREENSAVER_SCHEMA = 'org.gnome.desktop.screensaver';
|
||||||
|
|
||||||
|
const CROSSFADE_TIME = 300;
|
||||||
|
|
||||||
|
const BLUR_BRIGHTNESS = 0.55;
|
||||||
|
const BLUR_RADIUS = 200;
|
||||||
|
|
||||||
|
const SUMMARY_ICON_SIZE = 32;
|
||||||
|
|
||||||
|
var NotificationsBox = GObject.registerClass({
|
||||||
|
Signals: { 'wake-up-screen': {} },
|
||||||
|
}, class NotificationsBox extends St.BoxLayout {
|
||||||
|
_init() {
|
||||||
|
super._init({
|
||||||
|
vertical: true,
|
||||||
|
name: 'unlockDialogNotifications',
|
||||||
|
style_class: 'unlock-dialog-notifications-container',
|
||||||
|
});
|
||||||
|
|
||||||
|
this._scrollView = new St.ScrollView({ hscrollbar_policy: St.PolicyType.NEVER });
|
||||||
|
this._notificationBox = new St.BoxLayout({
|
||||||
|
vertical: true,
|
||||||
|
style_class: 'unlock-dialog-notifications-container',
|
||||||
|
});
|
||||||
|
this._scrollView.add_actor(this._notificationBox);
|
||||||
|
|
||||||
|
this.add_child(this._scrollView);
|
||||||
|
|
||||||
|
this._sources = new Map();
|
||||||
|
Main.messageTray.getSources().forEach(source => {
|
||||||
|
this._sourceAdded(Main.messageTray, source, true);
|
||||||
|
});
|
||||||
|
this._updateVisibility();
|
||||||
|
|
||||||
|
this._sourceAddedId = Main.messageTray.connect('source-added', this._sourceAdded.bind(this));
|
||||||
|
|
||||||
|
this.connect('destroy', this._onDestroy.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
_onDestroy() {
|
||||||
|
if (this._sourceAddedId) {
|
||||||
|
Main.messageTray.disconnect(this._sourceAddedId);
|
||||||
|
this._sourceAddedId = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
let items = this._sources.entries();
|
||||||
|
for (let [source, obj] of items)
|
||||||
|
this._removeSource(source, obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateVisibility() {
|
||||||
|
this._notificationBox.visible =
|
||||||
|
this._notificationBox.get_children().some(a => a.visible);
|
||||||
|
|
||||||
|
this.visible = this._notificationBox.visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
_makeNotificationSource(source, box) {
|
||||||
|
let sourceActor = new MessageTray.SourceActor(source, SUMMARY_ICON_SIZE);
|
||||||
|
box.add_child(sourceActor);
|
||||||
|
|
||||||
|
let textBox = new St.BoxLayout({
|
||||||
|
x_expand: true,
|
||||||
|
y_expand: true,
|
||||||
|
y_align: Clutter.ActorAlign.CENTER,
|
||||||
|
});
|
||||||
|
box.add_child(textBox);
|
||||||
|
|
||||||
|
let title = new St.Label({
|
||||||
|
text: source.title,
|
||||||
|
style_class: 'unlock-dialog-notification-label',
|
||||||
|
x_expand: true,
|
||||||
|
x_align: Clutter.ActorAlign.START,
|
||||||
|
});
|
||||||
|
textBox.add(title);
|
||||||
|
|
||||||
|
let count = source.unseenCount;
|
||||||
|
let countLabel = new St.Label({
|
||||||
|
text: `${count}`,
|
||||||
|
style_class: 'unlock-dialog-notification-count-text',
|
||||||
|
});
|
||||||
|
textBox.add(countLabel);
|
||||||
|
|
||||||
|
box.visible = count !== 0;
|
||||||
|
return [title, countLabel];
|
||||||
|
}
|
||||||
|
|
||||||
|
_makeNotificationDetailedSource(source, box) {
|
||||||
|
let sourceActor = new MessageTray.SourceActor(source, SUMMARY_ICON_SIZE);
|
||||||
|
let sourceBin = new St.Bin({ child: sourceActor });
|
||||||
|
box.add(sourceBin);
|
||||||
|
|
||||||
|
let textBox = new St.BoxLayout({ vertical: true });
|
||||||
|
box.add_child(textBox);
|
||||||
|
|
||||||
|
let title = new St.Label({
|
||||||
|
text: source.title,
|
||||||
|
style_class: 'unlock-dialog-notification-label',
|
||||||
|
});
|
||||||
|
textBox.add(title);
|
||||||
|
|
||||||
|
let visible = false;
|
||||||
|
for (let i = 0; i < source.notifications.length; i++) {
|
||||||
|
let n = source.notifications[i];
|
||||||
|
|
||||||
|
if (n.acknowledged)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
let body = '';
|
||||||
|
if (n.bannerBodyText) {
|
||||||
|
body = n.bannerBodyMarkup
|
||||||
|
? n.bannerBodyText
|
||||||
|
: GLib.markup_escape_text(n.bannerBodyText, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
let label = new St.Label({ style_class: 'unlock-dialog-notification-count-text' });
|
||||||
|
label.clutter_text.set_markup(`<b>${n.title}</b> ${body}`);
|
||||||
|
textBox.add(label);
|
||||||
|
|
||||||
|
visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
box.visible = visible;
|
||||||
|
return [title, null];
|
||||||
|
}
|
||||||
|
|
||||||
|
_shouldShowDetails(source) {
|
||||||
|
return source.policy.detailsInLockScreen ||
|
||||||
|
source.narrowestPrivacyScope === MessageTray.PrivacyScope.SYSTEM;
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateSourceBoxStyle(source, obj, box) {
|
||||||
|
let hasCriticalNotification =
|
||||||
|
source.notifications.some(n => n.urgency === MessageTray.Urgency.CRITICAL);
|
||||||
|
|
||||||
|
if (hasCriticalNotification !== obj.hasCriticalNotification) {
|
||||||
|
obj.hasCriticalNotification = hasCriticalNotification;
|
||||||
|
|
||||||
|
if (hasCriticalNotification)
|
||||||
|
box.add_style_class_name('critical');
|
||||||
|
else
|
||||||
|
box.remove_style_class_name('critical');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_showSource(source, obj, box) {
|
||||||
|
if (obj.detailed)
|
||||||
|
[obj.titleLabel, obj.countLabel] = this._makeNotificationDetailedSource(source, box);
|
||||||
|
else
|
||||||
|
[obj.titleLabel, obj.countLabel] = this._makeNotificationSource(source, box);
|
||||||
|
|
||||||
|
box.visible = obj.visible && (source.unseenCount > 0);
|
||||||
|
|
||||||
|
this._updateSourceBoxStyle(source, obj, box);
|
||||||
|
}
|
||||||
|
|
||||||
|
_sourceAdded(tray, source, initial) {
|
||||||
|
let obj = {
|
||||||
|
visible: source.policy.showInLockScreen,
|
||||||
|
detailed: this._shouldShowDetails(source),
|
||||||
|
sourceDestroyId: 0,
|
||||||
|
sourceCountChangedId: 0,
|
||||||
|
sourceTitleChangedId: 0,
|
||||||
|
sourceUpdatedId: 0,
|
||||||
|
sourceBox: null,
|
||||||
|
titleLabel: null,
|
||||||
|
countLabel: null,
|
||||||
|
hasCriticalNotification: false,
|
||||||
|
};
|
||||||
|
|
||||||
|
obj.sourceBox = new St.BoxLayout({
|
||||||
|
style_class: 'unlock-dialog-notification-source',
|
||||||
|
x_expand: true,
|
||||||
|
});
|
||||||
|
this._showSource(source, obj, obj.sourceBox);
|
||||||
|
this._notificationBox.add_child(obj.sourceBox);
|
||||||
|
|
||||||
|
obj.sourceCountChangedId = source.connect('notify::count', () => {
|
||||||
|
this._countChanged(source, obj);
|
||||||
|
});
|
||||||
|
obj.sourceTitleChangedId = source.connect('notify::title', () => {
|
||||||
|
this._titleChanged(source, obj);
|
||||||
|
});
|
||||||
|
obj.policyChangedId = source.policy.connect('notify', (policy, pspec) => {
|
||||||
|
if (pspec.name === 'show-in-lock-screen')
|
||||||
|
this._visibleChanged(source, obj);
|
||||||
|
else
|
||||||
|
this._detailedChanged(source, obj);
|
||||||
|
});
|
||||||
|
obj.sourceDestroyId = source.connect('destroy', () => {
|
||||||
|
this._onSourceDestroy(source, obj);
|
||||||
|
});
|
||||||
|
|
||||||
|
this._sources.set(source, obj);
|
||||||
|
|
||||||
|
if (!initial) {
|
||||||
|
// block scrollbars while animating, if they're not needed now
|
||||||
|
let boxHeight = this._notificationBox.height;
|
||||||
|
if (this._scrollView.height >= boxHeight)
|
||||||
|
this._scrollView.vscrollbar_policy = St.PolicyType.NEVER;
|
||||||
|
|
||||||
|
let widget = obj.sourceBox;
|
||||||
|
let [, natHeight] = widget.get_preferred_height(-1);
|
||||||
|
widget.height = 0;
|
||||||
|
widget.ease({
|
||||||
|
height: natHeight,
|
||||||
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
|
duration: 250,
|
||||||
|
onComplete: () => {
|
||||||
|
this._scrollView.vscrollbar_policy = St.PolicyType.AUTOMATIC;
|
||||||
|
widget.set_height(-1);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
this._updateVisibility();
|
||||||
|
if (obj.sourceBox.visible)
|
||||||
|
this.emit('wake-up-screen');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_titleChanged(source, obj) {
|
||||||
|
obj.titleLabel.text = source.title;
|
||||||
|
}
|
||||||
|
|
||||||
|
_countChanged(source, obj) {
|
||||||
|
// A change in the number of notifications may change whether we show
|
||||||
|
// details.
|
||||||
|
let newDetailed = this._shouldShowDetails(source);
|
||||||
|
let oldDetailed = obj.detailed;
|
||||||
|
|
||||||
|
obj.detailed = newDetailed;
|
||||||
|
|
||||||
|
if (obj.detailed || oldDetailed !== newDetailed) {
|
||||||
|
// A new notification was pushed, or a previous notification was destroyed.
|
||||||
|
// Give up, and build the list again.
|
||||||
|
|
||||||
|
obj.sourceBox.destroy_all_children();
|
||||||
|
obj.titleLabel = obj.countLabel = null;
|
||||||
|
this._showSource(source, obj, obj.sourceBox);
|
||||||
|
} else {
|
||||||
|
let count = source.unseenCount;
|
||||||
|
obj.countLabel.text = `${count}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
obj.sourceBox.visible = obj.visible && (source.unseenCount > 0);
|
||||||
|
|
||||||
|
this._updateVisibility();
|
||||||
|
if (obj.sourceBox.visible)
|
||||||
|
this.emit('wake-up-screen');
|
||||||
|
}
|
||||||
|
|
||||||
|
_visibleChanged(source, obj) {
|
||||||
|
if (obj.visible === source.policy.showInLockScreen)
|
||||||
|
return;
|
||||||
|
|
||||||
|
obj.visible = source.policy.showInLockScreen;
|
||||||
|
obj.sourceBox.visible = obj.visible && source.unseenCount > 0;
|
||||||
|
|
||||||
|
this._updateVisibility();
|
||||||
|
if (obj.sourceBox.visible)
|
||||||
|
this.emit('wake-up-screen');
|
||||||
|
}
|
||||||
|
|
||||||
|
_detailedChanged(source, obj) {
|
||||||
|
let newDetailed = this._shouldShowDetails(source);
|
||||||
|
if (obj.detailed === newDetailed)
|
||||||
|
return;
|
||||||
|
|
||||||
|
obj.detailed = newDetailed;
|
||||||
|
|
||||||
|
obj.sourceBox.destroy_all_children();
|
||||||
|
obj.titleLabel = obj.countLabel = null;
|
||||||
|
this._showSource(source, obj, obj.sourceBox);
|
||||||
|
}
|
||||||
|
|
||||||
|
_onSourceDestroy(source, obj) {
|
||||||
|
this._removeSource(source, obj);
|
||||||
|
this._updateVisibility();
|
||||||
|
}
|
||||||
|
|
||||||
|
_removeSource(source, obj) {
|
||||||
|
obj.sourceBox.destroy();
|
||||||
|
obj.sourceBox = obj.titleLabel = obj.countLabel = null;
|
||||||
|
|
||||||
|
source.disconnect(obj.sourceDestroyId);
|
||||||
|
source.disconnect(obj.sourceCountChangedId);
|
||||||
|
source.disconnect(obj.sourceTitleChangedId);
|
||||||
|
source.policy.disconnect(obj.policyChangedId);
|
||||||
|
|
||||||
|
this._sources.delete(source);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var Clock = GObject.registerClass(
|
||||||
|
class UnlockDialogClock extends St.BoxLayout {
|
||||||
|
_init() {
|
||||||
|
super._init({ style_class: 'unlock-dialog-clock', vertical: true });
|
||||||
|
|
||||||
|
this._time = new St.Label({
|
||||||
|
style_class: 'unlock-dialog-clock-time',
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
|
});
|
||||||
|
this._date = new St.Label({
|
||||||
|
style_class: 'unlock-dialog-clock-date',
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.add_child(this._time);
|
||||||
|
this.add_child(this._date);
|
||||||
|
|
||||||
|
this._wallClock = new GnomeDesktop.WallClock({ time_only: true });
|
||||||
|
this._wallClock.connect('notify::clock', this._updateClock.bind(this));
|
||||||
|
|
||||||
|
this._updateClock();
|
||||||
|
|
||||||
|
this.connect('destroy', this._onDestroy.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateClock() {
|
||||||
|
this._time.text = this._wallClock.clock;
|
||||||
|
|
||||||
|
let date = new Date();
|
||||||
|
/* Translators: This is a time format for a date in
|
||||||
|
long format */
|
||||||
|
let dateFormat = Shell.util_translate_time_string(N_('%A %B %-d'));
|
||||||
|
this._date.text = date.toLocaleFormat(dateFormat);
|
||||||
|
}
|
||||||
|
|
||||||
|
_onDestroy() {
|
||||||
|
this._wallClock.run_dispose();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var UnlockDialogLayout = GObject.registerClass(
|
||||||
|
class UnlockDialogLayout extends Clutter.LayoutManager {
|
||||||
|
_init(stack, notifications) {
|
||||||
|
super._init();
|
||||||
|
|
||||||
|
this._stack = stack;
|
||||||
|
this._notifications = notifications;
|
||||||
|
}
|
||||||
|
|
||||||
|
vfunc_get_preferred_width(container, forHeight) {
|
||||||
|
return this._stack.get_preferred_width(forHeight);
|
||||||
|
}
|
||||||
|
|
||||||
|
vfunc_get_preferred_height(container, forWidth) {
|
||||||
|
return this._stack.get_preferred_height(forWidth);
|
||||||
|
}
|
||||||
|
|
||||||
|
vfunc_allocate(container, box, flags) {
|
||||||
|
let [width, height] = box.get_size();
|
||||||
|
|
||||||
|
let tenthOfHeight = height / 10.0;
|
||||||
|
let thirdOfHeight = height / 3.0;
|
||||||
|
|
||||||
|
let [, , stackWidth, stackHeight] =
|
||||||
|
this._stack.get_preferred_size();
|
||||||
|
|
||||||
|
let [, , notificationsWidth, notificationsHeight] =
|
||||||
|
this._notifications.get_preferred_size();
|
||||||
|
|
||||||
|
let columnWidth = Math.max(stackWidth, notificationsWidth);
|
||||||
|
|
||||||
|
let columnX1 = Math.floor((width - columnWidth) / 2.0);
|
||||||
|
let actorBox = new Clutter.ActorBox();
|
||||||
|
|
||||||
|
// Notifications
|
||||||
|
let maxNotificationsHeight = Math.min(
|
||||||
|
notificationsHeight,
|
||||||
|
height - tenthOfHeight - stackHeight);
|
||||||
|
|
||||||
|
actorBox.x1 = columnX1;
|
||||||
|
actorBox.y1 = height - maxNotificationsHeight;
|
||||||
|
actorBox.x2 = columnX1 + columnWidth;
|
||||||
|
actorBox.y2 = actorBox.y1 + maxNotificationsHeight;
|
||||||
|
|
||||||
|
this._notifications.allocate(actorBox, flags);
|
||||||
|
|
||||||
|
// Authentication Box
|
||||||
|
let stackY = Math.min(
|
||||||
|
thirdOfHeight,
|
||||||
|
height - stackHeight - maxNotificationsHeight);
|
||||||
|
|
||||||
|
actorBox.x1 = columnX1;
|
||||||
|
actorBox.y1 = stackY;
|
||||||
|
actorBox.x2 = columnX1 + columnWidth;
|
||||||
|
actorBox.y2 = stackY + stackHeight;
|
||||||
|
|
||||||
|
this._stack.allocate(actorBox, flags);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
var UnlockDialog = GObject.registerClass({
|
var UnlockDialog = GObject.registerClass({
|
||||||
Signals: { 'failed': {} },
|
Signals: {
|
||||||
|
'failed': {},
|
||||||
|
'wake-up-screen': {},
|
||||||
|
},
|
||||||
}, class UnlockDialog extends St.Widget {
|
}, class UnlockDialog extends St.Widget {
|
||||||
_init(parentActor) {
|
_init(parentActor) {
|
||||||
super._init({
|
super._init({
|
||||||
accessible_role: Atk.Role.WINDOW,
|
accessible_role: Atk.Role.WINDOW,
|
||||||
style_class: 'login-dialog',
|
style_class: 'login-dialog',
|
||||||
layout_manager: new Clutter.BoxLayout(),
|
|
||||||
visible: false,
|
visible: false,
|
||||||
|
can_focus: true,
|
||||||
|
reactive: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.add_constraint(new Layout.MonitorConstraint({ primary: true }));
|
|
||||||
parentActor.add_child(this);
|
parentActor.add_child(this);
|
||||||
|
|
||||||
|
this._activePage = null;
|
||||||
|
|
||||||
|
let tapAction = new Clutter.TapAction();
|
||||||
|
tapAction.connect('tap', this._showPrompt.bind(this));
|
||||||
|
this.add_action(tapAction);
|
||||||
|
|
||||||
|
// Background
|
||||||
|
this._backgroundGroup = new Clutter.Actor();
|
||||||
|
this.add_child(this._backgroundGroup);
|
||||||
|
|
||||||
|
this._bgManagers = [];
|
||||||
|
|
||||||
|
this._updateBackgrounds();
|
||||||
|
this._monitorsChangedId =
|
||||||
|
Main.layoutManager.connect('monitors-changed', this._updateBackgrounds.bind(this));
|
||||||
|
|
||||||
this._userManager = AccountsService.UserManager.get_default();
|
this._userManager = AccountsService.UserManager.get_default();
|
||||||
this._userName = GLib.get_user_name();
|
this._userName = GLib.get_user_name();
|
||||||
this._user = this._userManager.get_user(this._userName);
|
this._user = this._userManager.get_user(this._userName);
|
||||||
|
|
||||||
this._promptBox = new St.BoxLayout({ vertical: true,
|
// Authentication & Clock stack
|
||||||
x_align: Clutter.ActorAlign.CENTER,
|
let stack = new Shell.Stack();
|
||||||
y_align: Clutter.ActorAlign.CENTER,
|
|
||||||
x_expand: true,
|
this._promptBox = new St.BoxLayout({ vertical: true });
|
||||||
y_expand: true });
|
stack.add_child(this._promptBox);
|
||||||
this.add_child(this._promptBox);
|
|
||||||
|
this._clock = new Clock();
|
||||||
|
stack.add_child(this._clock);
|
||||||
|
this._showClock();
|
||||||
|
|
||||||
|
this.allowCancel = false;
|
||||||
|
|
||||||
|
Main.ctrlAltTabManager.addGroup(this, _('Unlock Window'), 'dialog-password-symbolic');
|
||||||
|
|
||||||
|
// Notifications
|
||||||
|
this._notificationsBox = new NotificationsBox();
|
||||||
|
this._notificationsBox.connect('wake-up-screen', () => this.emit('wake-up-screen'));
|
||||||
|
|
||||||
|
// Main Box
|
||||||
|
let mainBox = new Clutter.Actor();
|
||||||
|
mainBox.add_constraint(new Layout.MonitorConstraint({ primary: true }));
|
||||||
|
mainBox.add_child(stack);
|
||||||
|
mainBox.add_child(this._notificationsBox);
|
||||||
|
mainBox.layout_manager = new UnlockDialogLayout(
|
||||||
|
stack,
|
||||||
|
this._notificationsBox);
|
||||||
|
this.add_child(mainBox);
|
||||||
|
|
||||||
|
this._idleMonitor = Meta.IdleMonitor.get_core();
|
||||||
|
this._idleWatchId = this._idleMonitor.add_idle_watch(IDLE_TIMEOUT * 1000, this._escape.bind(this));
|
||||||
|
|
||||||
|
this.connect('destroy', this._onDestroy.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
vfunc_key_press_event(keyEvent) {
|
||||||
|
if (this._activePage === this._promptBox ||
|
||||||
|
(this._promptBox && this._promptBox.visible))
|
||||||
|
return Clutter.EVENT_PROPAGATE;
|
||||||
|
|
||||||
|
let unichar = keyEvent.unicode_value;
|
||||||
|
|
||||||
|
this._showPrompt();
|
||||||
|
|
||||||
|
if (GLib.unichar_isgraph(unichar))
|
||||||
|
this.addCharacter(unichar);
|
||||||
|
|
||||||
|
return Clutter.EVENT_PROPAGATE;
|
||||||
|
}
|
||||||
|
|
||||||
|
_createBackground(monitorIndex) {
|
||||||
|
let monitor = Main.layoutManager.monitors[monitorIndex];
|
||||||
|
let widget = new St.Widget({
|
||||||
|
style_class: 'screen-shield-background',
|
||||||
|
x: monitor.x,
|
||||||
|
y: monitor.y,
|
||||||
|
width: monitor.width,
|
||||||
|
height: monitor.height,
|
||||||
|
});
|
||||||
|
|
||||||
|
let bgManager = new Background.BackgroundManager({
|
||||||
|
container: widget,
|
||||||
|
monitorIndex,
|
||||||
|
controlPosition: false,
|
||||||
|
settingsSchema: SCREENSAVER_SCHEMA,
|
||||||
|
});
|
||||||
|
|
||||||
|
this._bgManagers.push(bgManager);
|
||||||
|
|
||||||
|
this._backgroundGroup.add_child(widget);
|
||||||
|
|
||||||
|
widget.add_effect(new Shell.BlurEffect({
|
||||||
|
brightness: BLUR_BRIGHTNESS,
|
||||||
|
blur_radius: BLUR_RADIUS,
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateBackgrounds() {
|
||||||
|
for (let i = 0; i < this._bgManagers.length; i++)
|
||||||
|
this._bgManagers[i].destroy();
|
||||||
|
|
||||||
|
this._bgManagers = [];
|
||||||
|
this._backgroundGroup.destroy_all_children();
|
||||||
|
|
||||||
|
for (let i = 0; i < Main.layoutManager.monitors.length; i++)
|
||||||
|
this._createBackground(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
_ensureAuthPrompt() {
|
||||||
|
if (this._authPrompt)
|
||||||
|
return;
|
||||||
|
|
||||||
this._authPrompt = new AuthPrompt.AuthPrompt(new Gdm.Client(), AuthPrompt.AuthPromptMode.UNLOCK_ONLY);
|
this._authPrompt = new AuthPrompt.AuthPrompt(new Gdm.Client(), AuthPrompt.AuthPromptMode.UNLOCK_ONLY);
|
||||||
this._authPrompt.connect('failed', this._fail.bind(this));
|
this._authPrompt.connect('failed', this._fail.bind(this));
|
||||||
@@ -45,16 +543,18 @@ var UnlockDialog = GObject.registerClass({
|
|||||||
|
|
||||||
this._promptBox.add_child(this._authPrompt);
|
this._promptBox.add_child(this._authPrompt);
|
||||||
|
|
||||||
this.allowCancel = false;
|
|
||||||
|
|
||||||
let screenSaverSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.screensaver' });
|
let screenSaverSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.screensaver' });
|
||||||
if (screenSaverSettings.get_boolean('user-switch-enabled')) {
|
if (screenSaverSettings.get_boolean('user-switch-enabled')) {
|
||||||
let otherUserLabel = new St.Label({ text: _("Log in as another user"),
|
let otherUserLabel = new St.Label({
|
||||||
style_class: 'login-dialog-not-listed-label' });
|
text: _('Log in as another user'),
|
||||||
this._otherUserButton = new St.Button({ style_class: 'login-dialog-not-listed-button',
|
style_class: 'login-dialog-not-listed-label',
|
||||||
can_focus: true,
|
});
|
||||||
child: otherUserLabel,
|
this._otherUserButton = new St.Button({
|
||||||
reactive: true });
|
style_class: 'login-dialog-not-listed-button',
|
||||||
|
can_focus: true,
|
||||||
|
child: otherUserLabel,
|
||||||
|
reactive: true,
|
||||||
|
});
|
||||||
this._otherUserButton.connect('clicked', this._otherUserClicked.bind(this));
|
this._otherUserButton.connect('clicked', this._otherUserClicked.bind(this));
|
||||||
this._promptBox.add_child(this._otherUserButton);
|
this._promptBox.add_child(this._otherUserButton);
|
||||||
} else {
|
} else {
|
||||||
@@ -63,13 +563,24 @@ var UnlockDialog = GObject.registerClass({
|
|||||||
|
|
||||||
this._authPrompt.reset();
|
this._authPrompt.reset();
|
||||||
this._updateSensitivity(true);
|
this._updateSensitivity(true);
|
||||||
|
}
|
||||||
|
|
||||||
Main.ctrlAltTabManager.addGroup(this, _("Unlock Window"), 'dialog-password-symbolic');
|
_maybeDestroyAuthPrompt() {
|
||||||
|
let focus = global.stage.key_focus;
|
||||||
|
if (focus === null ||
|
||||||
|
(this._authPrompt && this._authPrompt.contains(focus)) ||
|
||||||
|
(this._otherUserButton && focus === this._otherUserButton))
|
||||||
|
this.grab_key_focus();
|
||||||
|
|
||||||
this._idleMonitor = Meta.IdleMonitor.get_core();
|
if (this._authPrompt) {
|
||||||
this._idleWatchId = this._idleMonitor.add_idle_watch(IDLE_TIMEOUT * 1000, this._escape.bind(this));
|
this._authPrompt.destroy();
|
||||||
|
this._authPrompt = null;
|
||||||
|
}
|
||||||
|
|
||||||
this.connect('destroy', this._onDestroy.bind(this));
|
if (this._otherUserButton) {
|
||||||
|
this._otherUserButton.destroy();
|
||||||
|
this._otherUserButton = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateSensitivity(sensitive) {
|
_updateSensitivity(sensitive) {
|
||||||
@@ -81,7 +592,55 @@ var UnlockDialog = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_showClock() {
|
||||||
|
if (this._activePage === this._clock)
|
||||||
|
return;
|
||||||
|
|
||||||
|
this._activePage = this._clock;
|
||||||
|
this._clock.show();
|
||||||
|
|
||||||
|
this._promptBox.ease({
|
||||||
|
opacity: 0,
|
||||||
|
duration: CROSSFADE_TIME,
|
||||||
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
|
onComplete: () => {
|
||||||
|
this._promptBox.hide();
|
||||||
|
this._maybeDestroyAuthPrompt();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
this._clock.ease({
|
||||||
|
opacity: 255,
|
||||||
|
duration: CROSSFADE_TIME,
|
||||||
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
_showPrompt() {
|
||||||
|
this._ensureAuthPrompt();
|
||||||
|
|
||||||
|
if (this._activePage === this._promptBox)
|
||||||
|
return;
|
||||||
|
|
||||||
|
this._activePage = this._promptBox;
|
||||||
|
this._promptBox.show();
|
||||||
|
|
||||||
|
this._clock.ease({
|
||||||
|
opacity: 0,
|
||||||
|
duration: CROSSFADE_TIME,
|
||||||
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
|
onComplete: () => this._clock.hide(),
|
||||||
|
});
|
||||||
|
|
||||||
|
this._promptBox.ease({
|
||||||
|
opacity: 255,
|
||||||
|
duration: CROSSFADE_TIME,
|
||||||
|
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
_fail() {
|
_fail() {
|
||||||
|
this._showClock();
|
||||||
this.emit('failed');
|
this.emit('failed');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,19 +674,25 @@ var UnlockDialog = GObject.registerClass({
|
|||||||
this._idleMonitor.remove_watch(this._idleWatchId);
|
this._idleMonitor.remove_watch(this._idleWatchId);
|
||||||
this._idleWatchId = 0;
|
this._idleWatchId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this._monitorsChangedId) {
|
||||||
|
Main.layoutManager.disconnect(this._monitorsChangedId);
|
||||||
|
delete this._monitorsChangedId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cancel() {
|
cancel() {
|
||||||
this._authPrompt.cancel();
|
if (this._authPrompt)
|
||||||
|
this._authPrompt.cancel();
|
||||||
this.destroy();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
addCharacter(unichar) {
|
addCharacter(unichar) {
|
||||||
|
this._showPrompt();
|
||||||
this._authPrompt.addCharacter(unichar);
|
this._authPrompt.addCharacter(unichar);
|
||||||
}
|
}
|
||||||
|
|
||||||
finish(onComplete) {
|
finish(onComplete) {
|
||||||
|
this._ensureAuthPrompt();
|
||||||
this._authPrompt.finish(onComplete);
|
this._authPrompt.finish(onComplete);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,6 +714,10 @@ var UnlockDialog = GObject.registerClass({
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
activate() {
|
||||||
|
this._showPrompt();
|
||||||
|
}
|
||||||
|
|
||||||
popModal(timestamp) {
|
popModal(timestamp) {
|
||||||
if (this._isModal) {
|
if (this._isModal) {
|
||||||
Main.popModal(this, timestamp);
|
Main.popModal(this, timestamp);
|
||||||
|
@@ -45,21 +45,17 @@ const WINDOW_DIMMER_EFFECT_NAME = "gnome-shell-window-dimmer";
|
|||||||
var DisplayChangeDialog = GObject.registerClass(
|
var DisplayChangeDialog = GObject.registerClass(
|
||||||
class DisplayChangeDialog extends ModalDialog.ModalDialog {
|
class DisplayChangeDialog extends ModalDialog.ModalDialog {
|
||||||
_init(wm) {
|
_init(wm) {
|
||||||
super._init({ styleClass: 'prompt-dialog' });
|
super._init();
|
||||||
|
|
||||||
this._wm = wm;
|
this._wm = wm;
|
||||||
|
|
||||||
this._countDown = Meta.MonitorManager.get_display_configuration_timeout();
|
this._countDown = Meta.MonitorManager.get_display_configuration_timeout();
|
||||||
|
|
||||||
let title = _("Do you want to keep these display settings?");
|
// Translators: This string should be shorter than 30 characters
|
||||||
|
let title = _('Keep these display settings?');
|
||||||
let description = this._formatCountDown();
|
let description = this._formatCountDown();
|
||||||
|
|
||||||
this._content = new Dialog.MessageDialogContent({
|
this._content = new Dialog.MessageDialogContent({ title, description });
|
||||||
title, description,
|
|
||||||
x_expand: true,
|
|
||||||
y_expand: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
this.contentLayout.add_child(this._content);
|
this.contentLayout.add_child(this._content);
|
||||||
|
|
||||||
/* Translators: this and the following message should be limited in length,
|
/* Translators: this and the following message should be limited in length,
|
||||||
|
@@ -155,8 +155,7 @@ var WindowClone = GObject.registerClass({
|
|||||||
|
|
||||||
this._updateAttachedDialogs();
|
this._updateAttachedDialogs();
|
||||||
this._computeBoundingBox();
|
this._computeBoundingBox();
|
||||||
this.x = this._boundingBox.x;
|
this.set_translation(this._boundingBox.x, this._boundingBox.y, 0);
|
||||||
this.y = this._boundingBox.y;
|
|
||||||
|
|
||||||
this._computeWindowCenter();
|
this._computeWindowCenter();
|
||||||
|
|
||||||
@@ -1364,8 +1363,8 @@ class Workspace extends St.Widget {
|
|||||||
if (!clone.positioned) {
|
if (!clone.positioned) {
|
||||||
// This window appeared after the overview was already up
|
// This window appeared after the overview was already up
|
||||||
// Grow the clone from the center of the slot
|
// Grow the clone from the center of the slot
|
||||||
clone.x = x + cloneWidth / 2;
|
clone.translation_x = x + cloneWidth / 2;
|
||||||
clone.y = y + cloneHeight / 2;
|
clone.translation_y = y + cloneHeight / 2;
|
||||||
clone.scale_x = 0;
|
clone.scale_x = 0;
|
||||||
clone.scale_y = 0;
|
clone.scale_y = 0;
|
||||||
clone.positioned = true;
|
clone.positioned = true;
|
||||||
@@ -1380,8 +1379,8 @@ class Workspace extends St.Widget {
|
|||||||
clone.opacity = 0;
|
clone.opacity = 0;
|
||||||
clone.scale_x = 0;
|
clone.scale_x = 0;
|
||||||
clone.scale_y = 0;
|
clone.scale_y = 0;
|
||||||
clone.x = x;
|
clone.translation_x = x;
|
||||||
clone.y = y;
|
clone.translation_y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
clone.ease({
|
clone.ease({
|
||||||
@@ -1395,7 +1394,7 @@ class Workspace extends St.Widget {
|
|||||||
} else {
|
} else {
|
||||||
// cancel any active tweens (otherwise they might override our changes)
|
// cancel any active tweens (otherwise they might override our changes)
|
||||||
clone.remove_all_transitions();
|
clone.remove_all_transitions();
|
||||||
clone.set_position(x, y);
|
clone.set_translation(x, y, 0);
|
||||||
clone.set_scale(scale, scale);
|
clone.set_scale(scale, scale);
|
||||||
clone.set_opacity(255);
|
clone.set_opacity(255);
|
||||||
clone.overlay.relayout(false);
|
clone.overlay.relayout(false);
|
||||||
@@ -1425,7 +1424,8 @@ class Workspace extends St.Widget {
|
|||||||
|
|
||||||
_animateClone(clone, overlay, x, y, scale) {
|
_animateClone(clone, overlay, x, y, scale) {
|
||||||
clone.ease({
|
clone.ease({
|
||||||
x, y,
|
translation_x: x,
|
||||||
|
translation_y: y,
|
||||||
scale_x: scale,
|
scale_x: scale,
|
||||||
scale_y: scale,
|
scale_y: scale,
|
||||||
duration: Overview.ANIMATION_TIME,
|
duration: Overview.ANIMATION_TIME,
|
||||||
@@ -1570,7 +1570,7 @@ class Workspace extends St.Widget {
|
|||||||
clone.slot = [x, y, clone.width * scale, clone.height * scale];
|
clone.slot = [x, y, clone.width * scale, clone.height * scale];
|
||||||
clone.positioned = true;
|
clone.positioned = true;
|
||||||
|
|
||||||
clone.set_position(x, y);
|
clone.set_translation(x, y, 0);
|
||||||
clone.set_scale(scale, scale);
|
clone.set_scale(scale, scale);
|
||||||
clone.overlay.relayout(false);
|
clone.overlay.relayout(false);
|
||||||
}
|
}
|
||||||
@@ -1725,8 +1725,8 @@ class Workspace extends St.Widget {
|
|||||||
let [origX, origY] = clone.getOriginalPosition();
|
let [origX, origY] = clone.getOriginalPosition();
|
||||||
clone.scale_x = 1;
|
clone.scale_x = 1;
|
||||||
clone.scale_y = 1;
|
clone.scale_y = 1;
|
||||||
clone.x = origX;
|
clone.translation_x = origX;
|
||||||
clone.y = origY;
|
clone.translation_y = origY;
|
||||||
clone.ease({
|
clone.ease({
|
||||||
opacity,
|
opacity,
|
||||||
duration,
|
duration,
|
||||||
@@ -1776,8 +1776,8 @@ class Workspace extends St.Widget {
|
|||||||
if (clone.metaWindow.showing_on_its_workspace()) {
|
if (clone.metaWindow.showing_on_its_workspace()) {
|
||||||
let [origX, origY] = clone.getOriginalPosition();
|
let [origX, origY] = clone.getOriginalPosition();
|
||||||
clone.ease({
|
clone.ease({
|
||||||
x: origX,
|
translation_x: origX,
|
||||||
y: origY,
|
translation_y: origY,
|
||||||
scale_x: 1,
|
scale_x: 1,
|
||||||
scale_y: 1,
|
scale_y: 1,
|
||||||
opacity: 255,
|
opacity: 255,
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
project('gnome-shell', 'c',
|
project('gnome-shell', 'c',
|
||||||
version: '3.35.3',
|
version: '3.35.90',
|
||||||
meson_version: '>= 0.47.0',
|
meson_version: '>= 0.47.0',
|
||||||
license: 'GPLv2+'
|
license: 'GPLv2+'
|
||||||
)
|
)
|
||||||
@@ -25,7 +25,7 @@ gio_req = '>= 2.56.0'
|
|||||||
gi_req = '>= 1.49.1'
|
gi_req = '>= 1.49.1'
|
||||||
gjs_req = '>= 1.63.2'
|
gjs_req = '>= 1.63.2'
|
||||||
gtk_req = '>= 3.15.0'
|
gtk_req = '>= 3.15.0'
|
||||||
mutter_req = '>= 3.35.3'
|
mutter_req = '>= 3.35.90'
|
||||||
polkit_req = '>= 0.100'
|
polkit_req = '>= 0.100'
|
||||||
schemas_req = '>= 3.33.1'
|
schemas_req = '>= 3.33.1'
|
||||||
startup_req = '>= 0.11'
|
startup_req = '>= 0.11'
|
||||||
@@ -55,6 +55,7 @@ pkglibdir = join_paths(libdir, meson.project_name())
|
|||||||
autostartdir = join_paths(sysconfdir, 'xdg', 'autostart')
|
autostartdir = join_paths(sysconfdir, 'xdg', 'autostart')
|
||||||
convertdir = join_paths(datadir, 'GConf', 'gsettings')
|
convertdir = join_paths(datadir, 'GConf', 'gsettings')
|
||||||
desktopdir = join_paths(datadir, 'applications')
|
desktopdir = join_paths(datadir, 'applications')
|
||||||
|
icondir = join_paths(datadir, 'icons')
|
||||||
ifacedir = join_paths(datadir, 'dbus-1', 'interfaces')
|
ifacedir = join_paths(datadir, 'dbus-1', 'interfaces')
|
||||||
localedir = join_paths(datadir, 'locale')
|
localedir = join_paths(datadir, 'locale')
|
||||||
portaldir = join_paths(datadir, 'xdg-desktop-portal', 'portals')
|
portaldir = join_paths(datadir, 'xdg-desktop-portal', 'portals')
|
||||||
|
@@ -8,6 +8,12 @@ datadir = os.path.join(prefix, 'share')
|
|||||||
|
|
||||||
# Packaging tools define DESTDIR and this isn't needed for them
|
# Packaging tools define DESTDIR and this isn't needed for them
|
||||||
if 'DESTDIR' not in os.environ:
|
if 'DESTDIR' not in os.environ:
|
||||||
|
print('Updating icon cache...')
|
||||||
|
icon_cache_dir = os.path.join(datadir, 'icons', 'hicolor')
|
||||||
|
if not os.path.exists(icon_cache_dir):
|
||||||
|
os.makedirs(icon_cache_dir)
|
||||||
|
subprocess.call(['gtk-update-icon-cache', '-qtf', icon_cache_dir])
|
||||||
|
|
||||||
print('Updating desktop database...')
|
print('Updating desktop database...')
|
||||||
desktop_database_dir = os.path.join(datadir, 'applications')
|
desktop_database_dir = os.path.join(datadir, 'applications')
|
||||||
if not os.path.exists(desktop_database_dir):
|
if not os.path.exists(desktop_database_dir):
|
||||||
|
@@ -1,11 +1,13 @@
|
|||||||
# List of source files containing translatable strings.
|
# List of source files containing translatable strings.
|
||||||
# Please keep this file sorted alphabetically.
|
# Please keep this file sorted alphabetically.
|
||||||
data/50-gnome-shell-system.xml
|
data/50-gnome-shell-system.xml
|
||||||
data/gnome-shell-extension-prefs.desktop.in.in
|
data/org.gnome.Extensions.desktop.in.in
|
||||||
data/org.gnome.Shell.desktop.in.in
|
data/org.gnome.Shell.desktop.in.in
|
||||||
data/org.gnome.shell.gschema.xml.in
|
data/org.gnome.shell.gschema.xml.in
|
||||||
data/org.gnome.Shell.PortalHelper.desktop.in.in
|
data/org.gnome.Shell.PortalHelper.desktop.in.in
|
||||||
js/extensionPrefs/main.js
|
js/extensionPrefs/main.js
|
||||||
|
js/extensionPrefs/ui/extension-row.ui
|
||||||
|
js/extensionPrefs/ui/extensions-window.ui
|
||||||
js/gdm/authPrompt.js
|
js/gdm/authPrompt.js
|
||||||
js/gdm/loginDialog.js
|
js/gdm/loginDialog.js
|
||||||
js/gdm/util.js
|
js/gdm/util.js
|
||||||
|
1736
po/en_GB.po
1736
po/en_GB.po
File diff suppressed because it is too large
Load Diff
421
po/es.po
421
po/es.po
@@ -9,8 +9,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: gnome-shell.master\n"
|
"Project-Id-Version: gnome-shell.master\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: 2020-01-28 15:54+0000\n"
|
"POT-Creation-Date: 2020-02-06 19:01+0000\n"
|
||||||
"PO-Revision-Date: 2020-01-29 10:33+0100\n"
|
"PO-Revision-Date: 2020-02-07 10:20+0100\n"
|
||||||
"Last-Translator: Daniel Mustieles <daniel.mustieles@gmail.com>\n"
|
"Last-Translator: Daniel Mustieles <daniel.mustieles@gmail.com>\n"
|
||||||
"Language-Team: Spanish - Spain <gnome-es-list@gnome.org>\n"
|
"Language-Team: Spanish - Spain <gnome-es-list@gnome.org>\n"
|
||||||
"Language: es_ES\n"
|
"Language: es_ES\n"
|
||||||
@@ -44,12 +44,12 @@ msgstr "Mostrar todas las aplicaciones"
|
|||||||
msgid "Open the application menu"
|
msgid "Open the application menu"
|
||||||
msgstr "Abrir el menú de la aplicación"
|
msgstr "Abrir el menú de la aplicación"
|
||||||
|
|
||||||
#: data/gnome-shell-extension-prefs.desktop.in.in:4
|
#: data/org.gnome.Extensions.desktop.in.in:4 js/extensionPrefs/main.js:218
|
||||||
#: js/extensionPrefs/main.js:209
|
#: js/extensionPrefs/ui/extensions-window.ui:61
|
||||||
msgid "Shell Extensions"
|
msgid "Extensions"
|
||||||
msgstr "Extensiones de la Shell"
|
msgstr "Extensiones"
|
||||||
|
|
||||||
#: data/gnome-shell-extension-prefs.desktop.in.in:5
|
#: data/org.gnome.Extensions.desktop.in.in:7
|
||||||
msgid "Configure GNOME Shell Extensions"
|
msgid "Configure GNOME Shell Extensions"
|
||||||
msgstr "Configurar las extensiones de GNOME Shell"
|
msgstr "Configurar las extensiones de GNOME Shell"
|
||||||
|
|
||||||
@@ -410,11 +410,47 @@ msgstr ""
|
|||||||
msgid "Network Login"
|
msgid "Network Login"
|
||||||
msgstr "Inicio de sesión de la red"
|
msgstr "Inicio de sesión de la red"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:102 js/extensionPrefs/main.js:525
|
#: js/extensionPrefs/main.js:140
|
||||||
|
#, javascript-format
|
||||||
|
msgid "Remove “%s”?"
|
||||||
|
msgstr "¿Quitar «%s»?"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:141
|
||||||
|
msgid ""
|
||||||
|
"If you remove the extension, you need to return to download it if you want "
|
||||||
|
"to enable it again"
|
||||||
|
msgstr ""
|
||||||
|
"Si quita la extensión necesitará volver a descargarla si quiere activarla de "
|
||||||
|
"nuevo"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:144 js/gdm/authPrompt.js:170
|
||||||
|
#: js/ui/audioDeviceSelection.js:57 js/ui/components/networkAgent.js:107
|
||||||
|
#: js/ui/components/polkitAgent.js:139 js/ui/endSessionDialog.js:374
|
||||||
|
#: js/ui/extensionDownloader.js:166 js/ui/shellMountOperation.js:376
|
||||||
|
#: js/ui/shellMountOperation.js:386 js/ui/status/network.js:910
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Cancelar"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:145
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Quitar"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:217
|
||||||
|
msgid "translator-credits"
|
||||||
|
msgstr ""
|
||||||
|
"Daniel Mustieles <daniel.mustieles@gmail.com>, 2010-2020\n"
|
||||||
|
"Benjamín Valero Espinosa <benjavalero@gmail.com>, 2011\n"
|
||||||
|
"Jorge González <jorgegonz@svn.gnome.org>, 2009, 2010, 2011"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:219
|
||||||
|
msgid "Manage your GNOME Extensions"
|
||||||
|
msgstr "Gestionar sus extensiones de GNOME Shell"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:261 js/extensionPrefs/ui/extensions-window.ui:222
|
||||||
msgid "Something’s gone wrong"
|
msgid "Something’s gone wrong"
|
||||||
msgstr "Algo ha fallado"
|
msgstr "Algo ha fallado"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:109
|
#: js/extensionPrefs/main.js:268
|
||||||
msgid ""
|
msgid ""
|
||||||
"We’re very sorry, but there’s been a problem: the settings for this "
|
"We’re very sorry, but there’s been a problem: the settings for this "
|
||||||
"extension can’t be displayed. We recommend that you report the issue to the "
|
"extension can’t be displayed. We recommend that you report the issue to the "
|
||||||
@@ -423,39 +459,95 @@ msgstr ""
|
|||||||
"Ha habido un problema: no se puede mostrar la configuración para esta "
|
"Ha habido un problema: no se puede mostrar la configuración para esta "
|
||||||
"extensión. Se recomienda que informe del error a los autores de la extensión."
|
"extensión. Se recomienda que informe del error a los autores de la extensión."
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:116
|
#: js/extensionPrefs/main.js:275
|
||||||
msgid "Technical Details"
|
msgid "Technical Details"
|
||||||
msgstr "Detalles técnicos"
|
msgstr "Detalles técnicos"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:151
|
#: js/extensionPrefs/main.js:310
|
||||||
msgid "Copy Error"
|
msgid "Copy Error"
|
||||||
msgstr "Copiar error"
|
msgstr "Copiar error"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:178
|
#: js/extensionPrefs/main.js:337
|
||||||
msgid "Homepage"
|
msgid "Homepage"
|
||||||
msgstr "Página web"
|
msgstr "Página web"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:179
|
#: js/extensionPrefs/main.js:338
|
||||||
msgid "Visit extension homepage"
|
msgid "Visit extension homepage"
|
||||||
msgstr "Visitar la página web de la extensión"
|
msgstr "Visitar la página web de la extensión"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:467
|
#: js/extensionPrefs/main.js:449
|
||||||
msgid "No Extensions Installed"
|
#, javascript-format
|
||||||
|
msgid "%d extension will be updated on next login."
|
||||||
|
msgid_plural "%d extensions will be updated on next login."
|
||||||
|
msgstr[0] "la próxima vez que inicie sesión se actualizará %d extensión"
|
||||||
|
msgstr[1] "la próxima vez que inicie sesión se actualizarán %d extensiones"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:100
|
||||||
|
#: subprojects/extensions-tool/src/command-create.c:211
|
||||||
|
#: subprojects/extensions-tool/src/main.c:173
|
||||||
|
msgid "Description"
|
||||||
|
msgstr "Descripción"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:123
|
||||||
|
#: subprojects/extensions-tool/src/main.c:185
|
||||||
|
msgid "Version"
|
||||||
|
msgstr "Versión"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:151
|
||||||
|
msgid "Author"
|
||||||
|
msgstr "Autor"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:175
|
||||||
|
msgid "Website"
|
||||||
|
msgstr "Página web"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:192
|
||||||
|
msgid "Remove…"
|
||||||
|
msgstr "Quitar…"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:8
|
||||||
|
msgid "Help"
|
||||||
|
msgstr "Ayuda"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:12
|
||||||
|
msgid "About Extensions"
|
||||||
|
msgstr "Acerca de extensiones"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:27
|
||||||
|
msgid ""
|
||||||
|
"To find and add extensions, visit <a href=\"https://extensions.gnome.org"
|
||||||
|
"\">extensions.gnome.org</a>."
|
||||||
|
msgstr ""
|
||||||
|
"Para buscar y añadir extensiones visite <a href=\"https://extensions.gnome."
|
||||||
|
"org\">extensions.gnome.org</a>."
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:35
|
||||||
|
msgid "Warning"
|
||||||
|
msgstr "Advertencia"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:46
|
||||||
|
msgid ""
|
||||||
|
"Extensions can cause system issues, including performance problems. If you "
|
||||||
|
"encounter problems with your system, it is recommended to disable all "
|
||||||
|
"extensions."
|
||||||
|
msgstr ""
|
||||||
|
"Las extensiones pueden causar problemas en el sistema, incluso problemas de "
|
||||||
|
"rendimiento. Si tiene problemas con sus sistema se recomienda desactivar "
|
||||||
|
"todas las extensiones."
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:133
|
||||||
|
msgid "Manually Installed"
|
||||||
|
msgstr "Instalada manualmente"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:157
|
||||||
|
msgid "Built-In"
|
||||||
|
msgstr "Integrada"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:198
|
||||||
|
msgid "No Installed Extensions"
|
||||||
msgstr "No hay extensiones instaladas"
|
msgstr "No hay extensiones instaladas"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:477
|
#: js/extensionPrefs/ui/extensions-window.ui:234
|
||||||
msgid ""
|
|
||||||
"Extensions can be installed through Software or <a href=\"https://extensions."
|
|
||||||
"gnome.org\">extensions.gnome.org</a>."
|
|
||||||
msgstr ""
|
|
||||||
"Las extensiones se puede instalar mediante software o <a href=\"https://"
|
|
||||||
"extensions.gnome.org\">extensions.gnome.org</a>."
|
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:492
|
|
||||||
msgid "Browse in Software"
|
|
||||||
msgstr "Buscar en Software"
|
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:532
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"We’re very sorry, but it was not possible to get the list of installed "
|
"We’re very sorry, but it was not possible to get the list of installed "
|
||||||
"extensions. Make sure you are logged into GNOME and try again."
|
"extensions. Make sure you are logged into GNOME and try again."
|
||||||
@@ -463,24 +555,21 @@ msgstr ""
|
|||||||
"No es posible obtener la lista de extensiones instaladas. asegúrese de que "
|
"No es posible obtener la lista de extensiones instaladas. asegúrese de que "
|
||||||
"ha iniciado sesión en GNOME e inténtelo de nuevo."
|
"ha iniciado sesión en GNOME e inténtelo de nuevo."
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:174 js/ui/audioDeviceSelection.js:57
|
#: js/extensionPrefs/ui/extensions-window.ui:287
|
||||||
#: js/ui/components/networkAgent.js:129 js/ui/components/polkitAgent.js:138
|
#| msgid "Log Out"
|
||||||
#: js/ui/endSessionDialog.js:374 js/ui/extensionDownloader.js:190
|
msgid "Log Out…"
|
||||||
#: js/ui/shellMountOperation.js:381 js/ui/shellMountOperation.js:391
|
msgstr "Cerrar la sesión…"
|
||||||
#: js/ui/status/network.js:910
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr "Cancelar"
|
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:188 js/gdm/authPrompt.js:241 js/gdm/authPrompt.js:476
|
#: js/gdm/authPrompt.js:184 js/gdm/authPrompt.js:237 js/gdm/authPrompt.js:468
|
||||||
msgid "Next"
|
msgid "Next"
|
||||||
msgstr "Siguiente"
|
msgstr "Siguiente"
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:237 js/ui/shellMountOperation.js:385
|
#: js/gdm/authPrompt.js:233 js/ui/shellMountOperation.js:380
|
||||||
#: js/ui/unlockDialog.js:44
|
#: js/ui/unlockDialog.js:44
|
||||||
msgid "Unlock"
|
msgid "Unlock"
|
||||||
msgstr "Desbloquear"
|
msgstr "Desbloquear"
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:239
|
#: js/gdm/authPrompt.js:235
|
||||||
msgctxt "button"
|
msgctxt "button"
|
||||||
msgid "Sign In"
|
msgid "Sign In"
|
||||||
msgstr "Iniciar sesión"
|
msgstr "Iniciar sesión"
|
||||||
@@ -503,8 +592,8 @@ msgstr "(ej., usuario o %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:899 js/ui/components/networkAgent.js:256
|
#: js/gdm/loginDialog.js:899 js/ui/components/networkAgent.js:234
|
||||||
#: js/ui/components/networkAgent.js:279 js/ui/components/networkAgent.js:297
|
#: js/ui/components/networkAgent.js:257 js/ui/components/networkAgent.js:275
|
||||||
msgid "Username: "
|
msgid "Username: "
|
||||||
msgstr "Nombre de usuario:"
|
msgstr "Nombre de usuario:"
|
||||||
|
|
||||||
@@ -582,81 +671,78 @@ msgstr "cambiar;usuario"
|
|||||||
|
|
||||||
#. Translators: A list of keywords that match the lock orientation action, separated by semicolons
|
#. Translators: A list of keywords that match the lock orientation action, separated by semicolons
|
||||||
#: js/misc/systemActions.js:131
|
#: js/misc/systemActions.js:131
|
||||||
#| msgid "lock orientation;screen;rotation"
|
|
||||||
msgid "lock orientation;unlock orientation;screen;rotation"
|
msgid "lock orientation;unlock orientation;screen;rotation"
|
||||||
msgstr "bloquear orientación;desbloquear orientación;pantalla;rotación"
|
msgstr "bloquear orientación;desbloquear orientación;pantalla;rotación"
|
||||||
|
|
||||||
#: js/misc/systemActions.js:251
|
#: js/misc/systemActions.js:251
|
||||||
#| msgid "Lock Screen Rotation"
|
|
||||||
msgctxt "search-result"
|
msgctxt "search-result"
|
||||||
msgid "Unlock Screen Rotation"
|
msgid "Unlock Screen Rotation"
|
||||||
msgstr "Desbloquear la rotación de la pantalla"
|
msgstr "Desbloquear la rotación de la pantalla"
|
||||||
|
|
||||||
#: js/misc/systemActions.js:252
|
#: js/misc/systemActions.js:252
|
||||||
#| msgid "Lock Screen Rotation"
|
|
||||||
msgctxt "search-result"
|
msgctxt "search-result"
|
||||||
msgid "Lock Screen Rotation"
|
msgid "Lock Screen Rotation"
|
||||||
msgstr "Bloquear la rotación de la pantalla"
|
msgstr "Bloquear la rotación de la pantalla"
|
||||||
|
|
||||||
#: js/misc/util.js:116
|
#: js/misc/util.js:120
|
||||||
msgid "Command not found"
|
msgid "Command not found"
|
||||||
msgstr "Comando no encontrado"
|
msgstr "Comando no encontrado"
|
||||||
|
|
||||||
#. Replace "Error invoking GLib.shell_parse_argv: " with
|
#. Replace "Error invoking GLib.shell_parse_argv: " with
|
||||||
#. something nicer
|
#. something nicer
|
||||||
#: js/misc/util.js:152
|
#: js/misc/util.js:156
|
||||||
msgid "Could not parse command:"
|
msgid "Could not parse command:"
|
||||||
msgstr "No se pudo analizar el comando:"
|
msgstr "No se pudo analizar el comando:"
|
||||||
|
|
||||||
#: js/misc/util.js:160
|
#: js/misc/util.js:164
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Execution of “%s” failed:"
|
msgid "Execution of “%s” failed:"
|
||||||
msgstr "Falló la ejecución de «%s»:"
|
msgstr "Falló la ejecución de «%s»:"
|
||||||
|
|
||||||
#: js/misc/util.js:177
|
#: js/misc/util.js:181
|
||||||
msgid "Just now"
|
msgid "Just now"
|
||||||
msgstr "Ahora mismo"
|
msgstr "Ahora mismo"
|
||||||
|
|
||||||
#: js/misc/util.js:179
|
#: js/misc/util.js:183
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d minute ago"
|
msgid "%d minute ago"
|
||||||
msgid_plural "%d minutes ago"
|
msgid_plural "%d minutes ago"
|
||||||
msgstr[0] "Hace %d minuto"
|
msgstr[0] "Hace %d minuto"
|
||||||
msgstr[1] "Hace %d minutos"
|
msgstr[1] "Hace %d minutos"
|
||||||
|
|
||||||
#: js/misc/util.js:183
|
#: js/misc/util.js:187
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d hour ago"
|
msgid "%d hour ago"
|
||||||
msgid_plural "%d hours ago"
|
msgid_plural "%d hours ago"
|
||||||
msgstr[0] "Hace %d hora"
|
msgstr[0] "Hace %d hora"
|
||||||
msgstr[1] "Hace %d horas"
|
msgstr[1] "Hace %d horas"
|
||||||
|
|
||||||
#: js/misc/util.js:187
|
#: js/misc/util.js:191
|
||||||
msgid "Yesterday"
|
msgid "Yesterday"
|
||||||
msgstr "Ayer"
|
msgstr "Ayer"
|
||||||
|
|
||||||
#: js/misc/util.js:189
|
#: js/misc/util.js:193
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d day ago"
|
msgid "%d day ago"
|
||||||
msgid_plural "%d days ago"
|
msgid_plural "%d days ago"
|
||||||
msgstr[0] "Hace %d día"
|
msgstr[0] "Hace %d día"
|
||||||
msgstr[1] "Hace %d días"
|
msgstr[1] "Hace %d días"
|
||||||
|
|
||||||
#: js/misc/util.js:193
|
#: js/misc/util.js:197
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d week ago"
|
msgid "%d week ago"
|
||||||
msgid_plural "%d weeks ago"
|
msgid_plural "%d weeks ago"
|
||||||
msgstr[0] "Hace %d semana"
|
msgstr[0] "Hace %d semana"
|
||||||
msgstr[1] "Hace %d semanas"
|
msgstr[1] "Hace %d semanas"
|
||||||
|
|
||||||
#: js/misc/util.js:197
|
#: js/misc/util.js:201
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d month ago"
|
msgid "%d month ago"
|
||||||
msgid_plural "%d months ago"
|
msgid_plural "%d months ago"
|
||||||
msgstr[0] "Hace %d mes"
|
msgstr[0] "Hace %d mes"
|
||||||
msgstr[1] "Hace %d meses"
|
msgstr[1] "Hace %d meses"
|
||||||
|
|
||||||
#: js/misc/util.js:200
|
#: js/misc/util.js:204
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d year ago"
|
msgid "%d year ago"
|
||||||
msgid_plural "%d years ago"
|
msgid_plural "%d years ago"
|
||||||
@@ -664,20 +750,20 @@ msgstr[0] "Hace %d año"
|
|||||||
msgstr[1] "Hace %d años"
|
msgstr[1] "Hace %d años"
|
||||||
|
|
||||||
#. Translators: Time in 24h format
|
#. Translators: Time in 24h format
|
||||||
#: js/misc/util.js:233
|
#: js/misc/util.js:237
|
||||||
msgid "%H∶%M"
|
msgid "%H∶%M"
|
||||||
msgstr "%H∶%M"
|
msgstr "%H∶%M"
|
||||||
|
|
||||||
#. Translators: this is the word "Yesterday" followed by a
|
#. Translators: this is the word "Yesterday" followed by a
|
||||||
#. time string in 24h format. i.e. "Yesterday, 14:30"
|
#. time string in 24h format. i.e. "Yesterday, 14:30"
|
||||||
#: js/misc/util.js:239
|
#: js/misc/util.js:243
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "Yesterday, %H∶%M"
|
msgid "Yesterday, %H∶%M"
|
||||||
msgstr "Ayer, %H∶%M"
|
msgstr "Ayer, %H∶%M"
|
||||||
|
|
||||||
#. Translators: this is the week day name followed by a time
|
#. Translators: this is the week day name followed by a time
|
||||||
#. string in 24h format. i.e. "Monday, 14:30"
|
#. string in 24h format. i.e. "Monday, 14:30"
|
||||||
#: js/misc/util.js:245
|
#: js/misc/util.js:249
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%A, %H∶%M"
|
msgid "%A, %H∶%M"
|
||||||
msgstr "%A, %H∶%M"
|
msgstr "%A, %H∶%M"
|
||||||
@@ -685,7 +771,7 @@ msgstr "%A, %H∶%M"
|
|||||||
#. Translators: this is the month name and day number
|
#. Translators: this is the month name and day number
|
||||||
#. followed by a time string in 24h format.
|
#. followed by a time string in 24h format.
|
||||||
#. i.e. "May 25, 14:30"
|
#. i.e. "May 25, 14:30"
|
||||||
#: js/misc/util.js:251
|
#: js/misc/util.js:255
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d, %H∶%M"
|
msgid "%B %-d, %H∶%M"
|
||||||
msgstr "%d de %B, %H∶%M"
|
msgstr "%d de %B, %H∶%M"
|
||||||
@@ -693,7 +779,7 @@ msgstr "%d de %B, %H∶%M"
|
|||||||
#. Translators: this is the month name, day number, year
|
#. Translators: this is the month name, day number, year
|
||||||
#. number followed by a time string in 24h format.
|
#. number followed by a time string in 24h format.
|
||||||
#. i.e. "May 25 2012, 14:30"
|
#. i.e. "May 25 2012, 14:30"
|
||||||
#: js/misc/util.js:257
|
#: js/misc/util.js:261
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d %Y, %H∶%M"
|
msgid "%B %-d %Y, %H∶%M"
|
||||||
msgstr "%d de %B de %Y, %H∶%M"
|
msgstr "%d de %B de %Y, %H∶%M"
|
||||||
@@ -701,20 +787,20 @@ msgstr "%d de %B de %Y, %H∶%M"
|
|||||||
#. Show only the time if date is on today
|
#. Show only the time if date is on today
|
||||||
#. eslint-disable-line no-lonely-if
|
#. eslint-disable-line no-lonely-if
|
||||||
#. Translators: Time in 12h format
|
#. Translators: Time in 12h format
|
||||||
#: js/misc/util.js:262
|
#: js/misc/util.js:266
|
||||||
msgid "%l∶%M %p"
|
msgid "%l∶%M %p"
|
||||||
msgstr "%l∶%M %p"
|
msgstr "%l∶%M %p"
|
||||||
|
|
||||||
#. Translators: this is the word "Yesterday" followed by a
|
#. Translators: this is the word "Yesterday" followed by a
|
||||||
#. time string in 12h format. i.e. "Yesterday, 2:30 pm"
|
#. time string in 12h format. i.e. "Yesterday, 2:30 pm"
|
||||||
#: js/misc/util.js:268
|
#: js/misc/util.js:272
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "Yesterday, %l∶%M %p"
|
msgid "Yesterday, %l∶%M %p"
|
||||||
msgstr "Ayer a las %l∶%M %p"
|
msgstr "Ayer a las %l∶%M %p"
|
||||||
|
|
||||||
#. Translators: this is the week day name followed by a time
|
#. Translators: this is the week day name followed by a time
|
||||||
#. string in 12h format. i.e. "Monday, 2:30 pm"
|
#. string in 12h format. i.e. "Monday, 2:30 pm"
|
||||||
#: js/misc/util.js:274
|
#: js/misc/util.js:278
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%A, %l∶%M %p"
|
msgid "%A, %l∶%M %p"
|
||||||
msgstr "%A, %l∶%M %p"
|
msgstr "%A, %l∶%M %p"
|
||||||
@@ -722,7 +808,7 @@ msgstr "%A, %l∶%M %p"
|
|||||||
#. Translators: this is the month name and day number
|
#. Translators: this is the month name and day number
|
||||||
#. followed by a time string in 12h format.
|
#. followed by a time string in 12h format.
|
||||||
#. i.e. "May 25, 2:30 pm"
|
#. i.e. "May 25, 2:30 pm"
|
||||||
#: js/misc/util.js:280
|
#: js/misc/util.js:284
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d, %l∶%M %p"
|
msgid "%B %-d, %l∶%M %p"
|
||||||
msgstr "%d de %B, %l∶%M %p"
|
msgstr "%d de %B, %l∶%M %p"
|
||||||
@@ -730,17 +816,17 @@ msgstr "%d de %B, %l∶%M %p"
|
|||||||
#. Translators: this is the month name, day number, year
|
#. Translators: this is the month name, day number, year
|
||||||
#. number followed by a time string in 12h format.
|
#. number followed by a time string in 12h format.
|
||||||
#. i.e. "May 25 2012, 2:30 pm"
|
#. i.e. "May 25 2012, 2:30 pm"
|
||||||
#: js/misc/util.js:286
|
#: js/misc/util.js:290
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d %Y, %l∶%M %p"
|
msgid "%B %-d %Y, %l∶%M %p"
|
||||||
msgstr "%d de %B de %Y, %l∶%M %p"
|
msgstr "%d de %B de %Y, %l∶%M %p"
|
||||||
|
|
||||||
#. TRANSLATORS: this is the title of the wifi captive portal login window
|
#. TRANSLATORS: this is the title of the wifi captive portal login window
|
||||||
#: js/portalHelper/main.js:40
|
#: js/portalHelper/main.js:42
|
||||||
msgid "Hotspot Login"
|
msgid "Hotspot Login"
|
||||||
msgstr "Inicio de sesión en el punto de acceso"
|
msgstr "Inicio de sesión en el punto de acceso"
|
||||||
|
|
||||||
#: js/portalHelper/main.js:86
|
#: js/portalHelper/main.js:88
|
||||||
msgid ""
|
msgid ""
|
||||||
"Your connection to this hotspot login is not secure. Passwords or other "
|
"Your connection to this hotspot login is not secure. Passwords or other "
|
||||||
"information you enter on this page can be viewed by people nearby."
|
"information you enter on this page can be viewed by people nearby."
|
||||||
@@ -758,44 +844,44 @@ msgstr "Denegar acceso"
|
|||||||
msgid "Grant Access"
|
msgid "Grant Access"
|
||||||
msgstr "Conceder acceso"
|
msgstr "Conceder acceso"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:904
|
#: js/ui/appDisplay.js:906
|
||||||
msgid "Unnamed Folder"
|
msgid "Unnamed Folder"
|
||||||
msgstr "Carpeta sin nombre"
|
msgstr "Carpeta sin nombre"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:927
|
#: js/ui/appDisplay.js:929
|
||||||
msgid "Frequently used applications will appear here"
|
msgid "Frequently used applications will appear here"
|
||||||
msgstr "Las aplicaciones usadas frecuentemente aparecerán aquí"
|
msgstr "Las aplicaciones usadas frecuentemente aparecerán aquí"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1062
|
#: js/ui/appDisplay.js:1064
|
||||||
msgid "Frequent"
|
msgid "Frequent"
|
||||||
msgstr "Frecuentes"
|
msgstr "Frecuentes"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1069
|
#: js/ui/appDisplay.js:1071
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "Todas"
|
msgstr "Todas"
|
||||||
|
|
||||||
#. Translators: This is the heading of a list of open windows
|
#. Translators: This is the heading of a list of open windows
|
||||||
#: js/ui/appDisplay.js:2452 js/ui/panel.js:75
|
#: js/ui/appDisplay.js:2454 js/ui/panel.js:75
|
||||||
msgid "Open Windows"
|
msgid "Open Windows"
|
||||||
msgstr "Ventanas abiertas"
|
msgstr "Ventanas abiertas"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2472 js/ui/panel.js:82
|
#: js/ui/appDisplay.js:2474 js/ui/panel.js:82
|
||||||
msgid "New Window"
|
msgid "New Window"
|
||||||
msgstr "Ventana nueva"
|
msgstr "Ventana nueva"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2483
|
#: js/ui/appDisplay.js:2485
|
||||||
msgid "Launch using Dedicated Graphics Card"
|
msgid "Launch using Dedicated Graphics Card"
|
||||||
msgstr "Lanzar usando la tarjeta gráfica dedicada"
|
msgstr "Lanzar usando la tarjeta gráfica dedicada"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2511 js/ui/dash.js:239
|
#: js/ui/appDisplay.js:2513 js/ui/dash.js:239
|
||||||
msgid "Remove from Favorites"
|
msgid "Remove from Favorites"
|
||||||
msgstr "Quitar de los favoritos"
|
msgstr "Quitar de los favoritos"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2517
|
#: js/ui/appDisplay.js:2519
|
||||||
msgid "Add to Favorites"
|
msgid "Add to Favorites"
|
||||||
msgstr "Añadir a los favoritos"
|
msgstr "Añadir a los favoritos"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2527 js/ui/panel.js:93
|
#: js/ui/appDisplay.js:2529 js/ui/panel.js:93
|
||||||
msgid "Show Details"
|
msgid "Show Details"
|
||||||
msgstr "Mostrar detalles"
|
msgstr "Mostrar detalles"
|
||||||
|
|
||||||
@@ -1013,54 +1099,47 @@ msgstr "La versión de udisks instalada no soporta la configuración PIM"
|
|||||||
msgid "Open with %s"
|
msgid "Open with %s"
|
||||||
msgstr "Abrir con %s"
|
msgstr "Abrir con %s"
|
||||||
|
|
||||||
#: js/ui/components/keyring.js:70 js/ui/components/polkitAgent.js:278
|
#: js/ui/components/networkAgent.js:89
|
||||||
msgid "Password:"
|
|
||||||
msgstr "Contraseña:"
|
|
||||||
|
|
||||||
#: js/ui/components/keyring.js:104
|
|
||||||
msgid "Type again:"
|
|
||||||
msgstr "Escriba de nuevo:"
|
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:115
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Alternatively you can connect by pushing the “WPS” button on your router."
|
"Alternatively you can connect by pushing the “WPS” button on your router."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Alternativamente puede conectarse pulsando el botón «WPS» de su router."
|
"Alternativamente puede conectarse pulsando el botón «WPS» de su router."
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:123 js/ui/status/network.js:223
|
#: js/ui/components/networkAgent.js:101 js/ui/status/network.js:223
|
||||||
#: js/ui/status/network.js:314 js/ui/status/network.js:913
|
#: js/ui/status/network.js:314 js/ui/status/network.js:913
|
||||||
msgid "Connect"
|
msgid "Connect"
|
||||||
msgstr "Conectar"
|
msgstr "Conectar"
|
||||||
|
|
||||||
#. Cisco LEAP
|
#. Cisco LEAP
|
||||||
#: js/ui/components/networkAgent.js:224 js/ui/components/networkAgent.js:236
|
#: js/ui/components/networkAgent.js:202 js/ui/components/networkAgent.js:214
|
||||||
#: js/ui/components/networkAgent.js:260 js/ui/components/networkAgent.js:281
|
#: js/ui/components/networkAgent.js:238 js/ui/components/networkAgent.js:259
|
||||||
#: js/ui/components/networkAgent.js:301 js/ui/components/networkAgent.js:311
|
#: js/ui/components/networkAgent.js:279 js/ui/components/networkAgent.js:289
|
||||||
msgid "Password: "
|
msgid "Password: "
|
||||||
msgstr "Contraseña: "
|
msgstr "Contraseña: "
|
||||||
|
|
||||||
#. static WEP
|
#. static WEP
|
||||||
#: js/ui/components/networkAgent.js:229
|
#: js/ui/components/networkAgent.js:207
|
||||||
msgid "Key: "
|
msgid "Key: "
|
||||||
msgstr "Clave:"
|
msgstr "Clave:"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:264 js/ui/components/networkAgent.js:287
|
#: js/ui/components/networkAgent.js:242 js/ui/components/networkAgent.js:265
|
||||||
msgid "Private key password: "
|
msgid "Private key password: "
|
||||||
msgstr "Contraseña de la clave privada:"
|
msgstr "Contraseña de la clave privada:"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:285
|
#: js/ui/components/networkAgent.js:263
|
||||||
msgid "Identity: "
|
msgid "Identity: "
|
||||||
msgstr "Identidad:"
|
msgstr "Identidad:"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:299
|
#: js/ui/components/networkAgent.js:277
|
||||||
msgid "Service: "
|
msgid "Service: "
|
||||||
msgstr "Servicio:"
|
msgstr "Servicio:"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:328 js/ui/components/networkAgent.js:703
|
#: js/ui/components/networkAgent.js:306 js/ui/components/networkAgent.js:334
|
||||||
msgid "Authentication required by wireless network"
|
#: js/ui/components/networkAgent.js:681 js/ui/components/networkAgent.js:702
|
||||||
msgstr "La red inalámbrica requiere autenticación"
|
msgid "Authentication required"
|
||||||
|
msgstr "Autenticación requerida"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:329 js/ui/components/networkAgent.js:704
|
#: js/ui/components/networkAgent.js:307 js/ui/components/networkAgent.js:682
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Passwords or encryption keys are required to access the wireless network "
|
"Passwords or encryption keys are required to access the wireless network "
|
||||||
@@ -1069,58 +1148,54 @@ msgstr ""
|
|||||||
"Se necesitan contraseñas o claves de cifrado para acceder a la red "
|
"Se necesitan contraseñas o claves de cifrado para acceder a la red "
|
||||||
"inalámbrica «%s»."
|
"inalámbrica «%s»."
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:333 js/ui/components/networkAgent.js:708
|
#: js/ui/components/networkAgent.js:311 js/ui/components/networkAgent.js:686
|
||||||
msgid "Wired 802.1X authentication"
|
msgid "Wired 802.1X authentication"
|
||||||
msgstr "Autenticación 802.1X cableada"
|
msgstr "Autenticación 802.1X cableada"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:335
|
#: js/ui/components/networkAgent.js:313
|
||||||
msgid "Network name: "
|
msgid "Network name: "
|
||||||
msgstr "Nombre de la red: "
|
msgstr "Nombre de la red: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:340 js/ui/components/networkAgent.js:712
|
#: js/ui/components/networkAgent.js:318 js/ui/components/networkAgent.js:690
|
||||||
msgid "DSL authentication"
|
msgid "DSL authentication"
|
||||||
msgstr "Autenticación DSL"
|
msgstr "Autenticación DSL"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:347 js/ui/components/networkAgent.js:717
|
#: js/ui/components/networkAgent.js:325 js/ui/components/networkAgent.js:695
|
||||||
msgid "PIN code required"
|
msgid "PIN code required"
|
||||||
msgstr "Código PIN requerido"
|
msgstr "Código PIN requerido"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:348 js/ui/components/networkAgent.js:718
|
#: js/ui/components/networkAgent.js:326 js/ui/components/networkAgent.js:696
|
||||||
msgid "PIN code is needed for the mobile broadband device"
|
msgid "PIN code is needed for the mobile broadband device"
|
||||||
msgstr "Se necesita un código PIN para el dispositivo de banda ancha móvil"
|
msgstr "Se necesita un código PIN para el dispositivo de banda ancha móvil"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:349
|
#: js/ui/components/networkAgent.js:327
|
||||||
msgid "PIN: "
|
msgid "PIN: "
|
||||||
msgstr "PIN: "
|
msgstr "PIN: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:356 js/ui/components/networkAgent.js:724
|
#: js/ui/components/networkAgent.js:335 js/ui/components/networkAgent.js:687
|
||||||
msgid "Mobile broadband network password"
|
#: js/ui/components/networkAgent.js:691 js/ui/components/networkAgent.js:703
|
||||||
msgstr "Contraseña de la red de banda ancha móvil"
|
#: js/ui/components/networkAgent.js:707
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:357 js/ui/components/networkAgent.js:709
|
|
||||||
#: js/ui/components/networkAgent.js:713 js/ui/components/networkAgent.js:725
|
|
||||||
#: js/ui/components/networkAgent.js:729
|
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "A password is required to connect to “%s”."
|
msgid "A password is required to connect to “%s”."
|
||||||
msgstr "Se requiere una contraseña para conectarse a «%s»."
|
msgstr "Se requiere una contraseña para conectarse a «%s»."
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:692 js/ui/status/network.js:1688
|
#: js/ui/components/networkAgent.js:670 js/ui/status/network.js:1688
|
||||||
msgid "Network Manager"
|
msgid "Network Manager"
|
||||||
msgstr "Gestor de la red"
|
msgstr "Gestor de la red"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:728
|
#: js/ui/components/networkAgent.js:706
|
||||||
msgid "VPN password"
|
msgid "VPN password"
|
||||||
msgstr "Contraseña de la VPN"
|
msgstr "Contraseña de la VPN"
|
||||||
|
|
||||||
#: js/ui/components/polkitAgent.js:41
|
#: js/ui/components/polkitAgent.js:39
|
||||||
msgid "Authentication Required"
|
msgid "Authentication Required"
|
||||||
msgstr "Se necesita autenticación"
|
msgstr "Se necesita autenticación"
|
||||||
|
|
||||||
#: js/ui/components/polkitAgent.js:81
|
#: js/ui/components/polkitAgent.js:80
|
||||||
msgid "Administrator"
|
msgid "Administrator"
|
||||||
msgstr "Administrador"
|
msgstr "Administrador"
|
||||||
|
|
||||||
#: js/ui/components/polkitAgent.js:141
|
#: js/ui/components/polkitAgent.js:142
|
||||||
msgid "Authenticate"
|
msgid "Authenticate"
|
||||||
msgstr "Autenticar"
|
msgstr "Autenticar"
|
||||||
|
|
||||||
@@ -1128,10 +1203,14 @@ msgstr "Autenticar"
|
|||||||
#. * requested authentication was not gained; this can happen
|
#. * requested authentication was not gained; this can happen
|
||||||
#. * because of an authentication error (like invalid password),
|
#. * because of an authentication error (like invalid password),
|
||||||
#. * for instance.
|
#. * for instance.
|
||||||
#: js/ui/components/polkitAgent.js:259 js/ui/shellMountOperation.js:365
|
#: js/ui/components/polkitAgent.js:254 js/ui/shellMountOperation.js:402
|
||||||
msgid "Sorry, that didn’t work. Please try again."
|
msgid "Sorry, that didn’t work. Please try again."
|
||||||
msgstr "Eso no ha funcionado. Inténtelo de nuevo."
|
msgstr "Eso no ha funcionado. Inténtelo de nuevo."
|
||||||
|
|
||||||
|
#: js/ui/components/polkitAgent.js:277 js/ui/shellMountOperation.js:326
|
||||||
|
msgid "Enter Password…"
|
||||||
|
msgstr "Introduzca la contraseña…"
|
||||||
|
|
||||||
#. Translators: this is the other person changing their old IM name to their new
|
#. Translators: this is the other person changing their old IM name to their new
|
||||||
#. IM name.
|
#. IM name.
|
||||||
#: js/ui/components/telepathyClient.js:787
|
#: js/ui/components/telepathyClient.js:787
|
||||||
@@ -1347,19 +1426,27 @@ msgstr "%s (remoto)"
|
|||||||
msgid "%s (console)"
|
msgid "%s (console)"
|
||||||
msgstr "%s (consola)"
|
msgstr "%s (consola)"
|
||||||
|
|
||||||
#: js/ui/extensionDownloader.js:194
|
#: js/ui/extensionDownloader.js:170
|
||||||
msgid "Install"
|
msgid "Install"
|
||||||
msgstr "Instalar"
|
msgstr "Instalar"
|
||||||
|
|
||||||
#: js/ui/extensionDownloader.js:200
|
#: js/ui/extensionDownloader.js:176
|
||||||
msgid "Install Extension"
|
msgid "Install Extension"
|
||||||
msgstr "Instalar extensión"
|
msgstr "Instalar extensión"
|
||||||
|
|
||||||
#: js/ui/extensionDownloader.js:201
|
#: js/ui/extensionDownloader.js:177
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Download and install “%s” from extensions.gnome.org?"
|
msgid "Download and install “%s” from extensions.gnome.org?"
|
||||||
msgstr "¿Descargar e instalar «%s» desde extensions.gnome.org?"
|
msgstr "¿Descargar e instalar «%s» desde extensions.gnome.org?"
|
||||||
|
|
||||||
|
#: js/ui/extensionSystem.js:228
|
||||||
|
msgid "Extension Updates Available"
|
||||||
|
msgstr "Actualizaciones de extensiones disponibles"
|
||||||
|
|
||||||
|
#: js/ui/extensionSystem.js:229
|
||||||
|
msgid "Extension updates are ready to be installed."
|
||||||
|
msgstr "Las actualizaciones de las extensiones están listas para instalarse."
|
||||||
|
|
||||||
#: js/ui/inhibitShortcutsDialog.js:79
|
#: js/ui/inhibitShortcutsDialog.js:79
|
||||||
msgid "Allow inhibiting shortcuts"
|
msgid "Allow inhibiting shortcuts"
|
||||||
msgstr "Permitir inhibir los atajos"
|
msgstr "Permitir inhibir los atajos"
|
||||||
@@ -1654,7 +1741,7 @@ msgid_plural "%d new notifications"
|
|||||||
msgstr[0] "%d notificación nueva"
|
msgstr[0] "%d notificación nueva"
|
||||||
msgstr[1] "%d notificaciones nuevas"
|
msgstr[1] "%d notificaciones nuevas"
|
||||||
|
|
||||||
#: js/ui/screenShield.js:454 js/ui/status/system.js:98
|
#: js/ui/screenShield.js:454 js/ui/status/system.js:103
|
||||||
msgid "Lock"
|
msgid "Lock"
|
||||||
msgstr "Bloquear"
|
msgstr "Bloquear"
|
||||||
|
|
||||||
@@ -1712,20 +1799,20 @@ msgstr "Ocultar texto"
|
|||||||
msgid "Caps lock is on."
|
msgid "Caps lock is on."
|
||||||
msgstr "Bloq. Mayús. está activo"
|
msgstr "Bloq. Mayús. está activo"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:287
|
#: js/ui/shellMountOperation.js:285
|
||||||
msgid "Hidden Volume"
|
msgid "Hidden Volume"
|
||||||
msgstr "Ocultar volumen"
|
msgstr "Ocultar volumen"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:290
|
#: js/ui/shellMountOperation.js:288
|
||||||
msgid "Windows System Volume"
|
msgid "Windows System Volume"
|
||||||
msgstr "Volumen de sistema Windows"
|
msgstr "Volumen de sistema Windows"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:293
|
#: js/ui/shellMountOperation.js:291
|
||||||
msgid "Uses Keyfiles"
|
msgid "Uses Keyfiles"
|
||||||
msgstr "Usa archivos de claves"
|
msgstr "Usa archivos de claves"
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:299
|
#: js/ui/shellMountOperation.js:298
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead."
|
"To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead."
|
||||||
@@ -1734,35 +1821,31 @@ msgstr ""
|
|||||||
"%s</i> en su lugar."
|
"%s</i> en su lugar."
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:306
|
#: js/ui/shellMountOperation.js:306
|
||||||
msgid "PIM Number"
|
msgid "Enter PIM Number…"
|
||||||
msgstr "Número PIM"
|
msgstr "Introduzca el número PIM…"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:325
|
#: js/ui/shellMountOperation.js:365
|
||||||
msgid "The PIM must be a number or empty."
|
|
||||||
msgstr "El PIM debe ser un número o estar vacío."
|
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:336
|
|
||||||
msgid "Password"
|
|
||||||
msgstr "Contraseña"
|
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:372
|
|
||||||
msgid "Remember Password"
|
msgid "Remember Password"
|
||||||
msgstr "Recordar contraseña"
|
msgstr "Recordar contraseña"
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:396
|
#: js/ui/shellMountOperation.js:391
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Open %s"
|
msgid "Open %s"
|
||||||
msgstr "Abrir %s"
|
msgstr "Abrir %s"
|
||||||
|
|
||||||
|
#: js/ui/shellMountOperation.js:423
|
||||||
|
msgid "The PIM must be a number or empty."
|
||||||
|
msgstr "El PIM debe ser un número o estar vacío."
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:468
|
#: js/ui/shellMountOperation.js:469
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Unable to start %s"
|
msgid "Unable to start %s"
|
||||||
msgstr "No se puede iniciar %s"
|
msgstr "No se puede iniciar %s"
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:470
|
#: js/ui/shellMountOperation.js:471
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Couldn’t find the %s application"
|
msgid "Couldn’t find the %s application"
|
||||||
msgstr "No se pudo encontrar la aplicación %s"
|
msgstr "No se pudo encontrar la aplicación %s"
|
||||||
@@ -2178,23 +2261,23 @@ msgstr "Apagar"
|
|||||||
msgid "Airplane Mode On"
|
msgid "Airplane Mode On"
|
||||||
msgstr "Modo avión activado"
|
msgstr "Modo avión activado"
|
||||||
|
|
||||||
#: js/ui/status/system.js:111
|
#: js/ui/status/system.js:116
|
||||||
msgid "Power Off / Log Out"
|
msgid "Power Off / Log Out"
|
||||||
msgstr "Apagar / cerrar sesión"
|
msgstr "Apagar / cerrar sesión"
|
||||||
|
|
||||||
#: js/ui/status/system.js:114
|
#: js/ui/status/system.js:119
|
||||||
msgid "Log Out"
|
msgid "Log Out"
|
||||||
msgstr "Cerrar la sesión"
|
msgstr "Cerrar la sesión"
|
||||||
|
|
||||||
#: js/ui/status/system.js:126
|
#: js/ui/status/system.js:131
|
||||||
msgid "Switch User…"
|
msgid "Switch User…"
|
||||||
msgstr "Cambiar de usuario…"
|
msgstr "Cambiar de usuario…"
|
||||||
|
|
||||||
#: js/ui/status/system.js:140
|
#: js/ui/status/system.js:145
|
||||||
msgid "Suspend"
|
msgid "Suspend"
|
||||||
msgstr "Suspender"
|
msgstr "Suspender"
|
||||||
|
|
||||||
#: js/ui/status/system.js:152
|
#: js/ui/status/system.js:157
|
||||||
msgid "Power Off…"
|
msgid "Power Off…"
|
||||||
msgstr "Apagar…"
|
msgstr "Apagar…"
|
||||||
|
|
||||||
@@ -2290,22 +2373,23 @@ msgstr "Buscar"
|
|||||||
msgid "“%s” is ready"
|
msgid "“%s” is ready"
|
||||||
msgstr "«%s» está preparado"
|
msgstr "«%s» está preparado"
|
||||||
|
|
||||||
#: js/ui/windowManager.js:54
|
#. Translators: This string should be shorter than 30 characters
|
||||||
msgid "Do you want to keep these display settings?"
|
#: js/ui/windowManager.js:55
|
||||||
|
msgid "Keep these display settings?"
|
||||||
msgstr "¿Quiere mantener esta configuración de la pantalla?"
|
msgstr "¿Quiere mantener esta configuración de la pantalla?"
|
||||||
|
|
||||||
#. Translators: this and the following message should be limited in length,
|
#. Translators: this and the following message should be limited in length,
|
||||||
#. to avoid ellipsizing the labels.
|
#. to avoid ellipsizing the labels.
|
||||||
#.
|
#.
|
||||||
#: js/ui/windowManager.js:68
|
#: js/ui/windowManager.js:64
|
||||||
msgid "Revert Settings"
|
msgid "Revert Settings"
|
||||||
msgstr "Revertir configuración"
|
msgstr "Revertir configuración"
|
||||||
|
|
||||||
#: js/ui/windowManager.js:71
|
#: js/ui/windowManager.js:67
|
||||||
msgid "Keep Changes"
|
msgid "Keep Changes"
|
||||||
msgstr "Mantener cambios"
|
msgstr "Mantener cambios"
|
||||||
|
|
||||||
#: js/ui/windowManager.js:89
|
#: js/ui/windowManager.js:85
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Settings changes will revert in %d second"
|
msgid "Settings changes will revert in %d second"
|
||||||
msgid_plural "Settings changes will revert in %d seconds"
|
msgid_plural "Settings changes will revert in %d seconds"
|
||||||
@@ -2314,7 +2398,7 @@ msgstr[1] "La configuración se revertirá en %d segundos"
|
|||||||
|
|
||||||
#. Translators: This represents the size of a window. The first number is
|
#. Translators: This represents the size of a window. The first number is
|
||||||
#. * the width of the window and the second is the height.
|
#. * the width of the window and the second is the height.
|
||||||
#: js/ui/windowManager.js:546
|
#: js/ui/windowManager.js:542
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d × %d"
|
msgid "%d × %d"
|
||||||
msgstr "%d × %d"
|
msgstr "%d × %d"
|
||||||
@@ -2460,11 +2544,6 @@ msgstr ""
|
|||||||
"La descripción es una única frase para explicar qué hace su extensión.\n"
|
"La descripción es una única frase para explicar qué hace su extensión.\n"
|
||||||
"Algunos ejemplos: %s"
|
"Algunos ejemplos: %s"
|
||||||
|
|
||||||
#: subprojects/extensions-tool/src/command-create.c:211
|
|
||||||
#: subprojects/extensions-tool/src/main.c:173
|
|
||||||
msgid "Description"
|
|
||||||
msgstr "Descripción"
|
|
||||||
|
|
||||||
#: subprojects/extensions-tool/src/command-create.c:222
|
#: subprojects/extensions-tool/src/command-create.c:222
|
||||||
msgid ""
|
msgid ""
|
||||||
"UUID is a globally-unique identifier for your extension.\n"
|
"UUID is a globally-unique identifier for your extension.\n"
|
||||||
@@ -2667,10 +2746,6 @@ msgstr "URL"
|
|||||||
msgid "Original author"
|
msgid "Original author"
|
||||||
msgstr "Autor original"
|
msgstr "Autor original"
|
||||||
|
|
||||||
#: subprojects/extensions-tool/src/main.c:185
|
|
||||||
msgid "Version"
|
|
||||||
msgstr "Versión"
|
|
||||||
|
|
||||||
#: subprojects/extensions-tool/src/main.c:188
|
#: subprojects/extensions-tool/src/main.c:188
|
||||||
msgid "State"
|
msgid "State"
|
||||||
msgstr "Estado"
|
msgstr "Estado"
|
||||||
@@ -2773,6 +2848,30 @@ msgstr[1] "%u entradas"
|
|||||||
msgid "System Sounds"
|
msgid "System Sounds"
|
||||||
msgstr "Sonidos del sistema"
|
msgstr "Sonidos del sistema"
|
||||||
|
|
||||||
|
#~ msgid "Logout…"
|
||||||
|
#~ msgstr "Cerrar sesión…"
|
||||||
|
|
||||||
|
#~ msgid "org.gnome.Extensions"
|
||||||
|
#~ msgstr "org.gnome.Extensions"
|
||||||
|
|
||||||
|
#~ msgid "Browse in Software"
|
||||||
|
#~ msgstr "Buscar en Software"
|
||||||
|
|
||||||
|
#~ msgid "Password:"
|
||||||
|
#~ msgstr "Contraseña:"
|
||||||
|
|
||||||
|
#~ msgid "Type again:"
|
||||||
|
#~ msgstr "Escriba de nuevo:"
|
||||||
|
|
||||||
|
#~ msgid "Authentication required by wireless network"
|
||||||
|
#~ msgstr "La red inalámbrica requiere autenticación"
|
||||||
|
|
||||||
|
#~ msgid "Mobile broadband network password"
|
||||||
|
#~ msgstr "Contraseña de la red de banda ancha móvil"
|
||||||
|
|
||||||
|
#~ msgid "Password"
|
||||||
|
#~ msgstr "Contraseña"
|
||||||
|
|
||||||
#~ msgctxt "search-result"
|
#~ msgctxt "search-result"
|
||||||
#~ msgid "Lock Orientation"
|
#~ msgid "Lock Orientation"
|
||||||
#~ msgstr "Bloquear la orientación"
|
#~ msgstr "Bloquear la orientación"
|
||||||
@@ -2885,9 +2984,6 @@ msgstr "Sonidos del sistema"
|
|||||||
#~ msgstr[0] "%d dispositivo conectado"
|
#~ msgstr[0] "%d dispositivo conectado"
|
||||||
#~ msgstr[1] "%d dispositivos conectados"
|
#~ msgstr[1] "%d dispositivos conectados"
|
||||||
|
|
||||||
#~ msgid "Authentication required"
|
|
||||||
#~ msgstr "Autenticación requerida"
|
|
||||||
|
|
||||||
#~ msgid "UPS"
|
#~ msgid "UPS"
|
||||||
#~ msgstr "SAI"
|
#~ msgstr "SAI"
|
||||||
|
|
||||||
@@ -3092,9 +3188,6 @@ msgstr "Sonidos del sistema"
|
|||||||
#~ msgid "Open"
|
#~ msgid "Open"
|
||||||
#~ msgstr "Abrir"
|
#~ msgstr "Abrir"
|
||||||
|
|
||||||
#~ msgid "Remove"
|
|
||||||
#~ msgstr "Quitar"
|
|
||||||
|
|
||||||
#~ msgid "Clear Messages"
|
#~ msgid "Clear Messages"
|
||||||
#~ msgstr "Limpiar mensajes"
|
#~ msgstr "Limpiar mensajes"
|
||||||
|
|
||||||
|
430
po/pt_BR.po
430
po/pt_BR.po
@@ -24,8 +24,8 @@ 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: 2020-01-28 15:54+0000\n"
|
"POT-Creation-Date: 2020-02-06 19:01+0000\n"
|
||||||
"PO-Revision-Date: 2020-01-28 18:42-0300\n"
|
"PO-Revision-Date: 2020-02-06 20:40-0300\n"
|
||||||
"Last-Translator: Rafael Fontenelle <rafaelff@gnome.org>\n"
|
"Last-Translator: Rafael Fontenelle <rafaelff@gnome.org>\n"
|
||||||
"Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>\n"
|
"Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>\n"
|
||||||
"Language: pt_BR\n"
|
"Language: pt_BR\n"
|
||||||
@@ -60,12 +60,13 @@ msgstr "Mostrar todos os aplicativos"
|
|||||||
msgid "Open the application menu"
|
msgid "Open the application menu"
|
||||||
msgstr "Abre o menu do aplicativo"
|
msgstr "Abre o menu do aplicativo"
|
||||||
|
|
||||||
#: data/gnome-shell-extension-prefs.desktop.in.in:4
|
#: data/org.gnome.Extensions.desktop.in.in:4 js/extensionPrefs/main.js:218
|
||||||
#: js/extensionPrefs/main.js:209
|
#: js/extensionPrefs/ui/extensions-window.ui:61
|
||||||
msgid "Shell Extensions"
|
#| msgid "Shell Extensions"
|
||||||
msgstr "Extensões do shell"
|
msgid "Extensions"
|
||||||
|
msgstr "Extensões"
|
||||||
|
|
||||||
#: data/gnome-shell-extension-prefs.desktop.in.in:5
|
#: data/org.gnome.Extensions.desktop.in.in:7
|
||||||
msgid "Configure GNOME Shell Extensions"
|
msgid "Configure GNOME Shell Extensions"
|
||||||
msgstr "Configurar extensões do Shell do GNOME"
|
msgstr "Configurar extensões do Shell do GNOME"
|
||||||
|
|
||||||
@@ -422,11 +423,45 @@ msgstr "Atrasar foco altera o modo do mouse até o ponteiro parar de mover"
|
|||||||
msgid "Network Login"
|
msgid "Network Login"
|
||||||
msgstr "Sessão de Rede"
|
msgstr "Sessão de Rede"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:102 js/extensionPrefs/main.js:525
|
#: js/extensionPrefs/main.js:140
|
||||||
|
#, javascript-format
|
||||||
|
msgid "Remove “%s”?"
|
||||||
|
msgstr "Remover “%s”?"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:141
|
||||||
|
msgid ""
|
||||||
|
"If you remove the extension, you need to return to download it if you want "
|
||||||
|
"to enable it again"
|
||||||
|
msgstr ""
|
||||||
|
"Se você remover a extensão, você precisa voltar a baixá-la se você quiser "
|
||||||
|
"habilitá-la novamente"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:144 js/gdm/authPrompt.js:170
|
||||||
|
#: js/ui/audioDeviceSelection.js:57 js/ui/components/networkAgent.js:107
|
||||||
|
#: js/ui/components/polkitAgent.js:139 js/ui/endSessionDialog.js:374
|
||||||
|
#: js/ui/extensionDownloader.js:166 js/ui/shellMountOperation.js:376
|
||||||
|
#: js/ui/shellMountOperation.js:386 js/ui/status/network.js:910
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Cancelar"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:145
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Remover"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:217
|
||||||
|
msgid "translator-credits"
|
||||||
|
msgstr "Rafael Fontenelle <rafaelff@gnome.org>"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:219
|
||||||
|
#| msgid "Configure GNOME Shell Extensions"
|
||||||
|
msgid "Manage your GNOME Extensions"
|
||||||
|
msgstr "Gerenciar suas extensões do GNOME"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:261 js/extensionPrefs/ui/extensions-window.ui:222
|
||||||
msgid "Something’s gone wrong"
|
msgid "Something’s gone wrong"
|
||||||
msgstr "Algo deu errado"
|
msgstr "Algo deu errado"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:109
|
#: js/extensionPrefs/main.js:268
|
||||||
msgid ""
|
msgid ""
|
||||||
"We’re very sorry, but there’s been a problem: the settings for this "
|
"We’re very sorry, but there’s been a problem: the settings for this "
|
||||||
"extension can’t be displayed. We recommend that you report the issue to the "
|
"extension can’t be displayed. We recommend that you report the issue to the "
|
||||||
@@ -436,39 +471,101 @@ msgstr ""
|
|||||||
"ser exibidas. Recomendamos que você relate o problema aos autores da "
|
"ser exibidas. Recomendamos que você relate o problema aos autores da "
|
||||||
"extensão."
|
"extensão."
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:116
|
#: js/extensionPrefs/main.js:275
|
||||||
msgid "Technical Details"
|
msgid "Technical Details"
|
||||||
msgstr "Detalhes técnicos"
|
msgstr "Detalhes técnicos"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:151
|
#: js/extensionPrefs/main.js:310
|
||||||
msgid "Copy Error"
|
msgid "Copy Error"
|
||||||
msgstr "Copiar erro"
|
msgstr "Copiar erro"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:178
|
#: js/extensionPrefs/main.js:337
|
||||||
msgid "Homepage"
|
msgid "Homepage"
|
||||||
msgstr "Site"
|
msgstr "Site"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:179
|
#: js/extensionPrefs/main.js:338
|
||||||
msgid "Visit extension homepage"
|
msgid "Visit extension homepage"
|
||||||
msgstr "Visita a página web da extensão"
|
msgstr "Visita a página web da extensão"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:467
|
#: js/extensionPrefs/main.js:449
|
||||||
msgid "No Extensions Installed"
|
#, javascript-format
|
||||||
|
msgid "%d extension will be updated on next login."
|
||||||
|
msgid_plural "%d extensions will be updated on next login."
|
||||||
|
msgstr[0] "%d extensão será atualizada na próxima sessão."
|
||||||
|
msgstr[1] "%d extensões serão atualizadas na próxima sessão."
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:100
|
||||||
|
#: subprojects/extensions-tool/src/command-create.c:211
|
||||||
|
#: subprojects/extensions-tool/src/main.c:173
|
||||||
|
msgid "Description"
|
||||||
|
msgstr "Descrição"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:123
|
||||||
|
#: subprojects/extensions-tool/src/main.c:185
|
||||||
|
msgid "Version"
|
||||||
|
msgstr "Versão"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:151
|
||||||
|
msgid "Author"
|
||||||
|
msgstr "Autor"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:175
|
||||||
|
msgid "Website"
|
||||||
|
msgstr "Site"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extension-row.ui:192
|
||||||
|
msgid "Remove…"
|
||||||
|
msgstr "Remover…"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:8
|
||||||
|
msgid "Help"
|
||||||
|
msgstr "Ajuda"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:12
|
||||||
|
#| msgid "List extensions"
|
||||||
|
msgid "About Extensions"
|
||||||
|
msgstr "Sobre as Extensões"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:27
|
||||||
|
#| msgid ""
|
||||||
|
#| "Extensions can be installed through Software or <a href=\"https://"
|
||||||
|
#| "extensions.gnome.org\">extensions.gnome.org</a>."
|
||||||
|
msgid ""
|
||||||
|
"To find and add extensions, visit <a href=\"https://extensions.gnome.org"
|
||||||
|
"\">extensions.gnome.org</a>."
|
||||||
|
msgstr ""
|
||||||
|
"Para encontrar e adicionar extensões, visite <a href=\"https://extensions."
|
||||||
|
"gnome.org\">extensions.gnome.org</a>."
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:35
|
||||||
|
msgid "Warning"
|
||||||
|
msgstr "Aviso"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:46
|
||||||
|
msgid ""
|
||||||
|
"Extensions can cause system issues, including performance problems. If you "
|
||||||
|
"encounter problems with your system, it is recommended to disable all "
|
||||||
|
"extensions."
|
||||||
|
msgstr ""
|
||||||
|
"Extensões podem causar problemas no sistema, incluindo problemas de "
|
||||||
|
"desempenho. Se você encontrar problemas com o seu sistema, é recomendável "
|
||||||
|
"desativar todas as extensões."
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:133
|
||||||
|
msgid "Manually Installed"
|
||||||
|
msgstr "Instalada manualmente"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:157
|
||||||
|
#| msgid "Built-in Only"
|
||||||
|
msgid "Built-In"
|
||||||
|
msgstr "Interna"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:198
|
||||||
|
#| msgid "Install Extension"
|
||||||
|
msgid "No Installed Extensions"
|
||||||
msgstr "Nenhuma extensão instalada"
|
msgstr "Nenhuma extensão instalada"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:477
|
#: js/extensionPrefs/ui/extensions-window.ui:234
|
||||||
msgid ""
|
|
||||||
"Extensions can be installed through Software or <a href=\"https://extensions."
|
|
||||||
"gnome.org\">extensions.gnome.org</a>."
|
|
||||||
msgstr ""
|
|
||||||
"Extensões podem ser instaladas por meio do Software ou <a href=\"https://"
|
|
||||||
"extensions.gnome.org\">extensions.gnome.org</a>."
|
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:492
|
|
||||||
msgid "Browse in Software"
|
|
||||||
msgstr "Navegar no Software"
|
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:532
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"We’re very sorry, but it was not possible to get the list of installed "
|
"We’re very sorry, but it was not possible to get the list of installed "
|
||||||
"extensions. Make sure you are logged into GNOME and try again."
|
"extensions. Make sure you are logged into GNOME and try again."
|
||||||
@@ -476,24 +573,21 @@ msgstr ""
|
|||||||
"Sentimos muito, mas não foi possível obter a lista de extensões instaladas. "
|
"Sentimos muito, mas não foi possível obter a lista de extensões instaladas. "
|
||||||
"Certifique-se de estar em uma sessão do GNOME e tente novamente."
|
"Certifique-se de estar em uma sessão do GNOME e tente novamente."
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:174 js/ui/audioDeviceSelection.js:57
|
#: js/extensionPrefs/ui/extensions-window.ui:287
|
||||||
#: js/ui/components/networkAgent.js:129 js/ui/components/polkitAgent.js:138
|
#| msgid "Log Out"
|
||||||
#: js/ui/endSessionDialog.js:374 js/ui/extensionDownloader.js:190
|
msgid "Log Out…"
|
||||||
#: js/ui/shellMountOperation.js:381 js/ui/shellMountOperation.js:391
|
msgstr "Encerrar sessão…"
|
||||||
#: js/ui/status/network.js:910
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr "Cancelar"
|
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:188 js/gdm/authPrompt.js:241 js/gdm/authPrompt.js:476
|
#: js/gdm/authPrompt.js:184 js/gdm/authPrompt.js:237 js/gdm/authPrompt.js:468
|
||||||
msgid "Next"
|
msgid "Next"
|
||||||
msgstr "Próximo"
|
msgstr "Próximo"
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:237 js/ui/shellMountOperation.js:385
|
#: js/gdm/authPrompt.js:233 js/ui/shellMountOperation.js:380
|
||||||
#: js/ui/unlockDialog.js:44
|
#: js/ui/unlockDialog.js:44
|
||||||
msgid "Unlock"
|
msgid "Unlock"
|
||||||
msgstr "Desbloquear"
|
msgstr "Desbloquear"
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:239
|
#: js/gdm/authPrompt.js:235
|
||||||
msgctxt "button"
|
msgctxt "button"
|
||||||
msgid "Sign In"
|
msgid "Sign In"
|
||||||
msgstr "Entrar"
|
msgstr "Entrar"
|
||||||
@@ -516,8 +610,8 @@ msgstr "(ex.: usuário ou %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:899 js/ui/components/networkAgent.js:256
|
#: js/gdm/loginDialog.js:899 js/ui/components/networkAgent.js:234
|
||||||
#: js/ui/components/networkAgent.js:279 js/ui/components/networkAgent.js:297
|
#: js/ui/components/networkAgent.js:257 js/ui/components/networkAgent.js:275
|
||||||
msgid "Username: "
|
msgid "Username: "
|
||||||
msgstr "Nome de usuário: "
|
msgstr "Nome de usuário: "
|
||||||
|
|
||||||
@@ -595,81 +689,78 @@ msgstr "alternar usuário;trocar de usuário"
|
|||||||
|
|
||||||
#. Translators: A list of keywords that match the lock orientation action, separated by semicolons
|
#. Translators: A list of keywords that match the lock orientation action, separated by semicolons
|
||||||
#: js/misc/systemActions.js:131
|
#: js/misc/systemActions.js:131
|
||||||
#| msgid "lock orientation;screen;rotation"
|
|
||||||
msgid "lock orientation;unlock orientation;screen;rotation"
|
msgid "lock orientation;unlock orientation;screen;rotation"
|
||||||
msgstr "bloqueio de orientação;desbloqueio de orientação;tela;rotação"
|
msgstr "bloqueio de orientação;desbloqueio de orientação;tela;rotação"
|
||||||
|
|
||||||
#: js/misc/systemActions.js:251
|
#: js/misc/systemActions.js:251
|
||||||
#| msgid "Lock Screen Rotation"
|
|
||||||
msgctxt "search-result"
|
msgctxt "search-result"
|
||||||
msgid "Unlock Screen Rotation"
|
msgid "Unlock Screen Rotation"
|
||||||
msgstr "Desbloquear rotação de tela"
|
msgstr "Desbloquear rotação de tela"
|
||||||
|
|
||||||
#: js/misc/systemActions.js:252
|
#: js/misc/systemActions.js:252
|
||||||
#| msgid "Lock Screen Rotation"
|
|
||||||
msgctxt "search-result"
|
msgctxt "search-result"
|
||||||
msgid "Lock Screen Rotation"
|
msgid "Lock Screen Rotation"
|
||||||
msgstr "Bloquear rotação de tela"
|
msgstr "Bloquear rotação de tela"
|
||||||
|
|
||||||
#: js/misc/util.js:116
|
#: js/misc/util.js:120
|
||||||
msgid "Command not found"
|
msgid "Command not found"
|
||||||
msgstr "Comando não encontrado"
|
msgstr "Comando não encontrado"
|
||||||
|
|
||||||
#. Replace "Error invoking GLib.shell_parse_argv: " with
|
#. Replace "Error invoking GLib.shell_parse_argv: " with
|
||||||
#. something nicer
|
#. something nicer
|
||||||
#: js/misc/util.js:152
|
#: js/misc/util.js:156
|
||||||
msgid "Could not parse command:"
|
msgid "Could not parse command:"
|
||||||
msgstr "Não foi possível analisar comando:"
|
msgstr "Não foi possível analisar comando:"
|
||||||
|
|
||||||
#: js/misc/util.js:160
|
#: js/misc/util.js:164
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Execution of “%s” failed:"
|
msgid "Execution of “%s” failed:"
|
||||||
msgstr "A execução de “%s” falhou:"
|
msgstr "A execução de “%s” falhou:"
|
||||||
|
|
||||||
#: js/misc/util.js:177
|
#: js/misc/util.js:181
|
||||||
msgid "Just now"
|
msgid "Just now"
|
||||||
msgstr "Agora mesmo"
|
msgstr "Agora mesmo"
|
||||||
|
|
||||||
#: js/misc/util.js:179
|
#: js/misc/util.js:183
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d minute ago"
|
msgid "%d minute ago"
|
||||||
msgid_plural "%d minutes ago"
|
msgid_plural "%d minutes ago"
|
||||||
msgstr[0] "%d minuto atrás"
|
msgstr[0] "%d minuto atrás"
|
||||||
msgstr[1] "%d minutos atrás"
|
msgstr[1] "%d minutos atrás"
|
||||||
|
|
||||||
#: js/misc/util.js:183
|
#: js/misc/util.js:187
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d hour ago"
|
msgid "%d hour ago"
|
||||||
msgid_plural "%d hours ago"
|
msgid_plural "%d hours ago"
|
||||||
msgstr[0] "%d hora atrás"
|
msgstr[0] "%d hora atrás"
|
||||||
msgstr[1] "%d horas atrás"
|
msgstr[1] "%d horas atrás"
|
||||||
|
|
||||||
#: js/misc/util.js:187
|
#: js/misc/util.js:191
|
||||||
msgid "Yesterday"
|
msgid "Yesterday"
|
||||||
msgstr "Ontem"
|
msgstr "Ontem"
|
||||||
|
|
||||||
#: js/misc/util.js:189
|
#: js/misc/util.js:193
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d day ago"
|
msgid "%d day ago"
|
||||||
msgid_plural "%d days ago"
|
msgid_plural "%d days ago"
|
||||||
msgstr[0] "%d dia atrás"
|
msgstr[0] "%d dia atrás"
|
||||||
msgstr[1] "%d dias atrás"
|
msgstr[1] "%d dias atrás"
|
||||||
|
|
||||||
#: js/misc/util.js:193
|
#: js/misc/util.js:197
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d week ago"
|
msgid "%d week ago"
|
||||||
msgid_plural "%d weeks ago"
|
msgid_plural "%d weeks ago"
|
||||||
msgstr[0] "%d semana atrás"
|
msgstr[0] "%d semana atrás"
|
||||||
msgstr[1] "%d semanas atrás"
|
msgstr[1] "%d semanas atrás"
|
||||||
|
|
||||||
#: js/misc/util.js:197
|
#: js/misc/util.js:201
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d month ago"
|
msgid "%d month ago"
|
||||||
msgid_plural "%d months ago"
|
msgid_plural "%d months ago"
|
||||||
msgstr[0] "%d mês atrás"
|
msgstr[0] "%d mês atrás"
|
||||||
msgstr[1] "%d meses atrás"
|
msgstr[1] "%d meses atrás"
|
||||||
|
|
||||||
#: js/misc/util.js:200
|
#: js/misc/util.js:204
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d year ago"
|
msgid "%d year ago"
|
||||||
msgid_plural "%d years ago"
|
msgid_plural "%d years ago"
|
||||||
@@ -677,20 +768,20 @@ msgstr[0] "%d ano atrás"
|
|||||||
msgstr[1] "%d anos atrás"
|
msgstr[1] "%d anos atrás"
|
||||||
|
|
||||||
#. Translators: Time in 24h format
|
#. Translators: Time in 24h format
|
||||||
#: js/misc/util.js:233
|
#: js/misc/util.js:237
|
||||||
msgid "%H∶%M"
|
msgid "%H∶%M"
|
||||||
msgstr "%H∶%M"
|
msgstr "%H∶%M"
|
||||||
|
|
||||||
#. Translators: this is the word "Yesterday" followed by a
|
#. Translators: this is the word "Yesterday" followed by a
|
||||||
#. time string in 24h format. i.e. "Yesterday, 14:30"
|
#. time string in 24h format. i.e. "Yesterday, 14:30"
|
||||||
#: js/misc/util.js:239
|
#: js/misc/util.js:243
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "Yesterday, %H∶%M"
|
msgid "Yesterday, %H∶%M"
|
||||||
msgstr "Ontem, %H∶%M"
|
msgstr "Ontem, %H∶%M"
|
||||||
|
|
||||||
#. Translators: this is the week day name followed by a time
|
#. Translators: this is the week day name followed by a time
|
||||||
#. string in 24h format. i.e. "Monday, 14:30"
|
#. string in 24h format. i.e. "Monday, 14:30"
|
||||||
#: js/misc/util.js:245
|
#: js/misc/util.js:249
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%A, %H∶%M"
|
msgid "%A, %H∶%M"
|
||||||
msgstr "%A, %H∶%M"
|
msgstr "%A, %H∶%M"
|
||||||
@@ -698,7 +789,7 @@ msgstr "%A, %H∶%M"
|
|||||||
#. Translators: this is the month name and day number
|
#. Translators: this is the month name and day number
|
||||||
#. followed by a time string in 24h format.
|
#. followed by a time string in 24h format.
|
||||||
#. i.e. "May 25, 14:30"
|
#. i.e. "May 25, 14:30"
|
||||||
#: js/misc/util.js:251
|
#: js/misc/util.js:255
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d, %H∶%M"
|
msgid "%B %-d, %H∶%M"
|
||||||
msgstr "%-d de %B, %H∶%M"
|
msgstr "%-d de %B, %H∶%M"
|
||||||
@@ -706,7 +797,7 @@ msgstr "%-d de %B, %H∶%M"
|
|||||||
#. Translators: this is the month name, day number, year
|
#. Translators: this is the month name, day number, year
|
||||||
#. number followed by a time string in 24h format.
|
#. number followed by a time string in 24h format.
|
||||||
#. i.e. "May 25 2012, 14:30"
|
#. i.e. "May 25 2012, 14:30"
|
||||||
#: js/misc/util.js:257
|
#: js/misc/util.js:261
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d %Y, %H∶%M"
|
msgid "%B %-d %Y, %H∶%M"
|
||||||
msgstr "%-d de %B de %Y, %H∶%M"
|
msgstr "%-d de %B de %Y, %H∶%M"
|
||||||
@@ -714,20 +805,20 @@ msgstr "%-d de %B de %Y, %H∶%M"
|
|||||||
#. Show only the time if date is on today
|
#. Show only the time if date is on today
|
||||||
#. eslint-disable-line no-lonely-if
|
#. eslint-disable-line no-lonely-if
|
||||||
#. Translators: Time in 12h format
|
#. Translators: Time in 12h format
|
||||||
#: js/misc/util.js:262
|
#: js/misc/util.js:266
|
||||||
msgid "%l∶%M %p"
|
msgid "%l∶%M %p"
|
||||||
msgstr "%l∶%M %p"
|
msgstr "%l∶%M %p"
|
||||||
|
|
||||||
#. Translators: this is the word "Yesterday" followed by a
|
#. Translators: this is the word "Yesterday" followed by a
|
||||||
#. time string in 12h format. i.e. "Yesterday, 2:30 pm"
|
#. time string in 12h format. i.e. "Yesterday, 2:30 pm"
|
||||||
#: js/misc/util.js:268
|
#: js/misc/util.js:272
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "Yesterday, %l∶%M %p"
|
msgid "Yesterday, %l∶%M %p"
|
||||||
msgstr "Ontem, %l∶%M %p"
|
msgstr "Ontem, %l∶%M %p"
|
||||||
|
|
||||||
#. Translators: this is the week day name followed by a time
|
#. Translators: this is the week day name followed by a time
|
||||||
#. string in 12h format. i.e. "Monday, 2:30 pm"
|
#. string in 12h format. i.e. "Monday, 2:30 pm"
|
||||||
#: js/misc/util.js:274
|
#: js/misc/util.js:278
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%A, %l∶%M %p"
|
msgid "%A, %l∶%M %p"
|
||||||
msgstr "%A, %l∶%M %p"
|
msgstr "%A, %l∶%M %p"
|
||||||
@@ -735,7 +826,7 @@ msgstr "%A, %l∶%M %p"
|
|||||||
#. Translators: this is the month name and day number
|
#. Translators: this is the month name and day number
|
||||||
#. followed by a time string in 12h format.
|
#. followed by a time string in 12h format.
|
||||||
#. i.e. "May 25, 2:30 pm"
|
#. i.e. "May 25, 2:30 pm"
|
||||||
#: js/misc/util.js:280
|
#: js/misc/util.js:284
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d, %l∶%M %p"
|
msgid "%B %-d, %l∶%M %p"
|
||||||
msgstr "%-d de %B, %l∶%M %p"
|
msgstr "%-d de %B, %l∶%M %p"
|
||||||
@@ -743,17 +834,17 @@ msgstr "%-d de %B, %l∶%M %p"
|
|||||||
#. Translators: this is the month name, day number, year
|
#. Translators: this is the month name, day number, year
|
||||||
#. number followed by a time string in 12h format.
|
#. number followed by a time string in 12h format.
|
||||||
#. i.e. "May 25 2012, 2:30 pm"
|
#. i.e. "May 25 2012, 2:30 pm"
|
||||||
#: js/misc/util.js:286
|
#: js/misc/util.js:290
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d %Y, %l∶%M %p"
|
msgid "%B %-d %Y, %l∶%M %p"
|
||||||
msgstr "%-d de %B de %Y, %l∶%M %p"
|
msgstr "%-d de %B de %Y, %l∶%M %p"
|
||||||
|
|
||||||
#. TRANSLATORS: this is the title of the wifi captive portal login window
|
#. TRANSLATORS: this is the title of the wifi captive portal login window
|
||||||
#: js/portalHelper/main.js:40
|
#: js/portalHelper/main.js:42
|
||||||
msgid "Hotspot Login"
|
msgid "Hotspot Login"
|
||||||
msgstr "Autenticação de ponto de acesso"
|
msgstr "Autenticação de ponto de acesso"
|
||||||
|
|
||||||
#: js/portalHelper/main.js:86
|
#: js/portalHelper/main.js:88
|
||||||
msgid ""
|
msgid ""
|
||||||
"Your connection to this hotspot login is not secure. Passwords or other "
|
"Your connection to this hotspot login is not secure. Passwords or other "
|
||||||
"information you enter on this page can be viewed by people nearby."
|
"information you enter on this page can be viewed by people nearby."
|
||||||
@@ -772,44 +863,44 @@ msgstr "Negar acesso"
|
|||||||
msgid "Grant Access"
|
msgid "Grant Access"
|
||||||
msgstr "Conceder acesso"
|
msgstr "Conceder acesso"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:904
|
#: js/ui/appDisplay.js:906
|
||||||
msgid "Unnamed Folder"
|
msgid "Unnamed Folder"
|
||||||
msgstr "Pasta sem nome"
|
msgstr "Pasta sem nome"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:927
|
#: js/ui/appDisplay.js:929
|
||||||
msgid "Frequently used applications will appear here"
|
msgid "Frequently used applications will appear here"
|
||||||
msgstr "Aplicativos usados frequentemente vão aparecer aqui"
|
msgstr "Aplicativos usados frequentemente vão aparecer aqui"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1062
|
#: js/ui/appDisplay.js:1064
|
||||||
msgid "Frequent"
|
msgid "Frequent"
|
||||||
msgstr "Frequente"
|
msgstr "Frequente"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:1069
|
#: js/ui/appDisplay.js:1071
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "Todos"
|
msgstr "Todos"
|
||||||
|
|
||||||
#. Translators: This is the heading of a list of open windows
|
#. Translators: This is the heading of a list of open windows
|
||||||
#: js/ui/appDisplay.js:2452 js/ui/panel.js:75
|
#: js/ui/appDisplay.js:2454 js/ui/panel.js:75
|
||||||
msgid "Open Windows"
|
msgid "Open Windows"
|
||||||
msgstr "Janelas abertas"
|
msgstr "Janelas abertas"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2472 js/ui/panel.js:82
|
#: js/ui/appDisplay.js:2474 js/ui/panel.js:82
|
||||||
msgid "New Window"
|
msgid "New Window"
|
||||||
msgstr "Nova janela"
|
msgstr "Nova janela"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2483
|
#: js/ui/appDisplay.js:2485
|
||||||
msgid "Launch using Dedicated Graphics Card"
|
msgid "Launch using Dedicated Graphics Card"
|
||||||
msgstr "Inicia usando placa de vídeo dedicada"
|
msgstr "Inicia usando placa de vídeo dedicada"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2511 js/ui/dash.js:239
|
#: js/ui/appDisplay.js:2513 js/ui/dash.js:239
|
||||||
msgid "Remove from Favorites"
|
msgid "Remove from Favorites"
|
||||||
msgstr "Remover dos favoritos"
|
msgstr "Remover dos favoritos"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2517
|
#: js/ui/appDisplay.js:2519
|
||||||
msgid "Add to Favorites"
|
msgid "Add to Favorites"
|
||||||
msgstr "Adicionar aos favoritos"
|
msgstr "Adicionar aos favoritos"
|
||||||
|
|
||||||
#: js/ui/appDisplay.js:2527 js/ui/panel.js:93
|
#: js/ui/appDisplay.js:2529 js/ui/panel.js:93
|
||||||
msgid "Show Details"
|
msgid "Show Details"
|
||||||
msgstr "Mostrar detalhes"
|
msgstr "Mostrar detalhes"
|
||||||
|
|
||||||
@@ -1027,55 +1118,48 @@ msgstr "A versão do udisks instalado não possui suporte à configuração do P
|
|||||||
msgid "Open with %s"
|
msgid "Open with %s"
|
||||||
msgstr "Abrir com %s"
|
msgstr "Abrir com %s"
|
||||||
|
|
||||||
#: js/ui/components/keyring.js:70 js/ui/components/polkitAgent.js:278
|
#: js/ui/components/networkAgent.js:89
|
||||||
msgid "Password:"
|
|
||||||
msgstr "Senha:"
|
|
||||||
|
|
||||||
#: js/ui/components/keyring.js:104
|
|
||||||
msgid "Type again:"
|
|
||||||
msgstr "Digite novamente:"
|
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:115
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Alternatively you can connect by pushing the “WPS” button on your router."
|
"Alternatively you can connect by pushing the “WPS” button on your router."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Alternativamente, você pode conectar pressionando o botão “WPS” em seu "
|
"Alternativamente, você pode conectar pressionando o botão “WPS” em seu "
|
||||||
"roteador."
|
"roteador."
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:123 js/ui/status/network.js:223
|
#: js/ui/components/networkAgent.js:101 js/ui/status/network.js:223
|
||||||
#: js/ui/status/network.js:314 js/ui/status/network.js:913
|
#: js/ui/status/network.js:314 js/ui/status/network.js:913
|
||||||
msgid "Connect"
|
msgid "Connect"
|
||||||
msgstr "Conectar"
|
msgstr "Conectar"
|
||||||
|
|
||||||
#. Cisco LEAP
|
#. Cisco LEAP
|
||||||
#: js/ui/components/networkAgent.js:224 js/ui/components/networkAgent.js:236
|
#: js/ui/components/networkAgent.js:202 js/ui/components/networkAgent.js:214
|
||||||
#: js/ui/components/networkAgent.js:260 js/ui/components/networkAgent.js:281
|
#: js/ui/components/networkAgent.js:238 js/ui/components/networkAgent.js:259
|
||||||
#: js/ui/components/networkAgent.js:301 js/ui/components/networkAgent.js:311
|
#: js/ui/components/networkAgent.js:279 js/ui/components/networkAgent.js:289
|
||||||
msgid "Password: "
|
msgid "Password: "
|
||||||
msgstr "Senha: "
|
msgstr "Senha: "
|
||||||
|
|
||||||
#. static WEP
|
#. static WEP
|
||||||
#: js/ui/components/networkAgent.js:229
|
#: js/ui/components/networkAgent.js:207
|
||||||
msgid "Key: "
|
msgid "Key: "
|
||||||
msgstr "Chave: "
|
msgstr "Chave: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:264 js/ui/components/networkAgent.js:287
|
#: js/ui/components/networkAgent.js:242 js/ui/components/networkAgent.js:265
|
||||||
msgid "Private key password: "
|
msgid "Private key password: "
|
||||||
msgstr "Senha da chave privada: "
|
msgstr "Senha da chave privada: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:285
|
#: js/ui/components/networkAgent.js:263
|
||||||
msgid "Identity: "
|
msgid "Identity: "
|
||||||
msgstr "Identidade: "
|
msgstr "Identidade: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:299
|
#: js/ui/components/networkAgent.js:277
|
||||||
msgid "Service: "
|
msgid "Service: "
|
||||||
msgstr "Serviço: "
|
msgstr "Serviço: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:328 js/ui/components/networkAgent.js:703
|
#: js/ui/components/networkAgent.js:306 js/ui/components/networkAgent.js:334
|
||||||
msgid "Authentication required by wireless network"
|
#: js/ui/components/networkAgent.js:681 js/ui/components/networkAgent.js:702
|
||||||
msgstr "Autenticação requisitada pela rede sem fio"
|
msgid "Authentication required"
|
||||||
|
msgstr "Autenticação necessária"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:329 js/ui/components/networkAgent.js:704
|
#: js/ui/components/networkAgent.js:307 js/ui/components/networkAgent.js:682
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Passwords or encryption keys are required to access the wireless network "
|
"Passwords or encryption keys are required to access the wireless network "
|
||||||
@@ -1084,58 +1168,54 @@ msgstr ""
|
|||||||
"Senhas ou chaves criptografadas são necessárias para acessar a rede sem fio "
|
"Senhas ou chaves criptografadas são necessárias para acessar a rede sem fio "
|
||||||
"“%s”."
|
"“%s”."
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:333 js/ui/components/networkAgent.js:708
|
#: js/ui/components/networkAgent.js:311 js/ui/components/networkAgent.js:686
|
||||||
msgid "Wired 802.1X authentication"
|
msgid "Wired 802.1X authentication"
|
||||||
msgstr "Autenticação 802.1X cabeada"
|
msgstr "Autenticação 802.1X cabeada"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:335
|
#: js/ui/components/networkAgent.js:313
|
||||||
msgid "Network name: "
|
msgid "Network name: "
|
||||||
msgstr "Nome da rede: "
|
msgstr "Nome da rede: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:340 js/ui/components/networkAgent.js:712
|
#: js/ui/components/networkAgent.js:318 js/ui/components/networkAgent.js:690
|
||||||
msgid "DSL authentication"
|
msgid "DSL authentication"
|
||||||
msgstr "Autenticação DSL"
|
msgstr "Autenticação DSL"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:347 js/ui/components/networkAgent.js:717
|
#: js/ui/components/networkAgent.js:325 js/ui/components/networkAgent.js:695
|
||||||
msgid "PIN code required"
|
msgid "PIN code required"
|
||||||
msgstr "Código PIN requisitado"
|
msgstr "Código PIN requisitado"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:348 js/ui/components/networkAgent.js:718
|
#: js/ui/components/networkAgent.js:326 js/ui/components/networkAgent.js:696
|
||||||
msgid "PIN code is needed for the mobile broadband device"
|
msgid "PIN code is needed for the mobile broadband device"
|
||||||
msgstr "O código PIN é necessário para o dispositivo móvel de banda larga"
|
msgstr "O código PIN é necessário para o dispositivo móvel de banda larga"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:349
|
#: js/ui/components/networkAgent.js:327
|
||||||
msgid "PIN: "
|
msgid "PIN: "
|
||||||
msgstr "PIN: "
|
msgstr "PIN: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:356 js/ui/components/networkAgent.js:724
|
#: js/ui/components/networkAgent.js:335 js/ui/components/networkAgent.js:687
|
||||||
msgid "Mobile broadband network password"
|
#: js/ui/components/networkAgent.js:691 js/ui/components/networkAgent.js:703
|
||||||
msgstr "Senha da rede de banda larga móvel"
|
#: js/ui/components/networkAgent.js:707
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:357 js/ui/components/networkAgent.js:709
|
|
||||||
#: js/ui/components/networkAgent.js:713 js/ui/components/networkAgent.js:725
|
|
||||||
#: js/ui/components/networkAgent.js:729
|
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "A password is required to connect to “%s”."
|
msgid "A password is required to connect to “%s”."
|
||||||
msgstr "Uma senha é necessária para se conectar a “%s”."
|
msgstr "Uma senha é necessária para se conectar a “%s”."
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:692 js/ui/status/network.js:1688
|
#: js/ui/components/networkAgent.js:670 js/ui/status/network.js:1688
|
||||||
msgid "Network Manager"
|
msgid "Network Manager"
|
||||||
msgstr "Gerenciador de rede"
|
msgstr "Gerenciador de rede"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:728
|
#: js/ui/components/networkAgent.js:706
|
||||||
msgid "VPN password"
|
msgid "VPN password"
|
||||||
msgstr "Senha de VPN"
|
msgstr "Senha de VPN"
|
||||||
|
|
||||||
#: js/ui/components/polkitAgent.js:41
|
#: js/ui/components/polkitAgent.js:39
|
||||||
msgid "Authentication Required"
|
msgid "Authentication Required"
|
||||||
msgstr "Autenticação necessária"
|
msgstr "Autenticação necessária"
|
||||||
|
|
||||||
#: js/ui/components/polkitAgent.js:81
|
#: js/ui/components/polkitAgent.js:80
|
||||||
msgid "Administrator"
|
msgid "Administrator"
|
||||||
msgstr "Administrador"
|
msgstr "Administrador"
|
||||||
|
|
||||||
#: js/ui/components/polkitAgent.js:141
|
#: js/ui/components/polkitAgent.js:142
|
||||||
msgid "Authenticate"
|
msgid "Authenticate"
|
||||||
msgstr "Autenticação"
|
msgstr "Autenticação"
|
||||||
|
|
||||||
@@ -1143,10 +1223,15 @@ msgstr "Autenticação"
|
|||||||
#. * requested authentication was not gained; this can happen
|
#. * requested authentication was not gained; this can happen
|
||||||
#. * because of an authentication error (like invalid password),
|
#. * because of an authentication error (like invalid password),
|
||||||
#. * for instance.
|
#. * for instance.
|
||||||
#: js/ui/components/polkitAgent.js:259 js/ui/shellMountOperation.js:365
|
#: js/ui/components/polkitAgent.js:254 js/ui/shellMountOperation.js:402
|
||||||
msgid "Sorry, that didn’t work. Please try again."
|
msgid "Sorry, that didn’t work. Please try again."
|
||||||
msgstr "Desculpe, isto não funcionou. Por favor, tente novamente."
|
msgstr "Desculpe, isto não funcionou. Por favor, tente novamente."
|
||||||
|
|
||||||
|
#: js/ui/components/polkitAgent.js:277 js/ui/shellMountOperation.js:326
|
||||||
|
#| msgid "Remember Password"
|
||||||
|
msgid "Enter Password…"
|
||||||
|
msgstr "Lembrar senha…"
|
||||||
|
|
||||||
#. Translators: this is the other person changing their old IM name to their new
|
#. Translators: this is the other person changing their old IM name to their new
|
||||||
#. IM name.
|
#. IM name.
|
||||||
#: js/ui/components/telepathyClient.js:787
|
#: js/ui/components/telepathyClient.js:787
|
||||||
@@ -1362,34 +1447,39 @@ msgstr "%s (remoto)"
|
|||||||
msgid "%s (console)"
|
msgid "%s (console)"
|
||||||
msgstr "%s (console)"
|
msgstr "%s (console)"
|
||||||
|
|
||||||
#: js/ui/extensionDownloader.js:194
|
#: js/ui/extensionDownloader.js:170
|
||||||
msgid "Install"
|
msgid "Install"
|
||||||
msgstr "Instalar"
|
msgstr "Instalar"
|
||||||
|
|
||||||
#: js/ui/extensionDownloader.js:200
|
#: js/ui/extensionDownloader.js:176
|
||||||
#| msgid "Uninstall extension"
|
|
||||||
msgid "Install Extension"
|
msgid "Install Extension"
|
||||||
msgstr "Instalar extensão"
|
msgstr "Instalar extensão"
|
||||||
|
|
||||||
#: js/ui/extensionDownloader.js:201
|
#: js/ui/extensionDownloader.js:177
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Download and install “%s” from extensions.gnome.org?"
|
msgid "Download and install “%s” from extensions.gnome.org?"
|
||||||
msgstr "Baixar e instalar “%s” de extensions.gnome.org?"
|
msgstr "Baixar e instalar “%s” de extensions.gnome.org?"
|
||||||
|
|
||||||
|
#: js/ui/extensionSystem.js:228
|
||||||
|
#| msgid "No Extensions Installed"
|
||||||
|
msgid "Extension Updates Available"
|
||||||
|
msgstr "Atualizações de extensões disponíveis"
|
||||||
|
|
||||||
|
#: js/ui/extensionSystem.js:229
|
||||||
|
msgid "Extension updates are ready to be installed."
|
||||||
|
msgstr "Atualizações de extensões estão prontas para serem instaladas."
|
||||||
|
|
||||||
#: js/ui/inhibitShortcutsDialog.js:79
|
#: js/ui/inhibitShortcutsDialog.js:79
|
||||||
#| msgid "%s wants to inhibit shortcuts"
|
|
||||||
msgid "Allow inhibiting shortcuts"
|
msgid "Allow inhibiting shortcuts"
|
||||||
msgstr "Permitir inibir atalhos"
|
msgstr "Permitir inibir atalhos"
|
||||||
|
|
||||||
#. Translators: %s is an application name like "Settings"
|
#. Translators: %s is an application name like "Settings"
|
||||||
#: js/ui/inhibitShortcutsDialog.js:82
|
#: js/ui/inhibitShortcutsDialog.js:82
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
#| msgid "Application wants to inhibit shortcuts"
|
|
||||||
msgid "The application %s wants to inhibit shortcuts"
|
msgid "The application %s wants to inhibit shortcuts"
|
||||||
msgstr "O aplicativo %s deseja inibir atalhos"
|
msgstr "O aplicativo %s deseja inibir atalhos"
|
||||||
|
|
||||||
#: js/ui/inhibitShortcutsDialog.js:83
|
#: js/ui/inhibitShortcutsDialog.js:83
|
||||||
#| msgid "Application wants to inhibit shortcuts"
|
|
||||||
msgid "An application wants to inhibit shortcuts"
|
msgid "An application wants to inhibit shortcuts"
|
||||||
msgstr "Um aplicativo deseja inibir atalhos"
|
msgstr "Um aplicativo deseja inibir atalhos"
|
||||||
|
|
||||||
@@ -1638,12 +1728,10 @@ msgid "Top Bar"
|
|||||||
msgstr "Barra superior"
|
msgstr "Barra superior"
|
||||||
|
|
||||||
#: js/ui/runDialog.js:58
|
#: js/ui/runDialog.js:58
|
||||||
#| msgid "Enter a Command"
|
|
||||||
msgid "Run a Command"
|
msgid "Run a Command"
|
||||||
msgstr "Executar um comando"
|
msgstr "Executar um comando"
|
||||||
|
|
||||||
#: js/ui/runDialog.js:73
|
#: js/ui/runDialog.js:73
|
||||||
#| msgid "Press Esc to exit"
|
|
||||||
msgid "Press ESC to close"
|
msgid "Press ESC to close"
|
||||||
msgstr "Pressione Esc para fechar"
|
msgstr "Pressione Esc para fechar"
|
||||||
|
|
||||||
@@ -1675,7 +1763,7 @@ msgid_plural "%d new notifications"
|
|||||||
msgstr[0] "%d nova notificação"
|
msgstr[0] "%d nova notificação"
|
||||||
msgstr[1] "%d novas notificações"
|
msgstr[1] "%d novas notificações"
|
||||||
|
|
||||||
#: js/ui/screenShield.js:454 js/ui/status/system.js:98
|
#: js/ui/screenShield.js:454 js/ui/status/system.js:103
|
||||||
msgid "Lock"
|
msgid "Lock"
|
||||||
msgstr "Bloquear"
|
msgstr "Bloquear"
|
||||||
|
|
||||||
@@ -1733,20 +1821,20 @@ msgstr "Ocultar texto"
|
|||||||
msgid "Caps lock is on."
|
msgid "Caps lock is on."
|
||||||
msgstr "Caps lock está ligado."
|
msgstr "Caps lock está ligado."
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:287
|
#: js/ui/shellMountOperation.js:285
|
||||||
msgid "Hidden Volume"
|
msgid "Hidden Volume"
|
||||||
msgstr "Volume oculto"
|
msgstr "Volume oculto"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:290
|
#: js/ui/shellMountOperation.js:288
|
||||||
msgid "Windows System Volume"
|
msgid "Windows System Volume"
|
||||||
msgstr "Volume de sistema Windows"
|
msgstr "Volume de sistema Windows"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:293
|
#: js/ui/shellMountOperation.js:291
|
||||||
msgid "Uses Keyfiles"
|
msgid "Uses Keyfiles"
|
||||||
msgstr "Usa arquivos de chave"
|
msgstr "Usa arquivos de chave"
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:299
|
#: js/ui/shellMountOperation.js:298
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead."
|
"To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead."
|
||||||
@@ -1755,35 +1843,32 @@ msgstr ""
|
|||||||
"%s</i>."
|
"%s</i>."
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:306
|
#: js/ui/shellMountOperation.js:306
|
||||||
msgid "PIM Number"
|
#| msgid "PIM Number"
|
||||||
msgstr "Número PIM"
|
msgid "Enter PIM Number…"
|
||||||
|
msgstr "Insira um número PIM…"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:325
|
#: js/ui/shellMountOperation.js:365
|
||||||
msgid "The PIM must be a number or empty."
|
|
||||||
msgstr "O PIM deve ser um número ou vazio."
|
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:336
|
|
||||||
msgid "Password"
|
|
||||||
msgstr "Senha"
|
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:372
|
|
||||||
msgid "Remember Password"
|
msgid "Remember Password"
|
||||||
msgstr "Lembrar senha"
|
msgstr "Lembrar senha"
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:396
|
#: js/ui/shellMountOperation.js:391
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Open %s"
|
msgid "Open %s"
|
||||||
msgstr "Abrir o %s"
|
msgstr "Abrir o %s"
|
||||||
|
|
||||||
|
#: js/ui/shellMountOperation.js:423
|
||||||
|
msgid "The PIM must be a number or empty."
|
||||||
|
msgstr "O PIM deve ser um número ou vazio."
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:468
|
#: js/ui/shellMountOperation.js:469
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Unable to start %s"
|
msgid "Unable to start %s"
|
||||||
msgstr "Não foi possível iniciar o %s"
|
msgstr "Não foi possível iniciar o %s"
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:470
|
#: js/ui/shellMountOperation.js:471
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Couldn’t find the %s application"
|
msgid "Couldn’t find the %s application"
|
||||||
msgstr "Não foi possível localizar o aplicativo %s"
|
msgstr "Não foi possível localizar o aplicativo %s"
|
||||||
@@ -1919,7 +2004,6 @@ msgstr "Permitir acesso a localização"
|
|||||||
#. Translators: %s is an application name
|
#. Translators: %s is an application name
|
||||||
#: js/ui/status/location.js:357
|
#: js/ui/status/location.js:357
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
#| msgid "Give %s access to your location?"
|
|
||||||
msgid "The app %s wants to access your location"
|
msgid "The app %s wants to access your location"
|
||||||
msgstr "O aplicativo %s deseja acesso a sua localização"
|
msgstr "O aplicativo %s deseja acesso a sua localização"
|
||||||
|
|
||||||
@@ -2201,23 +2285,23 @@ msgstr "Desativar"
|
|||||||
msgid "Airplane Mode On"
|
msgid "Airplane Mode On"
|
||||||
msgstr "Modo avião ligado"
|
msgstr "Modo avião ligado"
|
||||||
|
|
||||||
#: js/ui/status/system.js:111
|
#: js/ui/status/system.js:116
|
||||||
msgid "Power Off / Log Out"
|
msgid "Power Off / Log Out"
|
||||||
msgstr "Desligar / encerrar sessão"
|
msgstr "Desligar / encerrar sessão"
|
||||||
|
|
||||||
#: js/ui/status/system.js:114
|
#: js/ui/status/system.js:119
|
||||||
msgid "Log Out"
|
msgid "Log Out"
|
||||||
msgstr "Encerrar sessão"
|
msgstr "Encerrar sessão"
|
||||||
|
|
||||||
#: js/ui/status/system.js:126
|
#: js/ui/status/system.js:131
|
||||||
msgid "Switch User…"
|
msgid "Switch User…"
|
||||||
msgstr "Alternar usuário…"
|
msgstr "Alternar usuário…"
|
||||||
|
|
||||||
#: js/ui/status/system.js:140
|
#: js/ui/status/system.js:145
|
||||||
msgid "Suspend"
|
msgid "Suspend"
|
||||||
msgstr "Suspender"
|
msgstr "Suspender"
|
||||||
|
|
||||||
#: js/ui/status/system.js:152
|
#: js/ui/status/system.js:157
|
||||||
msgid "Power Off…"
|
msgid "Power Off…"
|
||||||
msgstr "Desligar…"
|
msgstr "Desligar…"
|
||||||
|
|
||||||
@@ -2316,22 +2400,24 @@ msgstr "“%s” está pronto"
|
|||||||
|
|
||||||
# Título de janela de confirmação; Se grande demais, pode ser exibida com "..."
|
# Título de janela de confirmação; Se grande demais, pode ser exibida com "..."
|
||||||
# Vide: https://bugzilla.gnome.org/show_bug.cgi?id=786331
|
# Vide: https://bugzilla.gnome.org/show_bug.cgi?id=786331
|
||||||
#: js/ui/windowManager.js:54
|
#. Translators: This string should be shorter than 30 characters
|
||||||
msgid "Do you want to keep these display settings?"
|
#: js/ui/windowManager.js:55
|
||||||
msgstr "Deseja manter essas configurações da tela?"
|
#| msgid "Do you want to keep these display settings?"
|
||||||
|
msgid "Keep these display settings?"
|
||||||
|
msgstr "Manter essas configurações da tela?"
|
||||||
|
|
||||||
#. Translators: this and the following message should be limited in length,
|
#. Translators: this and the following message should be limited in length,
|
||||||
#. to avoid ellipsizing the labels.
|
#. to avoid ellipsizing the labels.
|
||||||
#.
|
#.
|
||||||
#: js/ui/windowManager.js:68
|
#: js/ui/windowManager.js:64
|
||||||
msgid "Revert Settings"
|
msgid "Revert Settings"
|
||||||
msgstr "Reverter configurações"
|
msgstr "Reverter configurações"
|
||||||
|
|
||||||
#: js/ui/windowManager.js:71
|
#: js/ui/windowManager.js:67
|
||||||
msgid "Keep Changes"
|
msgid "Keep Changes"
|
||||||
msgstr "Manter alterações"
|
msgstr "Manter alterações"
|
||||||
|
|
||||||
#: js/ui/windowManager.js:89
|
#: js/ui/windowManager.js:85
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Settings changes will revert in %d second"
|
msgid "Settings changes will revert in %d second"
|
||||||
msgid_plural "Settings changes will revert in %d seconds"
|
msgid_plural "Settings changes will revert in %d seconds"
|
||||||
@@ -2340,7 +2426,7 @@ msgstr[1] "Alterações nas configurações serão revertidas em %d segundos"
|
|||||||
|
|
||||||
#. Translators: This represents the size of a window. The first number is
|
#. Translators: This represents the size of a window. The first number is
|
||||||
#. * the width of the window and the second is the height.
|
#. * the width of the window and the second is the height.
|
||||||
#: js/ui/windowManager.js:546
|
#: js/ui/windowManager.js:542
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d × %d"
|
msgid "%d × %d"
|
||||||
msgstr "%d × %d"
|
msgstr "%d × %d"
|
||||||
@@ -2485,11 +2571,6 @@ msgstr ""
|
|||||||
"Descrição é uma explicação uma só frase do que sua extensão faz.\n"
|
"Descrição é uma explicação uma só frase do que sua extensão faz.\n"
|
||||||
"Exemplos são: %s"
|
"Exemplos são: %s"
|
||||||
|
|
||||||
#: subprojects/extensions-tool/src/command-create.c:211
|
|
||||||
#: subprojects/extensions-tool/src/main.c:173
|
|
||||||
msgid "Description"
|
|
||||||
msgstr "Descrição"
|
|
||||||
|
|
||||||
#: subprojects/extensions-tool/src/command-create.c:222
|
#: subprojects/extensions-tool/src/command-create.c:222
|
||||||
msgid ""
|
msgid ""
|
||||||
"UUID is a globally-unique identifier for your extension.\n"
|
"UUID is a globally-unique identifier for your extension.\n"
|
||||||
@@ -2692,10 +2773,6 @@ msgstr "URL"
|
|||||||
msgid "Original author"
|
msgid "Original author"
|
||||||
msgstr "Autor original"
|
msgstr "Autor original"
|
||||||
|
|
||||||
#: subprojects/extensions-tool/src/main.c:185
|
|
||||||
msgid "Version"
|
|
||||||
msgstr "Versão"
|
|
||||||
|
|
||||||
#: subprojects/extensions-tool/src/main.c:188
|
#: subprojects/extensions-tool/src/main.c:188
|
||||||
msgid "State"
|
msgid "State"
|
||||||
msgstr "Estado"
|
msgstr "Estado"
|
||||||
@@ -2798,6 +2875,24 @@ msgstr[1] "%u entradas"
|
|||||||
msgid "System Sounds"
|
msgid "System Sounds"
|
||||||
msgstr "Sons do sistema"
|
msgstr "Sons do sistema"
|
||||||
|
|
||||||
|
#~ msgid "Browse in Software"
|
||||||
|
#~ msgstr "Navegar no Software"
|
||||||
|
|
||||||
|
#~ msgid "Password:"
|
||||||
|
#~ msgstr "Senha:"
|
||||||
|
|
||||||
|
#~ msgid "Type again:"
|
||||||
|
#~ msgstr "Digite novamente:"
|
||||||
|
|
||||||
|
#~ msgid "Authentication required by wireless network"
|
||||||
|
#~ msgstr "Autenticação requisitada pela rede sem fio"
|
||||||
|
|
||||||
|
#~ msgid "Mobile broadband network password"
|
||||||
|
#~ msgstr "Senha da rede de banda larga móvel"
|
||||||
|
|
||||||
|
#~ msgid "Password"
|
||||||
|
#~ msgstr "Senha"
|
||||||
|
|
||||||
#~ msgctxt "search-result"
|
#~ msgctxt "search-result"
|
||||||
#~ msgid "Lock Orientation"
|
#~ msgid "Lock Orientation"
|
||||||
#~ msgstr "Bloquear orientação"
|
#~ msgstr "Bloquear orientação"
|
||||||
@@ -2913,9 +3008,6 @@ msgstr "Sons do sistema"
|
|||||||
#~ msgstr[0] "%d dispositivo conectado"
|
#~ msgstr[0] "%d dispositivo conectado"
|
||||||
#~ msgstr[1] "%d dispositivos conectados"
|
#~ msgstr[1] "%d dispositivos conectados"
|
||||||
|
|
||||||
#~ msgid "Authentication required"
|
|
||||||
#~ msgstr "Autenticação necessária"
|
|
||||||
|
|
||||||
# UPS significa uninterruptible power supply, mas no Brasil vejo usando mais
|
# UPS significa uninterruptible power supply, mas no Brasil vejo usando mais
|
||||||
# "No-break", que é a mesma coisa, então optei pela segunda. -- Rafael Fontenelle
|
# "No-break", que é a mesma coisa, então optei pela segunda. -- Rafael Fontenelle
|
||||||
#~ msgid "UPS"
|
#~ msgid "UPS"
|
||||||
|
375
po/sk.po
375
po/sk.po
@@ -10,8 +10,8 @@ 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: 2020-01-28 15:54+0000\n"
|
"POT-Creation-Date: 2020-02-03 20:34+0000\n"
|
||||||
"PO-Revision-Date: 2020-01-29 14:12+0100\n"
|
"PO-Revision-Date: 2020-02-04 10:59+0100\n"
|
||||||
"Last-Translator: Dušan Kazik <prescott66@gmail.com>\n"
|
"Last-Translator: Dušan Kazik <prescott66@gmail.com>\n"
|
||||||
"Language-Team: Slovak <gnome-sk-list@gnome.org>\n"
|
"Language-Team: Slovak <gnome-sk-list@gnome.org>\n"
|
||||||
"Language: sk\n"
|
"Language: sk\n"
|
||||||
@@ -51,12 +51,17 @@ msgstr "Zobraziť všetky aplikácie"
|
|||||||
msgid "Open the application menu"
|
msgid "Open the application menu"
|
||||||
msgstr "Otvoriť ponuku aplikácií"
|
msgstr "Otvoriť ponuku aplikácií"
|
||||||
|
|
||||||
#: data/gnome-shell-extension-prefs.desktop.in.in:4
|
#: data/org.gnome.Extensions.desktop.in.in:4 js/extensionPrefs/main.js:218
|
||||||
#: js/extensionPrefs/main.js:209
|
#: js/extensionPrefs/ui/extensions-window.ui:61
|
||||||
msgid "Shell Extensions"
|
msgid "Extensions"
|
||||||
msgstr "Rozšírenia pre Shell"
|
msgstr "Rozšírenia"
|
||||||
|
|
||||||
#: data/gnome-shell-extension-prefs.desktop.in.in:5
|
#: data/org.gnome.Extensions.desktop.in.in:5
|
||||||
|
#| msgid "Shell Extensions"
|
||||||
|
msgid "org.gnome.Extensions"
|
||||||
|
msgstr "org.gnome.Extensions"
|
||||||
|
|
||||||
|
#: data/org.gnome.Extensions.desktop.in.in:6
|
||||||
msgid "Configure GNOME Shell Extensions"
|
msgid "Configure GNOME Shell Extensions"
|
||||||
msgstr "Nastavenie rozšírení pre Shell prostredia GNOME"
|
msgstr "Nastavenie rozšírení pre Shell prostredia GNOME"
|
||||||
|
|
||||||
@@ -377,7 +382,7 @@ msgstr "Zobrazené umiestnenia v svetových časoch"
|
|||||||
|
|
||||||
#: data/org.gnome.shell.gschema.xml.in:245
|
#: data/org.gnome.shell.gschema.xml.in:245
|
||||||
msgid "Automatic location"
|
msgid "Automatic location"
|
||||||
msgstr "Automatická poloha"
|
msgstr "Automatické umiestnenie"
|
||||||
|
|
||||||
#: data/org.gnome.shell.gschema.xml.in:246
|
#: data/org.gnome.shell.gschema.xml.in:246
|
||||||
msgid "Whether to fetch the current location or not"
|
msgid "Whether to fetch the current location or not"
|
||||||
@@ -389,7 +394,7 @@ msgstr "Umiestnenie"
|
|||||||
|
|
||||||
#: data/org.gnome.shell.gschema.xml.in:254
|
#: data/org.gnome.shell.gschema.xml.in:254
|
||||||
msgid "The location for which to show a forecast"
|
msgid "The location for which to show a forecast"
|
||||||
msgstr "Poloha pre zobrazenie predpovede"
|
msgstr "Umiestnenie, pre ktoré zobraziť predpoveď"
|
||||||
|
|
||||||
#: data/org.gnome.shell.gschema.xml.in:266
|
#: data/org.gnome.shell.gschema.xml.in:266
|
||||||
msgid "Attach modal dialog to the parent window"
|
msgid "Attach modal dialog to the parent window"
|
||||||
@@ -428,11 +433,44 @@ msgstr ""
|
|||||||
msgid "Network Login"
|
msgid "Network Login"
|
||||||
msgstr "Sieťové prihlásenie"
|
msgstr "Sieťové prihlásenie"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:102 js/extensionPrefs/main.js:525
|
#: js/extensionPrefs/main.js:140
|
||||||
|
#, javascript-format
|
||||||
|
msgid "Remove “%s”?"
|
||||||
|
msgstr "Odstrániť rozšírenie „%s“?"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:141
|
||||||
|
msgid ""
|
||||||
|
"If you remove the extension, you need to return to download it if you want "
|
||||||
|
"to enable it again"
|
||||||
|
msgstr ""
|
||||||
|
"Ak odstránite rozšírenie, budete ho musieť pre jeho opätovné povolenie znovu "
|
||||||
|
"prevziať."
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:144 js/gdm/authPrompt.js:170
|
||||||
|
#: js/ui/audioDeviceSelection.js:57 js/ui/components/networkAgent.js:107
|
||||||
|
#: js/ui/components/polkitAgent.js:139 js/ui/endSessionDialog.js:374
|
||||||
|
#: js/ui/extensionDownloader.js:166 js/ui/shellMountOperation.js:376
|
||||||
|
#: js/ui/shellMountOperation.js:386 js/ui/status/network.js:910
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Zrušiť"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:145
|
||||||
|
msgid "Remove"
|
||||||
|
msgstr "Odstrániť"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:217
|
||||||
|
msgid "translator-credits"
|
||||||
|
msgstr "Dušan Kazik <prescott66@gmail.com>"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:219
|
||||||
|
msgid "Manage your GNOME Extensions"
|
||||||
|
msgstr "Spravuje vaše rozšírenia prostredia GNOME"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/main.js:261 js/extensionPrefs/ui/extensions-window.ui:222
|
||||||
msgid "Something’s gone wrong"
|
msgid "Something’s gone wrong"
|
||||||
msgstr "Niečo sa pokazilo"
|
msgstr "Niečo sa pokazilo"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:109
|
#: js/extensionPrefs/main.js:268
|
||||||
msgid ""
|
msgid ""
|
||||||
"We’re very sorry, but there’s been a problem: the settings for this "
|
"We’re very sorry, but there’s been a problem: the settings for this "
|
||||||
"extension can’t be displayed. We recommend that you report the issue to the "
|
"extension can’t be displayed. We recommend that you report the issue to the "
|
||||||
@@ -441,39 +479,78 @@ msgstr ""
|
|||||||
"Ospravedlňujeme sa, ale vyskytol sa problém: Nastavenia tohoto rozšírenia sa "
|
"Ospravedlňujeme sa, ale vyskytol sa problém: Nastavenia tohoto rozšírenia sa "
|
||||||
"nedajú zobraziť. Odporúčame vám nahlásiť problém autorom rozšírenia."
|
"nedajú zobraziť. Odporúčame vám nahlásiť problém autorom rozšírenia."
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:116
|
#: js/extensionPrefs/main.js:275
|
||||||
msgid "Technical Details"
|
msgid "Technical Details"
|
||||||
msgstr "Technické podrobnosti"
|
msgstr "Technické podrobnosti"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:151
|
#: js/extensionPrefs/main.js:310
|
||||||
msgid "Copy Error"
|
msgid "Copy Error"
|
||||||
msgstr "Skopírovať chybu"
|
msgstr "Skopírovať chybu"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:178
|
#: js/extensionPrefs/main.js:337
|
||||||
msgid "Homepage"
|
msgid "Homepage"
|
||||||
msgstr "Domovská stránka"
|
msgstr "Domovská stránka"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:179
|
#: js/extensionPrefs/main.js:338
|
||||||
msgid "Visit extension homepage"
|
msgid "Visit extension homepage"
|
||||||
msgstr "Navštíviť domovskú stránku rozšírenia"
|
msgstr "Navštíviť domovskú stránku rozšírenia"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:467
|
#: js/extensionPrefs/main.js:449
|
||||||
msgid "No Extensions Installed"
|
#, javascript-format
|
||||||
|
msgid "%d extension will be updated on next login."
|
||||||
|
msgid_plural "%d extensions will be updated on next login.e"
|
||||||
|
msgstr[0] "%d rozšírení bude aktualizovaných po najbližšom prihlásení."
|
||||||
|
msgstr[1] "%d rozšírenie bude aktualizované po najbližšom prihlásení."
|
||||||
|
msgstr[2] "%d rozšírenia budú aktualizované po najbližšom prihlásení."
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:8
|
||||||
|
msgid "Help"
|
||||||
|
msgstr "Pomocník"
|
||||||
|
|
||||||
|
# summary
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:12
|
||||||
|
msgid "About Extensions"
|
||||||
|
msgstr "O aplikácii Rozšírenia"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:27
|
||||||
|
#| msgid ""
|
||||||
|
#| "Extensions can be installed through Software or <a href=\"https://"
|
||||||
|
#| "extensions.gnome.org\">extensions.gnome.org</a>."
|
||||||
|
msgid ""
|
||||||
|
"To find and add extensions, visit <a href=\"https://extensions.gnome.org"
|
||||||
|
"\">extensions.gnome.org</a>."
|
||||||
|
msgstr ""
|
||||||
|
"Ak chcete nájsť a pridať rozšírenia, navštívte adresu <a href=\"https://"
|
||||||
|
"extensions.gnome.org\">extensions.gnome.org</a>."
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:35
|
||||||
|
msgid "Warning"
|
||||||
|
msgstr "Upozornenie"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:46
|
||||||
|
msgid ""
|
||||||
|
"Extensions can cause system issues, including performance problems. If you "
|
||||||
|
"encounter problems with your system, it is recommended to disable all "
|
||||||
|
"extensions."
|
||||||
|
msgstr ""
|
||||||
|
"Rozšírenia môžu spôsobiť problémy so systémom, vrátane problémov s výkonom. "
|
||||||
|
"Ak sa stretnete s problémami s vaším systémom, odporúča sa zakázať všetky "
|
||||||
|
"rozšírenia."
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:133
|
||||||
|
msgid "Manually Installed"
|
||||||
|
msgstr "Ručne nainštalované"
|
||||||
|
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:157
|
||||||
|
msgid "Built-In"
|
||||||
|
msgstr "Vstavané"
|
||||||
|
|
||||||
|
# dialog title
|
||||||
|
#: js/extensionPrefs/ui/extensions-window.ui:198
|
||||||
|
msgid "No Installed Extensions"
|
||||||
msgstr "Žiadne nainštalované rozšírenia"
|
msgstr "Žiadne nainštalované rozšírenia"
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:477
|
#: js/extensionPrefs/ui/extensions-window.ui:234
|
||||||
msgid ""
|
|
||||||
"Extensions can be installed through Software or <a href=\"https://extensions."
|
|
||||||
"gnome.org\">extensions.gnome.org</a>."
|
|
||||||
msgstr ""
|
|
||||||
"Rozšírenia môžu byť nainštalované prostredníctvom aplikácie Softvér alebo "
|
|
||||||
"lokality <a href=\"https://extensions.gnome.org\">extensions.gnome.org</a>."
|
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:492
|
|
||||||
msgid "Browse in Software"
|
|
||||||
msgstr "Prehliadať v aplikácii Softvér"
|
|
||||||
|
|
||||||
#: js/extensionPrefs/main.js:532
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"We’re very sorry, but it was not possible to get the list of installed "
|
"We’re very sorry, but it was not possible to get the list of installed "
|
||||||
"extensions. Make sure you are logged into GNOME and try again."
|
"extensions. Make sure you are logged into GNOME and try again."
|
||||||
@@ -482,24 +559,20 @@ msgstr ""
|
|||||||
"rozšírení. Uistite sa, že ste prihlásený do prostredia GNOME a skúste to "
|
"rozšírení. Uistite sa, že ste prihlásený do prostredia GNOME a skúste to "
|
||||||
"znovu."
|
"znovu."
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:174 js/ui/audioDeviceSelection.js:57
|
#: js/extensionPrefs/ui/extensions-window.ui:287
|
||||||
#: js/ui/components/networkAgent.js:129 js/ui/components/polkitAgent.js:138
|
msgid "Logout…"
|
||||||
#: js/ui/endSessionDialog.js:374 js/ui/extensionDownloader.js:190
|
msgstr "Odhlásiť sa…"
|
||||||
#: js/ui/shellMountOperation.js:381 js/ui/shellMountOperation.js:391
|
|
||||||
#: js/ui/status/network.js:910
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr "Zrušiť"
|
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:188 js/gdm/authPrompt.js:241 js/gdm/authPrompt.js:476
|
#: js/gdm/authPrompt.js:184 js/gdm/authPrompt.js:237 js/gdm/authPrompt.js:468
|
||||||
msgid "Next"
|
msgid "Next"
|
||||||
msgstr "Ďalej"
|
msgstr "Ďalej"
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:237 js/ui/shellMountOperation.js:385
|
#: js/gdm/authPrompt.js:233 js/ui/shellMountOperation.js:380
|
||||||
#: js/ui/unlockDialog.js:44
|
#: js/ui/unlockDialog.js:44
|
||||||
msgid "Unlock"
|
msgid "Unlock"
|
||||||
msgstr "Odomknúť"
|
msgstr "Odomknúť"
|
||||||
|
|
||||||
#: js/gdm/authPrompt.js:239
|
#: js/gdm/authPrompt.js:235
|
||||||
msgctxt "button"
|
msgctxt "button"
|
||||||
msgid "Sign In"
|
msgid "Sign In"
|
||||||
msgstr "Prihlásiť sa"
|
msgstr "Prihlásiť sa"
|
||||||
@@ -524,8 +597,8 @@ msgstr "(napr., používateľ alebo %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:899 js/ui/components/networkAgent.js:256
|
#: js/gdm/loginDialog.js:899 js/ui/components/networkAgent.js:234
|
||||||
#: js/ui/components/networkAgent.js:279 js/ui/components/networkAgent.js:297
|
#: js/ui/components/networkAgent.js:257 js/ui/components/networkAgent.js:275
|
||||||
msgid "Username: "
|
msgid "Username: "
|
||||||
msgstr "Používateľské meno: "
|
msgstr "Používateľské meno: "
|
||||||
|
|
||||||
@@ -619,26 +692,26 @@ msgctxt "search-result"
|
|||||||
msgid "Lock Screen Rotation"
|
msgid "Lock Screen Rotation"
|
||||||
msgstr "Uzamknúť otočenie obrazovky"
|
msgstr "Uzamknúť otočenie obrazovky"
|
||||||
|
|
||||||
#: js/misc/util.js:116
|
#: js/misc/util.js:120
|
||||||
msgid "Command not found"
|
msgid "Command not found"
|
||||||
msgstr "Príkaz nebol nájdený"
|
msgstr "Príkaz nebol nájdený"
|
||||||
|
|
||||||
#. Replace "Error invoking GLib.shell_parse_argv: " with
|
#. Replace "Error invoking GLib.shell_parse_argv: " with
|
||||||
#. something nicer
|
#. something nicer
|
||||||
#: js/misc/util.js:152
|
#: js/misc/util.js:156
|
||||||
msgid "Could not parse command:"
|
msgid "Could not parse command:"
|
||||||
msgstr "Nepodarilo sa analyzovať príkaz:"
|
msgstr "Nepodarilo sa analyzovať príkaz:"
|
||||||
|
|
||||||
#: js/misc/util.js:160
|
#: js/misc/util.js:164
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Execution of “%s” failed:"
|
msgid "Execution of “%s” failed:"
|
||||||
msgstr "Spustenie „%s“ zlyhalo:"
|
msgstr "Spustenie „%s“ zlyhalo:"
|
||||||
|
|
||||||
#: js/misc/util.js:177
|
#: js/misc/util.js:181
|
||||||
msgid "Just now"
|
msgid "Just now"
|
||||||
msgstr "Práve teraz"
|
msgstr "Práve teraz"
|
||||||
|
|
||||||
#: js/misc/util.js:179
|
#: js/misc/util.js:183
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d minute ago"
|
msgid "%d minute ago"
|
||||||
msgid_plural "%d minutes ago"
|
msgid_plural "%d minutes ago"
|
||||||
@@ -646,7 +719,7 @@ msgstr[0] "Pred %d minútou"
|
|||||||
msgstr[1] "Pred %d minútami"
|
msgstr[1] "Pred %d minútami"
|
||||||
msgstr[2] "Pred %d minútami"
|
msgstr[2] "Pred %d minútami"
|
||||||
|
|
||||||
#: js/misc/util.js:183
|
#: js/misc/util.js:187
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d hour ago"
|
msgid "%d hour ago"
|
||||||
msgid_plural "%d hours ago"
|
msgid_plural "%d hours ago"
|
||||||
@@ -654,11 +727,11 @@ msgstr[0] "Pred %d hodinou"
|
|||||||
msgstr[1] "Pred %d hodinami"
|
msgstr[1] "Pred %d hodinami"
|
||||||
msgstr[2] "Pred %d hodinami"
|
msgstr[2] "Pred %d hodinami"
|
||||||
|
|
||||||
#: js/misc/util.js:187
|
#: js/misc/util.js:191
|
||||||
msgid "Yesterday"
|
msgid "Yesterday"
|
||||||
msgstr "Včera"
|
msgstr "Včera"
|
||||||
|
|
||||||
#: js/misc/util.js:189
|
#: js/misc/util.js:193
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d day ago"
|
msgid "%d day ago"
|
||||||
msgid_plural "%d days ago"
|
msgid_plural "%d days ago"
|
||||||
@@ -666,7 +739,7 @@ msgstr[0] "Pred %d dňom"
|
|||||||
msgstr[1] "Pred %d dňami"
|
msgstr[1] "Pred %d dňami"
|
||||||
msgstr[2] "Pred %d dňami"
|
msgstr[2] "Pred %d dňami"
|
||||||
|
|
||||||
#: js/misc/util.js:193
|
#: js/misc/util.js:197
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d week ago"
|
msgid "%d week ago"
|
||||||
msgid_plural "%d weeks ago"
|
msgid_plural "%d weeks ago"
|
||||||
@@ -674,7 +747,7 @@ msgstr[0] "Pred %d týždňom"
|
|||||||
msgstr[1] "Pred %d týždňami"
|
msgstr[1] "Pred %d týždňami"
|
||||||
msgstr[2] "Pred %d týždňami"
|
msgstr[2] "Pred %d týždňami"
|
||||||
|
|
||||||
#: js/misc/util.js:197
|
#: js/misc/util.js:201
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d month ago"
|
msgid "%d month ago"
|
||||||
msgid_plural "%d months ago"
|
msgid_plural "%d months ago"
|
||||||
@@ -682,7 +755,7 @@ msgstr[0] "Pred %d mesiacom"
|
|||||||
msgstr[1] "Pred %d mesiacmi"
|
msgstr[1] "Pred %d mesiacmi"
|
||||||
msgstr[2] "Pred %d mesiacmi"
|
msgstr[2] "Pred %d mesiacmi"
|
||||||
|
|
||||||
#: js/misc/util.js:200
|
#: js/misc/util.js:204
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d year ago"
|
msgid "%d year ago"
|
||||||
msgid_plural "%d years ago"
|
msgid_plural "%d years ago"
|
||||||
@@ -691,20 +764,20 @@ msgstr[1] "Pred %d rokmi"
|
|||||||
msgstr[2] "Pred %d rokmi"
|
msgstr[2] "Pred %d rokmi"
|
||||||
|
|
||||||
#. Translators: Time in 24h format
|
#. Translators: Time in 24h format
|
||||||
#: js/misc/util.js:233
|
#: js/misc/util.js:237
|
||||||
msgid "%H∶%M"
|
msgid "%H∶%M"
|
||||||
msgstr "%H:%M"
|
msgstr "%H:%M"
|
||||||
|
|
||||||
#. Translators: this is the word "Yesterday" followed by a
|
#. Translators: this is the word "Yesterday" followed by a
|
||||||
#. time string in 24h format. i.e. "Yesterday, 14:30"
|
#. time string in 24h format. i.e. "Yesterday, 14:30"
|
||||||
#: js/misc/util.js:239
|
#: js/misc/util.js:243
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "Yesterday, %H∶%M"
|
msgid "Yesterday, %H∶%M"
|
||||||
msgstr "Včera o %H:%M"
|
msgstr "Včera o %H:%M"
|
||||||
|
|
||||||
#. Translators: this is the week day name followed by a time
|
#. Translators: this is the week day name followed by a time
|
||||||
#. string in 24h format. i.e. "Monday, 14:30"
|
#. string in 24h format. i.e. "Monday, 14:30"
|
||||||
#: js/misc/util.js:245
|
#: js/misc/util.js:249
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%A, %H∶%M"
|
msgid "%A, %H∶%M"
|
||||||
msgstr "%A, %H:%M"
|
msgstr "%A, %H:%M"
|
||||||
@@ -712,7 +785,7 @@ msgstr "%A, %H:%M"
|
|||||||
#. Translators: this is the month name and day number
|
#. Translators: this is the month name and day number
|
||||||
#. followed by a time string in 24h format.
|
#. followed by a time string in 24h format.
|
||||||
#. i.e. "May 25, 14:30"
|
#. i.e. "May 25, 14:30"
|
||||||
#: js/misc/util.js:251
|
#: js/misc/util.js:255
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d, %H∶%M"
|
msgid "%B %-d, %H∶%M"
|
||||||
msgstr "%d. %B, %H:%M"
|
msgstr "%d. %B, %H:%M"
|
||||||
@@ -720,7 +793,7 @@ msgstr "%d. %B, %H:%M"
|
|||||||
#. Translators: this is the month name, day number, year
|
#. Translators: this is the month name, day number, year
|
||||||
#. number followed by a time string in 24h format.
|
#. number followed by a time string in 24h format.
|
||||||
#. i.e. "May 25 2012, 14:30"
|
#. i.e. "May 25 2012, 14:30"
|
||||||
#: js/misc/util.js:257
|
#: js/misc/util.js:261
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d %Y, %H∶%M"
|
msgid "%B %-d %Y, %H∶%M"
|
||||||
msgstr "%d. %B %Y, %H:%M"
|
msgstr "%d. %B %Y, %H:%M"
|
||||||
@@ -728,13 +801,13 @@ msgstr "%d. %B %Y, %H:%M"
|
|||||||
#. Show only the time if date is on today
|
#. Show only the time if date is on today
|
||||||
#. eslint-disable-line no-lonely-if
|
#. eslint-disable-line no-lonely-if
|
||||||
#. Translators: Time in 12h format
|
#. Translators: Time in 12h format
|
||||||
#: js/misc/util.js:262
|
#: js/misc/util.js:266
|
||||||
msgid "%l∶%M %p"
|
msgid "%l∶%M %p"
|
||||||
msgstr "%l:%M %p"
|
msgstr "%l:%M %p"
|
||||||
|
|
||||||
#. Translators: this is the word "Yesterday" followed by a
|
#. Translators: this is the word "Yesterday" followed by a
|
||||||
#. time string in 12h format. i.e. "Yesterday, 2:30 pm"
|
#. time string in 12h format. i.e. "Yesterday, 2:30 pm"
|
||||||
#: js/misc/util.js:268
|
#: js/misc/util.js:272
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "Yesterday, %l∶%M %p"
|
msgid "Yesterday, %l∶%M %p"
|
||||||
msgstr "Včera, %l:%M %p"
|
msgstr "Včera, %l:%M %p"
|
||||||
@@ -744,7 +817,7 @@ msgstr "Včera, %l:%M %p"
|
|||||||
# v ostatnych retazcoch je pouzite %e, tak to bude asi OK
|
# v ostatnych retazcoch je pouzite %e, tak to bude asi OK
|
||||||
#. Translators: this is the week day name followed by a time
|
#. Translators: this is the week day name followed by a time
|
||||||
#. string in 12h format. i.e. "Monday, 2:30 pm"
|
#. string in 12h format. i.e. "Monday, 2:30 pm"
|
||||||
#: js/misc/util.js:274
|
#: js/misc/util.js:278
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%A, %l∶%M %p"
|
msgid "%A, %l∶%M %p"
|
||||||
msgstr "%A, %l:%M %p"
|
msgstr "%A, %l:%M %p"
|
||||||
@@ -752,7 +825,7 @@ msgstr "%A, %l:%M %p"
|
|||||||
#. Translators: this is the month name and day number
|
#. Translators: this is the month name and day number
|
||||||
#. followed by a time string in 12h format.
|
#. followed by a time string in 12h format.
|
||||||
#. i.e. "May 25, 2:30 pm"
|
#. i.e. "May 25, 2:30 pm"
|
||||||
#: js/misc/util.js:280
|
#: js/misc/util.js:284
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d, %l∶%M %p"
|
msgid "%B %-d, %l∶%M %p"
|
||||||
msgstr "%d. %B, %l:%M %p"
|
msgstr "%d. %B, %l:%M %p"
|
||||||
@@ -760,17 +833,17 @@ msgstr "%d. %B, %l:%M %p"
|
|||||||
#. Translators: this is the month name, day number, year
|
#. Translators: this is the month name, day number, year
|
||||||
#. number followed by a time string in 12h format.
|
#. number followed by a time string in 12h format.
|
||||||
#. i.e. "May 25 2012, 2:30 pm"
|
#. i.e. "May 25 2012, 2:30 pm"
|
||||||
#: js/misc/util.js:286
|
#: js/misc/util.js:290
|
||||||
#, no-c-format
|
#, no-c-format
|
||||||
msgid "%B %-d %Y, %l∶%M %p"
|
msgid "%B %-d %Y, %l∶%M %p"
|
||||||
msgstr "%d. %B %Y, %l:%M %p"
|
msgstr "%d. %B %Y, %l:%M %p"
|
||||||
|
|
||||||
#. TRANSLATORS: this is the title of the wifi captive portal login window
|
#. TRANSLATORS: this is the title of the wifi captive portal login window
|
||||||
#: js/portalHelper/main.js:40
|
#: js/portalHelper/main.js:42
|
||||||
msgid "Hotspot Login"
|
msgid "Hotspot Login"
|
||||||
msgstr "Prihlásenie do aktívneho bodu"
|
msgstr "Prihlásenie do aktívneho bodu"
|
||||||
|
|
||||||
#: js/portalHelper/main.js:86
|
#: js/portalHelper/main.js:88
|
||||||
msgid ""
|
msgid ""
|
||||||
"Your connection to this hotspot login is not secure. Passwords or other "
|
"Your connection to this hotspot login is not secure. Passwords or other "
|
||||||
"information you enter on this page can be viewed by people nearby."
|
"information you enter on this page can be viewed by people nearby."
|
||||||
@@ -1048,54 +1121,47 @@ msgstr "Nainštalovaná verzia programu udisks nepodporuje nastavenie PIM"
|
|||||||
msgid "Open with %s"
|
msgid "Open with %s"
|
||||||
msgstr "Otvoriť pomocou aplikácie %s"
|
msgstr "Otvoriť pomocou aplikácie %s"
|
||||||
|
|
||||||
#: js/ui/components/keyring.js:70 js/ui/components/polkitAgent.js:278
|
#: js/ui/components/networkAgent.js:89
|
||||||
msgid "Password:"
|
|
||||||
msgstr "Heslo:"
|
|
||||||
|
|
||||||
#: js/ui/components/keyring.js:104
|
|
||||||
msgid "Type again:"
|
|
||||||
msgstr "Zadajte znovu:"
|
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:115
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Alternatively you can connect by pushing the “WPS” button on your router."
|
"Alternatively you can connect by pushing the “WPS” button on your router."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Pripojiť sa môžete taktiež stlačením tlačidla „WPS“ na vašom smerovači."
|
"Pripojiť sa môžete taktiež stlačením tlačidla „WPS“ na vašom smerovači."
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:123 js/ui/status/network.js:223
|
#: js/ui/components/networkAgent.js:101 js/ui/status/network.js:223
|
||||||
#: js/ui/status/network.js:314 js/ui/status/network.js:913
|
#: js/ui/status/network.js:314 js/ui/status/network.js:913
|
||||||
msgid "Connect"
|
msgid "Connect"
|
||||||
msgstr "Pripojiť"
|
msgstr "Pripojiť"
|
||||||
|
|
||||||
#. Cisco LEAP
|
#. Cisco LEAP
|
||||||
#: js/ui/components/networkAgent.js:224 js/ui/components/networkAgent.js:236
|
#: js/ui/components/networkAgent.js:202 js/ui/components/networkAgent.js:214
|
||||||
#: js/ui/components/networkAgent.js:260 js/ui/components/networkAgent.js:281
|
#: js/ui/components/networkAgent.js:238 js/ui/components/networkAgent.js:259
|
||||||
#: js/ui/components/networkAgent.js:301 js/ui/components/networkAgent.js:311
|
#: js/ui/components/networkAgent.js:279 js/ui/components/networkAgent.js:289
|
||||||
msgid "Password: "
|
msgid "Password: "
|
||||||
msgstr "Heslo: "
|
msgstr "Heslo: "
|
||||||
|
|
||||||
#. static WEP
|
#. static WEP
|
||||||
#: js/ui/components/networkAgent.js:229
|
#: js/ui/components/networkAgent.js:207
|
||||||
msgid "Key: "
|
msgid "Key: "
|
||||||
msgstr "Kľúč: "
|
msgstr "Kľúč: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:264 js/ui/components/networkAgent.js:287
|
#: js/ui/components/networkAgent.js:242 js/ui/components/networkAgent.js:265
|
||||||
msgid "Private key password: "
|
msgid "Private key password: "
|
||||||
msgstr "Heslo k súkromnému kľúču: "
|
msgstr "Heslo k súkromnému kľúču: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:285
|
#: js/ui/components/networkAgent.js:263
|
||||||
msgid "Identity: "
|
msgid "Identity: "
|
||||||
msgstr "Identita: "
|
msgstr "Identita: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:299
|
#: js/ui/components/networkAgent.js:277
|
||||||
msgid "Service: "
|
msgid "Service: "
|
||||||
msgstr "Služba: "
|
msgstr "Služba: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:328 js/ui/components/networkAgent.js:703
|
#: js/ui/components/networkAgent.js:306 js/ui/components/networkAgent.js:334
|
||||||
msgid "Authentication required by wireless network"
|
#: js/ui/components/networkAgent.js:681 js/ui/components/networkAgent.js:702
|
||||||
msgstr "Bezdrôtová sieť vyžaduje overenie totožnosti"
|
msgid "Authentication required"
|
||||||
|
msgstr "Požaduje sa overenie totožnosti"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:329 js/ui/components/networkAgent.js:704
|
#: js/ui/components/networkAgent.js:307 js/ui/components/networkAgent.js:682
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Passwords or encryption keys are required to access the wireless network "
|
"Passwords or encryption keys are required to access the wireless network "
|
||||||
@@ -1104,59 +1170,55 @@ msgstr ""
|
|||||||
"Na prístup do bezdrôtovej siete „%s“ sú vyžadované heslá alebo šifrovacie "
|
"Na prístup do bezdrôtovej siete „%s“ sú vyžadované heslá alebo šifrovacie "
|
||||||
"kľúče."
|
"kľúče."
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:333 js/ui/components/networkAgent.js:708
|
#: js/ui/components/networkAgent.js:311 js/ui/components/networkAgent.js:686
|
||||||
msgid "Wired 802.1X authentication"
|
msgid "Wired 802.1X authentication"
|
||||||
msgstr "Overenie totožnosti k drôtovej sieti 802.1X"
|
msgstr "Overenie totožnosti k drôtovej sieti 802.1X"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:335
|
#: js/ui/components/networkAgent.js:313
|
||||||
msgid "Network name: "
|
msgid "Network name: "
|
||||||
msgstr "Názov siete: "
|
msgstr "Názov siete: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:340 js/ui/components/networkAgent.js:712
|
#: js/ui/components/networkAgent.js:318 js/ui/components/networkAgent.js:690
|
||||||
msgid "DSL authentication"
|
msgid "DSL authentication"
|
||||||
msgstr "Overenie totožnosti k DSL"
|
msgstr "Overenie totožnosti k DSL"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:347 js/ui/components/networkAgent.js:717
|
#: js/ui/components/networkAgent.js:325 js/ui/components/networkAgent.js:695
|
||||||
msgid "PIN code required"
|
msgid "PIN code required"
|
||||||
msgstr "Požaduje sa kód PIN"
|
msgstr "Požaduje sa kód PIN"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:348 js/ui/components/networkAgent.js:718
|
#: js/ui/components/networkAgent.js:326 js/ui/components/networkAgent.js:696
|
||||||
msgid "PIN code is needed for the mobile broadband device"
|
msgid "PIN code is needed for the mobile broadband device"
|
||||||
msgstr "Pre zariadenie mobilnej širokopásmovej siete je potrebný kód PIN"
|
msgstr "Pre zariadenie mobilnej širokopásmovej siete je potrebný kód PIN"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:349
|
#: js/ui/components/networkAgent.js:327
|
||||||
msgid "PIN: "
|
msgid "PIN: "
|
||||||
msgstr "PIN: "
|
msgstr "PIN: "
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:356 js/ui/components/networkAgent.js:724
|
#: js/ui/components/networkAgent.js:335 js/ui/components/networkAgent.js:687
|
||||||
msgid "Mobile broadband network password"
|
#: js/ui/components/networkAgent.js:691 js/ui/components/networkAgent.js:703
|
||||||
msgstr "Heslo k mobilnej širokopásmovej sieti"
|
#: js/ui/components/networkAgent.js:707
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:357 js/ui/components/networkAgent.js:709
|
|
||||||
#: js/ui/components/networkAgent.js:713 js/ui/components/networkAgent.js:725
|
|
||||||
#: js/ui/components/networkAgent.js:729
|
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "A password is required to connect to “%s”."
|
msgid "A password is required to connect to “%s”."
|
||||||
msgstr "Na pripojenie k „%s“ sa požaduje heslo."
|
msgstr "Na pripojenie k „%s“ sa požaduje heslo."
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:692 js/ui/status/network.js:1688
|
#: js/ui/components/networkAgent.js:670 js/ui/status/network.js:1688
|
||||||
msgid "Network Manager"
|
msgid "Network Manager"
|
||||||
msgstr "Správca siete"
|
msgstr "Správca siete"
|
||||||
|
|
||||||
#: js/ui/components/networkAgent.js:728
|
#: js/ui/components/networkAgent.js:706
|
||||||
msgid "VPN password"
|
msgid "VPN password"
|
||||||
msgstr "Heslo siete VPN"
|
msgstr "Heslo siete VPN"
|
||||||
|
|
||||||
#: js/ui/components/polkitAgent.js:41
|
#: js/ui/components/polkitAgent.js:39
|
||||||
msgid "Authentication Required"
|
msgid "Authentication Required"
|
||||||
msgstr "Požaduje sa overenie totožnosti"
|
msgstr "Požaduje sa overenie totožnosti"
|
||||||
|
|
||||||
# PŠ: ináč toto je riadna hlúposť, keďže sa pýta heslo používateľa "root"
|
# PŠ: ináč toto je riadna hlúposť, keďže sa pýta heslo používateľa "root"
|
||||||
#: js/ui/components/polkitAgent.js:81
|
#: js/ui/components/polkitAgent.js:80
|
||||||
msgid "Administrator"
|
msgid "Administrator"
|
||||||
msgstr "Správca"
|
msgstr "Správca"
|
||||||
|
|
||||||
#: js/ui/components/polkitAgent.js:141
|
#: js/ui/components/polkitAgent.js:142
|
||||||
msgid "Authenticate"
|
msgid "Authenticate"
|
||||||
msgstr "Overiť totožnosť"
|
msgstr "Overiť totožnosť"
|
||||||
|
|
||||||
@@ -1164,10 +1226,14 @@ msgstr "Overiť totožnosť"
|
|||||||
#. * requested authentication was not gained; this can happen
|
#. * requested authentication was not gained; this can happen
|
||||||
#. * because of an authentication error (like invalid password),
|
#. * because of an authentication error (like invalid password),
|
||||||
#. * for instance.
|
#. * for instance.
|
||||||
#: js/ui/components/polkitAgent.js:259 js/ui/shellMountOperation.js:365
|
#: js/ui/components/polkitAgent.js:254 js/ui/shellMountOperation.js:402
|
||||||
msgid "Sorry, that didn’t work. Please try again."
|
msgid "Sorry, that didn’t work. Please try again."
|
||||||
msgstr "Prepáčte, ale nezabralo to. Skúste to, prosím, znova."
|
msgstr "Prepáčte, ale nezabralo to. Skúste to, prosím, znova."
|
||||||
|
|
||||||
|
#: js/ui/components/polkitAgent.js:277 js/ui/shellMountOperation.js:326
|
||||||
|
msgid "Enter Password…"
|
||||||
|
msgstr "Zadajte heslo…"
|
||||||
|
|
||||||
#. Translators: this is the other person changing their old IM name to their new
|
#. Translators: this is the other person changing their old IM name to their new
|
||||||
#. IM name.
|
#. IM name.
|
||||||
#: js/ui/components/telepathyClient.js:787
|
#: js/ui/components/telepathyClient.js:787
|
||||||
@@ -1389,20 +1455,28 @@ msgstr "%s (vzdialená relácia)"
|
|||||||
msgid "%s (console)"
|
msgid "%s (console)"
|
||||||
msgstr "%s (konzola)"
|
msgstr "%s (konzola)"
|
||||||
|
|
||||||
#: js/ui/extensionDownloader.js:194
|
#: js/ui/extensionDownloader.js:170
|
||||||
msgid "Install"
|
msgid "Install"
|
||||||
msgstr "Inštalovať"
|
msgstr "Inštalovať"
|
||||||
|
|
||||||
# dialog title
|
# dialog title
|
||||||
#: js/ui/extensionDownloader.js:200
|
#: js/ui/extensionDownloader.js:176
|
||||||
msgid "Install Extension"
|
msgid "Install Extension"
|
||||||
msgstr "Inštalácia rozšírenia"
|
msgstr "Inštalácia rozšírenia"
|
||||||
|
|
||||||
#: js/ui/extensionDownloader.js:201
|
#: js/ui/extensionDownloader.js:177
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Download and install “%s” from extensions.gnome.org?"
|
msgid "Download and install “%s” from extensions.gnome.org?"
|
||||||
msgstr "Prevziať a nainštalovať rozšírenie „%s“ z extensions.gnome.org?"
|
msgstr "Prevziať a nainštalovať rozšírenie „%s“ z extensions.gnome.org?"
|
||||||
|
|
||||||
|
#: js/ui/extensionSystem.js:228
|
||||||
|
msgid "Extension Updates Available"
|
||||||
|
msgstr "Sú dostupné aktualizácie rozšírení"
|
||||||
|
|
||||||
|
#: js/ui/extensionSystem.js:229
|
||||||
|
msgid "Extension updates are ready to be installed."
|
||||||
|
msgstr "Aktualizácie rozšírení sú pripravené na inštaláciu."
|
||||||
|
|
||||||
# dialog title
|
# dialog title
|
||||||
#: js/ui/inhibitShortcutsDialog.js:79
|
#: js/ui/inhibitShortcutsDialog.js:79
|
||||||
msgid "Allow inhibiting shortcuts"
|
msgid "Allow inhibiting shortcuts"
|
||||||
@@ -1768,56 +1842,52 @@ msgstr "Skryť text"
|
|||||||
msgid "Caps lock is on."
|
msgid "Caps lock is on."
|
||||||
msgstr "Je zapnutá funkcia Caps Lock."
|
msgstr "Je zapnutá funkcia Caps Lock."
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:287
|
#: js/ui/shellMountOperation.js:285
|
||||||
msgid "Hidden Volume"
|
msgid "Hidden Volume"
|
||||||
msgstr "Skrytý zväzok"
|
msgstr "Skrytý zväzok"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:290
|
#: js/ui/shellMountOperation.js:288
|
||||||
msgid "Windows System Volume"
|
msgid "Windows System Volume"
|
||||||
msgstr "Zväzok so systémom Windows"
|
msgstr "Zväzok so systémom Windows"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:293
|
#: js/ui/shellMountOperation.js:291
|
||||||
msgid "Uses Keyfiles"
|
msgid "Uses Keyfiles"
|
||||||
msgstr "Využíva kľúčové súbory"
|
msgstr "Využíva kľúčové súbory"
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:299
|
#: js/ui/shellMountOperation.js:298
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead."
|
"To unlock a volume that uses keyfiles, use the <i>%s</i> utility instead."
|
||||||
msgstr "Na odomknutie zväzku s kľúčovými súbormi použite nástroj <i>%s</i>."
|
msgstr "Na odomknutie zväzku s kľúčovými súbormi použite nástroj <i>%s</i>."
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:306
|
#: js/ui/shellMountOperation.js:306
|
||||||
msgid "PIM Number"
|
msgid "Enter PIM Number…"
|
||||||
msgstr "Číslo PIM"
|
msgstr "Zadajte číslo PIM…"
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:325
|
#: js/ui/shellMountOperation.js:365
|
||||||
msgid "The PIM must be a number or empty."
|
|
||||||
msgstr "PIM musí byť číslo alebo prázdne."
|
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:336
|
|
||||||
msgid "Password"
|
|
||||||
msgstr "Heslo"
|
|
||||||
|
|
||||||
#: js/ui/shellMountOperation.js:372
|
|
||||||
msgid "Remember Password"
|
msgid "Remember Password"
|
||||||
msgstr "Zapamätať heslo"
|
msgstr "Zapamätať heslo"
|
||||||
|
|
||||||
# DK: doplnil som slovo "programu", aby to znelo prirodzenejsie. priklad:po pripojeni USB kluca bolo zobrazene "Otvoriť pomocou Súbory"
|
# DK: doplnil som slovo "programu", aby to znelo prirodzenejsie. priklad:po pripojeni USB kluca bolo zobrazene "Otvoriť pomocou Súbory"
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:396
|
#: js/ui/shellMountOperation.js:391
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Open %s"
|
msgid "Open %s"
|
||||||
msgstr "Otvoriť %s"
|
msgstr "Otvoriť %s"
|
||||||
|
|
||||||
|
#: js/ui/shellMountOperation.js:423
|
||||||
|
msgid "The PIM must be a number or empty."
|
||||||
|
msgstr "PIM musí byť číslo alebo prázdne."
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:468
|
#: js/ui/shellMountOperation.js:469
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Unable to start %s"
|
msgid "Unable to start %s"
|
||||||
msgstr "Nepodarilo sa spustiť %s"
|
msgstr "Nepodarilo sa spustiť %s"
|
||||||
|
|
||||||
#. Translators: %s is the Disks application
|
#. Translators: %s is the Disks application
|
||||||
#: js/ui/shellMountOperation.js:470
|
#: js/ui/shellMountOperation.js:471
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Couldn’t find the %s application"
|
msgid "Couldn’t find the %s application"
|
||||||
msgstr "Nepodarilo sa nájsť aplikáciu %s"
|
msgstr "Nepodarilo sa nájsť aplikáciu %s"
|
||||||
@@ -1931,7 +2001,7 @@ msgstr "Zobraziť rozloženie klávesnice"
|
|||||||
|
|
||||||
#: js/ui/status/location.js:65 js/ui/status/location.js:174
|
#: js/ui/status/location.js:65 js/ui/status/location.js:174
|
||||||
msgid "Location Enabled"
|
msgid "Location Enabled"
|
||||||
msgstr "Poloha povolená"
|
msgstr "Umiestnenie je povolené"
|
||||||
|
|
||||||
#: js/ui/status/location.js:66 js/ui/status/location.js:175
|
#: js/ui/status/location.js:66 js/ui/status/location.js:175
|
||||||
msgid "Disable"
|
msgid "Disable"
|
||||||
@@ -1943,11 +2013,11 @@ msgstr "Nastavenia súkromia"
|
|||||||
|
|
||||||
#: js/ui/status/location.js:173
|
#: js/ui/status/location.js:173
|
||||||
msgid "Location In Use"
|
msgid "Location In Use"
|
||||||
msgstr "Poloha sa používa"
|
msgstr "Používa sa umiestnenie"
|
||||||
|
|
||||||
#: js/ui/status/location.js:177
|
#: js/ui/status/location.js:177
|
||||||
msgid "Location Disabled"
|
msgid "Location Disabled"
|
||||||
msgstr "Poloha zakázaná"
|
msgstr "Umiestnenie je zakázané"
|
||||||
|
|
||||||
#: js/ui/status/location.js:178
|
#: js/ui/status/location.js:178
|
||||||
msgid "Enable"
|
msgid "Enable"
|
||||||
@@ -2180,11 +2250,11 @@ msgstr "Aktivácia pripojenia k sieti zlyhala"
|
|||||||
|
|
||||||
#: js/ui/status/nightLight.js:63
|
#: js/ui/status/nightLight.js:63
|
||||||
msgid "Night Light Disabled"
|
msgid "Night Light Disabled"
|
||||||
msgstr "Nočné svetlo zakázané"
|
msgstr "Nočné osvetlenie zakázané"
|
||||||
|
|
||||||
#: js/ui/status/nightLight.js:64
|
#: js/ui/status/nightLight.js:64
|
||||||
msgid "Night Light On"
|
msgid "Night Light On"
|
||||||
msgstr "Nočné svetlo zapnuté"
|
msgstr "Nočné osvetlenie zapnuté"
|
||||||
|
|
||||||
#: js/ui/status/nightLight.js:66
|
#: js/ui/status/nightLight.js:66
|
||||||
msgid "Resume"
|
msgid "Resume"
|
||||||
@@ -2216,13 +2286,13 @@ msgstr "Odhaduje sa…"
|
|||||||
#: js/ui/status/power.js:86
|
#: js/ui/status/power.js:86
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d∶%02d Remaining (%d %%)"
|
msgid "%d∶%02d Remaining (%d %%)"
|
||||||
msgstr "%d:%02d Zostáva (%d%%)"
|
msgstr "%d:%02d zostáva (%d%%)"
|
||||||
|
|
||||||
#. Translators: this is <hours>:<minutes> Until Full (<percentage>)
|
#. Translators: this is <hours>:<minutes> Until Full (<percentage>)
|
||||||
#: js/ui/status/power.js:91
|
#: js/ui/status/power.js:91
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d∶%02d Until Full (%d %%)"
|
msgid "%d∶%02d Until Full (%d %%)"
|
||||||
msgstr "%d:%02d Do plného nabitia (%d%%)"
|
msgstr "%d:%02d do plného nabitia (%d%%)"
|
||||||
|
|
||||||
#: js/ui/status/power.js:139 js/ui/status/power.js:141
|
#: js/ui/status/power.js:139 js/ui/status/power.js:141
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
@@ -2358,22 +2428,23 @@ msgstr "Hľadať"
|
|||||||
msgid "“%s” is ready"
|
msgid "“%s” is ready"
|
||||||
msgstr "Aplikácia „%s“ je pripravená"
|
msgstr "Aplikácia „%s“ je pripravená"
|
||||||
|
|
||||||
#: js/ui/windowManager.js:54
|
#. Translators: This string should be shorter than 30 characters
|
||||||
msgid "Do you want to keep these display settings?"
|
#: js/ui/windowManager.js:55
|
||||||
msgstr "Chcete ponechať tieto nastavenia displeja?"
|
msgid "Keep these display settings?"
|
||||||
|
msgstr "Ponechať nastavenia displeja?"
|
||||||
|
|
||||||
#. Translators: this and the following message should be limited in length,
|
#. Translators: this and the following message should be limited in length,
|
||||||
#. to avoid ellipsizing the labels.
|
#. to avoid ellipsizing the labels.
|
||||||
#.
|
#.
|
||||||
#: js/ui/windowManager.js:68
|
#: js/ui/windowManager.js:64
|
||||||
msgid "Revert Settings"
|
msgid "Revert Settings"
|
||||||
msgstr "Vrátiť nastavenia"
|
msgstr "Vrátiť nastavenia"
|
||||||
|
|
||||||
#: js/ui/windowManager.js:71
|
#: js/ui/windowManager.js:67
|
||||||
msgid "Keep Changes"
|
msgid "Keep Changes"
|
||||||
msgstr "Uchovať zmeny"
|
msgstr "Uchovať zmeny"
|
||||||
|
|
||||||
#: js/ui/windowManager.js:89
|
#: js/ui/windowManager.js:85
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "Settings changes will revert in %d second"
|
msgid "Settings changes will revert in %d second"
|
||||||
msgid_plural "Settings changes will revert in %d seconds"
|
msgid_plural "Settings changes will revert in %d seconds"
|
||||||
@@ -2383,7 +2454,7 @@ msgstr[2] "Zmeny nastavení budú vrátené za %d sekúnd"
|
|||||||
|
|
||||||
#. Translators: This represents the size of a window. The first number is
|
#. Translators: This represents the size of a window. The first number is
|
||||||
#. * the width of the window and the second is the height.
|
#. * the width of the window and the second is the height.
|
||||||
#: js/ui/windowManager.js:546
|
#: js/ui/windowManager.js:542
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid "%d × %d"
|
msgid "%d × %d"
|
||||||
msgstr "%d × %d"
|
msgstr "%d × %d"
|
||||||
@@ -2853,6 +2924,24 @@ msgstr[2] "%u vstupov"
|
|||||||
msgid "System Sounds"
|
msgid "System Sounds"
|
||||||
msgstr "Systémové zvuky"
|
msgstr "Systémové zvuky"
|
||||||
|
|
||||||
|
#~ msgid "Browse in Software"
|
||||||
|
#~ msgstr "Prehliadať v aplikácii Softvér"
|
||||||
|
|
||||||
|
#~ msgid "Password:"
|
||||||
|
#~ msgstr "Heslo:"
|
||||||
|
|
||||||
|
#~ msgid "Type again:"
|
||||||
|
#~ msgstr "Zadajte znovu:"
|
||||||
|
|
||||||
|
#~ msgid "Authentication required by wireless network"
|
||||||
|
#~ msgstr "Bezdrôtová sieť vyžaduje overenie totožnosti"
|
||||||
|
|
||||||
|
#~ msgid "Mobile broadband network password"
|
||||||
|
#~ msgstr "Heslo k mobilnej širokopásmovej sieti"
|
||||||
|
|
||||||
|
#~ msgid "Password"
|
||||||
|
#~ msgstr "Heslo"
|
||||||
|
|
||||||
# action button
|
# action button
|
||||||
#~ msgctxt "search-result"
|
#~ msgctxt "search-result"
|
||||||
#~ msgid "Lock Orientation"
|
#~ msgid "Lock Orientation"
|
||||||
@@ -2970,9 +3059,6 @@ msgstr "Systémové zvuky"
|
|||||||
#~ msgstr[1] "%d pripojené zariadenia"
|
#~ msgstr[1] "%d pripojené zariadenia"
|
||||||
#~ msgstr[2] "%d pripojených zariadení"
|
#~ msgstr[2] "%d pripojených zariadení"
|
||||||
|
|
||||||
#~ msgid "Authentication required"
|
|
||||||
#~ msgstr "Požaduje sa overenie totožnosti"
|
|
||||||
|
|
||||||
#~ msgid "UPS"
|
#~ msgid "UPS"
|
||||||
#~ msgstr "Záložný zdroj UPS"
|
#~ msgstr "Záložný zdroj UPS"
|
||||||
|
|
||||||
@@ -3171,9 +3257,6 @@ msgstr "Systémové zvuky"
|
|||||||
#~ msgid "Open"
|
#~ msgid "Open"
|
||||||
#~ msgstr "Otvoriť"
|
#~ msgstr "Otvoriť"
|
||||||
|
|
||||||
#~ msgid "Remove"
|
|
||||||
#~ msgstr "Odstrániť"
|
|
||||||
|
|
||||||
#~ msgid "Clear Messages"
|
#~ msgid "Clear Messages"
|
||||||
#~ msgstr "Vymazať správy"
|
#~ msgstr "Vymazať správy"
|
||||||
|
|
||||||
|
@@ -1443,8 +1443,9 @@ st_texture_cache_load_file_sync_to_cogl_texture (StTextureCache *cache,
|
|||||||
|
|
||||||
if (policy == ST_TEXTURE_CACHE_POLICY_FOREVER)
|
if (policy == ST_TEXTURE_CACHE_POLICY_FOREVER)
|
||||||
{
|
{
|
||||||
|
double resource_scale_double = resource_scale;
|
||||||
g_hash_table_insert (cache->priv->keyed_cache, g_strdup (key), image);
|
g_hash_table_insert (cache->priv->keyed_cache, g_strdup (key), image);
|
||||||
g_hash_table_insert (cache->priv->used_scales, &resource_scale, &resource_scale);
|
g_hash_table_insert (cache->priv->used_scales, &resource_scale_double, &resource_scale_double);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1491,10 +1492,11 @@ st_texture_cache_load_file_sync_to_cairo_surface (StTextureCache *cache,
|
|||||||
|
|
||||||
if (policy == ST_TEXTURE_CACHE_POLICY_FOREVER)
|
if (policy == ST_TEXTURE_CACHE_POLICY_FOREVER)
|
||||||
{
|
{
|
||||||
|
double resource_scale_double = resource_scale;
|
||||||
cairo_surface_reference (surface);
|
cairo_surface_reference (surface);
|
||||||
g_hash_table_insert (cache->priv->keyed_surface_cache,
|
g_hash_table_insert (cache->priv->keyed_surface_cache,
|
||||||
g_strdup (key), surface);
|
g_strdup (key), surface);
|
||||||
g_hash_table_insert (cache->priv->used_scales, &resource_scale, &resource_scale);
|
g_hash_table_insert (cache->priv->used_scales, &resource_scale_double, &resource_scale_double);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -1707,7 +1707,13 @@ do_size_property (StThemeNode *node,
|
|||||||
CRDeclaration *decl,
|
CRDeclaration *decl,
|
||||||
int *node_value)
|
int *node_value)
|
||||||
{
|
{
|
||||||
get_length_from_term_int (node, decl->value, FALSE, node_value);
|
CRTerm *term = decl->value;
|
||||||
|
|
||||||
|
if (term->type == TERM_IDENT &&
|
||||||
|
strcmp (term->content.str->stryng->str, "auto") == 0)
|
||||||
|
*node_value = -1;
|
||||||
|
else
|
||||||
|
get_length_from_term_int (node, term, FALSE, node_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -96,6 +96,9 @@ Displays a list of installed extensions.
|
|||||||
*--prefs*;;
|
*--prefs*;;
|
||||||
Only include extensions with preferences
|
Only include extensions with preferences
|
||||||
|
|
||||||
|
*--updates*;;
|
||||||
|
Only include extensions with pending updates
|
||||||
|
|
||||||
*-d*;;
|
*-d*;;
|
||||||
*--details*;;
|
*--details*;;
|
||||||
Show some extra information for each extension
|
Show some extra information for each extension
|
||||||
|
@@ -32,7 +32,8 @@ typedef enum {
|
|||||||
LIST_FLAGS_SYSTEM = 1 << 1,
|
LIST_FLAGS_SYSTEM = 1 << 1,
|
||||||
LIST_FLAGS_ENABLED = 1 << 2,
|
LIST_FLAGS_ENABLED = 1 << 2,
|
||||||
LIST_FLAGS_DISABLED = 1 << 3,
|
LIST_FLAGS_DISABLED = 1 << 3,
|
||||||
LIST_FLAGS_NO_PREFS = 1 << 4
|
LIST_FLAGS_NO_PREFS = 1 << 4,
|
||||||
|
LIST_FLAGS_NO_UPDATES = 1 << 5,
|
||||||
} ListFilterFlags;
|
} ListFilterFlags;
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@@ -69,11 +70,13 @@ list_extensions (ListFilterFlags filter, DisplayFormat format)
|
|||||||
g_autoptr (GVariantDict) info = NULL;
|
g_autoptr (GVariantDict) info = NULL;
|
||||||
double type, state;
|
double type, state;
|
||||||
gboolean has_prefs;
|
gboolean has_prefs;
|
||||||
|
gboolean has_update;
|
||||||
|
|
||||||
info = g_variant_dict_new (value);
|
info = g_variant_dict_new (value);
|
||||||
g_variant_dict_lookup (info, "type", "d", &type);
|
g_variant_dict_lookup (info, "type", "d", &type);
|
||||||
g_variant_dict_lookup (info, "state", "d", &state);
|
g_variant_dict_lookup (info, "state", "d", &state);
|
||||||
g_variant_dict_lookup (info, "hasPrefs", "b", &has_prefs);
|
g_variant_dict_lookup (info, "hasPrefs", "b", &has_prefs);
|
||||||
|
g_variant_dict_lookup (info, "hasUpdate", "b", &has_update);
|
||||||
|
|
||||||
if (type == TYPE_USER && (filter & LIST_FLAGS_USER) == 0)
|
if (type == TYPE_USER && (filter & LIST_FLAGS_USER) == 0)
|
||||||
continue;
|
continue;
|
||||||
@@ -90,6 +93,9 @@ list_extensions (ListFilterFlags filter, DisplayFormat format)
|
|||||||
if (!has_prefs && (filter & LIST_FLAGS_NO_PREFS) == 0)
|
if (!has_prefs && (filter & LIST_FLAGS_NO_PREFS) == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (!has_update && (filter & LIST_FLAGS_NO_UPDATES) == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (needs_newline)
|
if (needs_newline)
|
||||||
g_print ("\n");
|
g_print ("\n");
|
||||||
|
|
||||||
@@ -112,6 +118,7 @@ handle_list (int argc, char *argv[], gboolean do_help)
|
|||||||
gboolean enabled = FALSE;
|
gboolean enabled = FALSE;
|
||||||
gboolean disabled = FALSE;
|
gboolean disabled = FALSE;
|
||||||
gboolean has_prefs = FALSE;
|
gboolean has_prefs = FALSE;
|
||||||
|
gboolean has_updates = FALSE;
|
||||||
GOptionEntry entries[] = {
|
GOptionEntry entries[] = {
|
||||||
{ .long_name = "user",
|
{ .long_name = "user",
|
||||||
.arg = G_OPTION_ARG_NONE, .arg_data = &user,
|
.arg = G_OPTION_ARG_NONE, .arg_data = &user,
|
||||||
@@ -128,6 +135,9 @@ handle_list (int argc, char *argv[], gboolean do_help)
|
|||||||
{ .long_name = "prefs",
|
{ .long_name = "prefs",
|
||||||
.arg = G_OPTION_ARG_NONE, .arg_data = &has_prefs,
|
.arg = G_OPTION_ARG_NONE, .arg_data = &has_prefs,
|
||||||
.description = _("Show extensions with preferences") },
|
.description = _("Show extensions with preferences") },
|
||||||
|
{ .long_name = "updates",
|
||||||
|
.arg = G_OPTION_ARG_NONE, .arg_data = &has_updates,
|
||||||
|
.description = _("Show extensions with updates") },
|
||||||
{ .long_name = "details", .short_name = 'd',
|
{ .long_name = "details", .short_name = 'd',
|
||||||
.arg = G_OPTION_ARG_NONE, .arg_data = &details,
|
.arg = G_OPTION_ARG_NONE, .arg_data = &details,
|
||||||
.description = _("Print extension details") },
|
.description = _("Print extension details") },
|
||||||
@@ -174,6 +184,9 @@ handle_list (int argc, char *argv[], gboolean do_help)
|
|||||||
if (!has_prefs)
|
if (!has_prefs)
|
||||||
flags |= LIST_FLAGS_NO_PREFS;
|
flags |= LIST_FLAGS_NO_PREFS;
|
||||||
|
|
||||||
|
if (!has_updates)
|
||||||
|
flags |= LIST_FLAGS_NO_UPDATES;
|
||||||
|
|
||||||
return list_extensions (flags, details ? DISPLAY_DETAILED
|
return list_extensions (flags, details ? DISPLAY_DETAILED
|
||||||
: DISPLAY_ONELINE) ? 0 : 2;
|
: DISPLAY_ONELINE) ? 0 : 2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user