Compare commits
	
		
			35 Commits
		
	
	
		
			wip/fmuell
			...
			wip/sassWi
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					80d754916d | ||
| 
						 | 
					26fd0b7e7c | ||
| 
						 | 
					d476da8a69 | ||
| 
						 | 
					b2970f576c | ||
| 
						 | 
					77e3e61840 | ||
| 
						 | 
					aceb9fe825 | ||
| 
						 | 
					1842466069 | ||
| 
						 | 
					a92cf654d1 | ||
| 
						 | 
					ff700d3a28 | ||
| 
						 | 
					3b86d23e09 | ||
| 
						 | 
					74a8fbfdaf | ||
| 
						 | 
					8891261dea | ||
| 
						 | 
					c5daf63976 | ||
| 
						 | 
					e4f1db8f09 | ||
| 
						 | 
					1242beae1e | ||
| 
						 | 
					ca5a8bf57e | ||
| 
						 | 
					25ccc6ebd4 | ||
| 
						 | 
					f68421dca1 | ||
| 
						 | 
					4222e62b5a | ||
| 
						 | 
					075f53b5fa | ||
| 
						 | 
					161b86dc63 | ||
| 
						 | 
					3566933c04 | ||
| 
						 | 
					a1793d727f | ||
| 
						 | 
					ec0fc8bb8a | ||
| 
						 | 
					35a3aff8a4 | ||
| 
						 | 
					5f0b0094fb | ||
| 
						 | 
					32dd326d19 | ||
| 
						 | 
					f3a5571f46 | ||
| 
						 | 
					a0fe9909b3 | ||
| 
						 | 
					b9cf164e0b | ||
| 
						 | 
					5803ce5151 | ||
| 
						 | 
					4d8239a9a1 | ||
| 
						 | 
					082d403829 | ||
| 
						 | 
					2dbc7b5c51 | ||
| 
						 | 
					8ab1bbb2ad | 
							
								
								
									
										12
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						@@ -16,8 +16,11 @@ config.log
 | 
			
		||||
config.status
 | 
			
		||||
config
 | 
			
		||||
configure
 | 
			
		||||
data/org.gnome.Shell.desktop
 | 
			
		||||
data/org.gnome.Shell.desktop.in
 | 
			
		||||
data/50-gnome-shell-*.xml
 | 
			
		||||
data/gnome-shell.desktop
 | 
			
		||||
data/gnome-shell.desktop.in
 | 
			
		||||
data/gnome-shell-wayland.desktop
 | 
			
		||||
data/gnome-shell-wayland.desktop.in
 | 
			
		||||
data/gnome-shell-extension-prefs.desktop
 | 
			
		||||
data/gnome-shell-extension-prefs.desktop.in
 | 
			
		||||
data/gnome-shell-theme.gresource
 | 
			
		||||
@@ -25,9 +28,10 @@ data/gschemas.compiled
 | 
			
		||||
data/perf-background.xml
 | 
			
		||||
data/org.gnome.shell.gschema.xml
 | 
			
		||||
data/org.gnome.shell.gschema.valid
 | 
			
		||||
data/org.gnome.shell.evolution.calendar.gschema.xml
 | 
			
		||||
data/org.gnome.shell.evolution.calendar.gschema.valid
 | 
			
		||||
data/org.gnome.Shell.PortalHelper.desktop
 | 
			
		||||
data/org.gnome.Shell.PortalHelper.service
 | 
			
		||||
data/theme/.sass-cache
 | 
			
		||||
docs/reference/*/*.args
 | 
			
		||||
docs/reference/*/*.bak
 | 
			
		||||
docs/reference/*/*.hierarchy
 | 
			
		||||
@@ -71,6 +75,7 @@ src/*-marshal.[ch]
 | 
			
		||||
src/Makefile
 | 
			
		||||
src/Makefile.in
 | 
			
		||||
src/calendar-server/evolution-calendar.desktop
 | 
			
		||||
src/calendar-server/evolution-calendar.desktop.in
 | 
			
		||||
src/calendar-server/org.gnome.Shell.CalendarServer.service
 | 
			
		||||
src/gnome-shell
 | 
			
		||||
src/gnome-shell-calendar-server
 | 
			
		||||
@@ -81,7 +86,6 @@ src/gnome-shell-perf-helper
 | 
			
		||||
src/gnome-shell-perf-tool
 | 
			
		||||
src/gnome-shell-portal-helper
 | 
			
		||||
src/hotplug-sniffer/org.gnome.Shell.HotplugSniffer.service
 | 
			
		||||
src/org-gtk-application.[ch]
 | 
			
		||||
src/run-js-test
 | 
			
		||||
src/test-recorder
 | 
			
		||||
src/test-recorder.ogg
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							
							
						
						@@ -1,6 +1,3 @@
 | 
			
		||||
[submodule "data/theme/gnome-shell-sass"]
 | 
			
		||||
	path = data/theme/gnome-shell-sass
 | 
			
		||||
	url = git://git.gnome.org/gnome-shell-sass
 | 
			
		||||
[submodule "subprojects/gvc"]
 | 
			
		||||
	path = subprojects/gvc
 | 
			
		||||
[submodule "src/gvc"]
 | 
			
		||||
	path = src/gvc
 | 
			
		||||
	url = git://git.gnome.org/libgnome-volume-control
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								HACKING
									
									
									
									
									
								
							
							
						
						@@ -132,7 +132,7 @@ There are many approaches to classes in JavaScript. We use our own class framewo
 | 
			
		||||
(sigh), which is built in gjs. The advantage is that it supports inheriting from
 | 
			
		||||
GObjects, although this feature isn't used very often in the Shell itself.
 | 
			
		||||
 | 
			
		||||
    var IconLabelMenuItem = new Lang.Class({
 | 
			
		||||
    const IconLabelMenuItem = new Lang.Class({
 | 
			
		||||
        Name: 'IconLabelMenuItem',
 | 
			
		||||
        Extends: PopupMenu.PopupMenuBaseItem,
 | 
			
		||||
 | 
			
		||||
@@ -169,7 +169,7 @@ GObject Introspection is a powerful feature that allows us to have native
 | 
			
		||||
bindings for almost any library built around GObject. If a library requires
 | 
			
		||||
you to inherit from a type to use it, you can do so:
 | 
			
		||||
 | 
			
		||||
    var MyClutterActor = new Lang.Class({
 | 
			
		||||
    const MyClutterActor = new Lang.Class({
 | 
			
		||||
        Name: 'MyClutterActor',
 | 
			
		||||
        Extends: Clutter.Actor,
 | 
			
		||||
 | 
			
		||||
@@ -215,7 +215,7 @@ that has a property called `actor`. We call this wrapper class the "delegate".
 | 
			
		||||
We sometimes use expando properties to set a property called `_delegate` on
 | 
			
		||||
the actor itself:
 | 
			
		||||
 | 
			
		||||
    var MyClass = new Lang.Class({
 | 
			
		||||
    const MyClass = new Lang.Class({
 | 
			
		||||
        Name: 'MyClass',
 | 
			
		||||
 | 
			
		||||
        _init: function() {
 | 
			
		||||
@@ -264,7 +264,7 @@ prototype:
 | 
			
		||||
    const Lang = imports.lang;
 | 
			
		||||
    const FnorbLib = imports.fborbLib;
 | 
			
		||||
 | 
			
		||||
    var MyClass = new Lang.Class({
 | 
			
		||||
    const MyClass = new Lang.Class({
 | 
			
		||||
        _init: function() {
 | 
			
		||||
            let fnorb = new FnorbLib.Fnorb();
 | 
			
		||||
            fnorb.connect('frobate', Lang.bind(this, this._onFnorbFrobate));
 | 
			
		||||
@@ -304,9 +304,9 @@ designed around setting properties, like Tweener. If you want to animate an
 | 
			
		||||
arbitrary property, create a getter and setter, and use Tweener to animate the
 | 
			
		||||
property.
 | 
			
		||||
 | 
			
		||||
    var ANIMATION_TIME = 2000;
 | 
			
		||||
    const ANIMATION_TIME = 2000;
 | 
			
		||||
 | 
			
		||||
    var MyClass = new Lang.Class({
 | 
			
		||||
    const MyClass = new Lang.Class({
 | 
			
		||||
        Name: 'MyClass',
 | 
			
		||||
 | 
			
		||||
        _init: function() {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
# Point to our macro directory and pick up user flags from the environment
 | 
			
		||||
ACLOCAL_AMFLAGS  = -I m4 ${ACLOCAL_FLAGS}
 | 
			
		||||
 | 
			
		||||
SUBDIRS = data js subprojects/gvc src  tests po docs
 | 
			
		||||
SUBDIRS = data js src  tests po docs
 | 
			
		||||
 | 
			
		||||
if BUILD_BROWSER_PLUGIN
 | 
			
		||||
SUBDIRS += browser-plugin
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										875
									
								
								NEWS
									
									
									
									
									
								
							
							
						
						@@ -1,878 +1,3 @@
 | 
			
		||||
3.25.4
 | 
			
		||||
======
 | 
			
		||||
* gdm: Fix "Not listed" focus indication [Florian; #784040]
 | 
			
		||||
* Fix missing icons in freedesktop notifications [Florian; #784245]
 | 
			
		||||
* gdm: Disable user list when empty [Xiaoguang; #731320]
 | 
			
		||||
* gdm: Allow empty reponse to PAM messages [Ray; #784360]
 | 
			
		||||
* Fix blocked clicks in shutdown dialog [Florian; #781738]
 | 
			
		||||
* Show OSD popup when changing volume via scroll wheel [Florian; #781028]
 | 
			
		||||
* Refine list search results [Rares; #749957]
 | 
			
		||||
* Replace mutter's unresponsive app dialog [Carlos; #762083]
 | 
			
		||||
* Improve handling of extension errors [Florian; #781728]
 | 
			
		||||
* Implement tablet rings/strips configuration [Carlos; #782033]
 | 
			
		||||
* Adjust to mozjs52 update in gjs [Florian; #785084, #785090]
 | 
			
		||||
* Support the meson build system [Florian; #783229]
 | 
			
		||||
* Misc. bug fixes [Ray, Florian, Jonas, Marco, Shih-Yuan, Joaquim, Carlos S.;
 | 
			
		||||
  #780403, #772589, #784130, #783975, #784353, #784361, #772284, #765011,
 | 
			
		||||
  #765011, #765011, #784985, #781471, #785047, #736148, #736148]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Jonas Ådahl, Alessandro Bono, Michael Catanzaro, Carlos Garnacho,
 | 
			
		||||
  Shih-Yuan Lee (FourDollars), Florian Müllner, Joaquim Rocha,
 | 
			
		||||
  Mario Sanchez Prada, Carlos Soriano, Ray Strode, Marco Trevisan (Treviño),
 | 
			
		||||
  Rares Visalom, Xiaoguang Wang
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Jeremy Bicha po/es, he.po, Kukuh Syafaat [id], Fabio Tomat [fur]
 | 
			
		||||
 | 
			
		||||
3.25.3
 | 
			
		||||
======
 | 
			
		||||
* Bypass proxies for captive portal [Bastien; #769692]
 | 
			
		||||
* Correctly handle "text-shadow: none;" [Matt; #783485]
 | 
			
		||||
* Add StEntry:hint-actor property [Mario; #783484]
 | 
			
		||||
* Support text-shadow CSS property in StEntry [Mario; #783484]
 | 
			
		||||
* Misc. bug fixes [Jonas, Florian, Bastien, Ting-Wei, Cosimo, Mario, Sebastian;
 | 
			
		||||
  #777732, #783202, #783210, #783206, #783286, #783439, #783483, #783823,
 | 
			
		||||
  #781950]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Jonas Ådahl, Cosimo Cecchi, Sebastian Keller, Ting-Wei Lan, Florian Müllner,
 | 
			
		||||
  Bastien Nocera, Mario Sanchez Prada, Matt Watson
 | 
			
		||||
 | 
			
		||||
3.25.2
 | 
			
		||||
======
 | 
			
		||||
* Fix StEntry::primary-icon-clicked emission [Florian; #782190]
 | 
			
		||||
* Add an optional icon parameter to PopupMenu.addAction() [Mario; #782166]
 | 
			
		||||
* Allow search providers to include clipboard text with results [Daiki; #775099]
 | 
			
		||||
* Reduce dependency on Caribou [Carlos; #777342]
 | 
			
		||||
* Add transparency to top bar when free floating [Alessandro; #747163]
 | 
			
		||||
* Animate maximize/unmaximize operations [Alessandro; #766685]
 | 
			
		||||
* Misc. bug fixes [Florian, Matthias, Jeremy, Michael, Carlos, Lan; #782000,
 | 
			
		||||
  #780215, #782802, #782637, #782930, #755164, #780215, #782982]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Jeremy Bicha, Michael Biebl, Alessandro Bono, Carlos Garnacho, Ting-Wei Lan,
 | 
			
		||||
  Matthias Liertzer, Florian Müllner, Mario Sanchez Prada, Daiki Ueno
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Jordi Mas [ca], Christian Stadelmann [de], Милош Поповић [sr],
 | 
			
		||||
  Милош Поповић [sr@latin], Furkan Ahmet Kara [tr]
 | 
			
		||||
 | 
			
		||||
3.25.1
 | 
			
		||||
======
 | 
			
		||||
* Close Wifi selection dialog on lock [Florian; #780054]
 | 
			
		||||
* Fix DND over window previews in overview [Florian; #737166]
 | 
			
		||||
* Do not lock the screen when disabled by lockdown settings [Florian; #780212]
 | 
			
		||||
* Follow GNOME Weather's location permissions [Florian; #780252]
 | 
			
		||||
* Fix portals that require a new window to be loaded [Catalin; #759044]
 | 
			
		||||
* Fix restricting menus to screen height on HiDPI displays [Cosimo; #753305]
 | 
			
		||||
* Misc. bug fixes and cleanups [Florian, Cosimo, Bastien, Catalin, Carlos G.,
 | 
			
		||||
  Jonas, Carlos S., Xiaoguang, Rares, Emilio; #780063, #780321, #780381,
 | 
			
		||||
  #780453, #758873, #780606, #642652, #777732, #780157, #781482, #780404,
 | 
			
		||||
  #781545, #781728]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Jonas Ådahl, Cosimo Cecchi, Philip Chimento, Carlos Garnacho, Catalin Iacob,
 | 
			
		||||
  Florian Müllner, Bastien Nocera, Emilio Pozuelo Monfort, Carlos Soriano,
 | 
			
		||||
  Rares Visalom, Xiaoguang Wang
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Marek Cernocky [cs], Piotr Drąg [pl], Anders Jonsson [sv], Stas Solovey [ru],
 | 
			
		||||
  Rafael Fontenelle [pt_BR], Baurzhan Muftakhidinov [kk], Daniel Korostil [uk],
 | 
			
		||||
  Kukuh Syafaat [id], Milo Casagrande [it], Jiri Grönroos [fi],
 | 
			
		||||
  Daniel Mustieles [es], Balázs Úr [hu], Guillaume Bernard [fr],
 | 
			
		||||
  Changwoo Ryu [ko], Mario Blättermann [de], Fran Dieguez [gl],
 | 
			
		||||
  Dušan Kazik [sk], Yuras Shumovich [be], Fabio Tomat [fur],
 | 
			
		||||
  Kjartan Maraas [nb], Aurimas Černius [lt], Trần Ngọc Quân [vi],
 | 
			
		||||
  Rūdolfs Mazurs [lv], Γιάννης Κουτσούκος [el], gogo [hr], Марко Костић [sr],
 | 
			
		||||
  Jordi Mas [ca], Khaled Hosny [ar]
 | 
			
		||||
 | 
			
		||||
3.24.0
 | 
			
		||||
======
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  GNOME Translation Robot [tg], Мирослав Николић [sr, sr@latin],
 | 
			
		||||
  Guillaume Bernard [fr], Rūdolfs Mazurs [lv], Emin Tufan Çetin [tr],
 | 
			
		||||
  sujiniku [ja], Daniel Korostil [uk]
 | 
			
		||||
 | 
			
		||||
3.23.92
 | 
			
		||||
=======
 | 
			
		||||
* Implement DND to overview on wayland [Hyungwon; #765003]
 | 
			
		||||
* Make telepathy optional at runtime [Florian; #771721, #779878]
 | 
			
		||||
* Don't show forecasts for NYC when geoclue gets stuck [Sebastian; #779898]
 | 
			
		||||
* Add bottom edge drag gesture to bring up the OSK [Jan-Michael; #757712]
 | 
			
		||||
* Allow switching between pads in the same group [Carlos; #779986]
 | 
			
		||||
* Ignore showBanners policy for critical notifications [Florian; #779974]
 | 
			
		||||
* Misc. bug fixes [Florian; #779435, #779819, #779820]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Jan-Michael Brummer, Allan Day, Carlos Garnacho, Hyungwon Hwang,
 | 
			
		||||
  Sebastian Keller, Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Enrico Nicoletto [pt_BR], Jiri Grönroos [fi], Chao-Hsiung Liao [zh_TW],
 | 
			
		||||
  Piotr Drąg [pl], Piotr Drąg [he], Balázs Meskó [hu], Kris Thomsen [da],
 | 
			
		||||
  Yuras Shumovich [be], Sveinn í Felli [is], Inaki Larranaga Murgoitio [eu],
 | 
			
		||||
  Changwoo Ryu [ko], Jordi Mas [ca], Aurimas Černius [lt],
 | 
			
		||||
  Мирослав Николић [sr, sr@latin], Christian Kirbach [de], Anders Jonsson [sv],
 | 
			
		||||
  Fabio Tomat [fur], GNOME Translation Robot [gd], Dušan Kazik [sk],
 | 
			
		||||
  Kukuh Syafaat [id], Marek Černocký [cs], Stas Solovey [ru],
 | 
			
		||||
  Milo Casagrande [it], Fran Dieguez [gl], Daniel Boles [gl], A S Alam [pa],
 | 
			
		||||
  Daniel Mustieles [es]
 | 
			
		||||
 | 
			
		||||
3.23.91
 | 
			
		||||
=======
 | 
			
		||||
* Use the original timestamps for restored notifications [Florian; #766410]
 | 
			
		||||
* Add weather information to date+time drop-down [Florian; #754031]
 | 
			
		||||
* Refine message list layout in date+time drop-down [Florian; #775763]
 | 
			
		||||
* Make next/prev media controls insensitive when unavailable [Florian; #773884]
 | 
			
		||||
* Misc. bug fixes [Piotr, Bastien, Florian; #772210, #769546, #775799]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Piotr Drąg, Carlos Garnacho, Florian Müllner, Bastien Nocera
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Baurzhan Muftakhidinov [kk], Jordi Mas [ca], Ask Hjorth Larsen [da],
 | 
			
		||||
  Inaki Larranaga Murgoitio [eu], Daniel Mustieles [es], Dušan Kazik [sk],
 | 
			
		||||
  Aurimas Černius [lt], Jiri Grönroos [fi], Kjartan Maraas [nb],
 | 
			
		||||
  Piotr Drąg [pl], Daniel Korostil [uk], Kukuh Syafaat [id],
 | 
			
		||||
  Milo Casagrande [it], Fabio Tomat [fur], Rafael Fontenelle [pt_BR],
 | 
			
		||||
  Fran Dieguez [gl], Мирослав Николић [sr, sr@latin], Balázs Meskó [hu],
 | 
			
		||||
  Chao-Hsiung Liao [zh_TW]
 | 
			
		||||
 | 
			
		||||
3.23.90
 | 
			
		||||
=======
 | 
			
		||||
* Handle Ctrl+Q and Ctrl+W in portal window [Bastien; #764133]
 | 
			
		||||
* Allow to scroll through ibus candidates with mouse [Peng; #776032]
 | 
			
		||||
* Reload apps on .desktop file content changes [Adrian; #773636]
 | 
			
		||||
* Use private data/cache directories in portal helper [Bastien; #775639]
 | 
			
		||||
* Fix subsurfaces not showing up in previews [Rui; #756715]
 | 
			
		||||
* Fix theme node transitions [Florian; #778145]
 | 
			
		||||
* Update pad (o)leds on mode switches [Carlos; #776543]
 | 
			
		||||
* Add security indicators to defend against malicious portals [Bastien; #749197]
 | 
			
		||||
* Don't allow type ahead at the login screen [Ray; #766139]
 | 
			
		||||
* Don't fail to load because of TLS errors [Bastien; #778253]
 | 
			
		||||
* Ensure the network lists remains sorted on rename [Benjamin; #778686]
 | 
			
		||||
* Toggle power-off/suspend button on long-press [Florian; #721173]
 | 
			
		||||
* Add "kill-switch" for user extensions [Florian; #778664]
 | 
			
		||||
* Add night light indicator to status area [Florian; #741224]
 | 
			
		||||
* Misc. bug fixes [Michael, Bastien, Carlos, Rui, Florian, Alan, Philip, Jonas;
 | 
			
		||||
  #759793, #735233, #762444, #777784, #777934, #778158, #776199, #778425,
 | 
			
		||||
  #771098, #778552, #777317, #778660, #778661, #745626, #778672]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Jonas Ådahl, Benjamin Berg, Michael Catanzaro, Philip Chimento,
 | 
			
		||||
  Alan Coopersmith, Piotr Drąg, Carlos Garnacho, Yuri Konotopov,
 | 
			
		||||
  Lionel Landwerlin, Rui Matos, Florian Müllner, Bastien Nocera,
 | 
			
		||||
  Adrian Perez de Castro, Robert Roth, Ray Strode, Peng Wu
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Jiri Grönroos [fi], Balázs Meskó [hu], Gábor Kelemen [hu],
 | 
			
		||||
  Daniel Mustieles [es], Dušan Kazik [sk],
 | 
			
		||||
  Piotr Drąg [ar, eu, fa, hr, pa, pt, sr, sr@latin], Rafael Fontenelle [pt_BR],
 | 
			
		||||
  Jordi Mas [ca], Piotr Drąg [pl], Alexandre Franke [fr],
 | 
			
		||||
  Baurzhan Muftakhidinov [kk], Yuras Shumovich [be], Mandy Wang [zh_CN],
 | 
			
		||||
  Marek Černocký [cs], Kukuh Syafaat [id], Kjartan Maraas [nb],
 | 
			
		||||
  Daniel Korostil [uk]
 | 
			
		||||
 | 
			
		||||
3.23.3
 | 
			
		||||
======
 | 
			
		||||
* Fix replacing of GNotifications [Florian; #775149]
 | 
			
		||||
* Prepare for mozjs31 GJS [Philip; #775374]
 | 
			
		||||
* Misc. bug fixes [Niels, Jonas; #775507, #776130]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Jonas Ådahl, Michael Catanzaro, Philip Chimento, Niels De Graef,
 | 
			
		||||
  Carlos Garnacho, Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Muhammet Kara [tr], Christian Kirbach [de], Baurzhan Muftakhidinov [kk],
 | 
			
		||||
  Cheng-Chia Tseng [zh_TW], A S Alam [pa], Gianvito Cavasoli [it]
 | 
			
		||||
 | 
			
		||||
3.23.2
 | 
			
		||||
======
 | 
			
		||||
* Implement Pad configuration OSD [Carlos; #771067]
 | 
			
		||||
* Show overview on three-finger touchpad pinch [Carlos; #765937]
 | 
			
		||||
* Summarize network sections with too many devices [Florian; #773892]
 | 
			
		||||
* Always show primary network icon when connected [Florian; #773890]
 | 
			
		||||
* Fix fullscreen transitions on wayland [Rui; #770345]
 | 
			
		||||
* Work around portal failures by using a URL without HTPPS redirect [Debarshi; #769940]
 | 
			
		||||
* Fix app view hiding when no usage data is available [Florian, Xiaoguang; #774381]
 | 
			
		||||
* Misc. bug fixes [Florian, Ray; #773875, #740043, #773893, #774643, #774805]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Carlos Garnacho, Rui Matos, Florian Müllner, Debarshi Ray, Ray Strode,
 | 
			
		||||
  Xiaoguang Wang
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Balázs Meskó [hu], Fabio Tomat [fur], Marek Cernocky [cs], Stas Solovey [ru],
 | 
			
		||||
  Daniel Mustieles [es], Marek Černocký [cs], Piotr Drąg [pl],
 | 
			
		||||
  Rafael Fontenelle [pt_BR], Baurzhan Muftakhidinov [kk], Jiri Grönroos [fi],
 | 
			
		||||
  Kjartan Maraas [nb]
 | 
			
		||||
 | 
			
		||||
3.23.1
 | 
			
		||||
======
 | 
			
		||||
* Request periodic scans while WiFi list is open [Dan; #767918]
 | 
			
		||||
* Include extension UUID in structured log metadata [Jonh; #770717]
 | 
			
		||||
* Line-wrap PAM messages on login screen [Tao; #764445]
 | 
			
		||||
* Add a way to launch an app on the discrete GPU [Bastien; #773117]
 | 
			
		||||
* Only allow graphs to lift screen shield when locked [Florian; #773328]
 | 
			
		||||
* Add reload option to gnome-shell-extension-tool [Jonh; #772593]
 | 
			
		||||
* Update background animations when resuming from suspend [Florian; #773265]
 | 
			
		||||
* Misc. bug fixes [Cosimo, Bastien, Florian, Philip, Carlos; #772723, #772287,
 | 
			
		||||
  #756432, #772386, #772386, #773085, #773634]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Cosimo Cecchi, Philip Chimento, Carlos Garcia Campos, Florian Müllner,
 | 
			
		||||
  Bastien Nocera, Jonh Wendell, Dan Williams, Tao Yang
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Fabio Tomat [fur], Philip Chimento [zh_CN], YunQiang Su [zh_CN],
 | 
			
		||||
  Jordi Mas [ca], Piotr Drąg [pl], Muhammet Kara [tr], Marek Černocký [cs],
 | 
			
		||||
  Daniel Korostil [uk], Dušan Kazik [sk]
 | 
			
		||||
 | 
			
		||||
3.22.1
 | 
			
		||||
======
 | 
			
		||||
* Fix hidden network indicator on startup [Florian; #772249]
 | 
			
		||||
* Fix order of windows with modal dialogs in window switcher [Florian; #747153]
 | 
			
		||||
* Fix feedback loop between StClipboard and X11 bridge [Carlos; #760745]
 | 
			
		||||
* Reliably match windows from Flatpak apps [Florian; #772615]
 | 
			
		||||
* Misc. bug fixes [Philip; #742249]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Philip Chimento, Carlos Garnacho, Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Inaki Larranaga Murgoitio [eu], Khaled Hosny [ar], BM [uz@cyrillic],
 | 
			
		||||
  Milo Casagrande [it], Cheng-Chia Tseng [zh_TW], gogo [hr]
 | 
			
		||||
 | 
			
		||||
3.22.0
 | 
			
		||||
======
 | 
			
		||||
* Misc. bug fixes [Florian, Rui; #771391, #771536] #771656]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Rui Matos, Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Ask Hjorth Larsen [da], GNOME Translation Robot [gd], Alexandre Franke [fr],
 | 
			
		||||
  Daniel Korostil [uk], Jordi Mas [ca], Khaled Hosny [ar], David King [en_GB]
 | 
			
		||||
 | 
			
		||||
3.21.92
 | 
			
		||||
=======
 | 
			
		||||
* Adjust screen capture to work with multiple stage views [Jonas; #770128]
 | 
			
		||||
* Improve handling of cycle shortcuts [Florian; #771063]
 | 
			
		||||
* Fix windows not getting undimmed in some cases [Rui; #770163, #752524]
 | 
			
		||||
* Disable extension version check by default [Florian; #770887]
 | 
			
		||||
* Misc. bug fixes [Rui, Florian, Michael; #770382, #770888, #770328]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Jonas Ådahl, Michael Catanzaro, Fran Dieguez, Olivier Fourdan, Rui Matos,
 | 
			
		||||
  Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Changwoo Ryu [ko], Baurzhan Muftakhidinov [kk], Aurimas Černius [lt],
 | 
			
		||||
  Muhammet Kara [tr], Trần Ngọc Quân [vi], A S Alam [pa], Yosef Or Boczko [he],
 | 
			
		||||
  Anders Jonsson [sv], Tiago Santos [pt], Hannie Dumoleyn [nl],
 | 
			
		||||
  Rūdolfs Mazurs [lv], Claude Paroz [fr], Arash Mousavi [fa],
 | 
			
		||||
  Fran Dieguez [gl], Stas Solovey [ru], Tom Tryfonidis [el]
 | 
			
		||||
 | 
			
		||||
3.21.91
 | 
			
		||||
=======
 | 
			
		||||
Translations:
 | 
			
		||||
  Mario Blättermann [de], Jiri Grönroos [fi], Dušan Kazik [sk],
 | 
			
		||||
  Andika Triwidada [id], Daniel Mustieles [es], Fabio Tomat [fur],
 | 
			
		||||
  Enrico Nicoletto [pt_BR], Matej Urbančič [sl], Мирослав Николић [sr, sr@latin]
 | 
			
		||||
 | 
			
		||||
3.21.90.1
 | 
			
		||||
=========
 | 
			
		||||
Contributors:
 | 
			
		||||
  Piotr Drąg
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Marek Černocký [cs], Balázs Úr [hu]
 | 
			
		||||
 | 
			
		||||
3.21.90
 | 
			
		||||
=======
 | 
			
		||||
* Improve on-screen keyboard on wayland [Carlos; #765009]
 | 
			
		||||
* Misc. bug fixes [Florian; #769156, #769216, #769074]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Carlos Garnacho, Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Fabio Tomat [fur], Tiago Santos [pt], Daniel Mustieles [es],
 | 
			
		||||
  Bernd Homuth [de], Aurimas Černius [lt], Balázs Úr [hu],
 | 
			
		||||
  Yosef Or Boczko [he], Jiri Grönroos [fi], Marek Cernocky [cs],
 | 
			
		||||
  Muhammet Kara [tr], Enrico Nicoletto [pt_BR], Andika Triwidada [id]
 | 
			
		||||
 | 
			
		||||
3.21.4
 | 
			
		||||
======
 | 
			
		||||
* overview: Fix switching workspaces when scrolling on non-primary monitors
 | 
			
		||||
  [Florian; #766883, #768316]
 | 
			
		||||
* Fix crash when using screen recorder under wayland [Rui; #767001]
 | 
			
		||||
* Update theme on video memory purge errors [Rui; #739178]
 | 
			
		||||
* Free old backgrounds immediately [Hyungwon; #766353]
 | 
			
		||||
* Add support for system upgrades to end session dialog [Kalev; #763611]
 | 
			
		||||
* Fix maximized windows flickering to the wrong size on restart [Owen; #761566]
 | 
			
		||||
* Hide ignored events in calendar as well [Florian; #768538]
 | 
			
		||||
* calendar: Only hide dismissed occurrence of recurring event [Florian; #748226]
 | 
			
		||||
* Provide org.freedesktop.impl.portal.access implementation [Florian; #768669]
 | 
			
		||||
* Misc. bug fixes and cleanups [Rui, Florian, Marinus, Jonas; #767954, #768317,
 | 
			
		||||
  #746867, #762206, #768956, #768979]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Jonas Ådahl, Piotr Drąg, Hyungwon Hwang, Kalev Lember, Rui Matos,
 | 
			
		||||
  Florian Müllner, Marinus Schraal, Owen W. Taylor
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Andika Triwidada [id], Daniel Mustieles [es], Bruce Cowan [en_GB],
 | 
			
		||||
  Dušan Kazik [sk], Piotr Drąg [pl], Chao-Hsiung Liao [zh_HK]
 | 
			
		||||
 | 
			
		||||
3.21.3
 | 
			
		||||
======
 | 
			
		||||
 * Do not disable suspend action when locked [Florian; #725960]
 | 
			
		||||
 * Remember input sources MRU list [Cosimo; #766826]
 | 
			
		||||
 * networkAgent: Handle VPN service aliases [David; #658484]
 | 
			
		||||
 * Plug a memory leak [Hans; #710230]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Cosimo Cecchi, Florian Müllner, Hans Petter Jansson, David Woodhouse
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Tiago Santos [pt], Cédric Valmary [oc], Muhammet Kara [tr],
 | 
			
		||||
  Daniel Mustieles [es], Rafael Fontenelle [pt_BR]
 | 
			
		||||
 | 
			
		||||
3.21.2
 | 
			
		||||
======
 | 
			
		||||
* Fix sorting of hidden apps in app switcher [Florian; #766238]
 | 
			
		||||
* Set logind's LockedHint property when locked [Victor; #764773]
 | 
			
		||||
* Allocate framebuffers early to fix a crash on NVIDIA [Martin; #764898]
 | 
			
		||||
* Fix cycle-windows/cycle-group keybindings [Florian; #730739]
 | 
			
		||||
* Switch to shared desktop schema for calendar settings [Iain; #766318]
 | 
			
		||||
* Misc. bug fixes [Florian, Cosimo, Michele; #766325, #758471, #757556,
 | 
			
		||||
  #757019, #766598]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Cosimo Cecchi, Michele Gaio, Iain Lane, Florian Müllner, Martin Szulecki,
 | 
			
		||||
  Victor Toso
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Tiago Santos [pt], Kjartan Maraas [nb], Jiro Matsuzawa [ja],
 | 
			
		||||
  Cédric Valmary [oc], Sveinn í Felli [is]
 | 
			
		||||
 | 
			
		||||
3.21.1
 | 
			
		||||
======
 | 
			
		||||
* Save screencasts in HOME if XDG_VIDEO_DIR doesn't exist [Florian; #765015]
 | 
			
		||||
* Don't show orientation lock when g-s-d won't rotate [Florian; #765267]
 | 
			
		||||
* Misc. bug fixes [Heiher, Florian, Marek, Rui; #722752, #765061, #763068,
 | 
			
		||||
  #765607, #757676, #760439]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Heiher, Marek Chalupa, Rui Matos, Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Arash Mousavi [fa], Kristjan SCHMIDT [eo], GNOME Translation Robot [gd]
 | 
			
		||||
 | 
			
		||||
3.20.1
 | 
			
		||||
======
 | 
			
		||||
* Plug a memory leak [Aaron; #735705]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Aaron Plattner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Daniel Korostil [uk], Matej Urbančič [sl], Inaki Larranaga Murgoitio [eu],
 | 
			
		||||
  Cheng-Chia Tseng [zh_TW], Fabio Tomat [fur], Trần Ngọc Quân [vi],
 | 
			
		||||
  YunQiang Su [zh_CN], Marek Černocký [cs], Arash Mousavi [fa],
 | 
			
		||||
  Alexander Shopov [bg], Khaled Hosny [ar]
 | 
			
		||||
 | 
			
		||||
3.20.0
 | 
			
		||||
======
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Changwoo Ryu [ko], Baurzhan Muftakhidinov [kk], Milo Casagrande [it],
 | 
			
		||||
  Anders Jonsson [sv], Muhammet Kara [tr], Alexandre Franke [fr],
 | 
			
		||||
  Rūdolfs Mazurs [lv], Ask Hjorth Larsen [da], Jiro Matsuzawa [ja]
 | 
			
		||||
 | 
			
		||||
3.19.92
 | 
			
		||||
=======
 | 
			
		||||
* Update location dialog according to latest mockups [Zeeshan; #762480]
 | 
			
		||||
* Fix deleting chat notifications in calendar [Florian; #747991]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Zeeshan Ali (Khattak), Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Rūdolfs Mazurs [lv], Changwoo Ryu [ko], Matej Urbančič [sl],
 | 
			
		||||
  Justin van Steijn [nl], Fabio Tomat [fur], Kris Thomsen [da],
 | 
			
		||||
  Marek Černocký [cs], Piotr Drąg [pl], Dušan Kazik [sk],
 | 
			
		||||
  Мирослав Николић [sr, sr@latin], Balázs Úr [hu], Yosef Or Boczko [he],
 | 
			
		||||
  Daniel Mustieles [es], Fran Dieguez [gl], Bernd Homuth [de],
 | 
			
		||||
  Tom Tryfonidis [el], Jiri Grönroos [fi], Gil Forcada [ca],
 | 
			
		||||
  Artur Morais [pt_BR], Aurimas Černius [lt], Stas Solovey [ru]
 | 
			
		||||
 | 
			
		||||
3.19.91
 | 
			
		||||
=======
 | 
			
		||||
* location: Ask user only once [Zeeshan; #762559]
 | 
			
		||||
* Fix jiggling when auto-hiding legacy tray [Florian; #747957]
 | 
			
		||||
* Misc. bug fixes [Florian, Michael, Ting-Wei; #762475, #762507, #755659]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Zeeshan Ali (Khattak), Michael Catanzaro, Ting-Wei Lan, Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Мирослав Николић [sr, sr@latin], Piotr Drąg [pl], A S Alam [pa],
 | 
			
		||||
  Artur de Aquino Morais [pt_BR], Daniel Mustieles [es],
 | 
			
		||||
  Chao-Hsiung Liao [zh_TW], Daniel Korostil [uk], Fran Dieguez [gl],
 | 
			
		||||
  Tom Tryfonidis [el], Bernd Homuth [de], Sebastian Rasmussen [sv],
 | 
			
		||||
  Jordi Mas [ca], Piotr Drąg [ga], Cédric Valmary [oc], Gábor Kelemen [hu],
 | 
			
		||||
  Baurzhan Muftakhidinov [kk], Friedel Wolff [af], Marek Černocký [cs],
 | 
			
		||||
  Mingye Wang (Arthur2e5) [zh_CN], Aron Xu [zh_CN], Khaled Hosny [ar],
 | 
			
		||||
  Aurimas Černius [lt], Stas Solovey [ru], Yosef Or Boczko [he]
 | 
			
		||||
 | 
			
		||||
3.19.90
 | 
			
		||||
=======
 | 
			
		||||
* Correctly identify VPN secret requests [Lubomir; #760999]
 | 
			
		||||
* Improve week number presentation [Jakub; #683245]
 | 
			
		||||
* Add audio device selection dialog [Florian; #760284]
 | 
			
		||||
* Add media controls to the time and date drop down [Florian; #756491]
 | 
			
		||||
* Fix IBus candidate popup position under wayland [Rui; #753476]
 | 
			
		||||
* Ask user to grant applications access to location [Zeeshan; #762119]
 | 
			
		||||
* Misc. bug fixes [Mario, Jakub, Florian; #761208, #761772, #762270]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Zeeshan Ali (Khattak), Michael Catanzaro, Rui Matos, Florian Müllner,
 | 
			
		||||
  Lubomir Rintel, Mario Sanchez Prada, Jakub Steiner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Alexander Shopov [bg], Balázs Meskó [hu], Fabio Tomat [fur],
 | 
			
		||||
  Dušan Kazik [sk], Piotr Drąg [pl], Alexandre Franke [fr],
 | 
			
		||||
  Mario Blättermann [de], Milo Casagrande [it], Jordi Mas [ca]
 | 
			
		||||
 | 
			
		||||
3.19.4
 | 
			
		||||
======
 | 
			
		||||
* gdm: Do not allow bypassing disabled Sign In button [Michael; #746180]
 | 
			
		||||
* Style week numbers in calendar [Jakub; #683245]
 | 
			
		||||
* Misc. bug fixes [Christophe, Jakub, Rui; #759708, #760577, #760945]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Michael Catanzaro, Marek Černocký, Christophe Fergeau, Rui Matos,
 | 
			
		||||
  Jakub Steiner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Aurimas Černius [lt], Enrico Nicoletto [pt_BR], Andika Triwidada [id],
 | 
			
		||||
  Mario Blättermann [de], Marek Černocký [cs], Kjartan Maraas [nb],
 | 
			
		||||
  Muhammet Kara [tr], Stas Solovey [ru]
 | 
			
		||||
 | 
			
		||||
3.19.3
 | 
			
		||||
======
 | 
			
		||||
* Fix thumbnail scaling in window switcher on HiDPI [Florian; #758676]
 | 
			
		||||
* Update animated backgrounds on timezone changes [Florian; #758939]
 | 
			
		||||
* loginDialog: Update user list on user changes [Michael; #758568]
 | 
			
		||||
* Fix touch interaction on wayland [Carlos; #756748]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Michael Catanzaro, Carlos Garnacho, Kalev Lember, Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Daniel Korostil [uk], Muhammet Kara [tr], Dušan Kazik [sk],
 | 
			
		||||
  Baurzhan Muftakhidinov [kk], Marek Černocký [cs]
 | 
			
		||||
 | 
			
		||||
3.19.2
 | 
			
		||||
======
 | 
			
		||||
* Make gnome-shell DBus activatable [Ray; #741666]
 | 
			
		||||
* Fix browser plugin crash in Firefox [Carlos; #737932, #757940]
 | 
			
		||||
* Optionally show battery percentage in system status area [Bastien; #735771]
 | 
			
		||||
* Misc. bug fixes [Kalev, Florian, Bastien; #757418, #757668, #757779, #757816,
 | 
			
		||||
  #745626, #758220]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Michael Biebl, Michael Catanzaro, Piotr Drąg, Carlos Garcia Campos,
 | 
			
		||||
  Kalev Lember, Florian Müllner, Bastien Nocera, Ray Strode
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Pedro Albuquerque [pt], liushuyu [zh_CN], Yosef Or Boczko [he],
 | 
			
		||||
  Jiri Grönroos [fi], Kjartan Maraas [nb], GNOME Translation Robot [gd],
 | 
			
		||||
  Daniel Mustieles [es], Marek Černocký [cs], Kristjan SCHMIDT [eo],
 | 
			
		||||
  Stas Solovey [ru]
 | 
			
		||||
 | 
			
		||||
3.19.1
 | 
			
		||||
======
 | 
			
		||||
* Respect text-scaling factor under wayland [Owen; #756447]
 | 
			
		||||
* Show the Bluetooth submenu when there were setup devices [Bastien; #723848]
 | 
			
		||||
* Misc. bug fixes [Florian, Cosimo, Rui, Ray, Owen, Jakub, Bastien;
 | 
			
		||||
  #756697, #756714, #756605, #754814, #738942, #756983, #756925,
 | 
			
		||||
  #757011, #673235, #757150]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Cosimo Cecchi, Rui Matos, Florian Müllner, Bastien Nocera, Jakub Steiner,
 | 
			
		||||
  Ray Strode, Owen W. Taylor
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Kjartan Maraas [nb], Khaled Hosny [ar], Balázs Meskó [hu],
 | 
			
		||||
  Daniel Șerbănescu [ro], Marek Černocký [cs]
 | 
			
		||||
 | 
			
		||||
3.18.1
 | 
			
		||||
======
 | 
			
		||||
* Fix screen freezes when a notification is pushed [Carlos; #755425]
 | 
			
		||||
* Fix overzealous ellipsization in system status menu [Adel, Florian; #708472]
 | 
			
		||||
* Hide app menu when disabled by setting [Florian; #745919]
 | 
			
		||||
* Fix lightbox effect when animations are disabled [Rui; #755827]
 | 
			
		||||
* Do not mark hotplug notifications as critical [Florian; #657923]
 | 
			
		||||
* Fix icons getting cut off in dash [Florian; #745649]
 | 
			
		||||
* Animate fullscreen/unfullscreen operations [Cosimo; #707248]
 | 
			
		||||
* Misc. bug fixes [Florian, Owen; #748919, #674799, #754581]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Emmanuele Bassi, Michael Catanzaro, Cosimo Cecchi, Matthias Clasen,
 | 
			
		||||
  Adel Gadllah, Carlos Garnacho, Ekaterina Gerasimova, Rui Matos,
 | 
			
		||||
  Florian Müllner, Owen W. Taylor
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Марко Костић [sr], Милош Поповић [sr@latin], Khaled Hosny [ar],
 | 
			
		||||
  Trần Ngọc Quân [vi], Petr Kovar [cs], Alexandre Franke [fr],
 | 
			
		||||
  Fran Dieguez [gl], Anders Jonsson [sv], Piotr Drąg [pl], Dušan Kazik [sk],
 | 
			
		||||
  Milo Casagrande [it], Changwoo Ryu [ko], Stas Solovey [ru],
 | 
			
		||||
  Rafael Fontenelle [pt_BR], Tom Tryfonidis [el], Aurimas Černius [lt],
 | 
			
		||||
  Seán de Búrca [ga], Christian Kirbach [de], Jiri Grönroos [fi],
 | 
			
		||||
  Pedro Albuquerque [pt], Baurzhan Muftakhidinov [kk], Daniel Mustieles [es],
 | 
			
		||||
  Marek Černocký [cs], Ask Hjorth Larsen [da], Inaki Larranaga Murgoitio [eu]
 | 
			
		||||
 | 
			
		||||
3.18.0
 | 
			
		||||
======
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Sendy Aditya Suryana [id], Kris Thomsen [da], Seán de Búrca [ga],
 | 
			
		||||
  Andika Triwidada [id], Enrico Nicoletto [pt_BR], Anders Jonsson [sv],
 | 
			
		||||
  Rūdolfs Mazurs [lv]
 | 
			
		||||
 | 
			
		||||
3.17.92
 | 
			
		||||
=======
 | 
			
		||||
* Fix race when loading multiple background animations [Josselin; #741453]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Michael Biebl, Josselin Mouette, Florian Müllner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Baurzhan Muftakhidinov [kk], Changwoo Ryu [ko], Christian Kirbach [de],
 | 
			
		||||
  Kjartan Maraas [nb], Jiri Grönroos [fi], Arash Mousavi [fa],
 | 
			
		||||
  Jiro Matsuzawa [ja], Marek Černocký [cs], Milo Casagrande [it]
 | 
			
		||||
 | 
			
		||||
3.17.91
 | 
			
		||||
=======
 | 
			
		||||
* Fix login screen spinner causing wakeups while VT-switched away
 | 
			
		||||
  [Ray, Rui; #753891]
 | 
			
		||||
* Fix scrolling of user list on login screen [Florian; #754525]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Piotr Drąg, Rui Matos, Florian Müllner, Ray Strode
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Dušan Kazik [sk], Jordi Mas [ca], Aurimas Černius [lt], Stas Solovey [ru],
 | 
			
		||||
  Piotr Drąg [pl], Pedro Albuquerque [pt], Daniel Mustieles [es],
 | 
			
		||||
  Chao-Hsiung Liao [zh_TW], Muhammet Kara [tr], Fran Dieguez [gl],
 | 
			
		||||
  Hannie Dumoleyn [nl], Yosef Or Boczko [he], Tom Tryfonidis [el],
 | 
			
		||||
  A S Alam [pa], Balázs Úr [hu], Alexandre Franke [fr], Frédéric Péters [fr]
 | 
			
		||||
 | 
			
		||||
3.17.90
 | 
			
		||||
=======
 | 
			
		||||
* Avoid caret/focus viewport changes during pointer movement [Rui; #752138]
 | 
			
		||||
* Match GTK+'s modal dialogs for system modal dialogs [Carlos; #746108]
 | 
			
		||||
* Refine message list style [Florian; #749958]
 | 
			
		||||
* Fix type-ahead behavior for backspace and compose key [Rui; #753319, #753320]
 | 
			
		||||
* Refine the system status menu [Florian; #751377]
 | 
			
		||||
* Misc. bug fixes and cleanups [Bastien, Ray, Florian, Jakub; #752779, #752739,
 | 
			
		||||
  #741366, #651503, #753064, #753181, #752881]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Rui Matos, Florian Müllner, Bastien Nocera, Carlos Soriano, Jakub Steiner,
 | 
			
		||||
  Ray Strode, Rico Tzschichholz
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Marek Černocký [cs], Kjartan Maraas [nb], Jordi Mas [ca], Muhammet Kara [tr],
 | 
			
		||||
  Enrico Nicoletto [pt_BR]
 | 
			
		||||
 | 
			
		||||
3.17.4
 | 
			
		||||
======
 | 
			
		||||
* Fix fuzziness of app menu icon [Jakub; #747932]
 | 
			
		||||
* Implement 4 finger swipe gesture for touchpads [Carlos; #752250]
 | 
			
		||||
* Misc. bug fixes [Florian, Alexandre, Piotr, Ray, Mario; #751921, #659969,
 | 
			
		||||
  #752438, #752675]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Piotr Drąg, Alexandre Franke, Carlos Garnacho, Florian Müllner,
 | 
			
		||||
  Mario Sanchez Prada, Jakub Steiner, Jasper St. Pierre, Ray Strode
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Benjamin Steinwender [de], Pedro Albuquerque [pt], Fabio Tomat [fur],
 | 
			
		||||
  Matej Urbančič [sl], Daniel Mustieles [es], Yosef Or Boczko [he],
 | 
			
		||||
  Daniel Martinez [an]
 | 
			
		||||
 | 
			
		||||
3.17.3
 | 
			
		||||
======
 | 
			
		||||
* Handle touch events in OSK on wayland [Rui; #750287]
 | 
			
		||||
* Reinstate left/right movement to window menu [Ron; #751344]
 | 
			
		||||
* Allow extensions to disable "Window is ready" notification [Adel; #748846]
 | 
			
		||||
* Misc. bug fixes [Watson, Michael, Ray, Rui, Florian, Cosimo; #750465,
 | 
			
		||||
  #751016, #751517, #750714, #751541, #751599]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Michael Biebl, Cosimo Cecchi, Adel Gadllah, Rui Matos, Florian Müllner,
 | 
			
		||||
  Ray Strode, Wim Taymans, Ron Yorston, Watson Yuuma Sato
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Sebastian Rasmussen [sv], Dimitris Spingos [el], Muhammet Kara [tr],
 | 
			
		||||
  Stas Solovey [ru], Benjamin Steinwender [de], Balázs Úr [hu],
 | 
			
		||||
  Victor Ibragimov [tg], Dušan Kazik [sk], Pedro Albuquerque [pt]
 | 
			
		||||
 | 
			
		||||
3.17.2
 | 
			
		||||
======
 | 
			
		||||
* Remove StTable widget [Florian; #703833]
 | 
			
		||||
* Increase visibility of expanders in alt-tab popup [Jakub; #745058]
 | 
			
		||||
* Ensure suspend inhibitors are released when VT switched away [Rui; #749228]
 | 
			
		||||
* Use iio-sensor-proxy directly for orientation lock [Bastien; #749671]
 | 
			
		||||
* Misc. bug fixes [Florian, Lan, Carlos; #749279, #749383, #749529, #749490,
 | 
			
		||||
  #749742]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Carlos Garnacho, Ting-Wei Lan, Rui Matos, Florian Müllner, Bastien Nocera,
 | 
			
		||||
  Jakub Steiner
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Yosef Or Boczko [he], sun [zh_CN], Felipe Braga [pt_BR],
 | 
			
		||||
  Victor Ibragimov [tg], Gábor Kelemen [hu], Cédric Valmary [oc],
 | 
			
		||||
  Dušan Kazik [sk], Kjartan Maraas [nb], Bruno Ramalhete [pt],
 | 
			
		||||
  Matej Urbančič [sl], Daniel Mustieles [es]
 | 
			
		||||
 | 
			
		||||
3.17.1
 | 
			
		||||
======
 | 
			
		||||
* Add Display Settings entry to background menu [Meet; #697346]
 | 
			
		||||
* Add window menu option to move to different monitor [Isaac; #633994]
 | 
			
		||||
* Improve switch style in default/highContrast themes [Jakub; #746294, #747912]
 | 
			
		||||
* Make event highlight in calendar more prominent [Jakub; #747715]
 | 
			
		||||
* Fix keyboard focus when focusing a notification banner [Florian; #747205]
 | 
			
		||||
* Move notification banners below the dateMenu [Meet, Florian; #745910]
 | 
			
		||||
* Misc. bug fixes [Mario, Rui; #748338, #748541]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Isaac Ge, Rui Matos, Florian Müllner, Meet Parikh, Mario Sanchez Prada,
 | 
			
		||||
  Jakub Steiner, Jasper St. Pierre
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Sveinn í Felli [is], Marek Černocký [cs], laurent Soleil [oc]
 | 
			
		||||
 | 
			
		||||
3.16.1
 | 
			
		||||
======
 | 
			
		||||
* gdm: Move long session chooser menus to the side [Florian; #734352]
 | 
			
		||||
* Work around background corruption with NVIDIA driver [Rui; #739178]
 | 
			
		||||
* Don't allow move-to-workspace for always-sticky windows [Florian; #746782]
 | 
			
		||||
* Allow switching workspaces with PgUp/PgDown in overview [Devyani; #742581]
 | 
			
		||||
* Bump time PAM messages are displayed [Sarvjeet; #720885]
 | 
			
		||||
* Fix "stutter" when moving window past the last workspace [Shivam; #712778]
 | 
			
		||||
* Fix blurred text on login screen [Clément; #746912]
 | 
			
		||||
* keyboard: Restore whole MRU list after password mode [Rui; #746605]
 | 
			
		||||
* Pass event timestamps when activating remote actions [Owen; #747323]
 | 
			
		||||
* Fix hung login screen when password is typed too quickly [Shivam; #737586]
 | 
			
		||||
* Make on-screen keyboard work for shell chrome on wayland [Rui; #747274]
 | 
			
		||||
* Implement reexec_self() for FreeBSD [Ting-Wei; #747788]
 | 
			
		||||
* Allow to dismiss resident notifications [Florian; #746860]
 | 
			
		||||
* Temporarily reveal legacy tray when icons are added [Florian; #746025]
 | 
			
		||||
* Make concealed tray smaller to minimize overlap with apps [Florian; #746787]
 | 
			
		||||
* Misc. bug fixes [Florian, Rui, Giovanni; #746323, #746579, #746902, #746364,
 | 
			
		||||
  #746509, #747636]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Sarvjeet, Giovanni Campagna, Adel Gadllah, Clément Guérin, Devyani Kota,
 | 
			
		||||
  Ting-Wei Lan, Rui Matos, Shivam Mishra, Florian Müllner, Owen W. Taylor
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Khaled Hosny [ar], Dušan Kazik [sk], Yuri Myasoedov [ru], Stas Solovey [ru],
 | 
			
		||||
  Hannie Dumoleyn [nl], Rūdolfs Mazurs [lv]
 | 
			
		||||
 | 
			
		||||
3.16.0
 | 
			
		||||
======
 | 
			
		||||
* Revert erroneous login dialog changes [Ray; #740142]
 | 
			
		||||
* Improve accessibility of legacy tray [Florian; #746487]
 | 
			
		||||
* Fix legacy status icons leaking into other monitors [Florian; #745824]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Florian Müllner, Ray Strode
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Daniel Martinez [an], Sebastian Rasmussen [sv], Fran Dieguez [gl],
 | 
			
		||||
  Andika Triwidada [id], Jordi Mas [ca], Kjartan Maraas [nb],
 | 
			
		||||
  Inaki Larranaga Murgoitio [eu], Muhammet Kara [tr], Khaled Hosny [ar],
 | 
			
		||||
  Bernd Homuth [de], Jiro Matsuzawa [ja]
 | 
			
		||||
 | 
			
		||||
3.15.92
 | 
			
		||||
=======
 | 
			
		||||
* gdm: Fix user list accessibility [Florian; #729603]
 | 
			
		||||
* Handle multiline questions in mount operations [Ross; #745713]
 | 
			
		||||
* Improve classic theme [Jakub; #745686, #745687]
 | 
			
		||||
* Fix ordering of calendar events [Florian; #745988]
 | 
			
		||||
* Pick first input source for new windows when per-window [Rui; #746037]
 | 
			
		||||
* networkAgent: Show a notification for non-user-initiated password requests
 | 
			
		||||
  [Giovanni; #660293]
 | 
			
		||||
* Fix dismissing calendar events [Florian; #744927]
 | 
			
		||||
* Add legacy tray to ctrl-alt-tab popup [Florian; #746022]
 | 
			
		||||
* Manage on-screen-keyboard visibility in gnome-shell [Carlos; #745977]
 | 
			
		||||
* Add pointer barriers to legacy tray [Cosimo; #746026]
 | 
			
		||||
* Use fallback when app icon cannot be resolved [Cosimo; #746219]
 | 
			
		||||
* Fix handling of removed smartcard at startup [Ray; #740143]
 | 
			
		||||
* gdm: Don't pick a random session for the user [Jasper; #740142]
 | 
			
		||||
* Make menu selection behavior consistent with GTK [Florian; #745246]
 | 
			
		||||
* gdm: Fix empty user list on user switching [Ray; #719418]
 | 
			
		||||
* Misc bug fixes [Florian, Giovanni, Clément, Rui; #745666, #746019, #745861,
 | 
			
		||||
  #746027, #746223, #737502, #746343, #746288]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Giovanni Campagna, Cosimo Cecchi, Piotr Drąg, Adel Gadllah, Carlos Garnacho,
 | 
			
		||||
  Clément Guérin, Ross Lagerwall, Rui Matos, Florian Müllner, Jakub Steiner,
 | 
			
		||||
  Jasper St. Pierre, Ray Strode
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Piotr Drąg [pl], Changwoo Ryu [ko], Milo Casagrande [it],
 | 
			
		||||
  Baurzhan Muftakhidinov [kk], Мирослав Николић [sr, sr@latin], Balázs Úr [hu],
 | 
			
		||||
  IWAI, Masaharu [ja], Daniel Korostil [uk], Aurimas Černius [lt],
 | 
			
		||||
  Matej Urbančič [sl], Daniel Mustieles [es], Kjartan Maraas [nb],
 | 
			
		||||
  Victor Ibragimov [tg], Claude Paroz [fr], Jordi Mas [ca], Bernd Homuth [de],
 | 
			
		||||
  Muhammet Kara [tr], Frédéric Péters [fr], Jiri Grönroos [fi],
 | 
			
		||||
  Alexander Shopov [bg], Stas Solovey [ru], Trần Ngọc Quân [vi],
 | 
			
		||||
  Samir Ribic [bs], Dušan Kazik [sk], Enrico Nicoletto [pt_BR],
 | 
			
		||||
  Marek Černocký [cs], A S Alam [pa], Ask Hjorth Larsen [da],
 | 
			
		||||
  Tom Tryfonidis [el], Alexandre Franke [fr], Yosef Or Boczko [he],
 | 
			
		||||
  Chao-Hsiung Liao [zh_TW]
 | 
			
		||||
 | 
			
		||||
3.15.91
 | 
			
		||||
=======
 | 
			
		||||
* Don't disable all shortcuts while non-panel menus are open [Florian; #745039]
 | 
			
		||||
* Do not wake up the screen for disabled notifications [Florian; #744114]
 | 
			
		||||
* Add unminimize animation [Florian; #702662]
 | 
			
		||||
* Change default shortcut for viewing notifications [Florian; #687986]
 | 
			
		||||
* Add shortcut to dismiss notifications from list [Florian; #745279]
 | 
			
		||||
* Use Polari instead of Empathy for IRC conversations [Giovanni; #745431]
 | 
			
		||||
* Add a hideable bottom tray for legacy status icons [Florian; #745162]
 | 
			
		||||
* Improve accessibility of calendar/message list [Florian; #706903, #745393]
 | 
			
		||||
* Fix window thumbnail scaling in overview [Sebastian; #744883]
 | 
			
		||||
* Stop handling non-chat notifications for Empathy [Giovanni; #745503]
 | 
			
		||||
* Fix mouse interaction with ibus candidate window [Rui; #745167, #745245]
 | 
			
		||||
* Misc bug fixes and cleanups [Giovanni, Florian, Miguel, Cosimo, Jakub,
 | 
			
		||||
  Michele, Raul, Matthias, Rui; #677412, #744880, #744900, #744894, #744907,
 | 
			
		||||
  #745061, #741111, #744912, #745175, #745246, #744959, #744575, #745570,
 | 
			
		||||
  #652742, #659187, #745412, #745521, #745521, #741665, #745574, #745627,
 | 
			
		||||
  #745494, #745111, #745132, #745110]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Michele, Giovanni Campagna, Cosimo Cecchi, Matthias Clasen,
 | 
			
		||||
  Raul Gutierrez Segales, Sebastian Keller, David Liang, Rui Matos,
 | 
			
		||||
  Florian Müllner, Yosef Or Boczko, Jakub Steiner, Jasper St. Pierre,
 | 
			
		||||
  Rico Tzschichholz, Miguel Vaello Martínez
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Dušan Kazik [sk], Chao-Hsiung Liao [zh_TW], Muhammet Kara [tr],
 | 
			
		||||
  Balázs Úr [hu], Daniel Mustieles [es], Frédéric Péters [fr],
 | 
			
		||||
  Rafael Ferreira [pt_BR], Aurimas Černius [lt], Milo Casagrande [it],
 | 
			
		||||
  Yosef Or Boczko [he], Stas Solovey [ru], Baurzhan Muftakhidinov [kk],
 | 
			
		||||
  Daniel Korostil [uk], Fran Dieguez [gl], Kjartan Maraas [nb],
 | 
			
		||||
  Tom Tryfonidis [el], Cheng-Chia Tseng [zh_TW], Friedel Wolff [af],
 | 
			
		||||
  Alexandre Franke [fr], Efstathios Iosifidis [el], Aron Xu [zh_CN],
 | 
			
		||||
  Marek Černocký [cs], Enrico Nicoletto [pt_BR]
 | 
			
		||||
 | 
			
		||||
3.15.90
 | 
			
		||||
=======
 | 
			
		||||
* gdm: Fix reactivity of first user in user list [Ray; #743370]
 | 
			
		||||
* Prevent DND to dash when favorites are locked down [David; #741325]
 | 
			
		||||
* Prevent DND in app picker when favorites are locked down [Murray; #741325]
 | 
			
		||||
* Implement Display panel's OSD monitor labels in the shell [Rui; #743744]
 | 
			
		||||
* Remove GSystem dependency [Colin; #744457]
 | 
			
		||||
* Do not duplicate "New Window" action in dash [Florian; #744446]
 | 
			
		||||
* Fix 'draw-cursor' option of screen recorder [Alexander; #744599]
 | 
			
		||||
* Fix screencast timestamps [Sebastian; #744642]
 | 
			
		||||
* Allow keybindings for switching to VT8-VT12 [Ray; #744800]
 | 
			
		||||
* Implement notification redesign [Florian; #744498, #744815, #744817, #744850]
 | 
			
		||||
* Fix struts computation of chrome on non-primary monitors [Sylvain; #744183]
 | 
			
		||||
* Visual refresh based on GTK+ theme redesign [Jakub, Carlos; #737785, #744680]
 | 
			
		||||
* Misc. bug fixes and cleanups [Ray, Bastien, Cosimo, Rui, Florian; #743371,
 | 
			
		||||
  #736182, #744013, #743993, #744665]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Cosimo Cecchi, Murray Cumming, Sebastian Dröge, David King,
 | 
			
		||||
  Alexander Larsson, Rui Matos, Florian Müllner, Bastien Nocera,
 | 
			
		||||
  Sylvain Pasche, Carlos Soriano, Jakub Steiner, Jasper St. Pierre, Ray Strode,
 | 
			
		||||
  Colin Walters
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Daniel Martinez [an], Sveinn í Felli [is], GNOME Translation Robot [de],
 | 
			
		||||
  Yosef Or Boczko [he], Kristjan SCHMIDT [eo], Dušan Kazik [sk],
 | 
			
		||||
  Andika Triwidada [id], Marek Černocký [cs], Muhammet Kara [tr],
 | 
			
		||||
  Matej Urbančič [sl], Milo Casagrande [it], Anders Jonsson [sv]
 | 
			
		||||
 | 
			
		||||
3.15.4
 | 
			
		||||
======
 | 
			
		||||
* Add mode parameter to AcceleratorActivated signal [Florian; #711682]
 | 
			
		||||
* Fix PID based window/app association [Sebastian; #736527]
 | 
			
		||||
* Fix current day highlight on day change [Sebastian; #742492]
 | 
			
		||||
* Switch to vp9 for screencast recordings [Adel; #742744]
 | 
			
		||||
* Disable IBus input sources on password entries [Takao; #730628]
 | 
			
		||||
* Make slider scrolling smoother [Adel; #742648]
 | 
			
		||||
* Allow move-up shortcut to move window above top workspace [Florian; #665764]
 | 
			
		||||
* Misc. bug fixes [Adel, Rui; #742748, #742824, #741114]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Cosimo Cecchi, Takao Fujiwara, Adel Gadllah, Sebastian Keller, Rui Matos,
 | 
			
		||||
  Florian Müllner, Jasper St. Pierre
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Andika Triwidada [id], Matej Urbančič [sl], Saibal Ray [bn_IN],
 | 
			
		||||
  Inaki Larranaga Murgoitio [eu], Stas Solovey [ru], Kjartan Maraas [nb],
 | 
			
		||||
  Balázs Úr [hu], Marek Černocký [cs], Rafael Ferreira [pt_BR],
 | 
			
		||||
  Bernd Homuth [de], Daniel Mustieles [es], Fabio Tomat [fur]
 | 
			
		||||
 | 
			
		||||
3.15.3
 | 
			
		||||
======
 | 
			
		||||
* Add support for high-contrast themes [Florian; #740447]
 | 
			
		||||
* Fix banner message on login screen without user list [Ray; #703972]
 | 
			
		||||
* Fix flicker when activating windows on another workspace [Florian; #741680]
 | 
			
		||||
* Misc. bug fixes [Giovanni, Florian; #735308, #740237]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Giovanni Campagna, Florian Müllner, Jasper St. Pierre, Ray Strode
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Balázs Úr [hu], Josef Andersson [sv], Muhammet Kara [tr],
 | 
			
		||||
  Baurzhan Muftakhidinov [kk], Inaki Larranaga Murgoitio [eu]
 | 
			
		||||
 | 
			
		||||
3.15.2
 | 
			
		||||
======
 | 
			
		||||
* Fix visual glitch of window preview outline in overview [Chris; #699044]
 | 
			
		||||
* Change user facing name of "Captive Portal" to "Network Login" [Elad; #737198]
 | 
			
		||||
* Port to Python 3 [Slavek; #732478]
 | 
			
		||||
* Hide Airplane mode indicator when g-s-d says so [Cosimo; #736292]
 | 
			
		||||
* Allow translators to change non-work days [Lavi; #664645]
 | 
			
		||||
* Delay invocation of caribou daemon until really needed [Daiki; #739712]
 | 
			
		||||
* Don't lock screen after crash if locking is disabled [Adel; #704884]
 | 
			
		||||
* Improve layout of extension installation dialog [William; #739888]
 | 
			
		||||
* Fix workspace changes from app picker [Yuki; #737534]
 | 
			
		||||
* Preload all ibus input sources in user configuration [Takao; #695428]
 | 
			
		||||
* Properly remove network connections from list [Ryan; #740227]
 | 
			
		||||
* Support CSS margin property [Carlos; #728437]
 | 
			
		||||
* Improve handling of BUSY application state [Phillip; #736492]
 | 
			
		||||
* Fix erroneous week numbers in calendar [Florian; #736722]
 | 
			
		||||
* Misc. bugfixes and cleanups [Darcy, Yuki, Alexander, Eskild, Bastien, Cosimo, Colin,
 | 
			
		||||
  Ray; #738725, #739497, #739241, #672500, #739822, #740074, #704163, #740141]
 | 
			
		||||
 | 
			
		||||
Contributors:
 | 
			
		||||
  Yuki, Lavi .A, Elad Alfassa, Cosimo Cecchi, Takao Fujiwara, Adel Gadllah,
 | 
			
		||||
  Eskild Hustvedt, Chris Johns, William Jon McCann, Slavek Kabrda, Ryan Lortie,
 | 
			
		||||
  Florian Müllner, Bastien Nocera, Christian Persch, Carlos Soriano,
 | 
			
		||||
  Jasper St. Pierre, Ray Strode, Alexander Tsoy, Daiki Ueno, Colin Walters,
 | 
			
		||||
  Phillip Wood
 | 
			
		||||
 | 
			
		||||
Translations:
 | 
			
		||||
  Jorge Perez Perez [an], Daniel Martinez [an], Daniel Mustieles [es],
 | 
			
		||||
  Trần Ngọc Quân [vi], Changwoo Ryu [ko], Kjartan Maraas [nb],
 | 
			
		||||
  Yosef Or Boczko [he], Marek Černocký [cs]
 | 
			
		||||
 | 
			
		||||
3.15.1
 | 
			
		||||
======
 | 
			
		||||
* Use GResources for theme loading [Cosimo; #736936]
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										26
									
								
								autogen.sh
									
									
									
									
									
								
							
							
						
						@@ -4,32 +4,26 @@
 | 
			
		||||
srcdir=`dirname $0`
 | 
			
		||||
test -z "$srcdir" && srcdir=.
 | 
			
		||||
 | 
			
		||||
olddir="$(pwd)"
 | 
			
		||||
PKG_NAME="gnome-shell"
 | 
			
		||||
 | 
			
		||||
cd "${srcdir}"
 | 
			
		||||
 | 
			
		||||
(test -f configure.ac \
 | 
			
		||||
  && test -d src) || {
 | 
			
		||||
(test -f $srcdir/configure.ac \
 | 
			
		||||
  && test -d $srcdir/src) || {
 | 
			
		||||
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
 | 
			
		||||
    echo " top-level gnome-shell directory"
 | 
			
		||||
    exit 1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Fetch submodules if needed
 | 
			
		||||
if test ! -f subprojects/gvc/Makefile.am || test ! -f data/theme/gnome-shell-sass/COPYING;
 | 
			
		||||
if test ! -f src/gvc/Makefile.am;
 | 
			
		||||
then
 | 
			
		||||
  echo "+ Setting up submodules"
 | 
			
		||||
  git submodule init
 | 
			
		||||
fi
 | 
			
		||||
git submodule update
 | 
			
		||||
 | 
			
		||||
aclocal --install || exit 1
 | 
			
		||||
gtkdocize --copy || exit 1
 | 
			
		||||
intltoolize --force --copy --automake || exit 1
 | 
			
		||||
autoreconf --verbose --force --install || exit 1
 | 
			
		||||
 | 
			
		||||
cd "${olddir}"
 | 
			
		||||
 | 
			
		||||
if [ "$NOCONFIGURE" = "" ]; then
 | 
			
		||||
    "${srcdir}/configure" "$@" || exit 1
 | 
			
		||||
fi
 | 
			
		||||
which gnome-autogen.sh || {
 | 
			
		||||
    echo "You need to install gnome-common from GNOME Git (or from"
 | 
			
		||||
    echo "your OS vendor's package manager)."
 | 
			
		||||
    exit 1
 | 
			
		||||
}
 | 
			
		||||
USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
 | 
			
		||||
 
 | 
			
		||||
@@ -3,10 +3,7 @@ mozillalibdir = $(BROWSER_PLUGIN_DIR)
 | 
			
		||||
 | 
			
		||||
mozillalib_LTLIBRARIES = libgnome-shell-browser-plugin.la
 | 
			
		||||
 | 
			
		||||
# Browsers can unload and reload the module while browsing, which is not supported by GObject.
 | 
			
		||||
# We pass -Wl,-z,nodelete to the linker to ensure the module is never unloaded.
 | 
			
		||||
# https://bugzilla.gnome.org/show_bug.cgi?id=737932
 | 
			
		||||
libgnome_shell_browser_plugin_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,-z,nodelete
 | 
			
		||||
libgnome_shell_browser_plugin_la_LDFLAGS = -module -avoid-version -no-undefined
 | 
			
		||||
 | 
			
		||||
libgnome_shell_browser_plugin_la_LIBADD = 	\
 | 
			
		||||
	$(BROWSER_PLUGIN_LIBS)
 | 
			
		||||
 
 | 
			
		||||
@@ -33,16 +33,20 @@
 | 
			
		||||
#include <json-glib/json-glib.h>
 | 
			
		||||
 | 
			
		||||
#define ORIGIN "extensions.gnome.org"
 | 
			
		||||
#define PLUGIN_NAME "GNOME Shell Integration"
 | 
			
		||||
#define PLUGIN_DESCRIPTION "This plugin provides integration with GNOME Shell " \
 | 
			
		||||
#define PLUGIN_NAME "Gnome Shell Integration"
 | 
			
		||||
#define PLUGIN_DESCRIPTION "This plugin provides integration with Gnome Shell " \
 | 
			
		||||
      "for live extension enabling and disabling. " \
 | 
			
		||||
      "It can be used only by extensions.gnome.org"
 | 
			
		||||
#define PLUGIN_MIME_STRING "application/x-gnome-shell-integration::GNOME Shell Integration Dummy Content-Type";
 | 
			
		||||
#define PLUGIN_MIME_STRING "application/x-gnome-shell-integration::Gnome Shell Integration Dummy Content-Type";
 | 
			
		||||
 | 
			
		||||
#define PLUGIN_API_VERSION 5
 | 
			
		||||
 | 
			
		||||
#define EXTENSION_DISABLE_VERSION_CHECK_KEY "disable-extension-version-validation"
 | 
			
		||||
 | 
			
		||||
typedef struct {
 | 
			
		||||
  GDBusProxy *proxy;
 | 
			
		||||
} PluginData;
 | 
			
		||||
 | 
			
		||||
static NPNetscapeFuncs funcs;
 | 
			
		||||
 | 
			
		||||
static inline gchar *
 | 
			
		||||
@@ -141,6 +145,121 @@ check_origin_and_protocol (NPP instance)
 | 
			
		||||
  return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* =============== public entry points =================== */
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NP_Initialize(NPNetscapeFuncs *pfuncs, NPPluginFuncs *plugin)
 | 
			
		||||
{
 | 
			
		||||
  /* global initialization routine, called once when plugin
 | 
			
		||||
     is loaded */
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin loaded");
 | 
			
		||||
 | 
			
		||||
  memcpy (&funcs, pfuncs, sizeof (funcs));
 | 
			
		||||
 | 
			
		||||
  plugin->size = sizeof(NPPluginFuncs);
 | 
			
		||||
  plugin->newp = NPP_New;
 | 
			
		||||
  plugin->destroy = NPP_Destroy;
 | 
			
		||||
  plugin->getvalue = NPP_GetValue;
 | 
			
		||||
  plugin->setwindow = NPP_SetWindow;
 | 
			
		||||
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NP_Shutdown(void)
 | 
			
		||||
{
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const char*
 | 
			
		||||
NP_GetMIMEDescription(void)
 | 
			
		||||
{
 | 
			
		||||
  return PLUGIN_MIME_STRING;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NP_GetValue(void         *instance,
 | 
			
		||||
            NPPVariable   variable,
 | 
			
		||||
            void         *value)
 | 
			
		||||
{
 | 
			
		||||
  switch (variable) {
 | 
			
		||||
  case NPPVpluginNameString:
 | 
			
		||||
    *(char**)value = PLUGIN_NAME;
 | 
			
		||||
    break;
 | 
			
		||||
  case NPPVpluginDescriptionString:
 | 
			
		||||
    *(char**)value = PLUGIN_DESCRIPTION;
 | 
			
		||||
    break;
 | 
			
		||||
  default:
 | 
			
		||||
    ;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NPP_New(NPMIMEType    mimetype,
 | 
			
		||||
        NPP           instance,
 | 
			
		||||
        uint16_t      mode,
 | 
			
		||||
        int16_t       argc,
 | 
			
		||||
        char        **argn,
 | 
			
		||||
        char        **argv,
 | 
			
		||||
        NPSavedData  *saved)
 | 
			
		||||
{
 | 
			
		||||
  /* instance initialization function */
 | 
			
		||||
  PluginData *data;
 | 
			
		||||
  GError *error = NULL;
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin created");
 | 
			
		||||
 | 
			
		||||
  if (!check_origin_and_protocol (instance))
 | 
			
		||||
    return NPERR_GENERIC_ERROR;
 | 
			
		||||
 | 
			
		||||
  data = g_slice_new (PluginData);
 | 
			
		||||
  instance->pdata = data;
 | 
			
		||||
 | 
			
		||||
  data->proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
 | 
			
		||||
                                               G_DBUS_PROXY_FLAGS_NONE,
 | 
			
		||||
                                               NULL, /* interface info */
 | 
			
		||||
                                               "org.gnome.Shell",
 | 
			
		||||
                                               "/org/gnome/Shell",
 | 
			
		||||
                                               "org.gnome.Shell.Extensions",
 | 
			
		||||
                                               NULL, /* GCancellable */
 | 
			
		||||
                                               &error);
 | 
			
		||||
  if (!data->proxy)
 | 
			
		||||
    {
 | 
			
		||||
      /* ignore error if the shell is not running, otherwise warn */
 | 
			
		||||
      if (error->domain != G_DBUS_ERROR ||
 | 
			
		||||
          error->code != G_DBUS_ERROR_NAME_HAS_NO_OWNER)
 | 
			
		||||
        {
 | 
			
		||||
          g_warning ("Failed to set up Shell proxy: %s", error->message);
 | 
			
		||||
        }
 | 
			
		||||
      g_clear_error (&error);
 | 
			
		||||
      return NPERR_GENERIC_ERROR;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin created successfully");
 | 
			
		||||
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NPP_Destroy(NPP           instance,
 | 
			
		||||
	    NPSavedData **saved)
 | 
			
		||||
{
 | 
			
		||||
  /* instance finalization function */
 | 
			
		||||
 | 
			
		||||
  PluginData *data = instance->pdata;
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin destroyed");
 | 
			
		||||
 | 
			
		||||
  g_object_unref (data->proxy);
 | 
			
		||||
 | 
			
		||||
  g_slice_free (PluginData, data);
 | 
			
		||||
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* =================== scripting interface =================== */
 | 
			
		||||
 | 
			
		||||
typedef struct {
 | 
			
		||||
@@ -211,18 +330,45 @@ static NPObject *
 | 
			
		||||
plugin_object_allocate (NPP      instance,
 | 
			
		||||
                        NPClass *klass)
 | 
			
		||||
{
 | 
			
		||||
  PluginObject *obj = (PluginObject *) funcs.memalloc (sizeof (PluginObject));
 | 
			
		||||
  PluginData *data = instance->pdata;
 | 
			
		||||
  PluginObject *obj = g_slice_new0 (PluginObject);
 | 
			
		||||
 | 
			
		||||
  memset (obj, 0, sizeof (PluginObject));
 | 
			
		||||
  obj->instance = instance;
 | 
			
		||||
  obj->proxy = g_object_ref (data->proxy);
 | 
			
		||||
  obj->settings = g_settings_new (SHELL_SCHEMA);
 | 
			
		||||
  obj->signal_id = g_signal_connect (obj->proxy, "g-signal",
 | 
			
		||||
                                     G_CALLBACK (on_shell_signal), obj);
 | 
			
		||||
 | 
			
		||||
  return (NPObject*) obj;
 | 
			
		||||
  obj->watch_name_id = g_bus_watch_name (G_BUS_TYPE_SESSION,
 | 
			
		||||
                                         "org.gnome.Shell",
 | 
			
		||||
                                         G_BUS_NAME_WATCHER_FLAGS_NONE,
 | 
			
		||||
                                         on_shell_appeared,
 | 
			
		||||
                                         NULL,
 | 
			
		||||
                                         obj,
 | 
			
		||||
                                         NULL);
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin object created");
 | 
			
		||||
 | 
			
		||||
  return (NPObject*)obj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
plugin_object_deallocate (NPObject *npobj)
 | 
			
		||||
{
 | 
			
		||||
  funcs.memfree (npobj);
 | 
			
		||||
  PluginObject *obj = (PluginObject*)npobj;
 | 
			
		||||
 | 
			
		||||
  g_signal_handler_disconnect (obj->proxy, obj->signal_id);
 | 
			
		||||
  g_object_unref (obj->proxy);
 | 
			
		||||
 | 
			
		||||
  if (obj->listener)
 | 
			
		||||
    funcs.releaseobject (obj->listener);
 | 
			
		||||
 | 
			
		||||
  if (obj->watch_name_id)
 | 
			
		||||
    g_bus_unwatch_name (obj->watch_name_id);
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin object destroyed");
 | 
			
		||||
 | 
			
		||||
  g_slice_free (PluginObject, obj);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static inline gboolean
 | 
			
		||||
@@ -873,149 +1019,6 @@ init_methods_and_properties (void)
 | 
			
		||||
  onextension_changed_id = funcs.getstringidentifier ("onchange");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* =============== public entry points =================== */
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NP_Initialize(NPNetscapeFuncs *pfuncs, NPPluginFuncs *plugin)
 | 
			
		||||
{
 | 
			
		||||
  /* global initialization routine, called once when plugin
 | 
			
		||||
     is loaded */
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin loaded");
 | 
			
		||||
 | 
			
		||||
  memcpy (&funcs, pfuncs, sizeof (funcs));
 | 
			
		||||
 | 
			
		||||
  plugin->size = sizeof(NPPluginFuncs);
 | 
			
		||||
  plugin->newp = NPP_New;
 | 
			
		||||
  plugin->destroy = NPP_Destroy;
 | 
			
		||||
  plugin->getvalue = NPP_GetValue;
 | 
			
		||||
  plugin->setwindow = NPP_SetWindow;
 | 
			
		||||
  plugin->event = NPP_HandleEvent;
 | 
			
		||||
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NP_Shutdown(void)
 | 
			
		||||
{
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const char*
 | 
			
		||||
NP_GetMIMEDescription(void)
 | 
			
		||||
{
 | 
			
		||||
  return PLUGIN_MIME_STRING;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NP_GetValue(void         *instance,
 | 
			
		||||
            NPPVariable   variable,
 | 
			
		||||
            void         *value)
 | 
			
		||||
{
 | 
			
		||||
  switch (variable) {
 | 
			
		||||
  case NPPVpluginNameString:
 | 
			
		||||
    *(char**)value = PLUGIN_NAME;
 | 
			
		||||
    break;
 | 
			
		||||
  case NPPVpluginDescriptionString:
 | 
			
		||||
    *(char**)value = PLUGIN_DESCRIPTION;
 | 
			
		||||
    break;
 | 
			
		||||
  default:
 | 
			
		||||
    ;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NPP_New(NPMIMEType    mimetype,
 | 
			
		||||
        NPP           instance,
 | 
			
		||||
        uint16_t      mode,
 | 
			
		||||
        int16_t       argc,
 | 
			
		||||
        char        **argn,
 | 
			
		||||
        char        **argv,
 | 
			
		||||
        NPSavedData  *saved)
 | 
			
		||||
{
 | 
			
		||||
  /* instance initialization function */
 | 
			
		||||
  PluginObject *obj;
 | 
			
		||||
  GError *error = NULL;
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin created");
 | 
			
		||||
 | 
			
		||||
  if (!check_origin_and_protocol (instance))
 | 
			
		||||
    return NPERR_GENERIC_ERROR;
 | 
			
		||||
 | 
			
		||||
  /* set windowless mode */
 | 
			
		||||
  funcs.setvalue(instance, NPPVpluginWindowBool, NULL);
 | 
			
		||||
 | 
			
		||||
  g_debug ("creating scriptable object");
 | 
			
		||||
  init_methods_and_properties ();
 | 
			
		||||
  obj = (PluginObject *) funcs.createobject (instance, &plugin_class);
 | 
			
		||||
  instance->pdata = obj;
 | 
			
		||||
 | 
			
		||||
  obj->proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
 | 
			
		||||
                                              G_DBUS_PROXY_FLAGS_NONE,
 | 
			
		||||
                                              NULL, /* interface info */
 | 
			
		||||
                                              "org.gnome.Shell",
 | 
			
		||||
                                              "/org/gnome/Shell",
 | 
			
		||||
                                              "org.gnome.Shell.Extensions",
 | 
			
		||||
                                              NULL, /* GCancellable */
 | 
			
		||||
                                              &error);
 | 
			
		||||
  if (!obj->proxy)
 | 
			
		||||
    {
 | 
			
		||||
      /* ignore error if the shell is not running, otherwise warn */
 | 
			
		||||
      if (!g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_NAME_HAS_NO_OWNER))
 | 
			
		||||
        {
 | 
			
		||||
          g_warning ("Failed to set up Shell proxy: %s", error->message);
 | 
			
		||||
        }
 | 
			
		||||
      g_clear_error (&error);
 | 
			
		||||
      return NPERR_GENERIC_ERROR;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  obj->settings = g_settings_new (SHELL_SCHEMA);
 | 
			
		||||
  obj->signal_id = g_signal_connect (obj->proxy, "g-signal",
 | 
			
		||||
                                     G_CALLBACK (on_shell_signal), obj);
 | 
			
		||||
  obj->watch_name_id = g_bus_watch_name (G_BUS_TYPE_SESSION,
 | 
			
		||||
                                         "org.gnome.Shell",
 | 
			
		||||
                                         G_BUS_NAME_WATCHER_FLAGS_NONE,
 | 
			
		||||
                                         on_shell_appeared,
 | 
			
		||||
                                         NULL,
 | 
			
		||||
                                         obj,
 | 
			
		||||
                                         NULL);
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin created successfully");
 | 
			
		||||
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NPP_Destroy(NPP           instance,
 | 
			
		||||
	    NPSavedData **saved)
 | 
			
		||||
{
 | 
			
		||||
  /* instance finalization function */
 | 
			
		||||
  PluginObject *obj = (PluginObject *) instance->pdata;
 | 
			
		||||
 | 
			
		||||
  if (!obj)
 | 
			
		||||
    return NPERR_INVALID_INSTANCE_ERROR;
 | 
			
		||||
 | 
			
		||||
  g_debug ("plugin destroyed");
 | 
			
		||||
 | 
			
		||||
  g_signal_handler_disconnect (obj->proxy, obj->signal_id);
 | 
			
		||||
  g_object_unref (obj->proxy);
 | 
			
		||||
 | 
			
		||||
  if (obj->listener)
 | 
			
		||||
    funcs.releaseobject (obj->listener);
 | 
			
		||||
 | 
			
		||||
  if (obj->restart_listener)
 | 
			
		||||
    funcs.releaseobject (obj->restart_listener);
 | 
			
		||||
 | 
			
		||||
  if (obj->watch_name_id)
 | 
			
		||||
    g_bus_unwatch_name (obj->watch_name_id);
 | 
			
		||||
 | 
			
		||||
  funcs.releaseobject((NPObject *)obj);
 | 
			
		||||
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
NPError
 | 
			
		||||
NPP_GetValue(NPP          instance,
 | 
			
		||||
	     NPPVariable  variable,
 | 
			
		||||
@@ -1026,11 +1029,13 @@ NPP_GetValue(NPP          instance,
 | 
			
		||||
  switch (variable) {
 | 
			
		||||
  case NPPVpluginScriptableNPObject:
 | 
			
		||||
    g_debug ("creating scriptable object");
 | 
			
		||||
    if (!instance->pdata)
 | 
			
		||||
      return NPERR_INVALID_INSTANCE_ERROR;
 | 
			
		||||
    init_methods_and_properties ();
 | 
			
		||||
 | 
			
		||||
    funcs.retainobject (instance->pdata);
 | 
			
		||||
    *(NPObject**)value = instance->pdata;
 | 
			
		||||
    *(NPObject**)value = funcs.createobject (instance, &plugin_class);
 | 
			
		||||
    break;
 | 
			
		||||
 | 
			
		||||
  case NPPVpluginNeedsXEmbed:
 | 
			
		||||
    *(bool *)value = TRUE;
 | 
			
		||||
    break;
 | 
			
		||||
 | 
			
		||||
  default:
 | 
			
		||||
@@ -1048,11 +1053,3 @@ NPP_SetWindow(NPP          instance,
 | 
			
		||||
{
 | 
			
		||||
  return NPERR_NO_ERROR;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int16_t
 | 
			
		||||
NPP_HandleEvent(NPP   instance,
 | 
			
		||||
                void *event)
 | 
			
		||||
{
 | 
			
		||||
  /* Ignore the event */
 | 
			
		||||
  return FALSE;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +0,0 @@
 | 
			
		||||
plugin_sources = [
 | 
			
		||||
  'browser-plugin.c',
 | 
			
		||||
  'npapi/npapi.h',
 | 
			
		||||
  'npapi/npfunctions.h',
 | 
			
		||||
  'npapi/npruntime.h',
 | 
			
		||||
  'npapi/nptypes.h'
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
shared_module('gnome-shell-browser-plugin', plugin_sources,
 | 
			
		||||
  dependencies: [gio_dep, json_glib_dep],
 | 
			
		||||
  c_args: ['-DG_LOG_DOMAIN="GnomeShellBrowserPlugin"'],
 | 
			
		||||
  # Browsers can unload and reload the module while browsing, which is not
 | 
			
		||||
  # supported by GObject.
 | 
			
		||||
  # We pass -Wl,-z,nodelete to the linker to ensure the module is never
 | 
			
		||||
  # unloaded. See https://bugzilla.gnome.org/show_bug.cgi?id=737932.
 | 
			
		||||
  link_args: ['-Wl,-z,nodelete'],
 | 
			
		||||
  install: true,
 | 
			
		||||
  install_dir: plugindir
 | 
			
		||||
)
 | 
			
		||||
@@ -1,26 +0,0 @@
 | 
			
		||||
/* The prefix for our gettext translation domains. */
 | 
			
		||||
#mesondefine GETTEXT_PACKAGE
 | 
			
		||||
 | 
			
		||||
/* Version number of package */
 | 
			
		||||
#mesondefine VERSION
 | 
			
		||||
 | 
			
		||||
/* Version number of package */
 | 
			
		||||
#mesondefine PACKAGE_VERSION
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `fdwalk' function. */
 | 
			
		||||
#mesondefine HAVE_FDWALK
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `mallinfo' function. */
 | 
			
		||||
#mesondefine HAVE_MALLINFO
 | 
			
		||||
 | 
			
		||||
/* Define to 1 fi you have the <sys/resource.h> header file. */
 | 
			
		||||
#mesondefine HAVE_SYS_RESOURCE_H
 | 
			
		||||
 | 
			
		||||
/* Define if we have NetworkManager */
 | 
			
		||||
#mesondefine HAVE_NETWORKMANAGER
 | 
			
		||||
 | 
			
		||||
/* Define if we have systemd */
 | 
			
		||||
#mesondefine HAVE_SYSTEMD
 | 
			
		||||
 | 
			
		||||
/* Define if _NL_TIME_FIRST_WEEKDATE is available */
 | 
			
		||||
#mesondefine HAVE__NL_TIME_FIRST_WEEKDAY
 | 
			
		||||
							
								
								
									
										86
									
								
								configure.ac
									
									
									
									
									
								
							
							
						
						@@ -1,6 +1,5 @@
 | 
			
		||||
AC_PREREQ(2.63)
 | 
			
		||||
AC_INIT([gnome-shell],[3.25.4],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell],[gnome-shell])
 | 
			
		||||
AX_IS_RELEASE([git-directory])
 | 
			
		||||
AC_INIT([gnome-shell],[3.15.1],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell],[gnome-shell])
 | 
			
		||||
 | 
			
		||||
AC_CONFIG_HEADERS([config.h])
 | 
			
		||||
AC_CONFIG_SRCDIR([src/shell-global.c])
 | 
			
		||||
@@ -17,20 +16,20 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 | 
			
		||||
 | 
			
		||||
# Checks for programs.
 | 
			
		||||
AC_PROG_CC
 | 
			
		||||
AC_PROG_CXX
 | 
			
		||||
 | 
			
		||||
# Initialize libtool
 | 
			
		||||
LT_PREREQ([2.2.6])
 | 
			
		||||
LT_INIT([disable-static])
 | 
			
		||||
 | 
			
		||||
# i18n
 | 
			
		||||
IT_PROG_INTLTOOL([0.40])
 | 
			
		||||
 | 
			
		||||
GETTEXT_PACKAGE=gnome-shell
 | 
			
		||||
AC_SUBST(GETTEXT_PACKAGE)
 | 
			
		||||
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
 | 
			
		||||
                   [The prefix for our gettext translation domains.])
 | 
			
		||||
 | 
			
		||||
AM_GNU_GETTEXT_VERSION([0.19.6])
 | 
			
		||||
AM_GNU_GETTEXT([external])
 | 
			
		||||
 | 
			
		||||
PKG_PROG_PKG_CONFIG([0.22])
 | 
			
		||||
 | 
			
		||||
AC_PATH_PROG([XSLTPROC], [xsltproc])
 | 
			
		||||
@@ -41,15 +40,6 @@ GLIB_GSETTINGS
 | 
			
		||||
AM_PATH_PYTHON([3])
 | 
			
		||||
AC_SUBST(PYTHON)
 | 
			
		||||
 | 
			
		||||
# We depend on a specific version of the libmutter API. The mutter variants of
 | 
			
		||||
# the Cogl and Clutter libraries also use this API version.
 | 
			
		||||
LIBMUTTER_API_VERSION=1
 | 
			
		||||
 | 
			
		||||
LIBMUTTER=libmutter-$LIBMUTTER_API_VERSION
 | 
			
		||||
LIBMUTTER_COGL=mutter-cogl-$LIBMUTTER_API_VERSION
 | 
			
		||||
LIBMUTTER_COGL_PANGO=mutter-cogl-pango-$LIBMUTTER_API_VERSION
 | 
			
		||||
LIBMUTTER_CLUTTER=mutter-clutter-$LIBMUTTER_API_VERSION
 | 
			
		||||
 | 
			
		||||
# We need at least this, since gst_plugin_register_static() was added
 | 
			
		||||
# in 0.10.16, but nothing older than 0.10.21 has been tested.
 | 
			
		||||
GSTREAMER_MIN_VERSION=0.11.92
 | 
			
		||||
@@ -61,6 +51,7 @@ if $PKG_CONFIG --exists gstreamer-1.0 '>=' $GSTREAMER_MIN_VERSION ; then
 | 
			
		||||
   AC_MSG_RESULT(yes)
 | 
			
		||||
   build_recorder=true
 | 
			
		||||
   recorder_modules="gstreamer-1.0 gstreamer-base-1.0 x11 gtk+-3.0"
 | 
			
		||||
   PKG_CHECK_MODULES(TEST_SHELL_RECORDER, $recorder_modules clutter-1.0)
 | 
			
		||||
else
 | 
			
		||||
   AC_MSG_RESULT(no)
 | 
			
		||||
fi
 | 
			
		||||
@@ -72,8 +63,8 @@ AC_ARG_ENABLE([systemd],
 | 
			
		||||
              [enable_systemd=$enableval],
 | 
			
		||||
              [enable_systemd=auto])
 | 
			
		||||
AS_IF([test x$enable_systemd != xno], [
 | 
			
		||||
  AC_MSG_CHECKING([for libsystemd])
 | 
			
		||||
  PKG_CHECK_EXISTS([libsystemd],
 | 
			
		||||
  AC_MSG_CHECKING([for libsystemd-journal])
 | 
			
		||||
  PKG_CHECK_EXISTS([libsystemd-journal],
 | 
			
		||||
                   [have_systemd=yes
 | 
			
		||||
                    AC_DEFINE([HAVE_SYSTEMD], [1], [Define if we have systemd])],
 | 
			
		||||
                   [have_systemd=no])
 | 
			
		||||
@@ -82,13 +73,15 @@ AS_IF([test x$enable_systemd != xno], [
 | 
			
		||||
 | 
			
		||||
AC_MSG_RESULT($enable_systemd)
 | 
			
		||||
 | 
			
		||||
GOBJECT_INTROSPECTION_MIN_VERSION=1.49.1
 | 
			
		||||
GJS_MIN_VERSION=1.47.0
 | 
			
		||||
MUTTER_MIN_VERSION=3.25.3
 | 
			
		||||
CLUTTER_MIN_VERSION=1.15.90
 | 
			
		||||
GOBJECT_INTROSPECTION_MIN_VERSION=0.10.1
 | 
			
		||||
GJS_MIN_VERSION=1.39.0
 | 
			
		||||
MUTTER_MIN_VERSION=3.15.1
 | 
			
		||||
GTK_MIN_VERSION=3.15.0
 | 
			
		||||
GIO_MIN_VERSION=2.53.0
 | 
			
		||||
GIO_MIN_VERSION=2.37.0
 | 
			
		||||
LIBECAL_MIN_VERSION=3.5.3
 | 
			
		||||
LIBEDATASERVER_MIN_VERSION=3.17.2
 | 
			
		||||
LIBEDATASERVER_MIN_VERSION=3.5.3
 | 
			
		||||
TELEPATHY_GLIB_MIN_VERSION=0.17.5
 | 
			
		||||
POLKIT_MIN_VERSION=0.100
 | 
			
		||||
STARTUP_NOTIFICATION_MIN_VERSION=0.11
 | 
			
		||||
GCR_MIN_VERSION=3.7.5
 | 
			
		||||
@@ -101,32 +94,33 @@ SHARED_PCS="gio-unix-2.0 >= $GIO_MIN_VERSION
 | 
			
		||||
            libxml-2.0
 | 
			
		||||
            gtk+-3.0 >= $GTK_MIN_VERSION
 | 
			
		||||
            atk-bridge-2.0
 | 
			
		||||
            gjs-1.0 >= $GJS_MIN_VERSION
 | 
			
		||||
            gjs-internals-1.0 >= $GJS_MIN_VERSION
 | 
			
		||||
            $recorder_modules
 | 
			
		||||
            gdk-x11-3.0 libsoup-2.4
 | 
			
		||||
            $LIBMUTTER_CLUTTER >= $MUTTER_MIN_VERSION
 | 
			
		||||
            $LIBMUTTER_COGL_PANGO
 | 
			
		||||
            xtst
 | 
			
		||||
            clutter-x11-1.0 >= $CLUTTER_MIN_VERSION
 | 
			
		||||
            clutter-glx-1.0 >= $CLUTTER_MIN_VERSION
 | 
			
		||||
            libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_MIN_VERSION
 | 
			
		||||
            gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_MIN_VERSION
 | 
			
		||||
            libcanberra libcanberra-gtk3
 | 
			
		||||
            telepathy-glib >= $TELEPATHY_GLIB_MIN_VERSION
 | 
			
		||||
            polkit-agent-1 >= $POLKIT_MIN_VERSION
 | 
			
		||||
            gcr-base-3 >= $GCR_MIN_VERSION"
 | 
			
		||||
if test x$have_systemd = xyes; then
 | 
			
		||||
  SHARED_PCS="${SHARED_PCS} libsystemd"
 | 
			
		||||
  SHARED_PCS="${SHARED_PCS} libsystemd-journal"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
PKG_CHECK_MODULES(GNOME_SHELL, $SHARED_PCS)
 | 
			
		||||
PKG_CHECK_MODULES(MUTTER, $LIBMUTTER >= $MUTTER_MIN_VERSION)
 | 
			
		||||
PKG_CHECK_MODULES(MUTTER, libmutter >= $MUTTER_MIN_VERSION)
 | 
			
		||||
 | 
			
		||||
PKG_CHECK_MODULES(GNOME_SHELL_JS, gio-2.0 gjs-1.0 >= $GJS_MIN_VERSION)
 | 
			
		||||
PKG_CHECK_MODULES(ST, $LIBMUTTER_CLUTTER gtk+-3.0 libcroco-0.6 >= 0.6.8 x11)
 | 
			
		||||
PKG_CHECK_MODULES(GNOME_SHELL_JS, gio-2.0 gjs-internals-1.0 >= $GJS_MIN_VERSION)
 | 
			
		||||
PKG_CHECK_MODULES(ST, clutter-1.0 gtk+-3.0 libcroco-0.6 >= 0.6.8 x11)
 | 
			
		||||
PKG_CHECK_MODULES(SHELL_PERF_HELPER, gtk+-3.0 gio-2.0)
 | 
			
		||||
PKG_CHECK_MODULES(SHELL_HOTPLUG_SNIFFER, gio-2.0 gdk-pixbuf-2.0)
 | 
			
		||||
PKG_CHECK_MODULES(TRAY, $LIBMUTTER_CLUTTER gtk+-3.0)
 | 
			
		||||
PKG_CHECK_MODULES(TRAY, gtk+-3.0)
 | 
			
		||||
PKG_CHECK_MODULES(GVC, libpulse >= $PULSE_MIN_VERS libpulse-mainloop-glib gobject-2.0)
 | 
			
		||||
PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 3.21.3)
 | 
			
		||||
 | 
			
		||||
AC_SUBST(LIBMUTTER_API_VERSION)
 | 
			
		||||
PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 3.7.4)
 | 
			
		||||
PKG_CHECK_MODULES(CARIBOU, caribou-1.0 >= 0.4.8)
 | 
			
		||||
 | 
			
		||||
AC_ARG_ENABLE(browser-plugin,
 | 
			
		||||
              [AS_HELP_STRING([--enable-browser-plugin],
 | 
			
		||||
@@ -152,12 +146,15 @@ AC_SUBST([GNOME_KEYBINDINGS_KEYSDIR])
 | 
			
		||||
 | 
			
		||||
GOBJECT_INTROSPECTION_CHECK([$GOBJECT_INTROSPECTION_MIN_VERSION])
 | 
			
		||||
 | 
			
		||||
MUTTER_GIR_DIR=`$PKG_CONFIG --variable=girdir $LIBMUTTER`
 | 
			
		||||
MUTTER_GIR_DIR=`$PKG_CONFIG --variable=girdir libmutter`
 | 
			
		||||
AC_SUBST(MUTTER_GIR_DIR)
 | 
			
		||||
 | 
			
		||||
MUTTER_TYPELIB_DIR=`$PKG_CONFIG --variable=typelibdir $LIBMUTTER`
 | 
			
		||||
MUTTER_TYPELIB_DIR=`$PKG_CONFIG --variable=typelibdir libmutter`
 | 
			
		||||
AC_SUBST(MUTTER_TYPELIB_DIR)
 | 
			
		||||
 | 
			
		||||
GJS_CONSOLE=`$PKG_CONFIG --variable=gjs_console gjs-1.0`
 | 
			
		||||
AC_SUBST(GJS_CONSOLE)
 | 
			
		||||
 | 
			
		||||
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
 | 
			
		||||
AC_SUBST(GLIB_COMPILE_RESOURCES)
 | 
			
		||||
 | 
			
		||||
@@ -186,7 +183,7 @@ if test "x$enable_networkmanager" != "xno"; then
 | 
			
		||||
                     [libnm-glib
 | 
			
		||||
                     libnm-util >= $NETWORKMANAGER_MIN_VERSION
 | 
			
		||||
                     libnm-gtk >= $NETWORKMANAGER_MIN_VERSION
 | 
			
		||||
                     libsecret-1 >= 0.18],
 | 
			
		||||
                     libsecret-unstable],
 | 
			
		||||
                     [have_networkmanager=yes],
 | 
			
		||||
                     [have_networkmanager=no])
 | 
			
		||||
 | 
			
		||||
@@ -225,7 +222,7 @@ if test "$enable_man" != no; then
 | 
			
		||||
fi
 | 
			
		||||
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
 | 
			
		||||
 | 
			
		||||
AX_COMPILER_FLAGS()
 | 
			
		||||
GNOME_COMPILE_WARNINGS([error])
 | 
			
		||||
case "$WARN_CFLAGS" in
 | 
			
		||||
    *-Werror*)
 | 
			
		||||
        WARN_CFLAGS="$WARN_CFLAGS -Wno-error=deprecated-declarations"
 | 
			
		||||
@@ -240,26 +237,19 @@ if test -z "${BROWSER_PLUGIN_DIR}"; then
 | 
			
		||||
fi
 | 
			
		||||
AC_ARG_VAR([BROWSER_PLUGIN_DIR],[Where to install the plugin to])
 | 
			
		||||
 | 
			
		||||
AC_ARG_VAR([GDBUS_CODEGEN],[the gdbus-codegen programme])
 | 
			
		||||
AC_PATH_PROG([GDBUS_CODEGEN],[gdbus-codegen],[])
 | 
			
		||||
if test -z "$GDBUS_CODEGEN"; then
 | 
			
		||||
  AC_MSG_ERROR([gdbus-codegen not found])
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
AC_PATH_PROG([SASSC],[sassc],[])
 | 
			
		||||
 | 
			
		||||
AC_CONFIG_FILES([
 | 
			
		||||
  Makefile
 | 
			
		||||
  data/Makefile
 | 
			
		||||
  docs/Makefile
 | 
			
		||||
  docs/reference/Makefile
 | 
			
		||||
  docs/reference/shell/Makefile
 | 
			
		||||
  docs/reference/shell/version.xml
 | 
			
		||||
  docs/reference/shell/shell-docs.sgml
 | 
			
		||||
  docs/reference/st/Makefile
 | 
			
		||||
  docs/reference/st/version.xml
 | 
			
		||||
  docs/reference/st/st-docs.sgml
 | 
			
		||||
  js/Makefile
 | 
			
		||||
  src/calendar-server/evolution-calendar.desktop.in
 | 
			
		||||
  src/Makefile
 | 
			
		||||
  subprojects/gvc/Makefile
 | 
			
		||||
  src/gvc/Makefile
 | 
			
		||||
  browser-plugin/Makefile
 | 
			
		||||
  tests/Makefile
 | 
			
		||||
  po/Makefile.in
 | 
			
		||||
@@ -273,7 +263,7 @@ Build configuration:
 | 
			
		||||
       Prefix:                                 ${prefix}
 | 
			
		||||
       Source code location:                   ${srcdir}
 | 
			
		||||
       Compiler:                               ${CC}
 | 
			
		||||
       Compiler Warnings:                      $ax_enable_compile_warnings
 | 
			
		||||
       Compiler Warnings:                      $enable_compile_warnings
 | 
			
		||||
 | 
			
		||||
       Support for NetworkManager:             $have_networkmanager
 | 
			
		||||
       Support for GStreamer recording:        $build_recorder
 | 
			
		||||
 
 | 
			
		||||
@@ -1,24 +1,24 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" ?>
 | 
			
		||||
<KeyListEntries schema="org.gnome.shell.keybindings"
 | 
			
		||||
                group="system"
 | 
			
		||||
                name="System"
 | 
			
		||||
                _name="System"
 | 
			
		||||
                wm_name="GNOME Shell"
 | 
			
		||||
                package="gnome-shell">
 | 
			
		||||
 | 
			
		||||
	<KeyListEntry name="toggle-message-tray"
 | 
			
		||||
                      description="Show the notification list"/>
 | 
			
		||||
                      _description="Show the message tray"/>
 | 
			
		||||
 | 
			
		||||
	<KeyListEntry name="focus-active-notification"
 | 
			
		||||
                      description="Focus the active notification"/>
 | 
			
		||||
                      _description="Focus the active notification"/>
 | 
			
		||||
 | 
			
		||||
	<KeyListEntry name="toggle-overview"
 | 
			
		||||
                      description="Show the overview"/>
 | 
			
		||||
                      _description="Show the overview"/>
 | 
			
		||||
 | 
			
		||||
	<KeyListEntry name="toggle-application-view"
 | 
			
		||||
                      description="Show all applications"/>
 | 
			
		||||
                      _description="Show all applications"/>
 | 
			
		||||
 | 
			
		||||
	<KeyListEntry name="open-application-menu"
 | 
			
		||||
                      description="Open the application menu"/>
 | 
			
		||||
                      _description="Open the application menu"/>
 | 
			
		||||
 | 
			
		||||
</KeyListEntries>
 | 
			
		||||
 | 
			
		||||
@@ -1,11 +1,7 @@
 | 
			
		||||
CLEANFILES =
 | 
			
		||||
NULL =
 | 
			
		||||
 | 
			
		||||
portaldir = $(datadir)/xdg-desktop-portal/portals
 | 
			
		||||
portal_DATA = gnome-shell.portal
 | 
			
		||||
 | 
			
		||||
desktopdir=$(datadir)/applications
 | 
			
		||||
desktop_DATA = org.gnome.Shell.desktop gnome-shell-extension-prefs.desktop
 | 
			
		||||
desktop_DATA = gnome-shell.desktop gnome-shell-wayland.desktop  gnome-shell-extension-prefs.desktop
 | 
			
		||||
 | 
			
		||||
if HAVE_NETWORKMANAGER
 | 
			
		||||
desktop_DATA += org.gnome.Shell.PortalHelper.desktop
 | 
			
		||||
@@ -14,10 +10,8 @@ servicedir = $(datadir)/dbus-1/services
 | 
			
		||||
service_DATA = org.gnome.Shell.PortalHelper.service
 | 
			
		||||
 | 
			
		||||
CLEANFILES += \
 | 
			
		||||
	org.gnome.Shell.PortalHelper.service 	\
 | 
			
		||||
	org.gnome.Shell.PortalHelper.desktop 	\
 | 
			
		||||
	org.gnome.Shell.PortalHelper.desktop.in \
 | 
			
		||||
	$(NULL)
 | 
			
		||||
	org.gnome.Shell.PortalHelper.service \
 | 
			
		||||
	org.gnome.Shell.PortalHelper.desktop
 | 
			
		||||
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
@@ -32,46 +26,14 @@ endif
 | 
			
		||||
	    -e "s|@VERSION[@]|$(VERSION)|" \
 | 
			
		||||
	    $< > $@ || rm $@
 | 
			
		||||
 | 
			
		||||
%.desktop:%.desktop.in
 | 
			
		||||
	$(AM_V_GEN) $(MSGFMT) --desktop --template $(builddir)/$< \
 | 
			
		||||
	                      -d $(top_srcdir)/po -o $@
 | 
			
		||||
@INTLTOOL_DESKTOP_RULE@
 | 
			
		||||
 | 
			
		||||
introspectiondir = $(datadir)/dbus-1/interfaces
 | 
			
		||||
introspection_DATA =				\
 | 
			
		||||
	org.gnome.Shell.PadOsd.xml		\
 | 
			
		||||
	org.gnome.Shell.Screencast.xml		\
 | 
			
		||||
	org.gnome.Shell.Screenshot.xml		\
 | 
			
		||||
	org.gnome.ShellSearchProvider.xml	\
 | 
			
		||||
	org.gnome.ShellSearchProvider2.xml	\
 | 
			
		||||
	$(NULL)
 | 
			
		||||
 | 
			
		||||
theme_sources = 						\
 | 
			
		||||
	theme/gnome-shell-high-contrast.scss			\
 | 
			
		||||
	theme/gnome-shell.scss					\
 | 
			
		||||
	theme/gnome-shell-sass/_colors.scss			\
 | 
			
		||||
	theme/gnome-shell-sass/_common.scss			\
 | 
			
		||||
	theme/gnome-shell-sass/_drawing.scss			\
 | 
			
		||||
	theme/gnome-shell-sass/_high-contrast-colors.scss	\
 | 
			
		||||
	$(NULL)
 | 
			
		||||
 | 
			
		||||
dist_theme_files =						\
 | 
			
		||||
	$(theme_sources)					\
 | 
			
		||||
	theme/HACKING						\
 | 
			
		||||
	theme/README						\
 | 
			
		||||
	theme/gnome-shell-sass/COPYING				\
 | 
			
		||||
	theme/gnome-shell-sass/HACKING				\
 | 
			
		||||
	theme/gnome-shell-sass/NEWS				\
 | 
			
		||||
	theme/gnome-shell-sass/README				\
 | 
			
		||||
	theme/gnome-shell-sass/gnome-shell-sass.doap		\
 | 
			
		||||
	theme/pad-osd.css					\
 | 
			
		||||
	theme/parse-sass.sh					\
 | 
			
		||||
	$(NULL)
 | 
			
		||||
 | 
			
		||||
%.css: %.scss $(theme_sources)
 | 
			
		||||
	@if test -n "$(SASSC)"; then \
 | 
			
		||||
		if $(AM_V_P); then PS4= set -x; else echo "  GEN      $@"; fi; \
 | 
			
		||||
		$(SASSC) -a $< $@; \
 | 
			
		||||
	fi
 | 
			
		||||
	org.gnome.ShellSearchProvider2.xml
 | 
			
		||||
 | 
			
		||||
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/theme --generate-dependencies $(srcdir)/gnome-shell-theme.gresource.xml)
 | 
			
		||||
gnome-shell-theme.gresource: gnome-shell-theme.gresource.xml $(resource_files)
 | 
			
		||||
@@ -87,11 +49,14 @@ perf-background.xml: perf-background.xml.in
 | 
			
		||||
	    $< > $@ || rm $@
 | 
			
		||||
 | 
			
		||||
keysdir = @GNOME_KEYBINDINGS_KEYSDIR@
 | 
			
		||||
keys_DATA = 50-gnome-shell-system.xml
 | 
			
		||||
keys_in_files = 50-gnome-shell-system.xml.in
 | 
			
		||||
keys_DATA = $(keys_in_files:.xml.in=.xml)
 | 
			
		||||
 | 
			
		||||
gsettings_SCHEMAS = org.gnome.shell.gschema.xml
 | 
			
		||||
 | 
			
		||||
%.gschema.xml: %.gschema.xml.in Makefile
 | 
			
		||||
@INTLTOOL_XML_NOMERGE_RULE@
 | 
			
		||||
 | 
			
		||||
%.gschema.xml.in: %.gschema.xml.in.in Makefile
 | 
			
		||||
	$(AM_V_GEN) sed -e 's|@GETTEXT_PACKAGE[@]|$(GETTEXT_PACKAGE)|g' \
 | 
			
		||||
	$< > $@ || rm $@
 | 
			
		||||
 | 
			
		||||
@@ -108,29 +73,29 @@ convertdir = $(datadir)/GConf/gsettings
 | 
			
		||||
convert_DATA = gnome-shell-overrides.convert
 | 
			
		||||
 | 
			
		||||
EXTRA_DIST =						\
 | 
			
		||||
	org.gnome.Shell.desktop.in.in			\
 | 
			
		||||
	gnome-shell.desktop.in.in			\
 | 
			
		||||
	gnome-shell-wayland.desktop.in.in		\
 | 
			
		||||
	gnome-shell-extension-prefs.desktop.in.in	\
 | 
			
		||||
	$(portal_DATA)					\
 | 
			
		||||
	$(introspection_DATA)				\
 | 
			
		||||
	$(menu_DATA)					\
 | 
			
		||||
	$(convert_DATA)					\
 | 
			
		||||
	$(keys_DATA)					\
 | 
			
		||||
	$(dist_theme_files)				\
 | 
			
		||||
	$(keys_in_files)				\
 | 
			
		||||
	perf-background.xml.in				\
 | 
			
		||||
	org.gnome.Shell.PortalHelper.desktop.in.in	\
 | 
			
		||||
	org.gnome.Shell.PortalHelper.desktop.in		\
 | 
			
		||||
	org.gnome.Shell.PortalHelper.service.in		\
 | 
			
		||||
	org.gnome.shell.gschema.xml.in			\
 | 
			
		||||
	org.gnome.shell.gschema.xml.in.in		\
 | 
			
		||||
	gnome-shell-theme.gresource.xml 		\
 | 
			
		||||
	$(resource_files)				\
 | 
			
		||||
	$(NULL)
 | 
			
		||||
	$(resource_files)
 | 
			
		||||
 | 
			
		||||
CLEANFILES +=						\
 | 
			
		||||
	org.gnome.Shell.desktop.in			\
 | 
			
		||||
	gnome-shell.desktop.in				\
 | 
			
		||||
	gnome-shell-wayland.desktop.in			\
 | 
			
		||||
	gnome-shell-extension-prefs.in			\
 | 
			
		||||
	$(desktop_DATA)					\
 | 
			
		||||
	$(keys_DATA)					\
 | 
			
		||||
	$(gsettings_SCHEMAS)				\
 | 
			
		||||
	perf-background.xml				\
 | 
			
		||||
	gschemas.compiled				\
 | 
			
		||||
	org.gnome.shell.gschema.valid			\
 | 
			
		||||
	gnome-shell-theme.gresource			\
 | 
			
		||||
	$(NULL)
 | 
			
		||||
	org.gnome.shell.gschema.xml.in			\
 | 
			
		||||
	gnome-shell-theme.gresource
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
[Desktop Entry]
 | 
			
		||||
Type=Application
 | 
			
		||||
Name=Shell Extensions
 | 
			
		||||
Comment=Configure GNOME Shell Extensions
 | 
			
		||||
_Name=GNOME Shell Extension Preferences
 | 
			
		||||
_Comment=Configure GNOME Shell Extensions
 | 
			
		||||
Exec=@bindir@/gnome-shell-extension-prefs %u
 | 
			
		||||
X-GNOME-Bugzilla-Bugzilla=GNOME
 | 
			
		||||
X-GNOME-Bugzilla-Product=gnome-shell
 | 
			
		||||
 
 | 
			
		||||
@@ -16,12 +16,9 @@
 | 
			
		||||
    <file>filter-selected-ltr.svg</file>
 | 
			
		||||
    <file>filter-selected-rtl.svg</file>
 | 
			
		||||
    <file>gnome-shell.css</file>
 | 
			
		||||
    <file>gnome-shell-high-contrast.css</file>
 | 
			
		||||
    <file>logged-in-indicator.svg</file>
 | 
			
		||||
    <file>no-events.svg</file>
 | 
			
		||||
    <file>no-notifications.svg</file>
 | 
			
		||||
    <file>more-results.svg</file>
 | 
			
		||||
    <file>noise-texture.png</file>
 | 
			
		||||
    <file>pad-osd.css</file>
 | 
			
		||||
    <file>page-indicator-active.svg</file>
 | 
			
		||||
    <file>page-indicator-inactive.svg</file>
 | 
			
		||||
    <file>page-indicator-checked.svg</file>
 | 
			
		||||
@@ -32,10 +29,8 @@
 | 
			
		||||
    <file>summary-counter.svg</file>
 | 
			
		||||
    <file>toggle-off-us.svg</file>
 | 
			
		||||
    <file>toggle-off-intl.svg</file>
 | 
			
		||||
    <file>toggle-off-hc.svg</file>
 | 
			
		||||
    <file>toggle-on-us.svg</file>
 | 
			
		||||
    <file>toggle-on-intl.svg</file>
 | 
			
		||||
    <file>toggle-on-hc.svg</file>
 | 
			
		||||
    <file>ws-switch-arrow-up.png</file>
 | 
			
		||||
    <file>ws-switch-arrow-down.png</file>
 | 
			
		||||
  </gresource>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								data/gnome-shell-wayland.desktop.in.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,15 @@
 | 
			
		||||
[Desktop Entry]
 | 
			
		||||
Type=Application
 | 
			
		||||
_Name=GNOME Shell (wayland compositor)
 | 
			
		||||
_Comment=Window management and application launching
 | 
			
		||||
Exec=@bindir@/gnome-shell --wayland --display-server
 | 
			
		||||
X-GNOME-Bugzilla-Bugzilla=GNOME
 | 
			
		||||
X-GNOME-Bugzilla-Product=gnome-shell
 | 
			
		||||
X-GNOME-Bugzilla-Component=general
 | 
			
		||||
X-GNOME-Bugzilla-Version=@VERSION@
 | 
			
		||||
Categories=GNOME;GTK;Core;
 | 
			
		||||
OnlyShowIn=GNOME;
 | 
			
		||||
NoDisplay=true
 | 
			
		||||
X-GNOME-Autostart-Phase=DisplayServer
 | 
			
		||||
X-GNOME-Autostart-Notify=true
 | 
			
		||||
X-GNOME-AutoRestart=false
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
[Desktop Entry]
 | 
			
		||||
Type=Application
 | 
			
		||||
Name=GNOME Shell
 | 
			
		||||
Comment=Window management and application launching
 | 
			
		||||
_Name=GNOME Shell
 | 
			
		||||
_Comment=Window management and application launching
 | 
			
		||||
Exec=@bindir@/gnome-shell
 | 
			
		||||
X-GNOME-Bugzilla-Bugzilla=GNOME
 | 
			
		||||
X-GNOME-Bugzilla-Product=gnome-shell
 | 
			
		||||
@@ -10,7 +10,7 @@ X-GNOME-Bugzilla-Version=@VERSION@
 | 
			
		||||
Categories=GNOME;GTK;Core;
 | 
			
		||||
OnlyShowIn=GNOME;
 | 
			
		||||
NoDisplay=true
 | 
			
		||||
X-GNOME-Autostart-Phase=DisplayServer
 | 
			
		||||
X-GNOME-Autostart-Phase=WindowManager
 | 
			
		||||
X-GNOME-Provides=panel;windowmanager;
 | 
			
		||||
X-GNOME-Autostart-Notify=true
 | 
			
		||||
X-GNOME-AutoRestart=false
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
[portal]
 | 
			
		||||
DBusName=org.freedesktop.impl.portal.desktop.gnome
 | 
			
		||||
Interfaces=org.freedesktop.impl.portal.Access
 | 
			
		||||
UseIn=gnome
 | 
			
		||||
@@ -1,88 +0,0 @@
 | 
			
		||||
desktop_files = [
 | 
			
		||||
  'org.gnome.Shell.desktop',
 | 
			
		||||
  'gnome-shell-extension-prefs.desktop'
 | 
			
		||||
]
 | 
			
		||||
service_files = []
 | 
			
		||||
 | 
			
		||||
if have_networkmanager
 | 
			
		||||
  desktop_files += 'org.gnome.Shell.PortalHelper.desktop'
 | 
			
		||||
  service_files += 'org.gnome.Shell.PortalHelper.service'
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
desktopconf = configuration_data()
 | 
			
		||||
# We substitute in bindir so it works as an autostart
 | 
			
		||||
# file when built in a non-system prefix
 | 
			
		||||
desktopconf.set('bindir', bindir)
 | 
			
		||||
desktopconf.set('VERSION', meson.project_version())
 | 
			
		||||
foreach desktop_file : desktop_files
 | 
			
		||||
  i18n.merge_file('desktop',
 | 
			
		||||
    input: configure_file(
 | 
			
		||||
      input: desktop_file + '.in.in',
 | 
			
		||||
      output: desktop_file + '.in',
 | 
			
		||||
      configuration: desktopconf
 | 
			
		||||
    ),
 | 
			
		||||
    output: desktop_file,
 | 
			
		||||
    po_dir: '../po',
 | 
			
		||||
    install: true,
 | 
			
		||||
    install_dir: desktopdir,
 | 
			
		||||
    type: 'desktop'
 | 
			
		||||
  )
 | 
			
		||||
endforeach
 | 
			
		||||
 | 
			
		||||
serviceconf = configuration_data()
 | 
			
		||||
serviceconf.set('libexecdir', libexecdir)
 | 
			
		||||
foreach service_file : service_files
 | 
			
		||||
  configure_file(
 | 
			
		||||
    input: service_file + '.in',
 | 
			
		||||
    output: service_file,
 | 
			
		||||
    configuration: serviceconf,
 | 
			
		||||
    install_dir: servicedir
 | 
			
		||||
  )
 | 
			
		||||
endforeach
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
dbus_interfaces = [
 | 
			
		||||
  'org.gnome.Shell.PadOsd.xml',
 | 
			
		||||
  'org.gnome.Shell.Screencast.xml',
 | 
			
		||||
  'org.gnome.Shell.Screenshot.xml',
 | 
			
		||||
  'org.gnome.ShellSearchProvider.xml',
 | 
			
		||||
  'org.gnome.ShellSearchProvider2.xml'
 | 
			
		||||
]
 | 
			
		||||
install_data(dbus_interfaces, install_dir: ifacedir)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
subdir('theme')
 | 
			
		||||
 | 
			
		||||
theme_resources = gnome.compile_resources(
 | 
			
		||||
  'gnome-shell-theme', 'gnome-shell-theme.gresource.xml',
 | 
			
		||||
  source_dir: 'theme',
 | 
			
		||||
  dependencies: theme_deps,
 | 
			
		||||
  gresource_bundle: true,
 | 
			
		||||
  install: true,
 | 
			
		||||
  install_dir: pkgdatadir
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
perfconf = configuration_data()
 | 
			
		||||
perfconf.set('datadir', datadir)
 | 
			
		||||
configure_file(
 | 
			
		||||
  input: 'perf-background.xml.in',
 | 
			
		||||
  output: 'perf-background.xml',
 | 
			
		||||
  configuration: perfconf,
 | 
			
		||||
  install_dir: pkgdatadir
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
install_data('gnome-shell.portal', install_dir: portaldir)
 | 
			
		||||
install_data('50-gnome-shell-system.xml', install_dir: keysdir)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
schemaconf = configuration_data()
 | 
			
		||||
schemaconf.set('GETTEXT_PACKAGE', meson.project_name())
 | 
			
		||||
configure_file(
 | 
			
		||||
  input: 'org.gnome.shell.gschema.xml.in',
 | 
			
		||||
  output: 'org.gnome.shell.gschema.xml',
 | 
			
		||||
  configuration: schemaconf,
 | 
			
		||||
  install_dir: schemadir
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
install_data('gnome-shell-overrides.convert', install_dir: convertdir)
 | 
			
		||||
@@ -1,28 +0,0 @@
 | 
			
		||||
<!DOCTYPE node PUBLIC
 | 
			
		||||
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
 | 
			
		||||
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
 | 
			
		||||
<node>
 | 
			
		||||
 | 
			
		||||
  <!--
 | 
			
		||||
      org.gnome.Shell.PadOSD:
 | 
			
		||||
      @short_description: Pad OSD interface
 | 
			
		||||
 | 
			
		||||
      The interface used to show button map OSD on pad devices.
 | 
			
		||||
  -->
 | 
			
		||||
  <interface name='org.gnome.Shell.Wacom.PadOsd'>
 | 
			
		||||
 | 
			
		||||
    <!--
 | 
			
		||||
        Show:
 | 
			
		||||
        @device_node: device node file, usually in /dev/input/...
 | 
			
		||||
        @edition_mode: whether toggling edition mode on when showing
 | 
			
		||||
 | 
			
		||||
        Shows the pad button map OSD for the requested device, the OSD
 | 
			
		||||
	will be shown according the current device settings (output
 | 
			
		||||
	mapping, left handed mode, ...)
 | 
			
		||||
    -->
 | 
			
		||||
    <method name='Show'>
 | 
			
		||||
      <arg name='device_node' direction='in' type='o'/>
 | 
			
		||||
      <arg name='edition_mode' direction='in' type='b'/>
 | 
			
		||||
    </method>
 | 
			
		||||
  </interface>
 | 
			
		||||
</node>
 | 
			
		||||
@@ -1,10 +1,9 @@
 | 
			
		||||
[Desktop Entry]
 | 
			
		||||
Name=Network Login
 | 
			
		||||
_Name=Network Login
 | 
			
		||||
Type=Application
 | 
			
		||||
Exec=gapplication launch org.gnome.Shell.PortalHelper
 | 
			
		||||
DBusActivatable=true
 | 
			
		||||
NoDisplay=true
 | 
			
		||||
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
 | 
			
		||||
Icon=network-workgroup
 | 
			
		||||
StartupNotify=true
 | 
			
		||||
OnlyShowIn=GNOME;
 | 
			
		||||
@@ -3,139 +3,132 @@
 | 
			
		||||
          gettext-domain="@GETTEXT_PACKAGE@">
 | 
			
		||||
    <key name="development-tools" type="b">
 | 
			
		||||
      <default>true</default>
 | 
			
		||||
      <summary>
 | 
			
		||||
      <_summary>
 | 
			
		||||
        Enable internal tools useful for developers and testers from Alt-F2
 | 
			
		||||
      </summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      </_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        Allows access to internal debugging and monitoring tools
 | 
			
		||||
        using the Alt-F2 dialog.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="enabled-extensions" type="as">
 | 
			
		||||
      <default>[]</default>
 | 
			
		||||
      <summary>UUIDs of extensions to enable</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>UUIDs of extensions to enable</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        GNOME Shell extensions have a UUID property; this key lists extensions
 | 
			
		||||
        which should be loaded. Any extension that wants to be loaded needs
 | 
			
		||||
        to be in this list. You can also manipulate this list with the
 | 
			
		||||
        EnableExtension and DisableExtension D-Bus methods on org.gnome.Shell.
 | 
			
		||||
      </description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="disable-user-extensions" type="b">
 | 
			
		||||
      <default>false</default>
 | 
			
		||||
      <summary>Disable user extensions</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
        Disable all extensions the user has enabled without affecting
 | 
			
		||||
        the “enabled-extension” setting.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="disable-extension-version-validation" type="b">
 | 
			
		||||
      <default>true</default>
 | 
			
		||||
      <summary>Disables the validation of extension version compatibility</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <default>false</default>
 | 
			
		||||
      <_summary>Disables the validation of extension version compatibility</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        GNOME Shell will only load extensions that claim to support the current
 | 
			
		||||
        running version. Enabling this option will disable this check and try to
 | 
			
		||||
        load all extensions regardless of the versions they claim to support.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="favorite-apps" type="as">
 | 
			
		||||
      <default>[ 'epiphany.desktop', 'evolution.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Software.desktop' ]</default>
 | 
			
		||||
      <summary>List of desktop file IDs for favorite applications</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>List of desktop file IDs for favorite applications</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        The applications corresponding to these identifiers
 | 
			
		||||
        will be displayed in the favorites area.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="app-picker-view" type="u">
 | 
			
		||||
      <default>0</default>
 | 
			
		||||
      <summary>App Picker View</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>App Picker View</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        Index of the currently selected view in the application picker.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="command-history" type="as">
 | 
			
		||||
      <default>[]</default>
 | 
			
		||||
      <summary>History for command (Alt-F2) dialog</summary>
 | 
			
		||||
      <_summary>History for command (Alt-F2) dialog</_summary>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="looking-glass-history" type="as">
 | 
			
		||||
      <default>[]</default>
 | 
			
		||||
      <!-- Translators: looking glass is a debugger and inspector tool, see https://wiki.gnome.org/Projects/GnomeShell/LookingGlass -->
 | 
			
		||||
      <summary>History for the looking glass dialog</summary>
 | 
			
		||||
      <_summary>History for the looking glass dialog</_summary>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="always-show-log-out" type="b">
 | 
			
		||||
      <default>false</default>
 | 
			
		||||
      <summary>Always show the “Log out” menu item in the user menu.</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
        This key overrides the automatic hiding of the “Log out”
 | 
			
		||||
      <_summary>Always show the 'Log out' menu item in the user menu.</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        This key overrides the automatic hiding of the 'Log out'
 | 
			
		||||
        menu item in single-user, single-session situations.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="remember-mount-password" type="b">
 | 
			
		||||
      <default>false</default>
 | 
			
		||||
      <summary>Whether to remember password for mounting encrypted or remote filesystems</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Whether to remember password for mounting encrypted or remote filesystems</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        The shell will request a password when an encrypted device or a
 | 
			
		||||
        remote filesystem is mounted.  If the password can be saved for
 | 
			
		||||
        future use a “Remember Password” checkbox will be present.
 | 
			
		||||
        future use a 'Remember Password' checkbox will be present.
 | 
			
		||||
        This key sets the default state of the checkbox.
 | 
			
		||||
      </description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="had-bluetooth-devices-setup" type="b">
 | 
			
		||||
      <default>false</default>
 | 
			
		||||
      <summary>Whether the default Bluetooth adapter had set up devices associated to it</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
        The shell will only show a Bluetooth menu item if a Bluetooth
 | 
			
		||||
        adapter is powered, or if there were devices set up associated
 | 
			
		||||
        with the default adapter. This will be reset if the default
 | 
			
		||||
        adapter is ever seen not to have devices associated to it.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <child name="calendar" schema="org.gnome.shell.calendar"/>
 | 
			
		||||
    <child name="keybindings" schema="org.gnome.shell.keybindings"/>
 | 
			
		||||
    <child name="keyboard" schema="org.gnome.shell.keyboard"/>
 | 
			
		||||
  </schema>
 | 
			
		||||
 | 
			
		||||
  <schema id="org.gnome.shell.calendar" path="/org/gnome/shell/calendar/"
 | 
			
		||||
          gettext-domain="@GETTEXT_PACKAGE@">
 | 
			
		||||
    <key name="show-weekdate" type="b">
 | 
			
		||||
      <default>false</default>
 | 
			
		||||
      <_summary>Show the week date in the calendar</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        If true, display the ISO week date in the calendar.
 | 
			
		||||
      </_description>
 | 
			
		||||
      </key>
 | 
			
		||||
  </schema>
 | 
			
		||||
 | 
			
		||||
  <schema id="org.gnome.shell.keybindings" path="/org/gnome/shell/keybindings/"
 | 
			
		||||
          gettext-domain="@GETTEXT_PACKAGE@">
 | 
			
		||||
    <key name="open-application-menu" type="as">
 | 
			
		||||
      <default>["<Super>F10"]</default>
 | 
			
		||||
      <summary>Keybinding to open the application menu</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Keybinding to open the application menu</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        Keybinding to open the application menu.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="toggle-application-view" type="as">
 | 
			
		||||
      <default>["<Super>a"]</default>
 | 
			
		||||
      <summary>Keybinding to open the “Show Applications” view</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
        Keybinding to open the “Show Applications” view of the Activities
 | 
			
		||||
      <_summary>Keybinding to open the "Show Applications" view</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        Keybinding to open the "Show Applications" view of the Activities
 | 
			
		||||
        Overview.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="toggle-overview" type="as">
 | 
			
		||||
      <default>["<Super>s"]</default>
 | 
			
		||||
      <summary>Keybinding to open the overview</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Keybinding to open the overview</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        Keybinding to open the Activities Overview.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="toggle-message-tray" type="as">
 | 
			
		||||
      <default>["<Super>v","<Super>m"]</default>
 | 
			
		||||
      <summary>Keybinding to toggle the visibility of the notification list</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
        Keybinding to toggle the visibility of the notification list.
 | 
			
		||||
      </description>
 | 
			
		||||
      <default>["<Super>m"]</default>
 | 
			
		||||
      <_summary>Keybinding to toggle the visibility of the message tray</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        Keybinding to toggle the visibility of the message tray.
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="focus-active-notification" type="as">
 | 
			
		||||
      <default>["<Super>n"]</default>
 | 
			
		||||
      <summary>Keybinding to focus the active notification</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Keybinding to focus the active notification</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        Keybinding to focus the active notification.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key name="pause-resume-tweens" type="as">
 | 
			
		||||
      <default>[]</default>
 | 
			
		||||
      <summary>Keybinding that pauses and resumes all running tweens, for debugging purposes</summary>
 | 
			
		||||
      <description></description>
 | 
			
		||||
      <_summary>Keybinding that pauses and resumes all running tweens, for debugging purposes</_summary>
 | 
			
		||||
      <_description></_description>
 | 
			
		||||
    </key>
 | 
			
		||||
  </schema>
 | 
			
		||||
 | 
			
		||||
@@ -143,10 +136,10 @@
 | 
			
		||||
          gettext-domain="@GETTEXT_PACKAGE@">
 | 
			
		||||
    <key name="keyboard-type" type="s">
 | 
			
		||||
      <default>'touch'</default>
 | 
			
		||||
      <summary>Which keyboard to use</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Which keyboard to use</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        The type of keyboard to use.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
  </schema>
 | 
			
		||||
 | 
			
		||||
@@ -155,11 +148,11 @@
 | 
			
		||||
          gettext-domain="@GETTEXT_PACKAGE@">
 | 
			
		||||
    <key type="b" name="current-workspace-only">
 | 
			
		||||
      <default>false</default>
 | 
			
		||||
      <summary>Limit switcher to current workspace.</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Limit switcher to current workspace.</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
	If true, only applications that have windows on the current workspace are shown in the switcher.
 | 
			
		||||
	Otherwise, all applications are included.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
  </schema>
 | 
			
		||||
 | 
			
		||||
@@ -173,20 +166,20 @@
 | 
			
		||||
          gettext-domain="@GETTEXT_PACKAGE@">
 | 
			
		||||
    <key name="app-icon-mode" enum="org.gnome.shell.window-switcher.AppIconMode">
 | 
			
		||||
      <default>'both'</default>
 | 
			
		||||
      <summary>The application icon mode.</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>The application icon mode.</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
	Configures how the windows are shown in the switcher. Valid possibilities
 | 
			
		||||
	are “thumbnail-only” (shows a thumbnail of the window), “app-icon-only”
 | 
			
		||||
	(shows only the application icon) or “both”.
 | 
			
		||||
      </description>
 | 
			
		||||
	are 'thumbnail-only' (shows a thumbnail of the window), 'app-icon-only'
 | 
			
		||||
	(shows only the application icon) or 'both'.
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
    <key type="b" name="current-workspace-only">
 | 
			
		||||
      <default>true</default>
 | 
			
		||||
      <summary>Limit switcher to current workspace.</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Limit switcher to current workspace.</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
	If true, only windows from the current workspace are shown in the switcher.
 | 
			
		||||
	Otherwise, all windows are included.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
  </schema>
 | 
			
		||||
 | 
			
		||||
@@ -194,43 +187,43 @@
 | 
			
		||||
	  gettext-domain="@GETTEXT_PACKAGE@">
 | 
			
		||||
    <key name="attach-modal-dialogs" type="b">
 | 
			
		||||
      <default>true</default>
 | 
			
		||||
      <summary>Attach modal dialog to the parent window</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Attach modal dialog to the parent window</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        This key overrides the key in org.gnome.mutter when running
 | 
			
		||||
        GNOME Shell.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
 | 
			
		||||
    <key name="edge-tiling" type="b">
 | 
			
		||||
      <default>true</default>
 | 
			
		||||
      <summary>Enable edge tiling when dropping windows on screen edges</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Enable edge tiling when dropping windows on screen edges</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        This key overrides the key in org.gnome.mutter when running GNOME Shell.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
 | 
			
		||||
    <key name="dynamic-workspaces" type="b">
 | 
			
		||||
      <default>true</default>
 | 
			
		||||
      <summary>Workspaces are managed dynamically</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Workspaces are managed dynamically</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        This key overrides the key in org.gnome.mutter when running GNOME Shell.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
 | 
			
		||||
    <key name="workspaces-only-on-primary" type="b">
 | 
			
		||||
      <default>true</default>
 | 
			
		||||
      <summary>Workspaces only on primary monitor</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Workspaces only on primary monitor</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        This key overrides the key in org.gnome.mutter when running GNOME Shell.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
 | 
			
		||||
    <key name="focus-change-on-pointer-rest" type="b">
 | 
			
		||||
      <default>true</default>
 | 
			
		||||
      <summary>Delay focus changes in mouse mode until the pointer stops moving</summary>
 | 
			
		||||
      <description>
 | 
			
		||||
      <_summary>Delay focus changes in mouse mode until the pointer stops moving</_summary>
 | 
			
		||||
      <_description>
 | 
			
		||||
        This key overrides the key in org.gnome.mutter when running GNOME Shell.
 | 
			
		||||
      </description>
 | 
			
		||||
      </_description>
 | 
			
		||||
    </key>
 | 
			
		||||
  </schema>
 | 
			
		||||
</schemalist>
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
To generate the css files, from the project directory:
 | 
			
		||||
 | 
			
		||||
sass --sourcemap=none --update .
 | 
			
		||||
@@ -1,34 +0,0 @@
 | 
			
		||||
Summary
 | 
			
		||||
-------
 | 
			
		||||
 | 
			
		||||
* Do not edit the CSS directly, edit the source SCSS files and process them with SASS (running
 | 
			
		||||
  `make` should do that when you have the required software installed, as described below;
 | 
			
		||||
  run `./parse-sass.sh` manually if it doesn't)
 | 
			
		||||
* Most SASS preprocessors should produce similar results, however the build system
 | 
			
		||||
  integration and 'parse-sass.sh' script use sassc. You should be able to install
 | 
			
		||||
  it with `pkcon install sassc` or your distribution's package manager.
 | 
			
		||||
 | 
			
		||||
How to tweak the theme
 | 
			
		||||
----------------------
 | 
			
		||||
 | 
			
		||||
Adwaita is a complex theme, so to keep it maintainable it's written and processed in SASS, the
 | 
			
		||||
generated CSS is then transformed into a gresource file during gtk build and used at runtime in a 
 | 
			
		||||
non-legible or editable form.
 | 
			
		||||
 | 
			
		||||
It is very likely your change will happen in the _common.scss file. That's where all the widget 
 | 
			
		||||
selectors are defined. Here's a rundown of the "supporting" stylesheets, that are unlikely to be the 
 | 
			
		||||
right place for a drive by stylesheet fix:
 | 
			
		||||
 | 
			
		||||
_colors.scss        - global color definitions. We keep the number of defined colors to a necessary minimum, 
 | 
			
		||||
                      most colors are derived from a handful of basics. It is an exact copy of the gtk+ 
 | 
			
		||||
                      counterpart. Light theme is used for the classic theme and dark is for GNOME3 shell 
 | 
			
		||||
                      default.
 | 
			
		||||
 | 
			
		||||
_drawing.scss       - drawing helper mixings/functions to allow easier definition of widget drawing under
 | 
			
		||||
                      specific context. This is why Adwaita isn't 15000 LOC.
 | 
			
		||||
 | 
			
		||||
_common.scss        - actual definitions of style for each widget. This is where you are likely to add/remove
 | 
			
		||||
                      your changes.
 | 
			
		||||
                      
 | 
			
		||||
You can read about SASS at http://sass-lang.com/documentation/. Once you make your changes to the
 | 
			
		||||
_common.scss file, you can either run make or the ./parse-sass.sh script.
 | 
			
		||||
							
								
								
									
										44
									
								
								data/theme/_colors.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,44 @@
 | 
			
		||||
// When color definition differs for dark and light variant,
 | 
			
		||||
// it gets @if ed depending on $variant
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
$base_color: if($variant =='light', #ffffff, #292929);
 | 
			
		||||
$bg_color: if($variant =='light', #ededed, #393f3f);
 | 
			
		||||
$fg_color: if($variant =='light', #2e3436, #eeeeec);
 | 
			
		||||
 | 
			
		||||
$selected_fg_color: #ffffff;
 | 
			
		||||
$selected_bg_color: if($variant == 'light', #4a90d9, darken(#4a90d9,20%));
 | 
			
		||||
$selected_borders_color: if($variant=='light', darken($selected_bg_color, 30%),
 | 
			
		||||
                                               darken($selected_bg_color, 20%));
 | 
			
		||||
$borders_color: if($variant =='light', darken($bg_color,30%), darken($bg_color,12%));
 | 
			
		||||
$borders_edge: if($variant =='light', white, transparentize($fg_color, 0.9));
 | 
			
		||||
$link_color: if($variant == 'light', darken($selected_bg_color,10%),
 | 
			
		||||
                                     lighten($selected_bg_color,20%));
 | 
			
		||||
$link_visited_color: if($variant == 'light', darken($selected_bg_color,20%),
 | 
			
		||||
                                     lighten($selected_bg_color,10%));
 | 
			
		||||
$top_hilight: $borders_edge;
 | 
			
		||||
 | 
			
		||||
$warning_color: #f57900;
 | 
			
		||||
$error_color: #cc0000;
 | 
			
		||||
$success_color: if($variant =='light', #73d216, darken(#73d216,10%));
 | 
			
		||||
$destructive_color: if($variant =='light', #ef2929, darken(#ef2929,10%));
 | 
			
		||||
 | 
			
		||||
$osd_fg_color: #eeeeec;
 | 
			
		||||
$osd_bg_color: #2e3436;
 | 
			
		||||
$osd_borders_color: transparentize(black, 0.3);
 | 
			
		||||
$osd_outer_borders_color: transparentize(white, 0.9);
 | 
			
		||||
 | 
			
		||||
$tooltip_borders_color: $osd_outer_borders_color;
 | 
			
		||||
 | 
			
		||||
//insensitive state derived colors
 | 
			
		||||
$insensitive_fg_color: mix($fg_color, $bg_color, 50%);
 | 
			
		||||
$insensitive_bg_color: mix($bg_color, $base_color, 60%);
 | 
			
		||||
$insensitive_borders_color: $borders_color;
 | 
			
		||||
 | 
			
		||||
//colors for the backdrop state, derived from the main colors.
 | 
			
		||||
$backdrop_base_color: if($variant =='light', darken($base_color,1%), lighten($base_color,1%));
 | 
			
		||||
$backdrop_bg_color: $bg_color;
 | 
			
		||||
$backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 80%);
 | 
			
		||||
$backdrop_insensitive_color: if($variant =='light', darken($backdrop_bg_color,15%), lighten($backdrop_bg_color,15%));
 | 
			
		||||
$backdrop_borders_color: mix($borders_color, $bg_color, 90%);
 | 
			
		||||
$backdrop_dark_fill: mix($backdrop_borders_color,$backdrop_bg_color, 35%);
 | 
			
		||||
							
								
								
									
										963
									
								
								data/theme/_common.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,963 @@
 | 
			
		||||
//This is the RIGHT PLACE to edit the stylesheet
 | 
			
		||||
 | 
			
		||||
//let's start by telling people not to edit the generated CSS:
 | 
			
		||||
$cakeisalie: "This stylesheet is generated, DO NOT EDIT";
 | 
			
		||||
/* #{$cakeisalie} */
 | 
			
		||||
 | 
			
		||||
/* Copyright 2009, Red Hat, Inc.
 | 
			
		||||
 *
 | 
			
		||||
 * Portions adapted from Mx's data/style/default.css
 | 
			
		||||
 *   Copyright 2009 Intel Corporation
 | 
			
		||||
 *
 | 
			
		||||
 * This program is free software; you can redistribute it and/or modify it
 | 
			
		||||
 * under the terms and conditions of the GNU Lesser General Public License,
 | 
			
		||||
 * version 2.1, as published by the Free Software Foundation.
 | 
			
		||||
 *
 | 
			
		||||
 * This program is distributed in the hope it will be useful, but WITHOUT ANY
 | 
			
		||||
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 | 
			
		||||
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
 | 
			
		||||
 * more details.
 | 
			
		||||
 *
 | 
			
		||||
 * You should have received a copy of the GNU Lesser General Public License
 | 
			
		||||
 * along with this program; if not, write to the Free Software Foundation,
 | 
			
		||||
 * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* GLOBALS */
 | 
			
		||||
$font-size: 11;
 | 
			
		||||
$font-family: Cantarell, Sans-Serif;
 | 
			
		||||
 | 
			
		||||
stage {
 | 
			
		||||
  font-family: $font-family;
 | 
			
		||||
  @include fontsize($font-size);
 | 
			
		||||
  color: $fg_color;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* WIDGETS */
 | 
			
		||||
 | 
			
		||||
/* Buttons */
 | 
			
		||||
// one would think we may want a generic button class:
 | 
			
		||||
// bug #737785
 | 
			
		||||
.candidate-page-button,
 | 
			
		||||
.notification-button,
 | 
			
		||||
.notification-icon-button,
 | 
			
		||||
.hotplug-notification-item,
 | 
			
		||||
.hotplug-resident-eject-button,
 | 
			
		||||
.modal-dialog-button,
 | 
			
		||||
.app-view-control {
 | 
			
		||||
  border-radius: 3px;
 | 
			
		||||
  border-width: 1px;
 | 
			
		||||
  padding: 4px 32px;
 | 
			
		||||
  @include button(normal);
 | 
			
		||||
  &:hover { @include button(hover); }
 | 
			
		||||
  &:focus { @include button(focus); }
 | 
			
		||||
  &:insensitive { @include button(insensitive); }
 | 
			
		||||
  &:active { @include button(active); }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Entries */
 | 
			
		||||
StEntry {
 | 
			
		||||
  border-radius: 3px;
 | 
			
		||||
  padding: 4px;
 | 
			
		||||
  border-width: 1px;
 | 
			
		||||
  color: $fg_color;
 | 
			
		||||
  @include entry(normal);
 | 
			
		||||
  //&:hover { @include entry(hover);}
 | 
			
		||||
  &:focus { @include entry(focus,$fc:transparentize($fg_color,0.5));}
 | 
			
		||||
  &:insensitive { @include entry(insensitive);}
 | 
			
		||||
  selection-background-color: $selected_bg_color;
 | 
			
		||||
  selected-color: $selected_fg_color;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* Scrollbars */
 | 
			
		||||
 | 
			
		||||
StScrollBar {
 | 
			
		||||
  padding: 0;
 | 
			
		||||
  &.vfade { -st-vfade-offset: 68px; }
 | 
			
		||||
  &.hfade { -st-hfade-offset: 68px; }
 | 
			
		||||
 | 
			
		||||
  StScrollView & {
 | 
			
		||||
    min-width: 14px;
 | 
			
		||||
    min-height: 14px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  StBin#trough {
 | 
			
		||||
    border-radius: 0;
 | 
			
		||||
    background-color: darken($bg_color,10%);
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  StButton#vhandle, StButton#hhandle {
 | 
			
		||||
    border-radius: 8px;
 | 
			
		||||
    background-color: $bg_color;
 | 
			
		||||
    border: 3px solid darken($bg_color,10%); //would be nice to margin or at least to transparent
 | 
			
		||||
    &:hover { background-color: lighten($bg_color,10%); }
 | 
			
		||||
    &:active { background-color: $selected_bg_color; }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Slider */
 | 
			
		||||
 | 
			
		||||
.slider {
 | 
			
		||||
    height: 1em;
 | 
			
		||||
    -slider-height: 0.3em;
 | 
			
		||||
    -slider-background-color: $insensitive_bg_color; //background of the trough
 | 
			
		||||
    -slider-border-color: $borders_color; //trough border color
 | 
			
		||||
    -slider-active-background-color: $selected_bg_color; //active trough fill
 | 
			
		||||
    -slider-active-border-color: darken($selected_bg_color,10%); //active trough border
 | 
			
		||||
    -slider-border-width: 1px;
 | 
			
		||||
    -slider-handle-radius: 6px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Check Boxes */
 | 
			
		||||
 | 
			
		||||
.check-box {
 | 
			
		||||
  StBoxLayout { spacing: .8em; }
 | 
			
		||||
  StBin {
 | 
			
		||||
    width: 24px;
 | 
			
		||||
    height: 22px;
 | 
			
		||||
    background-image: url("checkbox-off.svg");
 | 
			
		||||
  }
 | 
			
		||||
  &:focus Stbin { background-image: url("checkbox-off-focused.svg"); }
 | 
			
		||||
  &:checked Stbin { background-image: url("checkbox.svg"); }
 | 
			
		||||
  &:focus:checked Stbin { background-image: url("checkbox-focused.svg"); }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Switches */
 | 
			
		||||
.toggle-switch {
 | 
			
		||||
    width: 65px;
 | 
			
		||||
    height: 22px;
 | 
			
		||||
    background-size: contain;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
  @each $v in us, intl {
 | 
			
		||||
    .toggle-switch-#{$v} {
 | 
			
		||||
      background-image: url("toggle-off-#{$v}.svg");    
 | 
			
		||||
      &:checked { background-image: url("toggle-on-#{$v}.svg"); }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
/* links */
 | 
			
		||||
.shell-link {
 | 
			
		||||
  color: $link_color;
 | 
			
		||||
  &:hover { color: lighten($link_color,10%); }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Modal Dialogs */
 | 
			
		||||
 | 
			
		||||
.lightbox { background-color: black; } //FIXME where is this?
 | 
			
		||||
.flashspot { background-color: white; } //FIXME where is this?
 | 
			
		||||
 | 
			
		||||
.modal-dialog {
 | 
			
		||||
  border-radius: 5px;
 | 
			
		||||
  background-color: transparentize(darken($bg_color,10%),0.05);
 | 
			
		||||
  border: 1px solid $borders_color;
 | 
			
		||||
  padding: 24px;
 | 
			
		||||
 | 
			
		||||
  .run-dialog-entry { width: 20em; }
 | 
			
		||||
  .run-dialog-error-box {
 | 
			
		||||
    padding-top: 16px;
 | 
			
		||||
    spacing: 6px;
 | 
			
		||||
  }
 | 
			
		||||
  .run-dialog-button-box { padding-top: 1em; }
 | 
			
		||||
  .run-dialog-label { 
 | 
			
		||||
    font-size: fontsize($font-size + 1.1); 
 | 
			
		||||
    font-weight: bold;
 | 
			
		||||
    color: darken($fg_color,10%);
 | 
			
		||||
    padding-bottom: .4em;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
}
 | 
			
		||||
  .button-dialog-button-box {
 | 
			
		||||
    spacing: 18px;
 | 
			
		||||
    padding-top: 48px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .show-processes-dialog-subject,
 | 
			
		||||
  .mount-question-dialog-subject,
 | 
			
		||||
  .end-session-dialog-subject { //this should be a generic header class
 | 
			
		||||
    font-size: fontsize($font-size * 1.3);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
/* Popvers/Menus */
 | 
			
		||||
 | 
			
		||||
.popup-menu {
 | 
			
		||||
  min-width: 200px;  
 | 
			
		||||
  
 | 
			
		||||
  .popup-menu-arrow { } //defined globally in the TOP BAR
 | 
			
		||||
  .popup-sub-menu {
 | 
			
		||||
    background-color: darken($bg_color,2%);
 | 
			
		||||
    border-top: 1px solid lighten($borders_color,5%);
 | 
			
		||||
    border-bottom: 1px solid lighten($borders_color,5%);
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .popup-menu-content { padding: 1em 0em; }
 | 
			
		||||
  .popup-menu-item { 
 | 
			
		||||
    spacing: 12px;
 | 
			
		||||
    
 | 
			
		||||
    &:ltr { padding: .4em 1.75em .4em 0em; }
 | 
			
		||||
    &:rtl { padding: .4em 0em .4em 1.75em; }
 | 
			
		||||
    &:active { background-color: lighten($bg_color,10%); }
 | 
			
		||||
    &:insensitive { background-color: transparentize($bg_color,.5); }
 | 
			
		||||
  }
 | 
			
		||||
  .popup-inactive-menu-item { //all icons and other graphical elements
 | 
			
		||||
    color: $fg_color;
 | 
			
		||||
 | 
			
		||||
    &:insensitive { color: transparentize($fg_color,0.5); }
 | 
			
		||||
  }
 | 
			
		||||
  //.popup-status-menu-item { font-weight: normal;  color: pink; } //dunno what that is  
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
  .popup-menu-ornament {
 | 
			
		||||
      text-align: right;
 | 
			
		||||
      width: 1em;
 | 
			
		||||
  }
 | 
			
		||||
  .popup-menu-boxpointer,
 | 
			
		||||
  .candidate-popup-boxpointer {
 | 
			
		||||
      -arrow-border-radius: 3px;
 | 
			
		||||
      -arrow-background-color: $bg_color;
 | 
			
		||||
      -arrow-border-width: 1px;
 | 
			
		||||
      -arrow-border-color: $borders_color;
 | 
			
		||||
      -arrow-base: 24px;
 | 
			
		||||
      -arrow-rise: 11px;
 | 
			
		||||
      -arrow-box-shadow: 0 1px 3px red; //dreaming. bug #689995
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .popup-separator-menu-item {
 | 
			
		||||
    -margin-horizontal: 24px;
 | 
			
		||||
    height: 1px; //not really the whole box
 | 
			
		||||
    padding: 0; //not really centered
 | 
			
		||||
    background-color: transparent;
 | 
			
		||||
    border-color: lighten($borders_color,10%);
 | 
			
		||||
    border-bottom-width: 1px;
 | 
			
		||||
    border-bottom-style: solid;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  
 | 
			
		||||
/* fallback menu 
 | 
			
		||||
- odd thing for styling App menu when apparently not running under shell. Light Adwaita styled
 | 
			
		||||
  app menu inside the main app window itself rather than the top bar
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* TOP BAR */
 | 
			
		||||
 | 
			
		||||
#panel {
 | 
			
		||||
  background-color: black;
 | 
			
		||||
  font-weight: bold;
 | 
			
		||||
  height: 1.86em;
 | 
			
		||||
 | 
			
		||||
  &.unlock-screen,
 | 
			
		||||
  &.login-screen,
 | 
			
		||||
  &.lock-screen {
 | 
			
		||||
    background-color: transparent;    
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  #panelLeft, #panelCenter { // spacing between activities<>app menu and such
 | 
			
		||||
    spacing: 4px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .panel-corner {
 | 
			
		||||
    -panel-corner-radius: 6px;
 | 
			
		||||
    -panel-corner-background-color: black;
 | 
			
		||||
    -panel-corner-border-width: 2px;
 | 
			
		||||
    -panel-corner-border-color: transparent; 
 | 
			
		||||
    
 | 
			
		||||
    &:active, &:overview, &:focus { 
 | 
			
		||||
      -panel-corner-border-color: lighten($selected_bg_color,5%); 
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    &.lock-screen, &.login-screen, &unlock-screen {
 | 
			
		||||
      -panel-corner-radius: 0;
 | 
			
		||||
      -panel-corner-background-color: transparent;
 | 
			
		||||
      -panel-corner-border-color: transparent;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .panel-button {
 | 
			
		||||
    padding: 0px 12px;
 | 
			
		||||
    font-weight: bold;
 | 
			
		||||
    color: #ccc;
 | 
			
		||||
    transition-duration: 100ms;
 | 
			
		||||
 | 
			
		||||
    #appMenuIcon { 
 | 
			
		||||
      app-icon-bottom-clip: 1px;
 | 
			
		||||
      
 | 
			
		||||
      .panel-button:active &, 
 | 
			
		||||
      .panel-button:overview &, 
 | 
			
		||||
      .panel-button:focus &, 
 | 
			
		||||
      .panel-button:checked & {
 | 
			
		||||
        app-icon-bottom-clip: 2px;
 | 
			
		||||
      }
 | 
			
		||||
        
 | 
			
		||||
    }
 | 
			
		||||
    &:hover { 
 | 
			
		||||
      color: lighten($fg_color, 10%);
 | 
			
		||||
      text-shadow: black 0 2px 2px;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    &:active, &:overview, &:focus, &:checked {
 | 
			
		||||
      // Trick due to St limitations. It needs a background to draw
 | 
			
		||||
      // a box-shadow
 | 
			
		||||
      background-color: rgba(0, 0, 0, 0.01);
 | 
			
		||||
      box-shadow: inset 0 -2px 0px lighten($selected_bg_color,5%);
 | 
			
		||||
      color: lighten($fg_color,10%);
 | 
			
		||||
      text-shadow: black 0px 2px 2px;
 | 
			
		||||
      
 | 
			
		||||
      & > .system-status-icon { icon-shadow: black 0 2px 2px; }
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    .system-status-icon { icon-size: 1.09em; padding: 0 5px; }
 | 
			
		||||
    .unlock-screen &,
 | 
			
		||||
    .login-screen &,
 | 
			
		||||
    .lock-screen & {
 | 
			
		||||
      color: lighten($fg_color, 10%);
 | 
			
		||||
      &:focus, &:hover, &:active { color: lighten($fg_color, 10%); }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .panel-status-button {
 | 
			
		||||
  
 | 
			
		||||
    &:active, &:overview, &:focus, &:checked {
 | 
			
		||||
      border-color: lighten($selected_bg_color,5%);
 | 
			
		||||
      border-bottom-width: 2px;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .panel-menu { -boxpointer-gap: 4px; } //FIXME
 | 
			
		||||
  .panel-status-indicators-box, //FIXME
 | 
			
		||||
  .panel-status-menu-box {
 | 
			
		||||
    spacing: 2px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .screencast-indicator { color: $warning_color; }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
  // a little unstructured mess:
 | 
			
		||||
 | 
			
		||||
  .system-switch-user-submenu-icon {
 | 
			
		||||
    icon-size: 24px;
 | 
			
		||||
    border: 1px solid transparentize($fg_color,0.6);
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  #appMenu {
 | 
			
		||||
    spinner-image: url("process-working.svg");
 | 
			
		||||
    spacing: 4px;
 | 
			
		||||
    
 | 
			
		||||
    .label-shadow { color: transparentize(#000,0.5); }
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .aggregate-menu {
 | 
			
		||||
    width: 360px;
 | 
			
		||||
    .popup-menu-icon { padding: 0 4px; }
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .system-menu-action {
 | 
			
		||||
    color: $fg_color;
 | 
			
		||||
    border-radius: 32px; /* wish we could do 50% */
 | 
			
		||||
    padding: 13px;
 | 
			
		||||
    border: 1px solid lighten($borders_color,5%);
 | 
			
		||||
    
 | 
			
		||||
    &:hover, &:focus {
 | 
			
		||||
      color: lighten($fg_color, 10%);
 | 
			
		||||
      background-color: lighten($bg_color,10%);
 | 
			
		||||
      border: none;
 | 
			
		||||
      padding: 14px;
 | 
			
		||||
    }
 | 
			
		||||
    &:active { background-color: lighten($borders_color,5%); }
 | 
			
		||||
    
 | 
			
		||||
    & > StIcon { icon-size: 16px; }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
// not really top bar only
 | 
			
		||||
.popup-menu-arrow { width: 16px; height: 16px; }
 | 
			
		||||
.popup-menu-icon { icon-size: 1.09em; }
 | 
			
		||||
 | 
			
		||||
//close buttons
 | 
			
		||||
 | 
			
		||||
.window-close, .notification-close {
 | 
			
		||||
  background-image: url("close-window.svg");
 | 
			
		||||
  background-size: 32px;
 | 
			
		||||
  height: 32px;
 | 
			
		||||
  width: 32px;
 | 
			
		||||
}
 | 
			
		||||
  .window-close { 
 | 
			
		||||
    -shell-close-overlap: 16px;
 | 
			
		||||
    &:rtl { -st-background-image-shadow: 2px 2px 6px rgba(0,0,0,0.5); }
 | 
			
		||||
  }
 | 
			
		||||
  .notification-close {
 | 
			
		||||
    -shell-close-overlap-x: 14px;
 | 
			
		||||
    -shell-close-overlap-y: -12px;
 | 
			
		||||
    
 | 
			
		||||
    &:rtl { -shell-close-overlap-x: -14px; }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
/* OVERVIEW */
 | 
			
		||||
 | 
			
		||||
#overview {
 | 
			
		||||
  spacing: 24px; //
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
  .window-picker { //container around window thumbnails
 | 
			
		||||
    -horizontal-spacing: 32px;
 | 
			
		||||
    -vertical-spacing: 32px;
 | 
			
		||||
    padding-left: 32px;
 | 
			
		||||
    padding-right: 32px;
 | 
			
		||||
    padding-bottom: 48px;
 | 
			
		||||
    
 | 
			
		||||
    &.external-monitor { padding: 32px; }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .window-clone-border {
 | 
			
		||||
    border: 4px solid $selected_bg_color;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
  }
 | 
			
		||||
  .window-caption {
 | 
			
		||||
    spacing: 25px;
 | 
			
		||||
    background-color: transparentize($bg_color,0.3);
 | 
			
		||||
    border-radius: 8px;
 | 
			
		||||
    padding: 4px 12px;
 | 
			
		||||
    -shell-caption-spacing: 12px;
 | 
			
		||||
    &:hover { background-color: $selected_bg_color; }
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .messages-indicator { color: transparentize($fg_color,.2); height: 32px; }
 | 
			
		||||
  .messages-indicator-contents { spacing: 12px; padding-bottom: 12px; }
 | 
			
		||||
 | 
			
		||||
  //search entry
 | 
			
		||||
  .search-entry {
 | 
			
		||||
    width: 320px;
 | 
			
		||||
    padding: 7px 9px;
 | 
			
		||||
    border-radius: 24px;
 | 
			
		||||
    &:focus {
 | 
			
		||||
      padding: 6px 8px;
 | 
			
		||||
      border-width: 2px;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    .search-entry-icon { icon-size: 1em; padding: 0 4px; color: transparentize($fg_color,.3); }
 | 
			
		||||
    
 | 
			
		||||
    &:hover, &:focus {
 | 
			
		||||
      .search-entry-icon { color: $fg_color; }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  //search results
 | 
			
		||||
  
 | 
			
		||||
  #searchResultsBin {
 | 
			
		||||
    max-width: 1000px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  #searchResultsContent {
 | 
			
		||||
      padding-left: 20px;
 | 
			
		||||
      padding-right: 20px;
 | 
			
		||||
      spacing: 16px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .search-section { spacing: 16px; } // This should be equal to #searchResultsContent spacing
 | 
			
		||||
  .search-section-content { spacing: 32px; } // This is the space between the provider icon and the results container
 | 
			
		||||
  .search-statustext { // "no results"
 | 
			
		||||
    @extend %status_text;
 | 
			
		||||
  }
 | 
			
		||||
  .list-search-results { spacing: 3px; }
 | 
			
		||||
  
 | 
			
		||||
  .search-section-separator {
 | 
			
		||||
    -gradient-height: 1px;
 | 
			
		||||
    -gradient-start: rgba(255,255,255,0);
 | 
			
		||||
    -gradient-end: rgba(255,255,255,0.1);
 | 
			
		||||
    -margin-horizontal: 1.5em;
 | 
			
		||||
    height: 1px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .list-search-result-content { spacing: 12px; padding: 12px; }
 | 
			
		||||
  .list-search-result-title { font-size: 1.5em; color: darken($fg_color,5%); }
 | 
			
		||||
  .list-search-result-description { color: darken($fg_color,15%); }
 | 
			
		||||
  .search-provider-icon { padding: 15px; }
 | 
			
		||||
  .search-provider-icon-more {
 | 
			
		||||
    width: 16px;
 | 
			
		||||
    height: 16px;
 | 
			
		||||
    background-image: url("more-results.svg");
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
  /* DASHBOARD */
 | 
			
		||||
  
 | 
			
		||||
  #dash {
 | 
			
		||||
    @extend %overview-panel;
 | 
			
		||||
    padding: 4px;
 | 
			
		||||
    border-left: 0px;
 | 
			
		||||
    border-radius: 0px 9px 9px 0px;
 | 
			
		||||
    
 | 
			
		||||
    &:rtl {
 | 
			
		||||
      border-left-width: 1px;
 | 
			
		||||
      border-right-width: 0;
 | 
			
		||||
      border-radius: 9px 0 0 9px;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    .placeholder {
 | 
			
		||||
      background-image: url("dash-placeholder.svg");
 | 
			
		||||
      background-size: contain;
 | 
			
		||||
      height: 24px;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    .empty-dash-drop-target {
 | 
			
		||||
      width: 24px;
 | 
			
		||||
      height: 24px;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .dash-item-container > StWidget {
 | 
			
		||||
    padding: 4px 8px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .dash-label { //osd tooltip
 | 
			
		||||
    border-radius: 7px;
 | 
			
		||||
    padding: 4px 12px;
 | 
			
		||||
    background-color: transparentize($bg_color,0.3);
 | 
			
		||||
    text-align: center;
 | 
			
		||||
    -x-offset: 8px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  /* App Vault/Grid */
 | 
			
		||||
  .icon-grid {
 | 
			
		||||
    spacing: 30px;
 | 
			
		||||
    -shell-grid-horizontal-item-size: 136px;
 | 
			
		||||
    -shell-grid-vertical-item-size: 136px;
 | 
			
		||||
    
 | 
			
		||||
    .overview-icon { icon-size: 96px; } //FIXME no effect
 | 
			
		||||
  }
 | 
			
		||||
  //.app-display { spacing: 20px; }
 | 
			
		||||
 | 
			
		||||
  .app-view-controls { //favorties | all toggle container
 | 
			
		||||
    padding-bottom: 32px;
 | 
			
		||||
  }
 | 
			
		||||
  .app-view-control { //favorties | all toggle button
 | 
			
		||||
    padding: 4px 32px; 
 | 
			
		||||
    &:checked { @include button(active); }
 | 
			
		||||
    &:first-child { 
 | 
			
		||||
      border-right-width: 0;
 | 
			
		||||
      border-radius: 3px 0 0 3px;
 | 
			
		||||
    }
 | 
			
		||||
    &:last-child {
 | 
			
		||||
     border-radius: 0 3px 3px 0;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  //Icon tile
 | 
			
		||||
  .search-provider-icon,
 | 
			
		||||
  .list-search-result {
 | 
			
		||||
    @extend %icon_tile;
 | 
			
		||||
    &:active, &:checked { background-color: transparentize(darken($bg_color,10%),.1); }
 | 
			
		||||
    &:focus, &:selected, &:hover { 
 | 
			
		||||
      background-color: transparentize($fg_color,.9);
 | 
			
		||||
      transition-duration: 200ms;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  .app-well-app, 
 | 
			
		||||
  .app-well-app.app-folder,
 | 
			
		||||
  .show-apps,
 | 
			
		||||
  .grid-search-result {
 | 
			
		||||
    & > .overview-icon { 
 | 
			
		||||
      @extend %icon_tile;
 | 
			
		||||
    }
 | 
			
		||||
    &.running > .overview-icon {
 | 
			
		||||
      text-shadow: black 0px 2px 2px;
 | 
			
		||||
    }
 | 
			
		||||
    &:active > .overview-icon, 
 | 
			
		||||
    &:checked > .overview-icon {
 | 
			
		||||
      background-color: transparentize(darken($bg_color,10%),.1); //FIXME not working?
 | 
			
		||||
      box-shadow: inset 0 1px 2px $borders_color;
 | 
			
		||||
    }
 | 
			
		||||
    &:hover > .overview-icon, 
 | 
			
		||||
    &.running:hover > .overview-icon,
 | 
			
		||||
    &:focus > .overview-icon, 
 | 
			
		||||
    &:selected > .overview-icon { 
 | 
			
		||||
      background-color: transparentize($fg_color,.9);
 | 
			
		||||
      transition-duration: 0ms;
 | 
			
		||||
      border-image: none;
 | 
			
		||||
      background-image: none;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .app-well-app-running-dot { //running apps indicator
 | 
			
		||||
    width: 10px; height: 3px;
 | 
			
		||||
    background-color: $selected_bg_color;
 | 
			
		||||
    margin-bottom: 2px; //FIXME will happen :)
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  %icon_tile {
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
    padding: 6px;
 | 
			
		||||
    border: 1px solid transparent;
 | 
			
		||||
    transition-duration: 100ms;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .app-well-app.app-folder > .overview-icon {
 | 
			
		||||
    background-color: transparentize($bg_color,.6);
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .show-apps:checked .show-apps-icon,
 | 
			
		||||
  .show-apps:focus .show-apps-icon {
 | 
			
		||||
    color: white;
 | 
			
		||||
    transition-duration: 100ms;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  
 | 
			
		||||
  // Collections
 | 
			
		||||
  .app-folder-popup { //expanded collection
 | 
			
		||||
    -arrow-border-radius: 8px;
 | 
			
		||||
    -arrow-background-color: transparentize($bg_color,0.7);
 | 
			
		||||
    -arrow-base: 24px;
 | 
			
		||||
    -arrow-rise: 11px;
 | 
			
		||||
  }
 | 
			
		||||
  .app-folder-popup-bin { padding: 5px; }
 | 
			
		||||
  .app-folder-icon {
 | 
			
		||||
    padding: 5px;
 | 
			
		||||
    spacing-rows: 5px;
 | 
			
		||||
    spacing-columns: 5px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .page-indicator { 
 | 
			
		||||
    padding: 15px 20px;
 | 
			
		||||
    
 | 
			
		||||
    .page-indicator-icon {
 | 
			
		||||
      width: 18px;
 | 
			
		||||
      height: 18px;
 | 
			
		||||
      background-image: url(page-indicator-inactive.svg);
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    &:hover .page-indicator-icon { background-image: url(page-indicator-hover.svg); }
 | 
			
		||||
    &:active .page-indicator-icon { background-image: url(page-indicator-active.svg); }
 | 
			
		||||
    &:checked .page-indicator-icon,
 | 
			
		||||
    &:checked:active { background-image: url(page-indicator-checked.svg); }
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .no-frequent-applications-label { @extend %status_text; }
 | 
			
		||||
  
 | 
			
		||||
  .app-well-app > .overview-icon.overview-icon-with-label,
 | 
			
		||||
  .grid-search-result .overview-icon.overview-icon-with-label {
 | 
			
		||||
    padding: 10px 8px 5px 8px;
 | 
			
		||||
    spacing: 4px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  // Workspace pager
 | 
			
		||||
  .workspace-thumbnails { //container ala dash
 | 
			
		||||
    @extend %overview-panel;
 | 
			
		||||
    visible-width: 32px; //amount visible before hover
 | 
			
		||||
    spacing: 11px;
 | 
			
		||||
    padding: 8px;
 | 
			
		||||
    border-radius: 9px 0 0 9px;
 | 
			
		||||
    //border-width: 1px 0 1px 1px; //fixme: can't have non unoform borders :(
 | 
			
		||||
    &:rtl { border-radius: 0 9px 9px 0;}
 | 
			
		||||
  }
 | 
			
		||||
  .workspace-thumbnail-indicator {
 | 
			
		||||
    border: 4px solid $selected_bg_color;
 | 
			
		||||
    padding: 1px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  //Some hacks I don't even
 | 
			
		||||
  // FIXME
 | 
			
		||||
  .search-display > StBoxLayout,
 | 
			
		||||
  .all-apps,
 | 
			
		||||
  .frequent-apps > StBoxLayout {
 | 
			
		||||
    // horizontal padding to make sure scrollbars or dash don't overlap content
 | 
			
		||||
    padding: 0px 88px 10px 88px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
%overview-panel {
 | 
			
		||||
  color: $fg_color;
 | 
			
		||||
  background-color: $bg_color;
 | 
			
		||||
  border: 1px solid transparentize($fg_color,0.8);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
%status_text {
 | 
			
		||||
  font-size: 2em;
 | 
			
		||||
  font-weight: bold;
 | 
			
		||||
  color: $fg_color;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* NOTIFICATIONS & MESSAGE TRAY */
 | 
			
		||||
 | 
			
		||||
#message-tray {
 | 
			
		||||
  background: darken($bg_color,10%) url("noise-texture.png");
 | 
			
		||||
  background-repeat: repeat;
 | 
			
		||||
  height: 72px;
 | 
			
		||||
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
 | 
			
		||||
  padding: 4px;
 | 
			
		||||
  .message-tray-summary { height: 72px; }
 | 
			
		||||
  
 | 
			
		||||
  .message-tray-menu-button {
 | 
			
		||||
    StIcon {
 | 
			
		||||
      padding: 0 20px;
 | 
			
		||||
      color: $fg_color;
 | 
			
		||||
      icon-size: 24px;
 | 
			
		||||
      opacity: 1;
 | 
			
		||||
    }
 | 
			
		||||
    &:hover StIcon { color: lighten($fg_color, 15%); } 
 | 
			
		||||
    &:active StIcon { color: lighten($selected_bg_color, 10%); }
 | 
			
		||||
  } 
 | 
			
		||||
  .no-messages-label { color: darken($fg_color,10%); }
 | 
			
		||||
}
 | 
			
		||||
  .url-highlighter { link-color: $selected_bg_color; }
 | 
			
		||||
  
 | 
			
		||||
  // Banners
 | 
			
		||||
  .notification { 
 | 
			
		||||
    font-size: 11pt;
 | 
			
		||||
    width: 34em;
 | 
			
		||||
    border-radius: 6px 6px 0 0;
 | 
			
		||||
    background-color: transparentize(darken($bg_color,8%),.05);
 | 
			
		||||
    border: 1px solid $borders_color;
 | 
			
		||||
    border-bottom-width: 0;
 | 
			
		||||
    //box-shadow: 0 1px 4px black;
 | 
			
		||||
    spacing-rows: 4px;
 | 
			
		||||
    padding: 8px 8px 4px 8px;
 | 
			
		||||
    spacing-columns: 10px;
 | 
			
		||||
    &.multi-line-notification { padding-bottom: 8px; }
 | 
			
		||||
  }
 | 
			
		||||
  .notification-unexpanded {
 | 
			
		||||
    // We want to force the actor at a specific size, irrespective
 | 
			
		||||
    // of its minimum and preferred size, so we override both
 | 
			
		||||
    min-height: 36px;
 | 
			
		||||
    height: 36px;
 | 
			
		||||
  }
 | 
			
		||||
  // We use row-span = 2 for the image cell, which prevents its height preferences to be
 | 
			
		||||
  // taken into account during allocation, so its height ends up being limited by the height
 | 
			
		||||
  // of the content in the other rows. To avoid showing a stretched image, we set the minimum
 | 
			
		||||
  // height of the table to be ICON_SIZE + IMAGE_SIZE + spacing-rows = 24 + 125 + 10 = 159 
 | 
			
		||||
  .notification-with-image {
 | 
			
		||||
    min-height: 159px;
 | 
			
		||||
  }
 | 
			
		||||
  .notification-body { spacing: 5px; }
 | 
			
		||||
  .notification-actions {
 | 
			
		||||
    paddinf-top: 18px;
 | 
			
		||||
    spacing: 6px;
 | 
			
		||||
  }
 | 
			
		||||
  //Message tray items
 | 
			
		||||
  .summary-source {
 | 
			
		||||
    border-radius: 0;
 | 
			
		||||
    -st-natural-width: 60px; //FIXME left aligned rather than centered
 | 
			
		||||
    padding: 9px;
 | 
			
		||||
    transition-duration: 100ms;
 | 
			
		||||
  }
 | 
			
		||||
  .summary-source-button { 
 | 
			
		||||
    &:hover .summary-source,
 | 
			
		||||
    &:selected .summary-source,
 | 
			
		||||
    &:focus .summary-source { background-color: lighten($bg_color,2%); }
 | 
			
		||||
  }
 | 
			
		||||
  .summary-source-counter {
 | 
			
		||||
    font-size: 10pt;
 | 
			
		||||
    font-weight: bold;
 | 
			
		||||
    height: 1.6em; width: 1.6em;
 | 
			
		||||
    -shell-counter-overlap-x: 3px;
 | 
			
		||||
    -shell-counter-overlap-y: 3px;
 | 
			
		||||
    background-color: $selected_bg_color;
 | 
			
		||||
    border: 2px solid $fg_color;
 | 
			
		||||
    box-shadow: 0 2px 2px rgba(0,0,0,0.5);
 | 
			
		||||
    border-radius: 0.9em; // should be 0.8 but whatever; wish I could do 50%;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  //Message tray popovers
 | 
			
		||||
  .summary-boxpointer {
 | 
			
		||||
    -arrow-border-radius: 15px;
 | 
			
		||||
    -arrow-background-color: transparentize(darken($bg_color,8%),.05);
 | 
			
		||||
    -arrow-base: 36px;
 | 
			
		||||
    -arrow-rise: 18px;
 | 
			
		||||
    color: $fg_color;
 | 
			
		||||
    -boxpointer-gap: 4px;
 | 
			
		||||
    .notification {
 | 
			
		||||
      border-radius: 9px;
 | 
			
		||||
      border-width: 0; //temporary workaround for border brokenness
 | 
			
		||||
      background-color: transparentize(darken($bg_color,8%),.05) !important;
 | 
			
		||||
      padding-bottom: 12px;
 | 
			
		||||
    }
 | 
			
		||||
    #summary-right-click-menu {
 | 
			
		||||
      padding-top: 12px;
 | 
			
		||||
      padding-bottom: 12px;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  .summary-notification-stack-scrollview {
 | 
			
		||||
    max-height: 24em;
 | 
			
		||||
    padding-top: 8px;
 | 
			
		||||
    padding-bottom: 8px;
 | 
			
		||||
    &:ltr { padding-right: 8px; }
 | 
			
		||||
    &:rtl { padding-left: 8px; }
 | 
			
		||||
  }
 | 
			
		||||
  .notification-scrollview {
 | 
			
		||||
    max-height: 18em;
 | 
			
		||||
    -st-vfade-offset: 24px;
 | 
			
		||||
    &:ltr > StScrollBar { padding-left: 6px; }
 | 
			
		||||
    &:rtl > StScrollBar { padding-right: 6px; }
 | 
			
		||||
  }
 | 
			
		||||
  .notification-button { -st-natural-width: 140px; }
 | 
			
		||||
  .notification-icon-button { 
 | 
			
		||||
    border-radius: 5px; 
 | 
			
		||||
    padding: 5px;
 | 
			
		||||
    &:focus { }//FIXME
 | 
			
		||||
    & > StIcon { icons-size: 16px; padding: 8px; }
 | 
			
		||||
  }
 | 
			
		||||
  .secondary-icon { icon-size: 1.09em; } //FIXME
 | 
			
		||||
 | 
			
		||||
  //chat bubbles
 | 
			
		||||
  .chat-log-message { color: darken($fg_color,10%); }
 | 
			
		||||
  .chat-empty-line { font-size: 4px; }
 | 
			
		||||
  .chat-received { 
 | 
			
		||||
    padding-left: 4px;
 | 
			
		||||
    &:rtl { padding-left: 0px; padding-right: 4px; }
 | 
			
		||||
  }
 | 
			
		||||
  .chat-sent {
 | 
			
		||||
    padding-left: 18pt;
 | 
			
		||||
    color: darken($fg_color, 15%);
 | 
			
		||||
    &:rtl { padding-left: 0; padding-right: 18pt; }
 | 
			
		||||
  }
 | 
			
		||||
  .chat-meta-message {
 | 
			
		||||
    padding-left: 4px;
 | 
			
		||||
    font-size: 9pt;
 | 
			
		||||
    font-weight: bold;
 | 
			
		||||
    color: darken($fg_color,20%);
 | 
			
		||||
    &:rtl { padding-left: 0; padding-right: 4px; }
 | 
			
		||||
  }
 | 
			
		||||
  .chat-notification-scrollview { max-height: 22em; }
 | 
			
		||||
  .subscription-message { font-style: italic; }
 | 
			
		||||
  
 | 
			
		||||
  //hotplug
 | 
			
		||||
  .hotplug-transient-box {
 | 
			
		||||
    spacing: 6px;
 | 
			
		||||
    padding: 2px 72px 2px 12px;//FIXME wat?
 | 
			
		||||
  }
 | 
			
		||||
    .hotplug-notification-item {
 | 
			
		||||
      padding: 2px 10px;
 | 
			
		||||
      &:focus { padding: 1px 71px 1px 11px; } //FIXME wat?
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .hotplug-notification-item-icon {
 | 
			
		||||
      icon-size: 24px;
 | 
			
		||||
      padding: 2px 5px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .hotplug-resident-box { spacing: 8px; }
 | 
			
		||||
 | 
			
		||||
    .hotplug-resident-mount { 
 | 
			
		||||
      spacing: 8px;
 | 
			
		||||
      border-radius: 4px;
 | 
			
		||||
      color: green;
 | 
			
		||||
      &:hover {
 | 
			
		||||
        color: red;
 | 
			
		||||
        background-color: blue;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .hotplug-resident-mount-label {
 | 
			
		||||
      color: inherit;
 | 
			
		||||
      padding-left: 6px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .hotplug-resident-mount-icon {
 | 
			
		||||
      icon-size: 24px;
 | 
			
		||||
      padding-left: 6px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .hotplug-resident-eject-icon {
 | 
			
		||||
      icon-size: 16px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .hotplug-resident-eject-button {
 | 
			
		||||
      padding: 7px;
 | 
			
		||||
      border-radius: 5px;
 | 
			
		||||
      color: pink;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
/* Eeeky things */
 | 
			
		||||
//Mess that is Looking Glass
 | 
			
		||||
 | 
			
		||||
#LookingGlassDialog {
 | 
			
		||||
  background-color: rgba(0,0,0,0.80);
 | 
			
		||||
  spacing: 4px;
 | 
			
		||||
  padding: 4px;
 | 
			
		||||
  border: 2px solid grey;
 | 
			
		||||
  border-radius: 4px;
 | 
			
		||||
  & > #Toolbar {
 | 
			
		||||
    border: 1px solid grey;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
  }
 | 
			
		||||
  .labels { spacing: 4px; }
 | 
			
		||||
  .notebook-tab {
 | 
			
		||||
    -natural-hpadding: 12px;
 | 
			
		||||
    -minimum-hpadding: 6px;
 | 
			
		||||
    font-weight: bold;
 | 
			
		||||
    color: #ccc;
 | 
			
		||||
    transition-duration: 100ms;
 | 
			
		||||
    padding-left: .3em;
 | 
			
		||||
    padding-right: .3em;
 | 
			
		||||
    &:hover {
 | 
			
		||||
      color: white;
 | 
			
		||||
      text-shadow: black 0px 2px 2px;
 | 
			
		||||
    }
 | 
			
		||||
    &:selected {
 | 
			
		||||
      border-bottom-width: 2px;
 | 
			
		||||
      border-color: lighten($selected_bg_color,5%);
 | 
			
		||||
      color: white;
 | 
			
		||||
      text-shadow: black 0px 2px 2px;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  StBoxLayout#EvalBox { padding: 4px; spacing: 4px; }
 | 
			
		||||
  StBoxLayout#ResultsArea { spacing: 4px; }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
  .lg-dialog {
 | 
			
		||||
    StEntry {
 | 
			
		||||
      selection-background-color: #bbbbbb;
 | 
			
		||||
      selected-color: #333333;
 | 
			
		||||
    }
 | 
			
		||||
    .shell-link { 
 | 
			
		||||
      color: #999999;
 | 
			
		||||
      &:hover { color: #dddddd; }
 | 
			
		||||
     }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .lg-completions-text {
 | 
			
		||||
      font-size: .9em;
 | 
			
		||||
      font-style: italic;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .lg-obj-inspector-title {
 | 
			
		||||
      spacing: 4px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .lg-obj-inspector-button {
 | 
			
		||||
      border: 1px solid gray;
 | 
			
		||||
      padding: 4px;
 | 
			
		||||
      border-radius: 4px;
 | 
			
		||||
      &:hover { border: 1px solid #ffffff; }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  #lookingGlassExtensions { padding: 4px; }
 | 
			
		||||
 | 
			
		||||
  .lg-extensions-list {
 | 
			
		||||
      padding: 4px;
 | 
			
		||||
      spacing: 6px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .lg-extension {
 | 
			
		||||
      border: 1px solid #6f6f6f;
 | 
			
		||||
      border-radius: 4px;
 | 
			
		||||
      padding: 4px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .lg-extension-name {
 | 
			
		||||
      font-weight: bold;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .lg-extension-meta {
 | 
			
		||||
      spacing: 6px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  #LookingGlassPropertyInspector {
 | 
			
		||||
    background: rgba(0, 0, 0, 0.8);
 | 
			
		||||
    border: 2px solid grey;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
    padding: 6px;
 | 
			
		||||
  }
 | 
			
		||||
							
								
								
									
										219
									
								
								data/theme/_drawing.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,219 @@
 | 
			
		||||
// Drawing mixins
 | 
			
		||||
 | 
			
		||||
// generic drawing of more complex things
 | 
			
		||||
 | 
			
		||||
@function _widget_edge($c:$borders_edge) {
 | 
			
		||||
// outer highlight "used" on most widgets
 | 
			
		||||
  @return 0 1px $c;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// provide font size in rem, with px fallback
 | 
			
		||||
@mixin fontsize($size: 24, $base: 16) {
 | 
			
		||||
  font-size: round($size) + pt;
 | 
			
		||||
  //font-size: ($size / $base) * 1rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@mixin _shadows($shadow1, $shadow2:none, $shadow3:none, $shadow4:none) {
 | 
			
		||||
//
 | 
			
		||||
// Helper function to stack up to 4 box-shadows;
 | 
			
		||||
//
 | 
			
		||||
  @if $shadow4!=none { box-shadow: $shadow1, $shadow2, $shadow3, $shadow4; }
 | 
			
		||||
  @else if $shadow3!=none { box-shadow: $shadow1, $shadow2, $shadow3; }
 | 
			
		||||
  @else if $shadow2!=none { box-shadow: $shadow1, $shadow2; }
 | 
			
		||||
  @else { box-shadow: $shadow1; }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// entries
 | 
			
		||||
 | 
			
		||||
@mixin entry($t, $fc:$selected_bg_color, $edge: $borders_edge) {
 | 
			
		||||
//
 | 
			
		||||
// Entries drawing function
 | 
			
		||||
//
 | 
			
		||||
// $t: entry type
 | 
			
		||||
// $fc: focus color
 | 
			
		||||
// $edge: set to none to not draw the bottom edge or specify a color to not
 | 
			
		||||
//        use the default one
 | 
			
		||||
//
 | 
			
		||||
// possible $t values:
 | 
			
		||||
// normal, focus, insensitive
 | 
			
		||||
//
 | 
			
		||||
  $_inner_shadows: inset 0 2px 4px transparentize(black, 0.6);
 | 
			
		||||
 | 
			
		||||
  @if $t==normal {
 | 
			
		||||
    background-color: $base_color;
 | 
			
		||||
    border-color: $borders_color;
 | 
			
		||||
    @include _shadows($_inner_shadows);
 | 
			
		||||
 | 
			
		||||
  }
 | 
			
		||||
  @if $t==focus {
 | 
			
		||||
    @include _shadows($_inner_shadows);
 | 
			
		||||
    border-color: if($fc==$selected_bg_color,
 | 
			
		||||
                     $selected_borders_color,
 | 
			
		||||
                     darken($fc,35%));
 | 
			
		||||
  }
 | 
			
		||||
  @if $t==hover { }
 | 
			
		||||
  @if $t==insensitive {
 | 
			
		||||
    color: $insensitive_fg_color;
 | 
			
		||||
    border-color: $insensitive_bg_color;
 | 
			
		||||
    box-shadow: none;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// buttons
 | 
			
		||||
 | 
			
		||||
@function _border_color ($c) { @return darken($c,25%); } // colored buttons want
 | 
			
		||||
                                                         // the border form the
 | 
			
		||||
                                                         // base color
 | 
			
		||||
 | 
			
		||||
@function _text_shadow_color ($tc:$fg_color, $bg:$bg_color) {
 | 
			
		||||
//
 | 
			
		||||
// calculate the color of text shadows
 | 
			
		||||
//
 | 
			
		||||
// $tc is the text color
 | 
			
		||||
// $bg is the background color
 | 
			
		||||
//
 | 
			
		||||
  $_lbg: lightness($bg)/100%;
 | 
			
		||||
  @if lightness($tc)<50% { @return transparentize(white,1-$_lbg/($_lbg*1.3)); }
 | 
			
		||||
  @else { @return transparentize(black,$_lbg*0.8); }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@function _button_hilight_color($c) {
 | 
			
		||||
//
 | 
			
		||||
// calculate the right top hilight color for buttons
 | 
			
		||||
//
 | 
			
		||||
// $c: base color;
 | 
			
		||||
//
 | 
			
		||||
  @if lightness($c)>90% { @return white; }
 | 
			
		||||
  @else if lightness($c)>80% { @return transparentize(white, 0.3); }
 | 
			
		||||
  @else if lightness($c)>50% { @return transparentize(white, 0.5); }
 | 
			
		||||
  @else if lightness($c)>40% { @return transparentize(white, 0.7); }
 | 
			
		||||
  @else { @return transparentize(white, 0.9); }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@mixin _button_text_shadow ($tc:$fg_color, $bg:$bg_color) {
 | 
			
		||||
//
 | 
			
		||||
// helper function for the text emboss effect
 | 
			
		||||
//
 | 
			
		||||
// $tc is the optional text color, not the shadow color
 | 
			
		||||
//
 | 
			
		||||
// TODO: this functions needs a way to deal with special cases
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
  $_shadow: _text_shadow_color($tc, $bg);
 | 
			
		||||
 | 
			
		||||
  @if lightness($tc)<50% {
 | 
			
		||||
    text-shadow: 0 1px $_shadow;
 | 
			
		||||
    icon-shadow: 0 1px $_shadow;
 | 
			
		||||
  }
 | 
			
		||||
  @else {
 | 
			
		||||
    text-shadow: 0 -1px $_shadow;
 | 
			
		||||
    icon-shadow: 0 -1px $_shadow;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@mixin button($t, $c:$osd_bg_color, $tc:$fg_color, $edge: $borders_edge) {
 | 
			
		||||
//
 | 
			
		||||
// Button drawing function
 | 
			
		||||
//
 | 
			
		||||
// $t:    button type,
 | 
			
		||||
// $c:    base button color for colored* types
 | 
			
		||||
// $tc:   optional text color for colored* types
 | 
			
		||||
// $edge: set to none to not draw the bottom edge or specify a color to not
 | 
			
		||||
//        use the default one
 | 
			
		||||
//
 | 
			
		||||
// possible $t values:
 | 
			
		||||
// normal, hover, active, insensitive, insensitive-active,
 | 
			
		||||
// backdrop, backdrop-active, backdrop-insensitive, backdrop-insensitive-active,
 | 
			
		||||
// osd, osd-hover, osd-active, osd-insensitive, osd-backdrop, undecorated
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
  $_hilight_color: _button_hilight_color($c);
 | 
			
		||||
  $_button_edge: if($edge == none, none, _widget_edge($edge));
 | 
			
		||||
  $_blank_edge: if($edge == none, none, _widget_edge(transparentize($edge,1)));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  @if $t==normal {
 | 
			
		||||
  //
 | 
			
		||||
  // normal button
 | 
			
		||||
  //
 | 
			
		||||
    $_bg: if($c!=$osd_bg_color, transparentize($c, 0.5),
 | 
			
		||||
                            $osd_bg_color);
 | 
			
		||||
 | 
			
		||||
    color: $osd_fg_color;
 | 
			
		||||
    background-color: $_bg;
 | 
			
		||||
    border-color: $osd_borders_color;
 | 
			
		||||
    box-shadow: inset 0 1px lighten($osd_bg_color,10%);
 | 
			
		||||
    text-shadow: 0 1px black;
 | 
			
		||||
    icon-shadow: 0 1px black;
 | 
			
		||||
  }
 | 
			
		||||
  @if $t==focus {
 | 
			
		||||
  //
 | 
			
		||||
  // focused button
 | 
			
		||||
  //
 | 
			
		||||
    $_bg: if($c!=$osd_bg_color, transparentize($c, 0.5),
 | 
			
		||||
                          $osd_bg_color);
 | 
			
		||||
 | 
			
		||||
    color: $osd_fg_color;
 | 
			
		||||
    border-color: $selected_bg_color;
 | 
			
		||||
    box-shadow: inset 0 1px lighten($osd_bg_color,10%);
 | 
			
		||||
    text-shadow: 0 1px black;
 | 
			
		||||
    icon-shadow: 0 1px black;    
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @else if $t==hover {
 | 
			
		||||
  //
 | 
			
		||||
  // active osd button
 | 
			
		||||
  //
 | 
			
		||||
    $_bg: if($c!=$osd_bg_color, transparentize($c, 0.3),
 | 
			
		||||
                            lighten($osd_bg_color,10%));
 | 
			
		||||
 | 
			
		||||
    color: white;
 | 
			
		||||
    border-color: $osd_borders_color;
 | 
			
		||||
    background-color: $_bg;
 | 
			
		||||
    box-shadow: inset 0 1px lighten($osd_bg_color,20%);
 | 
			
		||||
    text-shadow: 0 1px black;
 | 
			
		||||
    icon-shadow: 0 1px black;
 | 
			
		||||
 | 
			
		||||
  }
 | 
			
		||||
  @else if $t==active {
 | 
			
		||||
  //
 | 
			
		||||
  // active osd button
 | 
			
		||||
  //
 | 
			
		||||
    $_bg: if($c!=$bg_color, $c, $osd_borders_color);
 | 
			
		||||
 | 
			
		||||
    color: white;
 | 
			
		||||
    border-color: $osd_borders_color;
 | 
			
		||||
    background-color: darken($_bg,5%);
 | 
			
		||||
    box-shadow: none;
 | 
			
		||||
    text-shadow: none;
 | 
			
		||||
    icon-shadow: none;
 | 
			
		||||
  }
 | 
			
		||||
  @else if $t==insensitive {
 | 
			
		||||
  //
 | 
			
		||||
  // insensitive osd button
 | 
			
		||||
  //
 | 
			
		||||
    $_bg: transparentize(mix($insensitive_fg_color,$osd_bg_color,20%),0.3);
 | 
			
		||||
 | 
			
		||||
    color: $insensitive_fg_color;
 | 
			
		||||
    border-color: $osd_borders_color;
 | 
			
		||||
    background-color: $_bg;
 | 
			
		||||
    box-shadow: none;
 | 
			
		||||
    text-shadow: none;
 | 
			
		||||
    icon-shadow: none;
 | 
			
		||||
  }
 | 
			
		||||
  @else if $t==undecorated {
 | 
			
		||||
  //
 | 
			
		||||
  // reset
 | 
			
		||||
  //
 | 
			
		||||
    border-color: transparent;
 | 
			
		||||
    background-color: transparent;
 | 
			
		||||
    background-image: none;
 | 
			
		||||
 | 
			
		||||
    @include _shadows(inset 0 1px transparentize(white,1),
 | 
			
		||||
                      $_blank_edge);
 | 
			
		||||
 | 
			
		||||
    text-shadow: none;
 | 
			
		||||
    icon-shadow: none;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1157
									
								
								data/theme/_gnome-shell-old.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -10,11 +10,11 @@
 | 
			
		||||
   xmlns:xlink="http://www.w3.org/1999/xlink"
 | 
			
		||||
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
 | 
			
		||||
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
 | 
			
		||||
   width="24"
 | 
			
		||||
   height="24"
 | 
			
		||||
   width="29"
 | 
			
		||||
   height="29"
 | 
			
		||||
   id="svg10621"
 | 
			
		||||
   version="1.1"
 | 
			
		||||
   inkscape:version="0.91 r13725"
 | 
			
		||||
   inkscape:version="0.48.2 r9819"
 | 
			
		||||
   sodipodi:docname="calendar-today.svg">
 | 
			
		||||
  <defs
 | 
			
		||||
     id="defs10623">
 | 
			
		||||
@@ -118,6 +118,17 @@
 | 
			
		||||
       fx="51"
 | 
			
		||||
       fy="30"
 | 
			
		||||
       r="42" />
 | 
			
		||||
    <radialGradient
 | 
			
		||||
       inkscape:collect="always"
 | 
			
		||||
       xlink:href="#linearGradient34508-1-3"
 | 
			
		||||
       id="radialGradient3113"
 | 
			
		||||
       gradientUnits="userSpaceOnUse"
 | 
			
		||||
       gradientTransform="matrix(0.72146227,0,0,0.27484277,14.205424,21.754717)"
 | 
			
		||||
       cx="51"
 | 
			
		||||
       cy="30"
 | 
			
		||||
       fx="51"
 | 
			
		||||
       fy="30"
 | 
			
		||||
       r="42" />
 | 
			
		||||
  </defs>
 | 
			
		||||
  <sodipodi:namedview
 | 
			
		||||
     id="base"
 | 
			
		||||
@@ -126,23 +137,22 @@
 | 
			
		||||
     borderopacity="1.0"
 | 
			
		||||
     inkscape:pageopacity="0"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:zoom="8"
 | 
			
		||||
     inkscape:cx="-23.537329"
 | 
			
		||||
     inkscape:cy="-31.442864"
 | 
			
		||||
     inkscape:zoom="15.839192"
 | 
			
		||||
     inkscape:cx="20.652108"
 | 
			
		||||
     inkscape:cy="11.839084"
 | 
			
		||||
     inkscape:document-units="px"
 | 
			
		||||
     inkscape:current-layer="layer1"
 | 
			
		||||
     showgrid="false"
 | 
			
		||||
     showgrid="true"
 | 
			
		||||
     fit-margin-top="0"
 | 
			
		||||
     fit-margin-left="0"
 | 
			
		||||
     fit-margin-right="0"
 | 
			
		||||
     fit-margin-bottom="0"
 | 
			
		||||
     inkscape:window-width="2133"
 | 
			
		||||
     inkscape:window-height="1241"
 | 
			
		||||
     inkscape:window-x="238"
 | 
			
		||||
     inkscape:window-y="88"
 | 
			
		||||
     inkscape:window-maximized="0"
 | 
			
		||||
     borderlayer="true"
 | 
			
		||||
     inkscape:showpageshadow="false">
 | 
			
		||||
     inkscape:window-width="1280"
 | 
			
		||||
     inkscape:window-height="741"
 | 
			
		||||
     inkscape:window-x="0"
 | 
			
		||||
     inkscape:window-y="27"
 | 
			
		||||
     inkscape:window-maximized="1"
 | 
			
		||||
     borderlayer="true">
 | 
			
		||||
    <inkscape:grid
 | 
			
		||||
       type="xygrid"
 | 
			
		||||
       id="grid3109"
 | 
			
		||||
@@ -159,7 +169,7 @@
 | 
			
		||||
        <dc:format>image/svg+xml</dc:format>
 | 
			
		||||
        <dc:type
 | 
			
		||||
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
 | 
			
		||||
        <dc:title></dc:title>
 | 
			
		||||
        <dc:title />
 | 
			
		||||
      </cc:Work>
 | 
			
		||||
    </rdf:RDF>
 | 
			
		||||
  </metadata>
 | 
			
		||||
@@ -167,12 +177,28 @@
 | 
			
		||||
     inkscape:label="Layer 1"
 | 
			
		||||
     inkscape:groupmode="layer"
 | 
			
		||||
     id="layer1"
 | 
			
		||||
     transform="translate(-469.08263,-537.99307)">
 | 
			
		||||
    <circle
 | 
			
		||||
       style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:0.23756906;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
 | 
			
		||||
       id="path7305"
 | 
			
		||||
       cx="481.57138"
 | 
			
		||||
       cy="559.4649"
 | 
			
		||||
       r="1.5" />
 | 
			
		||||
     transform="translate(-469.08263,-532.99307)">
 | 
			
		||||
    <path
 | 
			
		||||
       sodipodi:type="arc"
 | 
			
		||||
       style="opacity:0.4625;color:#000000;fill:url(#radialGradient3113);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
 | 
			
		||||
       id="path34506-3"
 | 
			
		||||
       sodipodi:cx="51"
 | 
			
		||||
       sodipodi:cy="30"
 | 
			
		||||
       sodipodi:rx="42"
 | 
			
		||||
       sodipodi:ry="16"
 | 
			
		||||
       d="M 9,29.999999 A 42,16 0 0 1 93,30 l -42,0 z"
 | 
			
		||||
       sodipodi:start="3.1415927"
 | 
			
		||||
       sodipodi:end="6.2831853"
 | 
			
		||||
       transform="matrix(0.43692393,0,0,1.3783114,461.29951,517.6437)"
 | 
			
		||||
       inkscape:export-filename="/home/jimmac/src/cvs/gnome/gnome-shell-design/mockups/motion/textures/panel.png"
 | 
			
		||||
       inkscape:export-xdpi="90"
 | 
			
		||||
       inkscape:export-ydpi="90" />
 | 
			
		||||
    <rect
 | 
			
		||||
       style="fill:#ffffff;fill-opacity:0.50196078;stroke-width:0.43599999;stroke-miterlimit:4;stroke-dasharray:none"
 | 
			
		||||
       id="rect2996"
 | 
			
		||||
       width="31"
 | 
			
		||||
       height="3"
 | 
			
		||||
       x="468.08264"
 | 
			
		||||
       y="558.99304" />
 | 
			
		||||
  </g>
 | 
			
		||||
</svg>
 | 
			
		||||
 
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 6.1 KiB  | 
@@ -7,6 +7,7 @@
 | 
			
		||||
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 | 
			
		||||
   xmlns:svg="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns:xlink="http://www.w3.org/1999/xlink"
 | 
			
		||||
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
 | 
			
		||||
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
 | 
			
		||||
   version="1.0"
 | 
			
		||||
@@ -15,72 +16,137 @@
 | 
			
		||||
   y="0px"
 | 
			
		||||
   width="32"
 | 
			
		||||
   height="32"
 | 
			
		||||
   viewBox="0 0 32 32"
 | 
			
		||||
   viewBox="0 0 23.272727 23.272727"
 | 
			
		||||
   enable-background="new 0 0 16 16"
 | 
			
		||||
   xml:space="preserve"
 | 
			
		||||
   sodipodi:version="0.32"
 | 
			
		||||
   inkscape:version="0.92+devel unknown"
 | 
			
		||||
   inkscape:version="0.48+devel r10081 custom"
 | 
			
		||||
   sodipodi:docname="close-window.svg"
 | 
			
		||||
   inkscape:output_extension="org.inkscape.output.svg.inkscape"><metadata
 | 
			
		||||
     id="metadata2399"><rdf:RDF><cc:Work
 | 
			
		||||
         rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
 | 
			
		||||
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
 | 
			
		||||
     id="defs2397"><linearGradient
 | 
			
		||||
       id="linearGradient3173"><stop
 | 
			
		||||
         style="stop-color:#c4c4c4;stop-opacity:1;"
 | 
			
		||||
         offset="0"
 | 
			
		||||
         id="stop3175" /><stop
 | 
			
		||||
         style="stop-color:#ffffff;stop-opacity:1;"
 | 
			
		||||
         offset="1"
 | 
			
		||||
         id="stop3177" /></linearGradient><inkscape:perspective
 | 
			
		||||
       sodipodi:type="inkscape:persp3d"
 | 
			
		||||
       inkscape:vp_x="0 : 11 : 1"
 | 
			
		||||
       inkscape:vp_y="0 : 1375 : 0"
 | 
			
		||||
       inkscape:vp_z="22 : 11 : 1"
 | 
			
		||||
       inkscape:persp3d-origin="11 : 7.3333334 : 1"
 | 
			
		||||
       id="perspective2401" /></defs><sodipodi:namedview
 | 
			
		||||
     inkscape:window-height="1376"
 | 
			
		||||
     inkscape:window-width="3440"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:pageopacity="0"
 | 
			
		||||
     guidetolerance="10.0"
 | 
			
		||||
     gridtolerance="10.0"
 | 
			
		||||
     objecttolerance="10.0"
 | 
			
		||||
     borderopacity="1.0"
 | 
			
		||||
     bordercolor="#666666"
 | 
			
		||||
     pagecolor="#797979"
 | 
			
		||||
     id="base"
 | 
			
		||||
     showgrid="false"
 | 
			
		||||
     inkscape:zoom="8"
 | 
			
		||||
     inkscape:cx="-17.664395"
 | 
			
		||||
     inkscape:cy="7.2420799"
 | 
			
		||||
     inkscape:window-x="0"
 | 
			
		||||
     inkscape:window-y="27"
 | 
			
		||||
     inkscape:current-layer="Foreground"
 | 
			
		||||
     showguides="true"
 | 
			
		||||
     inkscape:guide-bbox="true"
 | 
			
		||||
     borderlayer="true"
 | 
			
		||||
     inkscape:showpageshadow="false"
 | 
			
		||||
     inkscape:window-maximized="1"
 | 
			
		||||
     inkscape:document-rotation="0"><inkscape:grid
 | 
			
		||||
       type="xygrid"
 | 
			
		||||
       id="grid11246"
 | 
			
		||||
       empspacing="5"
 | 
			
		||||
       visible="true"
 | 
			
		||||
       enabled="true"
 | 
			
		||||
       snapvisiblegridlinesonly="true" /></sodipodi:namedview><path
 | 
			
		||||
     clip-rule="evenodd"
 | 
			
		||||
     d="m 4.4362021,15.860384 c 0,-6.410121 5.1728276,-11.6072804 11.5529359,-11.6072804 6.380109,0 11.552937,5.1971594 11.552937,11.6072804 0,6.410122 -5.172828,11.607281 -11.552937,11.607281 -6.3801083,0 -11.5529359,-5.197159 -11.5529359,-11.607281 z"
 | 
			
		||||
     id="path2394-32"
 | 
			
		||||
     style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#2975c4;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
 | 
			
		||||
     sodipodi:nodetypes="csssc"
 | 
			
		||||
     inkscape:connector-curvature="0" /><path
 | 
			
		||||
     style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.49900004;fill:#4a90d9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.74932218;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
 | 
			
		||||
     d="m 6.4654832,15.001321 c -0.025906,0.288419 -0.044417,0.579469 -0.044417,0.874662 0,5.313347 4.2883848,9.621271 9.5768588,9.621271 5.288466,0 9.575143,-4.307924 9.575143,-9.621271 0,-0.295193 -0.01852,-0.586243 -0.04441,-0.874662 -0.440376,4.903023 -4.536071,8.746611 -9.53073,8.746611 -4.994659,0 -9.0920617,-3.843588 -9.5324391,-8.746611 z"
 | 
			
		||||
     id="path2561"
 | 
			
		||||
     inkscape:connector-curvature="0" /><path
 | 
			
		||||
     d="m 11.718386,11.639547 h 1.055207 c 0.01091,-1.26e-4 0.02193,-4.86e-4 0.03298,0 0.269026,0.01183 0.538019,0.135679 0.725455,0.329752 l 2.407192,2.407192 2.440166,-2.407192 c 0.28029,-0.243226 0.471333,-0.322366 0.725455,-0.329752 h 1.055207 v 1.055208 c 0,0.302285 -0.03623,0.581049 -0.263801,0.791405 l -2.407191,2.407191 2.374217,2.374216 c 0.198577,0.198559 0.296768,0.478484 0.296775,0.758432 v 1.055206 h -1.055211 c -0.279947,-10e-6 -0.559877,-0.09824 -0.75843,-0.296777 l -2.407192,-2.407192 -2.407192,2.407192 c -0.198551,0.198579 -0.478493,0.296777 -0.758429,0.296777 H 11.71839 v -1.055206 c -3e-6,-0.279936 0.0982,-0.559873 0.296777,-0.758432 L 14.422359,15.893351 12.015167,13.48616 C 11.79279,13.280784 11.69527,12.991003 11.71839,12.694755 Z"
 | 
			
		||||
     inkscape:connector-curvature="0"
 | 
			
		||||
     id="path27279-0-5"
 | 
			
		||||
     style="color:#bebebe;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:'Andale Mono';-inkscape-font-specification:'Andale Mono';text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#4a90d9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.87958801;marker:none;enable-background:new"
 | 
			
		||||
     sodipodi:nodetypes="ccsccccccccccccccccccccccc" /></svg>
 | 
			
		||||
   id="metadata2399"><rdf:RDF><cc:Work
 | 
			
		||||
       rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
 | 
			
		||||
         rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
 | 
			
		||||
   id="defs2397"><linearGradient
 | 
			
		||||
     id="linearGradient3173"><stop
 | 
			
		||||
       style="stop-color:#c4c4c4;stop-opacity:1;"
 | 
			
		||||
       offset="0"
 | 
			
		||||
       id="stop3175" /><stop
 | 
			
		||||
       style="stop-color:#ffffff;stop-opacity:1;"
 | 
			
		||||
       offset="1"
 | 
			
		||||
       id="stop3177" /></linearGradient><inkscape:perspective
 | 
			
		||||
     sodipodi:type="inkscape:persp3d"
 | 
			
		||||
     inkscape:vp_x="0 : 8 : 1"
 | 
			
		||||
     inkscape:vp_y="0 : 1000 : 0"
 | 
			
		||||
     inkscape:vp_z="16 : 8 : 1"
 | 
			
		||||
     inkscape:persp3d-origin="8 : 5.3333333 : 1"
 | 
			
		||||
     id="perspective2401" /><filter
 | 
			
		||||
     color-interpolation-filters="sRGB"
 | 
			
		||||
     inkscape:collect="always"
 | 
			
		||||
     id="filter16494-4"
 | 
			
		||||
     x="-0.20989846"
 | 
			
		||||
     width="1.4197969"
 | 
			
		||||
     y="-0.20903821"
 | 
			
		||||
     height="1.4180764"><feGaussianBlur
 | 
			
		||||
       inkscape:collect="always"
 | 
			
		||||
       stdDeviation="1.3282637"
 | 
			
		||||
       id="feGaussianBlur16496-8" /></filter><radialGradient
 | 
			
		||||
     inkscape:collect="always"
 | 
			
		||||
     xlink:href="#linearGradient16498-6"
 | 
			
		||||
     id="radialGradient16504-1"
 | 
			
		||||
     cx="7.6582627"
 | 
			
		||||
     cy="5.8191104"
 | 
			
		||||
     fx="7.6582627"
 | 
			
		||||
     fy="5.8191104"
 | 
			
		||||
     r="8.6928644"
 | 
			
		||||
     gradientTransform="matrix(1.0474339,0,0,1.0517402,-0.3632615,-0.42032492)"
 | 
			
		||||
     gradientUnits="userSpaceOnUse" /><linearGradient
 | 
			
		||||
     inkscape:collect="always"
 | 
			
		||||
     id="linearGradient16498-6"><stop
 | 
			
		||||
       style="stop-color:#7b7b7b;stop-opacity:1"
 | 
			
		||||
       offset="0"
 | 
			
		||||
       id="stop16500-8" /><stop
 | 
			
		||||
       style="stop-color:#101010;stop-opacity:1"
 | 
			
		||||
       offset="1"
 | 
			
		||||
       id="stop16502-0" /></linearGradient><filter
 | 
			
		||||
     color-interpolation-filters="sRGB"
 | 
			
		||||
     inkscape:collect="always"
 | 
			
		||||
     id="filter16524-9"
 | 
			
		||||
     x="-0.212979"
 | 
			
		||||
     width="1.425958"
 | 
			
		||||
     y="-0.21305652"
 | 
			
		||||
     height="1.426113"><feGaussianBlur
 | 
			
		||||
       inkscape:collect="always"
 | 
			
		||||
       stdDeviation="0.71020915"
 | 
			
		||||
       id="feGaussianBlur16526-0" /></filter></defs><sodipodi:namedview
 | 
			
		||||
   inkscape:window-height="1114"
 | 
			
		||||
   inkscape:window-width="1463"
 | 
			
		||||
   inkscape:pageshadow="2"
 | 
			
		||||
   inkscape:pageopacity="0"
 | 
			
		||||
   guidetolerance="10.0"
 | 
			
		||||
   gridtolerance="10.0"
 | 
			
		||||
   objecttolerance="10.0"
 | 
			
		||||
   borderopacity="1.0"
 | 
			
		||||
   bordercolor="#666666"
 | 
			
		||||
   pagecolor="#000000"
 | 
			
		||||
   id="base"
 | 
			
		||||
   showgrid="false"
 | 
			
		||||
   inkscape:zoom="1"
 | 
			
		||||
   inkscape:cx="10.720189"
 | 
			
		||||
   inkscape:cy="13.739577"
 | 
			
		||||
   inkscape:window-x="0"
 | 
			
		||||
   inkscape:window-y="26"
 | 
			
		||||
   inkscape:current-layer="Foreground"
 | 
			
		||||
   showguides="true"
 | 
			
		||||
   inkscape:guide-bbox="true"
 | 
			
		||||
   borderlayer="true"
 | 
			
		||||
   inkscape:showpageshadow="false"
 | 
			
		||||
   inkscape:window-maximized="0"><inkscape:grid
 | 
			
		||||
     type="xygrid"
 | 
			
		||||
     id="grid11246"
 | 
			
		||||
     empspacing="5"
 | 
			
		||||
     visible="true"
 | 
			
		||||
     enabled="true"
 | 
			
		||||
     snapvisiblegridlinesonly="true" /></sodipodi:namedview>
 | 
			
		||||
 | 
			
		||||
<g
 | 
			
		||||
   style="display:inline"
 | 
			
		||||
   id="g16402-8"
 | 
			
		||||
   transform="translate(4.7533483,2.8238929)"><g
 | 
			
		||||
     id="g3175-4"><path
 | 
			
		||||
       sodipodi:type="inkscape:offset"
 | 
			
		||||
       inkscape:radius="0"
 | 
			
		||||
       inkscape:original="M 7.65625 0.125 C 3.2589349 0.125 -0.3125 3.7070002 -0.3125 8.125 C -0.3125 12.543001 3.2589349 16.125 7.65625 16.125 C 12.053566 16.125 15.625 12.543001 15.625 8.125 C 15.625 3.7070002 12.053566 0.125 7.65625 0.125 z "
 | 
			
		||||
       xlink:href="#path2394-32"
 | 
			
		||||
       style="opacity:0.52994014;color:#000000;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:2.18181825;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;filter:url(#filter16494-4);enable-background:accumulate"
 | 
			
		||||
       id="path16480-5"
 | 
			
		||||
       inkscape:href="#path2394-32"
 | 
			
		||||
       d="m 7.65625,0.125 c -4.3973151,0 -7.96875,3.5820002 -7.96875,8 0,4.418001 3.5714349,8 7.96875,8 4.397316,0 7.96875,-3.581999 7.96875,-8 0,-4.4179998 -3.571434,-8 -7.96875,-8 z"
 | 
			
		||||
       transform="translate(0,1.028519)" /><path
 | 
			
		||||
       clip-rule="evenodd"
 | 
			
		||||
       d="m -0.30428257,8.1237596 c 0,-4.4179998 3.56522987,-7.9999996 7.96254497,-7.9999996 4.3973156,0 7.9625456,3.5819998 7.9625456,7.9999996 0,4.4180014 -3.56523,8.0000004 -7.9625456,8.0000004 -4.3973151,0 -7.96254497,-3.581999 -7.96254497,-8.0000004 z"
 | 
			
		||||
       id="path2394-32"
 | 
			
		||||
       style="color:#000000;fill:url(#radialGradient16504-1);fill-opacity:1;fill-rule:nonzero;stroke:#eeeeec;stroke-width:1.4545455;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
 | 
			
		||||
       sodipodi:nodetypes="csssc"
 | 
			
		||||
       inkscape:connector-curvature="0" /><g
 | 
			
		||||
       id="g3172-6" /></g><g
 | 
			
		||||
     transform="matrix(0.72727273,0,0,0.72727273,2.368236,2.1803254)"
 | 
			
		||||
     style="fill:#ffffff;fill-opacity:1;display:inline"
 | 
			
		||||
     id="g27275-6-6"
 | 
			
		||||
     inkscape:label="window-close"><g
 | 
			
		||||
       style="fill:#ffffff;fill-opacity:1;display:inline"
 | 
			
		||||
       id="g27277-1-1"
 | 
			
		||||
       transform="translate(-41,-760)"><path
 | 
			
		||||
         sodipodi:type="inkscape:offset"
 | 
			
		||||
         inkscape:radius="0"
 | 
			
		||||
         inkscape:original="M 44.21875 764.1875 L 44.21875 765.1875 C 44.19684 765.46825 44.289258 765.74287 44.5 765.9375 L 46.78125 768.21875 L 44.5 770.46875 C 44.31181 770.65692 44.218747 770.92221 44.21875 771.1875 L 44.21875 772.1875 L 45.21875 772.1875 C 45.48404 772.1875 45.749336 772.09444 45.9375 771.90625 L 48.21875 769.625 L 50.5 771.90625 C 50.688164 772.0944 50.953449 772.18749 51.21875 772.1875 L 52.21875 772.1875 L 52.21875 771.1875 C 52.218742 770.9222 52.125688 770.65692 51.9375 770.46875 L 49.6875 768.21875 L 51.96875 765.9375 C 52.18441 765.73815 52.21875 765.47397 52.21875 765.1875 L 52.21875 764.1875 L 51.21875 764.1875 C 50.977922 764.1945 50.796875 764.2695 50.53125 764.5 L 48.21875 766.78125 L 45.9375 764.5 C 45.75987 764.31608 45.504951 764.1987 45.25 764.1875 C 45.23954 764.18704 45.22912 764.18738 45.21875 764.1875 L 44.21875 764.1875 z "
 | 
			
		||||
         xlink:href="#path27279-0-5"
 | 
			
		||||
         style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;color:#bebebe;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.78124988;marker:none;visibility:visible;display:inline;overflow:visible;filter:url(#filter16524-9);enable-background:new;font-family:Andale Mono;-inkscape-font-specification:Andale Mono"
 | 
			
		||||
         id="path16506-5"
 | 
			
		||||
         inkscape:href="#path27279-0-5"
 | 
			
		||||
         d="m 44.21875,764.1875 0,1 c -0.02191,0.28075 0.07051,0.55537 0.28125,0.75 l 2.28125,2.28125 -2.28125,2.25 c -0.18819,0.18817 -0.281253,0.45346 -0.28125,0.71875 l 0,1 1,0 c 0.26529,0 0.530586,-0.0931 0.71875,-0.28125 L 48.21875,769.625 50.5,771.90625 c 0.188164,0.18815 0.453449,0.28124 0.71875,0.28125 l 1,0 0,-1 c -8e-6,-0.2653 -0.09306,-0.53058 -0.28125,-0.71875 l -2.25,-2.25 2.28125,-2.28125 c 0.21566,-0.19935 0.25,-0.46353 0.25,-0.75 l 0,-1 -1,0 c -0.240828,0.007 -0.421875,0.082 -0.6875,0.3125 l -2.3125,2.28125 L 45.9375,764.5 c -0.17763,-0.18392 -0.432549,-0.3013 -0.6875,-0.3125 -0.01046,-4.6e-4 -0.02088,-1.2e-4 -0.03125,0 l -1,0 z"
 | 
			
		||||
         transform="translate(0,1.3535534)" /><path
 | 
			
		||||
         sodipodi:nodetypes="ccsccccccccccccccccccccccc"
 | 
			
		||||
         style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;color:#bebebe;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.78124988;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:new;font-family:Andale Mono;-inkscape-font-specification:Andale Mono"
 | 
			
		||||
         id="path27279-0-5"
 | 
			
		||||
         inkscape:connector-curvature="0"
 | 
			
		||||
         d="m 44.226475,764.17222 1,0 c 0.01037,-1.2e-4 0.02079,-4.6e-4 0.03125,0 0.254951,0.0112 0.50987,0.12858 0.6875,0.3125 l 2.28125,2.28125 2.3125,-2.28125 c 0.265625,-0.2305 0.446672,-0.3055 0.6875,-0.3125 l 1,0 0,1 c 0,0.28647 -0.03434,0.55065 -0.25,0.75 l -2.28125,2.28125 2.25,2.25 c 0.188188,0.18817 0.281242,0.45345 0.28125,0.71875 l 0,1 -1,0 c -0.265301,-1e-5 -0.530586,-0.0931 -0.71875,-0.28125 l -2.28125,-2.28125 -2.28125,2.28125 c -0.188164,0.18819 -0.45346,0.28125 -0.71875,0.28125 l -1,0 0,-1 c -3e-6,-0.26529 0.09306,-0.53058 0.28125,-0.71875 l 2.28125,-2.25 -2.28125,-2.28125 c -0.210742,-0.19463 -0.30316,-0.46925 -0.28125,-0.75 l 0,-1 z" /></g></g></g></svg>
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 9.4 KiB  | 
@@ -1,14 +0,0 @@
 | 
			
		||||
@import "gnome-shell-sass/_high-contrast-colors"; //use gtk colors
 | 
			
		||||
@import "gnome-shell-sass/_drawing";
 | 
			
		||||
@import "gnome-shell-sass/_common";
 | 
			
		||||
 | 
			
		||||
//force symbolic icons
 | 
			
		||||
stage {
 | 
			
		||||
  -st-icon-style: symbolic;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.toggle-switch { width: 48px; }
 | 
			
		||||
.toggle-switch-us, .toggle-switch-intl {
 | 
			
		||||
  background-image: url("resource:///org/gnome/shell/theme/toggle-off-hc.svg");
 | 
			
		||||
  &:checked { background-image: url("resource:///org/gnome/shell/theme/toggle-on-hc.svg"); }
 | 
			
		||||
}
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
$variant: 'dark';
 | 
			
		||||
 | 
			
		||||
@import "gnome-shell-sass/_colors"; //use gtk colors
 | 
			
		||||
@import "gnome-shell-sass/_drawing";
 | 
			
		||||
@import "gnome-shell-sass/_common";
 | 
			
		||||
@import "_gnome-shell-old.scss"; //temporary. sadlu shell crashes when trying to build a theme from scratch
 | 
			
		||||
@import "_colors"; //use gtk colors
 | 
			
		||||
@import "_drawing";
 | 
			
		||||
@import "_common";
 | 
			
		||||
 
 | 
			
		||||
@@ -1,21 +0,0 @@
 | 
			
		||||
theme_sources = files([
 | 
			
		||||
  'gnome-shell-high-contrast.scss',
 | 
			
		||||
  'gnome-shell.scss',
 | 
			
		||||
  'gnome-shell-sass/_colors.scss',
 | 
			
		||||
  'gnome-shell-sass/_common.scss',
 | 
			
		||||
  'gnome-shell-sass/_drawing.scss',
 | 
			
		||||
  'gnome-shell-sass/_high-contrast-colors.scss'
 | 
			
		||||
])
 | 
			
		||||
 | 
			
		||||
theme_deps = []
 | 
			
		||||
 | 
			
		||||
if sassc.found()
 | 
			
		||||
  parse_sass = files('parse-sass.sh')
 | 
			
		||||
 | 
			
		||||
  theme_deps += custom_target('update-theme',
 | 
			
		||||
    output: 'theme-update.stamp',
 | 
			
		||||
    depend_files: theme_sources,
 | 
			
		||||
    command: [parse_sass, '@OUTPUT@'],
 | 
			
		||||
    build_by_default: true
 | 
			
		||||
  )
 | 
			
		||||
endif
 | 
			
		||||
							
								
								
									
										114
									
								
								data/theme/more-results.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,114 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 | 
			
		||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
 | 
			
		||||
 | 
			
		||||
<svg
 | 
			
		||||
   xmlns:dc="http://purl.org/dc/elements/1.1/"
 | 
			
		||||
   xmlns:cc="http://creativecommons.org/ns#"
 | 
			
		||||
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 | 
			
		||||
   xmlns:svg="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns:xlink="http://www.w3.org/1999/xlink"
 | 
			
		||||
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
 | 
			
		||||
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
 | 
			
		||||
   width="16"
 | 
			
		||||
   height="16"
 | 
			
		||||
   id="svg12430"
 | 
			
		||||
   version="1.1"
 | 
			
		||||
   inkscape:version="0.48.4 r9939"
 | 
			
		||||
   sodipodi:docname="more-results.svg">
 | 
			
		||||
  <defs
 | 
			
		||||
     id="defs12432" />
 | 
			
		||||
  <sodipodi:namedview
 | 
			
		||||
     id="base"
 | 
			
		||||
     pagecolor="#7a7a7a"
 | 
			
		||||
     bordercolor="#666666"
 | 
			
		||||
     borderopacity="1.0"
 | 
			
		||||
     inkscape:pageopacity="1"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:zoom="90.509668"
 | 
			
		||||
     inkscape:cx="6.5009792"
 | 
			
		||||
     inkscape:cy="8.3589595"
 | 
			
		||||
     inkscape:document-units="px"
 | 
			
		||||
     inkscape:current-layer="g14642-3-0"
 | 
			
		||||
     showgrid="false"
 | 
			
		||||
     borderlayer="true"
 | 
			
		||||
     inkscape:showpageshadow="false"
 | 
			
		||||
     inkscape:window-width="1440"
 | 
			
		||||
     inkscape:window-height="840"
 | 
			
		||||
     inkscape:window-x="0"
 | 
			
		||||
     inkscape:window-y="27"
 | 
			
		||||
     inkscape:window-maximized="1">
 | 
			
		||||
    <inkscape:grid
 | 
			
		||||
       type="xygrid"
 | 
			
		||||
       id="grid13002" />
 | 
			
		||||
  </sodipodi:namedview>
 | 
			
		||||
  <metadata
 | 
			
		||||
     id="metadata12435">
 | 
			
		||||
    <rdf:RDF>
 | 
			
		||||
      <cc:Work
 | 
			
		||||
         rdf:about="">
 | 
			
		||||
        <dc:format>image/svg+xml</dc:format>
 | 
			
		||||
        <dc:type
 | 
			
		||||
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
 | 
			
		||||
        <dc:title />
 | 
			
		||||
      </cc:Work>
 | 
			
		||||
    </rdf:RDF>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <g
 | 
			
		||||
     inkscape:label="Layer 1"
 | 
			
		||||
     inkscape:groupmode="layer"
 | 
			
		||||
     id="layer1"
 | 
			
		||||
     transform="translate(0,-1036.3622)">
 | 
			
		||||
    <g
 | 
			
		||||
       style="display:inline"
 | 
			
		||||
       transform="translate(-141.99984,638.37113)"
 | 
			
		||||
       inkscape:label="zoom-in"
 | 
			
		||||
       id="g14642-3-0">
 | 
			
		||||
      <path
 | 
			
		||||
         sodipodi:type="inkscape:offset"
 | 
			
		||||
         inkscape:radius="0"
 | 
			
		||||
         inkscape:original="M 145.1875 400 C 144.5248 400 144 400.54899 144 401.21875 L 144 410.78125 C 144 411.45101 144.5248 412 145.1875 412 L 154.8125 412 C 155.4752 412 156 411.45101 156 410.78125 L 156 401.21875 C 156 400.54899 155.4752 400 154.8125 400 L 145.1875 400 z M 149 403 L 151 403 L 151 405 L 153 405 L 153 407 L 151 407 L 151 409 L 149 409 L 149 407 L 147 407 L 147 405 L 149 405 L 149 403 z "
 | 
			
		||||
         xlink:href="#rect11749-5-0-1-8"
 | 
			
		||||
         style="color:#bebebe;fill:#000000;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;opacity:0.8"
 | 
			
		||||
         id="path13004"
 | 
			
		||||
         inkscape:href="#rect11749-5-0-1-8"
 | 
			
		||||
         d="M 145.1875,400 C 144.5248,400 144,400.54899 144,401.21875 l 0,9.5625 c 0,0.66976 0.5248,1.21875 1.1875,1.21875 l 9.625,0 c 0.6627,0 1.1875,-0.54899 1.1875,-1.21875 l 0,-9.5625 C 156,400.54899 155.4752,400 154.8125,400 L 145.1875,400 z m 3.8125,3 2,0 0,2 2,0 0,2 -2,0 0,2 -2,0 0,-2 -2,0 0,-2 2,0 L 149,403 Z"
 | 
			
		||||
         transform="translate(0,1)" />
 | 
			
		||||
      <use
 | 
			
		||||
         x="0"
 | 
			
		||||
         y="0"
 | 
			
		||||
         xlink:href="#path13004"
 | 
			
		||||
         id="use11960"
 | 
			
		||||
         transform="translate(1,-1)"
 | 
			
		||||
         width="16"
 | 
			
		||||
         height="16" />
 | 
			
		||||
      <use
 | 
			
		||||
         x="0"
 | 
			
		||||
         y="0"
 | 
			
		||||
         xlink:href="#use11960"
 | 
			
		||||
         id="use11962"
 | 
			
		||||
         transform="translate(-2,0)"
 | 
			
		||||
         width="16"
 | 
			
		||||
         height="16" />
 | 
			
		||||
      <path
 | 
			
		||||
         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1"
 | 
			
		||||
         d="M 7 5 L 7 7 L 5 7 L 5 9 L 7 9 L 7 11 L 9 11 L 9 9 L 11 9 L 11 7 L 9 7 L 9 5 L 7 5 z "
 | 
			
		||||
         transform="translate(141.99984,397.99107)"
 | 
			
		||||
         id="rect3757" />
 | 
			
		||||
      <path
 | 
			
		||||
         inkscape:connector-curvature="0"
 | 
			
		||||
         style="color:#bebebe;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible"
 | 
			
		||||
         d="M 145.1875,400 C 144.5248,400 144,400.54899 144,401.21875 l 0,9.5625 c 0,0.66976 0.5248,1.21875 1.1875,1.21875 l 9.625,0 c 0.6627,0 1.1875,-0.54899 1.1875,-1.21875 l 0,-9.5625 C 156,400.54899 155.4752,400 154.8125,400 L 145.1875,400 z m 3.8125,3 2,0 0,2 2,0 0,2 -2,0 0,2 -2,0 0,-2 -2,0 0,-2 2,0 L 149,403 Z"
 | 
			
		||||
         id="rect11749-5-0-1-8" />
 | 
			
		||||
      <rect
 | 
			
		||||
         style="fill:none;stroke:none"
 | 
			
		||||
         id="rect3620-5-4"
 | 
			
		||||
         width="15.981825"
 | 
			
		||||
         height="16"
 | 
			
		||||
         x="142"
 | 
			
		||||
         y="398"
 | 
			
		||||
         rx="0"
 | 
			
		||||
         ry="0" />
 | 
			
		||||
    </g>
 | 
			
		||||
  </g>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 After Width: | Height: | Size: 4.4 KiB  | 
@@ -1,119 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 | 
			
		||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
 | 
			
		||||
 | 
			
		||||
<svg
 | 
			
		||||
   xmlns:dc="http://purl.org/dc/elements/1.1/"
 | 
			
		||||
   xmlns:cc="http://creativecommons.org/ns#"
 | 
			
		||||
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 | 
			
		||||
   xmlns:svg="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
 | 
			
		||||
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
 | 
			
		||||
   width="64px"
 | 
			
		||||
   height="64px"
 | 
			
		||||
   id="svg3471"
 | 
			
		||||
   version="1.1"
 | 
			
		||||
   inkscape:version="0.48.5 r10040"
 | 
			
		||||
   sodipodi:docname="New document 5">
 | 
			
		||||
  <defs
 | 
			
		||||
     id="defs3473" />
 | 
			
		||||
  <sodipodi:namedview
 | 
			
		||||
     id="base"
 | 
			
		||||
     pagecolor="#ffffff"
 | 
			
		||||
     bordercolor="#666666"
 | 
			
		||||
     borderopacity="1.0"
 | 
			
		||||
     inkscape:pageopacity="0.0"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:zoom="5.5"
 | 
			
		||||
     inkscape:cx="32"
 | 
			
		||||
     inkscape:cy="32"
 | 
			
		||||
     inkscape:current-layer="layer1"
 | 
			
		||||
     showgrid="true"
 | 
			
		||||
     inkscape:document-units="px"
 | 
			
		||||
     inkscape:grid-bbox="true"
 | 
			
		||||
     inkscape:window-width="1461"
 | 
			
		||||
     inkscape:window-height="772"
 | 
			
		||||
     inkscape:window-x="37"
 | 
			
		||||
     inkscape:window-y="64"
 | 
			
		||||
     inkscape:window-maximized="0" />
 | 
			
		||||
  <metadata
 | 
			
		||||
     id="metadata3476">
 | 
			
		||||
    <rdf:RDF>
 | 
			
		||||
      <cc:Work
 | 
			
		||||
         rdf:about="">
 | 
			
		||||
        <dc:format>image/svg+xml</dc:format>
 | 
			
		||||
        <dc:type
 | 
			
		||||
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
 | 
			
		||||
        <dc:title></dc:title>
 | 
			
		||||
      </cc:Work>
 | 
			
		||||
    </rdf:RDF>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <g
 | 
			
		||||
     id="layer1"
 | 
			
		||||
     inkscape:label="Layer 1"
 | 
			
		||||
     inkscape:groupmode="layer">
 | 
			
		||||
    <g
 | 
			
		||||
       transform="matrix(4,0,0,4,1.9999997,2.3636364)"
 | 
			
		||||
       id="g19145"
 | 
			
		||||
       style="fill:#bebebe;fill-opacity:1;display:inline">
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19147"
 | 
			
		||||
         inkscape:label="status"
 | 
			
		||||
         style="fill:#bebebe;fill-opacity:1;display:inline"
 | 
			
		||||
         transform="translate(-541.0002,-301)" />
 | 
			
		||||
      <g
 | 
			
		||||
         style="fill:#bebebe;fill-opacity:1"
 | 
			
		||||
         id="g19149"
 | 
			
		||||
         inkscape:label="devices"
 | 
			
		||||
         transform="translate(-541.0002,-301)" />
 | 
			
		||||
      <g
 | 
			
		||||
         style="fill:#bebebe;fill-opacity:1"
 | 
			
		||||
         id="g19151"
 | 
			
		||||
         inkscape:label="apps"
 | 
			
		||||
         transform="translate(-541.0002,-301)" />
 | 
			
		||||
      <g
 | 
			
		||||
         style="fill:#bebebe;fill-opacity:1"
 | 
			
		||||
         id="g19153"
 | 
			
		||||
         inkscape:label="places"
 | 
			
		||||
         transform="translate(-541.0002,-301)" />
 | 
			
		||||
      <g
 | 
			
		||||
         style="fill:#bebebe;fill-opacity:1"
 | 
			
		||||
         id="g19155"
 | 
			
		||||
         inkscape:label="mimetypes"
 | 
			
		||||
         transform="translate(-541.0002,-301)">
 | 
			
		||||
        <path
 | 
			
		||||
           inkscape:connector-curvature="0"
 | 
			
		||||
           d="m 543.0002,301 c -1.05237,0 -2,0.84508 -2,1.9375 l 0,11.125 c 0,1.09242 0.94763,1.9375 2,1.9375 l 11,0 c 1.05237,0 2,-0.84508 2,-1.9375 l 0,-11.125 c 0,-1.09242 -0.94763,-1.9375 -2,-1.9375 l -11,0 z m 0,5 3.03125,0 0,2 -3.03125,0 0,-2 z m 4.03125,0 2.96875,0 0,2 -2.96875,0 0,-2 z m 3.96875,0 3,0 0,2 -3,0 0,-2 z m -8,3 3.03125,0 0,2 -3.03125,0 0,-2 z m 4.03125,0 2.96875,0 0,2 -2.96875,0 0,-2 z m 3.96875,0 3,0 0,2 -3,0 0,-2 z m -8,3 3.03125,0 0,2 -3.03125,0 0,-2 z m 4.03125,0 2.96875,0 0,2 -2.96875,0 0,-2 z m 3.96875,0 3,0 0,2 -3,0 0,-2 z"
 | 
			
		||||
           id="path19157"
 | 
			
		||||
           style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:new;font-family:Sans;-inkscape-font-specification:Sans" />
 | 
			
		||||
        <rect
 | 
			
		||||
           height="1.9999993"
 | 
			
		||||
           id="rect19159"
 | 
			
		||||
           style="opacity:0.35;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
 | 
			
		||||
           width="2.9999993"
 | 
			
		||||
           x="551.00018"
 | 
			
		||||
           y="309" />
 | 
			
		||||
      </g>
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19161"
 | 
			
		||||
         inkscape:label="emblems"
 | 
			
		||||
         style="fill:#bebebe;fill-opacity:1;display:inline"
 | 
			
		||||
         transform="translate(-541.0002,-301)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19163"
 | 
			
		||||
         inkscape:label="emotes"
 | 
			
		||||
         style="fill:#bebebe;fill-opacity:1;display:inline"
 | 
			
		||||
         transform="translate(-541.0002,-301)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19165"
 | 
			
		||||
         inkscape:label="categories"
 | 
			
		||||
         style="fill:#bebebe;fill-opacity:1;display:inline"
 | 
			
		||||
         transform="translate(-541.0002,-301)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19167"
 | 
			
		||||
         inkscape:label="actions"
 | 
			
		||||
         style="fill:#bebebe;fill-opacity:1;display:inline"
 | 
			
		||||
         transform="translate(-541.0002,-301)" />
 | 
			
		||||
    </g>
 | 
			
		||||
  </g>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 4.7 KiB  | 
@@ -1,114 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 | 
			
		||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
 | 
			
		||||
 | 
			
		||||
<svg
 | 
			
		||||
   xmlns:dc="http://purl.org/dc/elements/1.1/"
 | 
			
		||||
   xmlns:cc="http://creativecommons.org/ns#"
 | 
			
		||||
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 | 
			
		||||
   xmlns:svg="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
 | 
			
		||||
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
 | 
			
		||||
   width="64px"
 | 
			
		||||
   height="64px"
 | 
			
		||||
   id="svg3393"
 | 
			
		||||
   version="1.1"
 | 
			
		||||
   inkscape:version="0.48.5 r10040"
 | 
			
		||||
   sodipodi:docname="New document 2">
 | 
			
		||||
  <defs
 | 
			
		||||
     id="defs3395" />
 | 
			
		||||
  <sodipodi:namedview
 | 
			
		||||
     id="base"
 | 
			
		||||
     pagecolor="#ffffff"
 | 
			
		||||
     bordercolor="#666666"
 | 
			
		||||
     borderopacity="1.0"
 | 
			
		||||
     inkscape:pageopacity="0.0"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:zoom="5.5"
 | 
			
		||||
     inkscape:cx="32"
 | 
			
		||||
     inkscape:cy="32"
 | 
			
		||||
     inkscape:current-layer="layer1"
 | 
			
		||||
     showgrid="true"
 | 
			
		||||
     inkscape:document-units="px"
 | 
			
		||||
     inkscape:grid-bbox="true"
 | 
			
		||||
     inkscape:window-width="697"
 | 
			
		||||
     inkscape:window-height="613"
 | 
			
		||||
     inkscape:window-x="100"
 | 
			
		||||
     inkscape:window-y="77"
 | 
			
		||||
     inkscape:window-maximized="0" />
 | 
			
		||||
  <metadata
 | 
			
		||||
     id="metadata3398">
 | 
			
		||||
    <rdf:RDF>
 | 
			
		||||
      <cc:Work
 | 
			
		||||
         rdf:about="">
 | 
			
		||||
        <dc:format>image/svg+xml</dc:format>
 | 
			
		||||
        <dc:type
 | 
			
		||||
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
 | 
			
		||||
        <dc:title></dc:title>
 | 
			
		||||
      </cc:Work>
 | 
			
		||||
    </rdf:RDF>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <g
 | 
			
		||||
     id="layer1"
 | 
			
		||||
     inkscape:label="Layer 1"
 | 
			
		||||
     inkscape:groupmode="layer">
 | 
			
		||||
    <g
 | 
			
		||||
       style="display:inline"
 | 
			
		||||
       transform="matrix(4,0,0,4,0.29733827,-0.35415646)"
 | 
			
		||||
       id="g19245">
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19247"
 | 
			
		||||
         inkscape:label="status"
 | 
			
		||||
         style="display:inline"
 | 
			
		||||
         transform="translate(-323.02908,-649.02581)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19249"
 | 
			
		||||
         inkscape:label="devices"
 | 
			
		||||
         transform="translate(-323.02908,-649.02581)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19251"
 | 
			
		||||
         inkscape:label="apps"
 | 
			
		||||
         transform="translate(-323.02908,-649.02581)">
 | 
			
		||||
        <path
 | 
			
		||||
           inkscape:connector-curvature="0"
 | 
			
		||||
           d="m 331.9377,653 c 0.0187,0.16677 0.0625,0.32822 0.0625,0.5 0,2.48528 -2.01472,4.5 -4.5,4.5 -0.11769,0 -0.22834,-0.0224 -0.34375,-0.0312 l 0,2.21875 c 0,1.00412 0.80838,1.8125 1.8125,1.8125 l 1.54511,-5e-5 2,2.04688 2.0625,-2.04688 1.61114,0 c 1.00413,0 1.8125,-0.80838 1.8125,-1.8125 l 0,-5.375 c 0,-1.00412 -0.80837,-1.8125 -1.8125,-1.8125 z"
 | 
			
		||||
           id="path19253"
 | 
			
		||||
           sodipodi:nodetypes="csscsscccssssc"
 | 
			
		||||
           style="opacity:0.5;color:#000000;fill:#c3c3c3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
 | 
			
		||||
        <path
 | 
			
		||||
           inkscape:connector-curvature="0"
 | 
			
		||||
           d="m 327.5002,650 c -1.933,0 -3.5,1.567 -3.5,3.5 0,1.933 1.567,3.5 3.5,3.5 1.933,0 3.5,-1.567 3.5,-3.5 0,-1.933 -1.567,-3.5 -3.5,-3.5 z m -0.53125,1 1.03125,0 -0.0625,1.375 a 0.19951718,0.19951718 0 0 0 0,0.0625 0.19951718,0.19951718 0 0 0 0,0.0312 0.19951718,0.19951718 0 0 0 0.125,0.125 0.19951718,0.19951718 0 0 0 0.0312,0 0.19951718,0.19951718 0 0 0 0.0625,0 0.19951718,0.19951718 0 0 0 0.0625,0 0.19951718,0.19951718 0 0 0 0.0312,-0.0312 l 1.15625,-0.75 0.5,0.90625 -1.21875,0.625 a 0.19951718,0.19951718 0 0 0 -0.0312,0 0.19951718,0.19951718 0 0 0 -0.0312,0.0312 0.19951718,0.19951718 0 0 0 -0.0312,0.0937 0.19951718,0.19951718 0 0 0 0,0.0625 0.19951718,0.19951718 0 0 0 0,0.0312 0.19951718,0.19951718 0 0 0 0.0312,0.0625 0.19951718,0.19951718 0 0 0 0.0312,0.0312 0.19951718,0.19951718 0 0 0 0.0312,0.0312 l 1.25,0.625 -0.53125,0.90625 -1.15625,-0.781 a 0.19951718,0.19951718 0 0 0 -0.0312,0 0.19951718,0.19951718 0 0 0 -0.0625,-0.0312 0.19951718,0.19951718 0 0 0 -0.0625,0 0.19951718,0.19951718 0 0 0 -0.125,0.0937 0.19951718,0.19951718 0 0 0 -0.0312,0.0312 0.19951718,0.19951718 0 0 0 0,0.0312 0.19951718,0.19951718 0 0 0 0,0.0625 l 0.0625,1.3751 -1.03125,0 0.0937,-1.375 a 0.19951718,0.19951718 0 0 0 -0.0312,-0.0937 0.19951718,0.19951718 0 0 0 -0.0312,-0.0625 0.19951718,0.19951718 0 0 0 -0.0625,-0.0312 0.19951718,0.19951718 0 0 0 -0.0625,-0.0312 0.19951718,0.19951718 0 0 0 -0.0312,0 0.19951718,0.19951718 0 0 0 -0.0937,0.0312 l -1.1875,0.78125 -0.5,-0.90625 1.25,-0.625 a 0.19951718,0.19951718 0 0 0 0.0312,-0.0312 0.19951718,0.19951718 0 0 0 0.0312,-0.0312 0.19951718,0.19951718 0 0 0 0.0312,-0.0625 0.19951718,0.19951718 0 0 0 0,-0.0312 0.19951718,0.19951718 0 0 0 0,-0.0625 0.19951718,0.19951718 0 0 0 0,-0.0312 0.19951718,0.19951718 0 0 0 -0.0312,-0.0625 0.19951718,0.19951718 0 0 0 -0.0312,-0.0312 0.19951718,0.19951718 0 0 0 -0.0312,0 l -1.25,-0.625 0.5,-0.90625 1.1875,0.75 a 0.19951718,0.19951718 0 0 0 0.0312,0.0312 0.19951718,0.19951718 0 0 0 0.0625,0 0.19951718,0.19951718 0 0 0 0.0625,0 0.19951718,0.19951718 0 0 0 0.0312,0 0.19951718,0.19951718 0 0 0 0.0312,-0.0312 0.19951718,0.19951718 0 0 0 0.0312,-0.0312 0.19951718,0.19951718 0 0 0 0.0312,-0.0312 0.19951718,0.19951718 0 0 0 0,-0.0312 0.19951718,0.19951718 0 0 0 0.0312,-0.0625 0.19951718,0.19951718 0 0 0 0,-0.0312 L 326.96895,651 z"
 | 
			
		||||
           id="path19255"
 | 
			
		||||
           style="color:#000000;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
 | 
			
		||||
      </g>
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19257"
 | 
			
		||||
         inkscape:label="places"
 | 
			
		||||
         transform="translate(-323.02908,-649.02581)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19259"
 | 
			
		||||
         inkscape:label="mimetypes"
 | 
			
		||||
         transform="translate(-323.02908,-649.02581)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19261"
 | 
			
		||||
         inkscape:label="emblems"
 | 
			
		||||
         style="display:inline"
 | 
			
		||||
         transform="translate(-323.02908,-649.02581)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19263"
 | 
			
		||||
         inkscape:label="emotes"
 | 
			
		||||
         style="display:inline"
 | 
			
		||||
         transform="translate(-323.02908,-649.02581)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19265"
 | 
			
		||||
         inkscape:label="categories"
 | 
			
		||||
         style="display:inline"
 | 
			
		||||
         transform="translate(-323.02908,-649.02581)" />
 | 
			
		||||
      <g
 | 
			
		||||
         id="g19267"
 | 
			
		||||
         inkscape:label="actions"
 | 
			
		||||
         style="display:inline"
 | 
			
		||||
         transform="translate(-323.02908,-649.02581)" />
 | 
			
		||||
    </g>
 | 
			
		||||
  </g>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 6.1 KiB  | 
@@ -1,30 +0,0 @@
 | 
			
		||||
.Leader {
 | 
			
		||||
    stroke-width: .5 !important;
 | 
			
		||||
    stroke: #535353;
 | 
			
		||||
    fill: none !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.Button {
 | 
			
		||||
    stroke-width: .25;
 | 
			
		||||
    stroke: #ededed;
 | 
			
		||||
    fill: #ededed;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.Ring {
 | 
			
		||||
    stroke-width: .5 !important;
 | 
			
		||||
    stroke: #535353 !important;
 | 
			
		||||
    fill: none !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.Label {
 | 
			
		||||
    stroke: none !important;
 | 
			
		||||
    stroke-width: .1 !important;
 | 
			
		||||
    font-size: .1 !important;
 | 
			
		||||
    fill: transparent !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.TouchStrip, .TouchRing {
 | 
			
		||||
    stroke-width: .1 !important;
 | 
			
		||||
    stroke: #ededed !important;
 | 
			
		||||
    fill: #535353 !important;
 | 
			
		||||
}
 | 
			
		||||
@@ -1,10 +0,0 @@
 | 
			
		||||
#!/usr/bin/sh
 | 
			
		||||
 | 
			
		||||
srcdir=`dirname $0`
 | 
			
		||||
stamp=${1}
 | 
			
		||||
for scss in $srcdir/*.scss
 | 
			
		||||
do
 | 
			
		||||
  sassc -a $scss ${scss%%.scss}.css || exit 1
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
[ "$stamp" ] && touch $stamp
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 26 KiB  | 
@@ -1,133 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 | 
			
		||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
 | 
			
		||||
 | 
			
		||||
<svg
 | 
			
		||||
   xmlns:dc="http://purl.org/dc/elements/1.1/"
 | 
			
		||||
   xmlns:cc="http://creativecommons.org/ns#"
 | 
			
		||||
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 | 
			
		||||
   xmlns:svg="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
 | 
			
		||||
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
 | 
			
		||||
   width="48"
 | 
			
		||||
   height="22"
 | 
			
		||||
   id="svg2857"
 | 
			
		||||
   version="1.1"
 | 
			
		||||
   inkscape:version="0.91 r13725"
 | 
			
		||||
   sodipodi:docname="toggle-off-hc.svg">
 | 
			
		||||
  <defs
 | 
			
		||||
     id="defs2859">
 | 
			
		||||
    <inkscape:perspective
 | 
			
		||||
       sodipodi:type="inkscape:persp3d"
 | 
			
		||||
       inkscape:vp_x="0 : 526.18109 : 1"
 | 
			
		||||
       inkscape:vp_y="0 : 1000 : 0"
 | 
			
		||||
       inkscape:vp_z="744.09448 : 526.18109 : 1"
 | 
			
		||||
       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
 | 
			
		||||
       id="perspective2865" />
 | 
			
		||||
    <inkscape:perspective
 | 
			
		||||
       id="perspective2843"
 | 
			
		||||
       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
 | 
			
		||||
       inkscape:vp_z="1 : 0.5 : 1"
 | 
			
		||||
       inkscape:vp_y="0 : 1000 : 0"
 | 
			
		||||
       inkscape:vp_x="0 : 0.5 : 1"
 | 
			
		||||
       sodipodi:type="inkscape:persp3d" />
 | 
			
		||||
    <inkscape:path-effect
 | 
			
		||||
       effect="spiro"
 | 
			
		||||
       id="path-effect77541-4"
 | 
			
		||||
       is_visible="true" />
 | 
			
		||||
  </defs>
 | 
			
		||||
  <sodipodi:namedview
 | 
			
		||||
     id="base"
 | 
			
		||||
     pagecolor="#000000"
 | 
			
		||||
     bordercolor="#666666"
 | 
			
		||||
     borderopacity="1.0"
 | 
			
		||||
     inkscape:pageopacity="1"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:zoom="1"
 | 
			
		||||
     inkscape:cx="-6.1820581"
 | 
			
		||||
     inkscape:cy="-16.463788"
 | 
			
		||||
     inkscape:document-units="px"
 | 
			
		||||
     inkscape:current-layer="g37994"
 | 
			
		||||
     showgrid="false"
 | 
			
		||||
     inkscape:window-width="2560"
 | 
			
		||||
     inkscape:window-height="1364"
 | 
			
		||||
     inkscape:window-x="0"
 | 
			
		||||
     inkscape:window-y="27"
 | 
			
		||||
     inkscape:window-maximized="1"
 | 
			
		||||
     borderlayer="true"
 | 
			
		||||
     inkscape:showpageshadow="false"
 | 
			
		||||
     inkscape:snap-nodes="false"
 | 
			
		||||
     inkscape:snap-bbox="true"
 | 
			
		||||
     showborder="true">
 | 
			
		||||
    <inkscape:grid
 | 
			
		||||
       type="xygrid"
 | 
			
		||||
       id="grid12954"
 | 
			
		||||
       empspacing="5"
 | 
			
		||||
       visible="true"
 | 
			
		||||
       enabled="true"
 | 
			
		||||
       snapvisiblegridlinesonly="true" />
 | 
			
		||||
  </sodipodi:namedview>
 | 
			
		||||
  <metadata
 | 
			
		||||
     id="metadata2862">
 | 
			
		||||
    <rdf:RDF>
 | 
			
		||||
      <cc:Work
 | 
			
		||||
         rdf:about="">
 | 
			
		||||
        <dc:format>image/svg+xml</dc:format>
 | 
			
		||||
        <dc:type
 | 
			
		||||
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
 | 
			
		||||
        <dc:title></dc:title>
 | 
			
		||||
      </cc:Work>
 | 
			
		||||
    </rdf:RDF>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <g
 | 
			
		||||
     inkscape:label="Layer 1"
 | 
			
		||||
     inkscape:groupmode="layer"
 | 
			
		||||
     id="layer1"
 | 
			
		||||
     transform="translate(-444.64286,-781.36218)">
 | 
			
		||||
    <g
 | 
			
		||||
       transform="matrix(0.6526046,0,0,0.80554422,99.592644,-636.32172)"
 | 
			
		||||
       id="g37994">
 | 
			
		||||
      <g
 | 
			
		||||
         transform="matrix(1.5323214,0,0,1.2413968,-324.76058,489.69039)"
 | 
			
		||||
         id="toggle-off"
 | 
			
		||||
         inkscape:label="#g8477">
 | 
			
		||||
        <circle
 | 
			
		||||
           cy="1033.993"
 | 
			
		||||
           cx="571.95966"
 | 
			
		||||
           id="path8444"
 | 
			
		||||
           style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#555753;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
 | 
			
		||||
           r="7" />
 | 
			
		||||
        <rect
 | 
			
		||||
           ry="2.0108337"
 | 
			
		||||
           rx="1.9562569"
 | 
			
		||||
           y="1031.9885"
 | 
			
		||||
           x="565.0083"
 | 
			
		||||
           height="4.0216675"
 | 
			
		||||
           width="34.850178"
 | 
			
		||||
           id="rect8461"
 | 
			
		||||
           style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#555753;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
 | 
			
		||||
      </g>
 | 
			
		||||
      <g
 | 
			
		||||
         transform="matrix(1.5323214,0,0,1.2413968,-324.85635,491.16456)"
 | 
			
		||||
         id="toggle-on"
 | 
			
		||||
         inkscape:label="#g8481">
 | 
			
		||||
        <rect
 | 
			
		||||
           style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#3465a4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
 | 
			
		||||
           id="rect8475"
 | 
			
		||||
           width="34.850178"
 | 
			
		||||
           height="4.0216675"
 | 
			
		||||
           x="565.0083"
 | 
			
		||||
           y="1070.9279"
 | 
			
		||||
           rx="1.9562569"
 | 
			
		||||
           ry="2.0108337" />
 | 
			
		||||
        <circle
 | 
			
		||||
           transform="scale(-1,1)"
 | 
			
		||||
           style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#3465a4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
 | 
			
		||||
           id="circle8463"
 | 
			
		||||
           cx="-591.0213"
 | 
			
		||||
           cy="1072.9402"
 | 
			
		||||
           r="9" />
 | 
			
		||||
      </g>
 | 
			
		||||
    </g>
 | 
			
		||||
  </g>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 6.1 KiB  | 
@@ -1,113 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 | 
			
		||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
 | 
			
		||||
 | 
			
		||||
<svg
 | 
			
		||||
   xmlns:dc="http://purl.org/dc/elements/1.1/"
 | 
			
		||||
   xmlns:cc="http://creativecommons.org/ns#"
 | 
			
		||||
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 | 
			
		||||
   xmlns:svg="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
 | 
			
		||||
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
 | 
			
		||||
   width="48"
 | 
			
		||||
   height="22"
 | 
			
		||||
   id="svg2857"
 | 
			
		||||
   version="1.1"
 | 
			
		||||
   inkscape:version="0.91 r13725"
 | 
			
		||||
   sodipodi:docname="toggle-on-hc.svg">
 | 
			
		||||
  <defs
 | 
			
		||||
     id="defs2859">
 | 
			
		||||
    <inkscape:perspective
 | 
			
		||||
       sodipodi:type="inkscape:persp3d"
 | 
			
		||||
       inkscape:vp_x="0 : 526.18109 : 1"
 | 
			
		||||
       inkscape:vp_y="0 : 1000 : 0"
 | 
			
		||||
       inkscape:vp_z="744.09448 : 526.18109 : 1"
 | 
			
		||||
       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
 | 
			
		||||
       id="perspective2865" />
 | 
			
		||||
    <inkscape:perspective
 | 
			
		||||
       id="perspective2843"
 | 
			
		||||
       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
 | 
			
		||||
       inkscape:vp_z="1 : 0.5 : 1"
 | 
			
		||||
       inkscape:vp_y="0 : 1000 : 0"
 | 
			
		||||
       inkscape:vp_x="0 : 0.5 : 1"
 | 
			
		||||
       sodipodi:type="inkscape:persp3d" />
 | 
			
		||||
    <inkscape:path-effect
 | 
			
		||||
       effect="spiro"
 | 
			
		||||
       id="path-effect77541-4"
 | 
			
		||||
       is_visible="true" />
 | 
			
		||||
  </defs>
 | 
			
		||||
  <sodipodi:namedview
 | 
			
		||||
     id="base"
 | 
			
		||||
     pagecolor="#000000"
 | 
			
		||||
     bordercolor="#666666"
 | 
			
		||||
     borderopacity="1.0"
 | 
			
		||||
     inkscape:pageopacity="1"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:zoom="1"
 | 
			
		||||
     inkscape:cx="-222.95215"
 | 
			
		||||
     inkscape:cy="3.9378433"
 | 
			
		||||
     inkscape:document-units="px"
 | 
			
		||||
     inkscape:current-layer="g37994"
 | 
			
		||||
     showgrid="false"
 | 
			
		||||
     inkscape:window-width="2560"
 | 
			
		||||
     inkscape:window-height="1364"
 | 
			
		||||
     inkscape:window-x="0"
 | 
			
		||||
     inkscape:window-y="27"
 | 
			
		||||
     inkscape:window-maximized="1"
 | 
			
		||||
     borderlayer="true"
 | 
			
		||||
     inkscape:showpageshadow="false"
 | 
			
		||||
     inkscape:snap-nodes="false"
 | 
			
		||||
     inkscape:snap-bbox="true"
 | 
			
		||||
     showborder="true">
 | 
			
		||||
    <inkscape:grid
 | 
			
		||||
       type="xygrid"
 | 
			
		||||
       id="grid12954"
 | 
			
		||||
       empspacing="5"
 | 
			
		||||
       visible="true"
 | 
			
		||||
       enabled="true"
 | 
			
		||||
       snapvisiblegridlinesonly="true" />
 | 
			
		||||
  </sodipodi:namedview>
 | 
			
		||||
  <metadata
 | 
			
		||||
     id="metadata2862">
 | 
			
		||||
    <rdf:RDF>
 | 
			
		||||
      <cc:Work
 | 
			
		||||
         rdf:about="">
 | 
			
		||||
        <dc:format>image/svg+xml</dc:format>
 | 
			
		||||
        <dc:type
 | 
			
		||||
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
 | 
			
		||||
        <dc:title></dc:title>
 | 
			
		||||
      </cc:Work>
 | 
			
		||||
    </rdf:RDF>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <g
 | 
			
		||||
     inkscape:label="Layer 1"
 | 
			
		||||
     inkscape:groupmode="layer"
 | 
			
		||||
     id="layer1"
 | 
			
		||||
     transform="translate(-444.64286,-781.36218)">
 | 
			
		||||
    <g
 | 
			
		||||
       transform="matrix(0.6526046,0,0,0.80554422,99.592644,-636.32172)"
 | 
			
		||||
       id="g37994">
 | 
			
		||||
      <g
 | 
			
		||||
         transform="matrix(1.5323214,0,0,1.2413968,-324.85635,441.50868)"
 | 
			
		||||
         id="toggle-on"
 | 
			
		||||
         inkscape:label="#g8481">
 | 
			
		||||
        <rect
 | 
			
		||||
           style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#3465a4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
 | 
			
		||||
           id="rect8475"
 | 
			
		||||
           width="34.850178"
 | 
			
		||||
           height="4.0216675"
 | 
			
		||||
           x="565.0083"
 | 
			
		||||
           y="1070.9279"
 | 
			
		||||
           rx="1.9562569"
 | 
			
		||||
           ry="2.0108337" />
 | 
			
		||||
        <circle
 | 
			
		||||
           transform="scale(-1,1)"
 | 
			
		||||
           style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#3465a4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
 | 
			
		||||
           id="circle8463"
 | 
			
		||||
           cx="-591.0213"
 | 
			
		||||
           cy="1072.9402"
 | 
			
		||||
           r="9" />
 | 
			
		||||
      </g>
 | 
			
		||||
    </g>
 | 
			
		||||
  </g>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 4.4 KiB  | 
@@ -14,7 +14,7 @@
 | 
			
		||||
   height="22"
 | 
			
		||||
   id="svg2857"
 | 
			
		||||
   version="1.1"
 | 
			
		||||
   inkscape:version="0.91 r13725"
 | 
			
		||||
   inkscape:version="0.48.5 r10040"
 | 
			
		||||
   sodipodi:docname="toggle-on-intl.svg">
 | 
			
		||||
  <defs
 | 
			
		||||
     id="defs2859">
 | 
			
		||||
@@ -52,7 +52,7 @@
 | 
			
		||||
      <stop
 | 
			
		||||
         id="stop77465"
 | 
			
		||||
         offset="1"
 | 
			
		||||
         style="stop-color:#205b9a;stop-opacity:1" />
 | 
			
		||||
         style="stop-color:#204a87;stop-opacity:1" />
 | 
			
		||||
    </linearGradient>
 | 
			
		||||
    <linearGradient
 | 
			
		||||
       inkscape:collect="always"
 | 
			
		||||
@@ -88,14 +88,14 @@
 | 
			
		||||
     borderopacity="1.0"
 | 
			
		||||
     inkscape:pageopacity="1"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:zoom="1"
 | 
			
		||||
     inkscape:cx="37.410841"
 | 
			
		||||
     inkscape:cy="16.009314"
 | 
			
		||||
     inkscape:zoom="32"
 | 
			
		||||
     inkscape:cx="17.255148"
 | 
			
		||||
     inkscape:cy="8.9252639"
 | 
			
		||||
     inkscape:document-units="px"
 | 
			
		||||
     inkscape:current-layer="g37994"
 | 
			
		||||
     showgrid="false"
 | 
			
		||||
     showgrid="true"
 | 
			
		||||
     inkscape:window-width="2560"
 | 
			
		||||
     inkscape:window-height="1376"
 | 
			
		||||
     inkscape:window-height="1375"
 | 
			
		||||
     inkscape:window-x="0"
 | 
			
		||||
     inkscape:window-y="27"
 | 
			
		||||
     inkscape:window-maximized="1"
 | 
			
		||||
 
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB  | 
@@ -14,7 +14,7 @@
 | 
			
		||||
   height="22"
 | 
			
		||||
   id="svg2857"
 | 
			
		||||
   version="1.1"
 | 
			
		||||
   inkscape:version="0.91 r13725"
 | 
			
		||||
   inkscape:version="0.48.5 r10040"
 | 
			
		||||
   sodipodi:docname="toggle-on-us.svg">
 | 
			
		||||
  <defs
 | 
			
		||||
     id="defs2859">
 | 
			
		||||
@@ -32,6 +32,28 @@
 | 
			
		||||
       inkscape:vp_y="0 : 1000 : 0"
 | 
			
		||||
       inkscape:vp_x="0 : 0.5 : 1"
 | 
			
		||||
       sodipodi:type="inkscape:persp3d" />
 | 
			
		||||
    <linearGradient
 | 
			
		||||
       inkscape:collect="always"
 | 
			
		||||
       xlink:href="#linearGradient77461"
 | 
			
		||||
       id="linearGradient77551"
 | 
			
		||||
       gradientUnits="userSpaceOnUse"
 | 
			
		||||
       gradientTransform="matrix(1.3066667,0,0,1,-841.64667,-483)"
 | 
			
		||||
       x1="1164.7644"
 | 
			
		||||
       y1="962.93695"
 | 
			
		||||
       x2="1164.7644"
 | 
			
		||||
       y2="970.51404" />
 | 
			
		||||
    <linearGradient
 | 
			
		||||
       id="linearGradient77461"
 | 
			
		||||
       inkscape:collect="always">
 | 
			
		||||
      <stop
 | 
			
		||||
         id="stop77463"
 | 
			
		||||
         offset="0"
 | 
			
		||||
         style="stop-color:#182f4c;stop-opacity:1" />
 | 
			
		||||
      <stop
 | 
			
		||||
         id="stop77465"
 | 
			
		||||
         offset="1"
 | 
			
		||||
         style="stop-color:#204a87;stop-opacity:1" />
 | 
			
		||||
    </linearGradient>
 | 
			
		||||
    <linearGradient
 | 
			
		||||
       inkscape:collect="always"
 | 
			
		||||
       xlink:href="#linearGradient76469-7-7-4"
 | 
			
		||||
@@ -58,38 +80,6 @@
 | 
			
		||||
       effect="spiro"
 | 
			
		||||
       id="path-effect77541-4"
 | 
			
		||||
       is_visible="true" />
 | 
			
		||||
    <linearGradient
 | 
			
		||||
       id="linearGradient77461-1"
 | 
			
		||||
       inkscape:collect="always">
 | 
			
		||||
      <stop
 | 
			
		||||
         id="stop77463-1"
 | 
			
		||||
         offset="0"
 | 
			
		||||
         style="stop-color:#182f4c;stop-opacity:1" />
 | 
			
		||||
      <stop
 | 
			
		||||
         id="stop77465-4"
 | 
			
		||||
         offset="1"
 | 
			
		||||
         style="stop-color:#205b9a;stop-opacity:1" />
 | 
			
		||||
    </linearGradient>
 | 
			
		||||
    <linearGradient
 | 
			
		||||
       inkscape:collect="always"
 | 
			
		||||
       xlink:href="#linearGradient77461-1"
 | 
			
		||||
       id="linearGradient77551-6-5"
 | 
			
		||||
       gradientUnits="userSpaceOnUse"
 | 
			
		||||
       gradientTransform="matrix(0.8527367,0,0,0.80554422,-969.41608,-778.00299)"
 | 
			
		||||
       x1="1164.7644"
 | 
			
		||||
       y1="962.93695"
 | 
			
		||||
       x2="1164.7644"
 | 
			
		||||
       y2="970.51404" />
 | 
			
		||||
    <linearGradient
 | 
			
		||||
       inkscape:collect="always"
 | 
			
		||||
       xlink:href="#linearGradient77461-1"
 | 
			
		||||
       id="linearGradient11198"
 | 
			
		||||
       gradientUnits="userSpaceOnUse"
 | 
			
		||||
       gradientTransform="matrix(1.3066667,0,0,1,-1066.3709,794.25325)"
 | 
			
		||||
       x1="1322.5831"
 | 
			
		||||
       y1="-312.51855"
 | 
			
		||||
       x2="1322.5831"
 | 
			
		||||
       y2="-306.53461" />
 | 
			
		||||
  </defs>
 | 
			
		||||
  <sodipodi:namedview
 | 
			
		||||
     id="base"
 | 
			
		||||
@@ -99,13 +89,13 @@
 | 
			
		||||
     inkscape:pageopacity="1"
 | 
			
		||||
     inkscape:pageshadow="2"
 | 
			
		||||
     inkscape:zoom="1"
 | 
			
		||||
     inkscape:cx="-26.798898"
 | 
			
		||||
     inkscape:cy="5.3753009"
 | 
			
		||||
     inkscape:cx="33.380898"
 | 
			
		||||
     inkscape:cy="6.9658271"
 | 
			
		||||
     inkscape:document-units="px"
 | 
			
		||||
     inkscape:current-layer="g37994"
 | 
			
		||||
     showgrid="false"
 | 
			
		||||
     inkscape:window-width="2560"
 | 
			
		||||
     inkscape:window-height="1376"
 | 
			
		||||
     inkscape:window-height="1375"
 | 
			
		||||
     inkscape:window-x="0"
 | 
			
		||||
     inkscape:window-y="27"
 | 
			
		||||
     inkscape:window-maximized="1"
 | 
			
		||||
@@ -162,7 +152,7 @@
 | 
			
		||||
           height="25"
 | 
			
		||||
           width="98"
 | 
			
		||||
           id="rect38000"
 | 
			
		||||
           style="color:#000000;fill:url(#linearGradient11198);fill-opacity:1;fill-rule:nonzero;stroke:#182f4c;stroke-width:1.37920964;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;clip-rule:nonzero;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;filter-blend-mode:normal;filter-gaussianBlur-deviation:0;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto" />
 | 
			
		||||
           style="color:#000000;fill:url(#linearGradient77551);fill-opacity:1;fill-rule:nonzero;stroke:#182f4c;stroke-width:1.37920964;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
 | 
			
		||||
      </g>
 | 
			
		||||
      <g
 | 
			
		||||
         transform="translate(2.0625,-2)"
 | 
			
		||||
 
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.0 KiB  | 
@@ -1,5 +0,0 @@
 | 
			
		||||
version_conf = configuration_data()
 | 
			
		||||
version_conf.set('VERSION', meson.project_version())
 | 
			
		||||
 | 
			
		||||
subdir('shell')
 | 
			
		||||
subdir('st')
 | 
			
		||||
@@ -113,19 +113,19 @@ expand_content_files=
 | 
			
		||||
# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
 | 
			
		||||
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
 | 
			
		||||
GTKDOC_CFLAGS=$(GNOME_SHELL_CFLAGS)
 | 
			
		||||
GTKDOC_LIBS=$(GNOME_SHELL_LIBS) $(top_builddir)/src/libgnome-shell-menu.la $(top_builddir)/src/libgnome-shell.la -rpath $(MUTTER_TYPELIB_DIR)
 | 
			
		||||
GTKDOC_LIBS=$(GNOME_SHELL_LIBS) $(top_builddir)/src/libgnome-shell-menu.la $(top_builddir)/src/libgnome-shell-base.la $(top_builddir)/src/libgnome-shell.la
 | 
			
		||||
 | 
			
		||||
# This includes the standard gtk-doc make rules, copied by gtkdocize.
 | 
			
		||||
include $(top_srcdir)/gtk-doc.make
 | 
			
		||||
 | 
			
		||||
# Other files to distribute
 | 
			
		||||
# e.g. EXTRA_DIST += version.xml.in
 | 
			
		||||
EXTRA_DIST += version.xml.in
 | 
			
		||||
EXTRA_DIST +=
 | 
			
		||||
 | 
			
		||||
# Files not to distribute
 | 
			
		||||
# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
 | 
			
		||||
# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
 | 
			
		||||
DISTCLEANFILES = $(DOC_MODULE).types
 | 
			
		||||
DISTCLEANFILES = $(DOC_MODULES).types
 | 
			
		||||
 | 
			
		||||
# Comment this out if you want 'make check' to test you doc status
 | 
			
		||||
# and run some sanity checks
 | 
			
		||||
 
 | 
			
		||||
@@ -1,57 +0,0 @@
 | 
			
		||||
private_headers = [
 | 
			
		||||
  'gactionmuxer.h',
 | 
			
		||||
  'gactionobservable.h',
 | 
			
		||||
  'gactionobserver.h',
 | 
			
		||||
  'shell-network-agent.h',
 | 
			
		||||
  'shell-recorder-src.h'
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
if not enable_recorder
 | 
			
		||||
  private_headers += 'shell-recorder.h'
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
exclude_directories = [
 | 
			
		||||
  'calendar-server',
 | 
			
		||||
  'hotplug-sniffer',
 | 
			
		||||
  'st',
 | 
			
		||||
  'tray'
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
ifaces = [
 | 
			
		||||
  ['org.gnome.Shell.Screenshot', 'org.gnome.Shell.Screenshot.xml'],
 | 
			
		||||
  ['org.gnome.ShellSearchProvider', 'org.gnome.Shell.SearchProvider.xml'],
 | 
			
		||||
  ['org.gnome.ShellSearchProvider2', 'org.gnome.Shell.SearchProvider2.xml']
 | 
			
		||||
]
 | 
			
		||||
foreach iface : ifaces
 | 
			
		||||
  custom_target(iface[0] + ' docs',
 | 
			
		||||
    input: '../../../data/@0@.xml'.format(iface[0]),
 | 
			
		||||
    output: 'doc-gen-' + iface[1],
 | 
			
		||||
    command: [
 | 
			
		||||
      'gdbus-codegen',
 | 
			
		||||
      '--interface-prefix=@0@.'.format(iface),
 | 
			
		||||
      '--generate-docbook', 'doc-gen',
 | 
			
		||||
      '--output-directory', '@OUTDIR@',
 | 
			
		||||
      '@INPUT@'
 | 
			
		||||
    ],
 | 
			
		||||
    build_by_default: true
 | 
			
		||||
  )
 | 
			
		||||
endforeach
 | 
			
		||||
 | 
			
		||||
configure_file(
 | 
			
		||||
  input: 'version.xml.in',
 | 
			
		||||
  output: 'version.xml',
 | 
			
		||||
  configuration: version_conf
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
gnome.gtkdoc('shell',
 | 
			
		||||
  main_sgml: 'shell-docs.sgml',
 | 
			
		||||
  src_dir: [
 | 
			
		||||
    join_paths(meson.source_root(), 'src'),
 | 
			
		||||
    join_paths(meson.build_root(), 'src')
 | 
			
		||||
  ],
 | 
			
		||||
  scan_args: [
 | 
			
		||||
    '--ignore-headers=' + ' '.join(private_headers + exclude_directories),
 | 
			
		||||
    '--rebuild-types'
 | 
			
		||||
  ],
 | 
			
		||||
  install: true
 | 
			
		||||
)
 | 
			
		||||
@@ -3,13 +3,12 @@
 | 
			
		||||
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
 | 
			
		||||
[
 | 
			
		||||
  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
 | 
			
		||||
  <!ENTITY version SYSTEM "version.xml">
 | 
			
		||||
]>
 | 
			
		||||
<book id="index">
 | 
			
		||||
  <bookinfo>
 | 
			
		||||
    <title>Shell Reference Manual</title>
 | 
			
		||||
    <releaseinfo>
 | 
			
		||||
      for Shell &version;.
 | 
			
		||||
      for Shell @VERSION@.
 | 
			
		||||
      <!--The latest version of this documentation can be found on-line at
 | 
			
		||||
      <ulink role="online-location" url="http://[SERVER]/shell/index.html">http://[SERVER]/shell/</ulink>.-->
 | 
			
		||||
    </releaseinfo>
 | 
			
		||||
@@ -18,6 +17,7 @@
 | 
			
		||||
  <chapter>
 | 
			
		||||
    <title>Actors</title>
 | 
			
		||||
    <xi:include href="xml/shell-generic-container.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-slicer.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-stack.xml"/>
 | 
			
		||||
  </chapter>
 | 
			
		||||
  <chapter>
 | 
			
		||||
@@ -46,21 +46,17 @@
 | 
			
		||||
    <xi:include href="doc-gen-org.gnome.Shell.SearchProvider.xml"/>
 | 
			
		||||
    <xi:include href="doc-gen-org.gnome.Shell.SearchProvider2.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-global.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-action-modes.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-keybinding-modes.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-wm.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-util.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-mount-operation.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-polkit-authentication-agent.xml"/>
 | 
			
		||||
    <xi:include href="xml/shell-tp-client.xml"/>
 | 
			
		||||
  </chapter>
 | 
			
		||||
  <!-- FIXME:
 | 
			
		||||
       Not generated at the moment, find out whether to blame gtk-doc or meson
 | 
			
		||||
  -->
 | 
			
		||||
  <!--
 | 
			
		||||
  <chapter id="object-tree">
 | 
			
		||||
    <title>Object Hierarchy</title>
 | 
			
		||||
     <xi:include href="xml/tree_index.sgml"/>
 | 
			
		||||
  </chapter>
 | 
			
		||||
  -->
 | 
			
		||||
  <index id="api-index-full">
 | 
			
		||||
    <title>API Index</title>
 | 
			
		||||
    <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
@VERSION@
 | 
			
		||||
@@ -78,14 +78,14 @@ expand_content_files=
 | 
			
		||||
# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
 | 
			
		||||
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
 | 
			
		||||
GTKDOC_CFLAGS=
 | 
			
		||||
GTKDOC_LIBS=$(top_builddir)/src/libst-1.0.la -rpath $(MUTTER_TYPELIB_DIR)
 | 
			
		||||
GTKDOC_LIBS=$(top_builddir)/src/libst-1.0.la
 | 
			
		||||
 | 
			
		||||
# This includes the standard gtk-doc make rules, copied by gtkdocize.
 | 
			
		||||
include $(top_srcdir)/gtk-doc.make
 | 
			
		||||
 | 
			
		||||
# Other files to distribute
 | 
			
		||||
# e.g. EXTRA_DIST += version.xml.in
 | 
			
		||||
EXTRA_DIST += version.xml.in
 | 
			
		||||
EXTRA_DIST +=
 | 
			
		||||
 | 
			
		||||
# Files not to distribute
 | 
			
		||||
# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
 | 
			
		||||
 
 | 
			
		||||
@@ -1,24 +0,0 @@
 | 
			
		||||
private_headers = [
 | 
			
		||||
  'st-private.h',
 | 
			
		||||
  'st-theme-node-private.h'
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
configure_file(
 | 
			
		||||
  input: 'version.xml.in',
 | 
			
		||||
  output: 'version.xml',
 | 
			
		||||
  configuration: version_conf
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
gnome.gtkdoc('st',
 | 
			
		||||
  main_sgml: 'st-docs.sgml',
 | 
			
		||||
  src_dir: [
 | 
			
		||||
    join_paths(meson.source_root(), 'src', 'st'),
 | 
			
		||||
    join_paths(meson.build_root(), 'src', 'st')
 | 
			
		||||
  ],
 | 
			
		||||
  scan_args: [
 | 
			
		||||
    '--ignore-headers=' + ' '.join(private_headers),
 | 
			
		||||
    '--rebuild-sections',
 | 
			
		||||
    '--rebuild-types'
 | 
			
		||||
  ],
 | 
			
		||||
  install: true
 | 
			
		||||
)
 | 
			
		||||
@@ -3,13 +3,12 @@
 | 
			
		||||
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
 | 
			
		||||
[
 | 
			
		||||
  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
 | 
			
		||||
  <!ENTITY version SYSTEM "version.xml">
 | 
			
		||||
]>
 | 
			
		||||
<book id="index">
 | 
			
		||||
  <bookinfo>
 | 
			
		||||
    <title>St Reference Manual</title>
 | 
			
		||||
    <releaseinfo>
 | 
			
		||||
      for St &version;.
 | 
			
		||||
      for St @VERSION@.
 | 
			
		||||
      <!--The latest version of this documentation can be found on-line at
 | 
			
		||||
      <ulink role="online-location" url="http://[SERVER]/st/index.html">http://[SERVER]/st/</ulink>.-->
 | 
			
		||||
    </releaseinfo>
 | 
			
		||||
@@ -36,6 +35,7 @@
 | 
			
		||||
      <xi:include href="xml/st-bin.xml"/>
 | 
			
		||||
      <xi:include href="xml/st-box-layout.xml"/>
 | 
			
		||||
      <xi:include href="xml/st-scroll-view.xml"/>
 | 
			
		||||
      <xi:include href="xml/st-table.xml"/>
 | 
			
		||||
    </chapter>
 | 
			
		||||
 | 
			
		||||
    <chapter id="styling">
 | 
			
		||||
@@ -47,15 +47,10 @@
 | 
			
		||||
      <xi:include href="xml/st-texture-cache.xml"/>
 | 
			
		||||
    </chapter>
 | 
			
		||||
  </part>
 | 
			
		||||
  <!-- FIXME:
 | 
			
		||||
       Not generated at the moment, find out whether to blame gtk-doc or meson
 | 
			
		||||
  -->
 | 
			
		||||
  <!--
 | 
			
		||||
  <chapter id="object-tree">
 | 
			
		||||
    <title>Object Hierarchy</title>
 | 
			
		||||
     <xi:include href="xml/tree_index.sgml"/>
 | 
			
		||||
  </chapter>
 | 
			
		||||
  -->
 | 
			
		||||
  <index id="api-index-full">
 | 
			
		||||
    <title>API Index</title>
 | 
			
		||||
    <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
@VERSION@
 | 
			
		||||
@@ -11,7 +11,6 @@ misc/config.js: misc/config.js.in Makefile
 | 
			
		||||
	    -e "s|[@]datadir@|$(datadir)|g" \
 | 
			
		||||
	    -e "s|[@]libexecdir@|$(libexecdir)|g" \
 | 
			
		||||
	    -e "s|[@]sysconfdir@|$(sysconfdir)|g" \
 | 
			
		||||
	    -e "s|[@]LIBMUTTER_API_VERSION@|$(LIBMUTTER_API_VERSION)|g" \
 | 
			
		||||
               $< > $@
 | 
			
		||||
 | 
			
		||||
js_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --sourcedir=$(builddir) --generate-dependencies $(srcdir)/js-resources.gresource.xml)
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,6 @@ const GLib = imports.gi.GLib;
 | 
			
		||||
const GObject = imports.gi.GObject;
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const Gtk = imports.gi.Gtk;
 | 
			
		||||
const Gdk = imports.gi.Gdk;
 | 
			
		||||
const Pango = imports.gi.Pango;
 | 
			
		||||
const Format = imports.format;
 | 
			
		||||
 | 
			
		||||
@@ -24,6 +23,11 @@ const GnomeShellIface = '<node> \
 | 
			
		||||
</interface> \
 | 
			
		||||
</node>';
 | 
			
		||||
 | 
			
		||||
const customCss = '.prefs-button { \
 | 
			
		||||
                       padding: 8px; \
 | 
			
		||||
                       border-radius: 20px; \
 | 
			
		||||
                   }';
 | 
			
		||||
 | 
			
		||||
const GnomeShellProxy = Gio.DBusProxy.makeProxyWrapper(GnomeShellIface);
 | 
			
		||||
 | 
			
		||||
function stripPrefix(string, prefix) {
 | 
			
		||||
@@ -32,7 +36,7 @@ function stripPrefix(string, prefix) {
 | 
			
		||||
    return string;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var Application = new Lang.Class({
 | 
			
		||||
const Application = new Lang.Class({
 | 
			
		||||
    Name: 'Application',
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        GLib.set_prgname('gnome-shell-extension-prefs');
 | 
			
		||||
@@ -50,6 +54,7 @@ var Application = new Lang.Class({
 | 
			
		||||
        this._startupUuid = null;
 | 
			
		||||
        this._loaded = false;
 | 
			
		||||
        this._skipMainWindow = false;
 | 
			
		||||
        this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell' });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _extensionAvailable: function(uuid) {
 | 
			
		||||
@@ -93,11 +98,9 @@ var Application = new Lang.Class({
 | 
			
		||||
            widget = this._buildErrorUI(extension, e);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let dialog = new Gtk.Window({ modal: !this._skipMainWindow,
 | 
			
		||||
                                      type_hint: Gdk.WindowTypeHint.DIALOG });
 | 
			
		||||
        dialog.set_titlebar(new Gtk.HeaderBar({ show_close_button: true,
 | 
			
		||||
                                                title: extension.metadata.name,
 | 
			
		||||
                                                visible: true }));
 | 
			
		||||
        let dialog = new Gtk.Dialog({ use_header_bar: true,
 | 
			
		||||
                                      modal: true,
 | 
			
		||||
                                      title: extension.metadata.name });
 | 
			
		||||
 | 
			
		||||
        if (this._skipMainWindow) {
 | 
			
		||||
            this.application.add_window(dialog);
 | 
			
		||||
@@ -110,7 +113,7 @@ var Application = new Lang.Class({
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        dialog.set_default_size(600, 400);
 | 
			
		||||
        dialog.add(widget);
 | 
			
		||||
        dialog.get_content_area().add(widget);
 | 
			
		||||
        dialog.show();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
@@ -146,21 +149,16 @@ var Application = new Lang.Class({
 | 
			
		||||
        this._window = new Gtk.ApplicationWindow({ application: app,
 | 
			
		||||
                                                   window_position: Gtk.WindowPosition.CENTER });
 | 
			
		||||
 | 
			
		||||
        this._window.set_default_size(800, 500);
 | 
			
		||||
        this._window.set_size_request(800, 500);
 | 
			
		||||
 | 
			
		||||
        this._titlebar = new Gtk.HeaderBar({ show_close_button: true,
 | 
			
		||||
                                             title: _("Shell Extensions") });
 | 
			
		||||
                                             title: _("GNOME 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);
 | 
			
		||||
 | 
			
		||||
        let scroll = new Gtk.ScrolledWindow({ hscrollbar_policy: Gtk.PolicyType.NEVER });
 | 
			
		||||
        let scroll = new Gtk.ScrolledWindow({ hscrollbar_policy: Gtk.PolicyType.NEVER,
 | 
			
		||||
                                              shadow_type: Gtk.ShadowType.IN,
 | 
			
		||||
                                              halign: Gtk.Align.CENTER,
 | 
			
		||||
                                              margin: 18 });
 | 
			
		||||
        this._window.add(scroll);
 | 
			
		||||
 | 
			
		||||
        this._extensionSelector = new Gtk.ListBox({ selection_mode: Gtk.SelectionMode.NONE });
 | 
			
		||||
@@ -179,6 +177,21 @@ var Application = new Lang.Class({
 | 
			
		||||
        this._window.show_all();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _addCustomStyle: function() {
 | 
			
		||||
        let provider = new Gtk.CssProvider();
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
            provider.load_from_data(customCss, -1);
 | 
			
		||||
        } catch(e) {
 | 
			
		||||
            log('Failed to add application style');
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let screen = this._window.window.get_screen();
 | 
			
		||||
        let priority = Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION;
 | 
			
		||||
        Gtk.StyleContext.add_provider_for_screen(screen, provider, priority);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _sortList: function(row1, row2) {
 | 
			
		||||
        let name1 = ExtensionUtils.extensions[row1.uuid].metadata.name;
 | 
			
		||||
        let name2 = ExtensionUtils.extensions[row2.uuid].metadata.name;
 | 
			
		||||
@@ -227,6 +240,7 @@ var Application = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    _onStartup: function(app) {
 | 
			
		||||
        this._buildUI(app);
 | 
			
		||||
        this._addCustomStyle();
 | 
			
		||||
        this._scanExtensions();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
@@ -253,19 +267,7 @@ var Application = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var DescriptionLabel = new Lang.Class({
 | 
			
		||||
    Name: 'DescriptionLabel',
 | 
			
		||||
    Extends: Gtk.Label,
 | 
			
		||||
 | 
			
		||||
    vfunc_get_preferred_height_for_width: function(width) {
 | 
			
		||||
        // Hack: Request the maximum height allowed by the line limit
 | 
			
		||||
        if (this.lines > 0)
 | 
			
		||||
            return this.parent(0);
 | 
			
		||||
        return this.parent(width);
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var ExtensionRow = new Lang.Class({
 | 
			
		||||
const ExtensionRow = new Lang.Class({
 | 
			
		||||
    Name: 'ExtensionRow',
 | 
			
		||||
    Extends: Gtk.ListBoxRow,
 | 
			
		||||
 | 
			
		||||
@@ -283,10 +285,6 @@ var ExtensionRow = new Lang.Class({
 | 
			
		||||
            Lang.bind(this, function() {
 | 
			
		||||
                this._switch.sensitive = this._canEnable();
 | 
			
		||||
            }));
 | 
			
		||||
        this._settings.connect('changed::disable-user-extensions',
 | 
			
		||||
            Lang.bind(this, function() {
 | 
			
		||||
                this._switch.sensitive = this._canEnable();
 | 
			
		||||
            }));
 | 
			
		||||
 | 
			
		||||
        this._buildUI();
 | 
			
		||||
    },
 | 
			
		||||
@@ -295,8 +293,7 @@ var ExtensionRow = new Lang.Class({
 | 
			
		||||
        let extension = ExtensionUtils.extensions[this.uuid];
 | 
			
		||||
 | 
			
		||||
        let hbox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL,
 | 
			
		||||
                                 hexpand: true, margin_end: 24, spacing: 24,
 | 
			
		||||
                                 margin: 12 });
 | 
			
		||||
                                 hexpand: true, margin: 12, spacing: 6 });
 | 
			
		||||
        this.add(hbox);
 | 
			
		||||
 | 
			
		||||
        let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL,
 | 
			
		||||
@@ -310,9 +307,9 @@ var ExtensionRow = new Lang.Class({
 | 
			
		||||
        vbox.add(label);
 | 
			
		||||
 | 
			
		||||
        let desc = extension.metadata.description.split('\n')[0];
 | 
			
		||||
        label = new DescriptionLabel({ label: desc, wrap: true, lines: 2,
 | 
			
		||||
                                       ellipsize: Pango.EllipsizeMode.END,
 | 
			
		||||
                                       xalign: 0, yalign: 0 });
 | 
			
		||||
        label = new Gtk.Label({ label: desc,
 | 
			
		||||
                                ellipsize: Pango.EllipsizeMode.END,
 | 
			
		||||
                                halign: Gtk.Align.START });
 | 
			
		||||
        vbox.add(label);
 | 
			
		||||
 | 
			
		||||
        let button = new Gtk.Button({ valign: Gtk.Align.CENTER,
 | 
			
		||||
@@ -320,7 +317,7 @@ var ExtensionRow = new Lang.Class({
 | 
			
		||||
        button.add(new Gtk.Image({ icon_name: 'emblem-system-symbolic',
 | 
			
		||||
                                   icon_size: Gtk.IconSize.BUTTON,
 | 
			
		||||
                                   visible: true }));
 | 
			
		||||
        button.get_style_context().add_class('circular');
 | 
			
		||||
        button.get_style_context().add_class('prefs-button');
 | 
			
		||||
        hbox.add(button);
 | 
			
		||||
 | 
			
		||||
        this.prefsButton = button;
 | 
			
		||||
@@ -343,8 +340,7 @@ var ExtensionRow = new Lang.Class({
 | 
			
		||||
        let extension = ExtensionUtils.extensions[this.uuid];
 | 
			
		||||
        let checkVersion = !this._settings.get_boolean('disable-extension-version-validation');
 | 
			
		||||
 | 
			
		||||
        return !this._settings.get_boolean('disable-user-extensions') &&
 | 
			
		||||
               !(checkVersion && ExtensionUtils.isOutOfDate(extension));
 | 
			
		||||
        return !(checkVersion && ExtensionUtils.isOutOfDate(extension));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _isEnabled: function() {
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,6 @@
 | 
			
		||||
const Clutter = imports.gi.Clutter;
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Pango = imports.gi.Pango;
 | 
			
		||||
const Signals = imports.signals;
 | 
			
		||||
const St = imports.gi.St;
 | 
			
		||||
 | 
			
		||||
@@ -15,30 +14,30 @@ const ShellEntry = imports.ui.shellEntry;
 | 
			
		||||
const Tweener = imports.ui.tweener;
 | 
			
		||||
const UserWidget = imports.ui.userWidget;
 | 
			
		||||
 | 
			
		||||
var DEFAULT_BUTTON_WELL_ICON_SIZE = 16;
 | 
			
		||||
var DEFAULT_BUTTON_WELL_ANIMATION_DELAY = 1.0;
 | 
			
		||||
var DEFAULT_BUTTON_WELL_ANIMATION_TIME = 0.3;
 | 
			
		||||
const DEFAULT_BUTTON_WELL_ICON_SIZE = 24;
 | 
			
		||||
const DEFAULT_BUTTON_WELL_ANIMATION_DELAY = 1.0;
 | 
			
		||||
const DEFAULT_BUTTON_WELL_ANIMATION_TIME = 0.3;
 | 
			
		||||
 | 
			
		||||
var MESSAGE_FADE_OUT_ANIMATION_TIME = 0.5;
 | 
			
		||||
const MESSAGE_FADE_OUT_ANIMATION_TIME = 0.5;
 | 
			
		||||
 | 
			
		||||
var AuthPromptMode = {
 | 
			
		||||
const AuthPromptMode = {
 | 
			
		||||
    UNLOCK_ONLY: 0,
 | 
			
		||||
    UNLOCK_OR_LOG_IN: 1
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
var AuthPromptStatus = {
 | 
			
		||||
const AuthPromptStatus = {
 | 
			
		||||
    NOT_VERIFYING: 0,
 | 
			
		||||
    VERIFYING: 1,
 | 
			
		||||
    VERIFICATION_FAILED: 2,
 | 
			
		||||
    VERIFICATION_SUCCEEDED: 3
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
var BeginRequestType = {
 | 
			
		||||
const BeginRequestType = {
 | 
			
		||||
    PROVIDE_USERNAME: 0,
 | 
			
		||||
    DONT_PROVIDE_USERNAME: 1
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
var AuthPrompt = new Lang.Class({
 | 
			
		||||
const AuthPrompt = new Lang.Class({
 | 
			
		||||
    Name: 'AuthPrompt',
 | 
			
		||||
 | 
			
		||||
    _init: function(gdmClient, mode) {
 | 
			
		||||
@@ -114,7 +113,6 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
        this._message = new St.Label({ opacity: 0,
 | 
			
		||||
                                       styleClass: 'login-dialog-message' });
 | 
			
		||||
        this._message.clutter_text.line_wrap = true;
 | 
			
		||||
        this._message.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 | 
			
		||||
        this.actor.add(this._message, { x_fill: false, x_align: St.Align.START, y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        this._buttonBox = new St.BoxLayout({ style_class: 'login-dialog-button-box',
 | 
			
		||||
@@ -142,7 +140,7 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _initButtons: function() {
 | 
			
		||||
        this.cancelButton = new St.Button({ style_class: 'modal-dialog-button button',
 | 
			
		||||
        this.cancelButton = new St.Button({ style_class: 'modal-dialog-button',
 | 
			
		||||
                                            button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
 | 
			
		||||
                                            reactive: true,
 | 
			
		||||
                                            can_focus: true,
 | 
			
		||||
@@ -164,7 +162,7 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
                              y_fill: false,
 | 
			
		||||
                              x_align: St.Align.END,
 | 
			
		||||
                              y_align: St.Align.MIDDLE });
 | 
			
		||||
        this.nextButton = new St.Button({ style_class: 'modal-dialog-button button',
 | 
			
		||||
        this.nextButton = new St.Button({ style_class: 'modal-dialog-button',
 | 
			
		||||
                                          button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
 | 
			
		||||
                                          reactive: true,
 | 
			
		||||
                                          can_focus: true,
 | 
			
		||||
@@ -188,24 +186,25 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
                                             if (!this._userVerifier.hasPendingMessages)
 | 
			
		||||
                                                 this._fadeOutMessage();
 | 
			
		||||
 | 
			
		||||
                                             this._updateNextButtonSensitivity(this._entry.text.length > 0 || this.verificationStatus == AuthPromptStatus.VERIFYING);
 | 
			
		||||
                                             this._updateNextButtonSensitivity(this._entry.text.length > 0);
 | 
			
		||||
                                         }));
 | 
			
		||||
        this._entry.clutter_text.connect('activate', Lang.bind(this, function() {
 | 
			
		||||
            if (this.nextButton.reactive)
 | 
			
		||||
                this.emit('next');
 | 
			
		||||
            this.emit('next');
 | 
			
		||||
        }));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onAskQuestion: function(verifier, serviceName, question, passwordChar) {
 | 
			
		||||
        if (this._preemptiveAnswer) {
 | 
			
		||||
            if (this._queryingService)
 | 
			
		||||
                this._userVerifier.answerQuery(this._queryingService, this._preemptiveAnswer);
 | 
			
		||||
            this._preemptiveAnswer = null;
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (this._queryingService)
 | 
			
		||||
            this.clear();
 | 
			
		||||
 | 
			
		||||
        this._queryingService = serviceName;
 | 
			
		||||
        if (this._preemptiveAnswer) {
 | 
			
		||||
            this._userVerifier.answerQuery(this._queryingService, this._preemptiveAnswer);
 | 
			
		||||
            this._preemptiveAnswer = null;
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        this.setPasswordChar(passwordChar);
 | 
			
		||||
        this.setQuestion(question);
 | 
			
		||||
 | 
			
		||||
@@ -261,9 +260,7 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onVerificationComplete: function() {
 | 
			
		||||
        this.setActorInDefaultButtonWell(null);
 | 
			
		||||
        this.verificationStatus = AuthPromptStatus.VERIFICATION_SUCCEEDED;
 | 
			
		||||
        this.cancelButton.reactive = false;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onReset: function() {
 | 
			
		||||
@@ -285,12 +282,6 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
        if (oldActor)
 | 
			
		||||
            Tweener.removeTweens(oldActor);
 | 
			
		||||
 | 
			
		||||
        let wasSpinner;
 | 
			
		||||
        if (oldActor == this._spinner.actor)
 | 
			
		||||
            wasSpinner = true;
 | 
			
		||||
        else
 | 
			
		||||
            wasSpinner = false;
 | 
			
		||||
 | 
			
		||||
        let isSpinner;
 | 
			
		||||
        if (actor == this._spinner.actor)
 | 
			
		||||
            isSpinner = true;
 | 
			
		||||
@@ -300,11 +291,6 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
        if (this._defaultButtonWellActor != actor && oldActor) {
 | 
			
		||||
            if (!animate) {
 | 
			
		||||
                oldActor.opacity = 0;
 | 
			
		||||
 | 
			
		||||
                if (wasSpinner) {
 | 
			
		||||
                    if (this._spinner)
 | 
			
		||||
                        this._spinner.stop();
 | 
			
		||||
                }
 | 
			
		||||
            } else {
 | 
			
		||||
                Tweener.addTween(oldActor,
 | 
			
		||||
                                 { opacity: 0,
 | 
			
		||||
@@ -313,7 +299,7 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
                                   transition: 'linear',
 | 
			
		||||
                                   onCompleteScope: this,
 | 
			
		||||
                                   onComplete: function() {
 | 
			
		||||
                                      if (wasSpinner) {
 | 
			
		||||
                                      if (isSpinner) {
 | 
			
		||||
                                          if (this._spinner)
 | 
			
		||||
                                              this._spinner.stop();
 | 
			
		||||
                                      }
 | 
			
		||||
@@ -416,7 +402,7 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    updateSensitivity: function(sensitive) {
 | 
			
		||||
        this._updateNextButtonSensitivity(sensitive && (this._entry.text.length > 0 || this.verificationStatus == AuthPromptStatus.VERIFYING));
 | 
			
		||||
        this._updateNextButtonSensitivity(sensitive);
 | 
			
		||||
        this._entry.reactive = sensitive;
 | 
			
		||||
        this._entry.clutter_text.editable = sensitive;
 | 
			
		||||
    },
 | 
			
		||||
@@ -446,10 +432,8 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
    reset: function() {
 | 
			
		||||
        let oldStatus = this.verificationStatus;
 | 
			
		||||
        this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
 | 
			
		||||
        this.cancelButton.reactive = true;
 | 
			
		||||
        this.nextButton.label = _("Next");
 | 
			
		||||
 | 
			
		||||
        if (this._userVerifier)
 | 
			
		||||
        if (oldStatus == AuthPromptStatus.VERIFYING)
 | 
			
		||||
            this._userVerifier.cancel();
 | 
			
		||||
 | 
			
		||||
        this._queryingService = null;
 | 
			
		||||
@@ -504,7 +488,6 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    finish: function(onComplete) {
 | 
			
		||||
        if (!this._userVerifier.hasPendingMessages) {
 | 
			
		||||
            this._userVerifier.clear();
 | 
			
		||||
            onComplete();
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
@@ -512,15 +495,11 @@ var AuthPrompt = new Lang.Class({
 | 
			
		||||
        let signalId = this._userVerifier.connect('no-more-messages',
 | 
			
		||||
                                                  Lang.bind(this, function() {
 | 
			
		||||
                                                      this._userVerifier.disconnect(signalId);
 | 
			
		||||
                                                      this._userVerifier.clear();
 | 
			
		||||
                                                      onComplete();
 | 
			
		||||
                                                  }));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    cancel: function() {
 | 
			
		||||
        if (this.verificationStatus == AuthPromptStatus.VERIFICATION_SUCCEEDED) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        this.reset();
 | 
			
		||||
        this.emit('cancelled');
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -16,38 +16,10 @@
 | 
			
		||||
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * In order for transformation animations to look good, they need to be
 | 
			
		||||
 * incremental and have some order to them (e.g., fade out hidden items,
 | 
			
		||||
 * then shrink to close the void left over). Chaining animations in this way can
 | 
			
		||||
 * be error-prone and wordy using just Tweener callbacks.
 | 
			
		||||
 *
 | 
			
		||||
 * The classes in this file help with this:
 | 
			
		||||
 *
 | 
			
		||||
 * - Task.  encapsulates schedulable work to be run in a specific scope.
 | 
			
		||||
 *
 | 
			
		||||
 * - ConsecutiveBatch.  runs a series of tasks in order and completes
 | 
			
		||||
 *                      when the last in the series finishes.
 | 
			
		||||
 *
 | 
			
		||||
 * - ConcurrentBatch.  runs a set of tasks at the same time and completes
 | 
			
		||||
 *                     when the last to finish completes.
 | 
			
		||||
 *
 | 
			
		||||
 * - Hold.  prevents a batch from completing the pending task until
 | 
			
		||||
 *          the hold is released.
 | 
			
		||||
 *
 | 
			
		||||
 * The tasks associated with a batch are specified in a list at batch
 | 
			
		||||
 * construction time as either task objects or plain functions.
 | 
			
		||||
 * Batches are task objects, themselves, so they can be nested.
 | 
			
		||||
 *
 | 
			
		||||
 * These classes aren't specific to GDM, but were found to be unintuitive and so
 | 
			
		||||
 * are not used elsewhere. These APIs may ultimately get dropped entirely and
 | 
			
		||||
 * replaced by something else.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Signals = imports.signals;
 | 
			
		||||
 | 
			
		||||
var Task = new Lang.Class({
 | 
			
		||||
const Task = new Lang.Class({
 | 
			
		||||
    Name: 'Task',
 | 
			
		||||
 | 
			
		||||
    _init: function(scope, handler) {
 | 
			
		||||
@@ -68,7 +40,7 @@ var Task = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(Task.prototype);
 | 
			
		||||
 | 
			
		||||
var Hold = new Lang.Class({
 | 
			
		||||
const Hold = new Lang.Class({
 | 
			
		||||
    Name: 'Hold',
 | 
			
		||||
    Extends: Task,
 | 
			
		||||
 | 
			
		||||
@@ -110,7 +82,7 @@ var Hold = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(Hold.prototype);
 | 
			
		||||
 | 
			
		||||
var Batch = new Lang.Class({
 | 
			
		||||
const Batch = new Lang.Class({
 | 
			
		||||
    Name: 'Batch',
 | 
			
		||||
    Extends: Task,
 | 
			
		||||
 | 
			
		||||
@@ -185,7 +157,7 @@ var Batch = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(Batch.prototype);
 | 
			
		||||
 | 
			
		||||
var ConcurrentBatch = new Lang.Class({
 | 
			
		||||
const ConcurrentBatch = new Lang.Class({
 | 
			
		||||
    Name: 'ConcurrentBatch',
 | 
			
		||||
    Extends: Batch,
 | 
			
		||||
 | 
			
		||||
@@ -204,7 +176,7 @@ var ConcurrentBatch = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(ConcurrentBatch.prototype);
 | 
			
		||||
 | 
			
		||||
var ConsecutiveBatch = new Lang.Class({
 | 
			
		||||
const ConsecutiveBatch = new Lang.Class({
 | 
			
		||||
    Name: 'ConsecutiveBatch',
 | 
			
		||||
    Extends: Batch,
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -23,12 +23,6 @@ function FprintManager() {
 | 
			
		||||
                                   g_object_path: '/net/reactivated/Fprint/Manager',
 | 
			
		||||
                                   g_flags: (Gio.DBusProxyFlags.DO_NOT_LOAD_PROPERTIES) });
 | 
			
		||||
 | 
			
		||||
    try {
 | 
			
		||||
        self.init(null);
 | 
			
		||||
    } catch(e) {
 | 
			
		||||
        log('Failed to connect to Fprint service: ' + e.message);
 | 
			
		||||
        return null;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    self.init(null);
 | 
			
		||||
    return self;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -22,12 +22,10 @@ const Clutter = imports.gi.Clutter;
 | 
			
		||||
const Gdm = imports.gi.Gdm;
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const GLib = imports.gi.GLib;
 | 
			
		||||
const GObject = imports.gi.GObject;
 | 
			
		||||
const Gtk = imports.gi.Gtk;
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Mainloop = imports.mainloop;
 | 
			
		||||
const Meta = imports.gi.Meta;
 | 
			
		||||
const Pango = imports.gi.Pango;
 | 
			
		||||
const Shell = imports.gi.Shell;
 | 
			
		||||
const Signals = imports.signals;
 | 
			
		||||
const St = imports.gi.St;
 | 
			
		||||
@@ -49,9 +47,8 @@ const _FADE_ANIMATION_TIME = 0.25;
 | 
			
		||||
const _SCROLL_ANIMATION_TIME = 0.5;
 | 
			
		||||
const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0;
 | 
			
		||||
const _LOGO_ICON_HEIGHT = 48;
 | 
			
		||||
const _MAX_BOTTOM_MENU_ITEMS = 5;
 | 
			
		||||
 | 
			
		||||
var UserListItem = new Lang.Class({
 | 
			
		||||
const UserListItem = new Lang.Class({
 | 
			
		||||
    Name: 'UserListItem',
 | 
			
		||||
 | 
			
		||||
    _init: function(user) {
 | 
			
		||||
@@ -70,22 +67,9 @@ var UserListItem = new Lang.Class({
 | 
			
		||||
        this.actor.connect('destroy',
 | 
			
		||||
                           Lang.bind(this, this._onDestroy));
 | 
			
		||||
 | 
			
		||||
        this.actor.connect('key-focus-in', () => {
 | 
			
		||||
            this._setSelected(true);
 | 
			
		||||
        });
 | 
			
		||||
        this.actor.connect('key-focus-out', () => {
 | 
			
		||||
            this._setSelected(false);
 | 
			
		||||
        });
 | 
			
		||||
        this.actor.connect('notify::hover', () => {
 | 
			
		||||
            this._setSelected(this.actor.hover);
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        this._userWidget = new UserWidget.UserWidget(this.user);
 | 
			
		||||
        layout.add(this._userWidget.actor);
 | 
			
		||||
 | 
			
		||||
        this._userWidget.actor.bind_property('label-actor', this.actor, 'label-actor',
 | 
			
		||||
                                             GObject.BindingFlags.SYNC_CREATE);
 | 
			
		||||
 | 
			
		||||
        this._timedLoginIndicator = new St.Bin({ style_class: 'login-dialog-timed-login-indicator',
 | 
			
		||||
                                                 scale_x: 0 });
 | 
			
		||||
        layout.add(this._timedLoginIndicator);
 | 
			
		||||
@@ -106,22 +90,13 @@ var UserListItem = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onDestroy: function() {
 | 
			
		||||
        this.user.disconnect(this._userChangedId);
 | 
			
		||||
        this._user.disconnect(this._userChangedId);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onClicked: function() {
 | 
			
		||||
        this.emit('activate');
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _setSelected: function(selected) {
 | 
			
		||||
        if (selected) {
 | 
			
		||||
            this.actor.add_style_pseudo_class('selected');
 | 
			
		||||
            this.actor.grab_key_focus();
 | 
			
		||||
        } else {
 | 
			
		||||
            this.actor.remove_style_pseudo_class('selected');
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    showTimedLoginIndicator: function(time) {
 | 
			
		||||
        let hold = new Batch.Hold();
 | 
			
		||||
 | 
			
		||||
@@ -145,7 +120,7 @@ var UserListItem = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(UserListItem.prototype);
 | 
			
		||||
 | 
			
		||||
var UserList = new Lang.Class({
 | 
			
		||||
const UserList = new Lang.Class({
 | 
			
		||||
    Name: 'UserList',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -231,10 +206,6 @@ var UserList = new Lang.Class({
 | 
			
		||||
        return item;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    containsUser: function(user) {
 | 
			
		||||
        return this._items[user.get_user_name()] != null;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    addUser: function(user) {
 | 
			
		||||
        if (!user.is_loaded)
 | 
			
		||||
            return;
 | 
			
		||||
@@ -288,15 +259,11 @@ var UserList = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        item.actor.destroy();
 | 
			
		||||
        delete this._items[userName];
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    numItems: function() {
 | 
			
		||||
        return Object.keys(this._items).length;
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(UserList.prototype);
 | 
			
		||||
 | 
			
		||||
var SessionMenuButton = new Lang.Class({
 | 
			
		||||
const SessionMenuButton = new Lang.Class({
 | 
			
		||||
    Name: 'SessionMenuButton',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -311,16 +278,7 @@ var SessionMenuButton = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        this.actor = new St.Bin({ child: this._button });
 | 
			
		||||
 | 
			
		||||
        let side = St.Side.TOP;
 | 
			
		||||
        let align = 0;
 | 
			
		||||
        if (Gdm.get_session_ids().length > _MAX_BOTTOM_MENU_ITEMS) {
 | 
			
		||||
            if (this.actor.text_direction == Clutter.TextDirection.RTL)
 | 
			
		||||
                side = St.Side.RIGHT;
 | 
			
		||||
            else
 | 
			
		||||
                side = St.Side.LEFT;
 | 
			
		||||
            align = 0.5;
 | 
			
		||||
        }
 | 
			
		||||
        this._menu = new PopupMenu.PopupMenu(this._button, align, side);
 | 
			
		||||
        this._menu = new PopupMenu.PopupMenu(this._button, 0, St.Side.TOP);
 | 
			
		||||
        Main.uiGroup.add_actor(this._menu.actor);
 | 
			
		||||
        this._menu.actor.hide();
 | 
			
		||||
 | 
			
		||||
@@ -402,21 +360,32 @@ var SessionMenuButton = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(SessionMenuButton.prototype);
 | 
			
		||||
 | 
			
		||||
var LoginDialog = new Lang.Class({
 | 
			
		||||
const LoginDialog = new Lang.Class({
 | 
			
		||||
    Name: 'LoginDialog',
 | 
			
		||||
 | 
			
		||||
    _init: function(parentActor) {
 | 
			
		||||
        this.actor = new Shell.GenericContainer({ style_class: 'login-dialog',
 | 
			
		||||
                                                  visible: false });
 | 
			
		||||
        this.actor.get_accessible().set_role(Atk.Role.WINDOW);
 | 
			
		||||
        this.actor = new St.Widget({ accessible_role: Atk.Role.WINDOW,
 | 
			
		||||
                                     layout_manager: new Clutter.BinLayout(),
 | 
			
		||||
                                     style_class: 'login-dialog',
 | 
			
		||||
                                     visible: false });
 | 
			
		||||
 | 
			
		||||
        this.actor.add_constraint(new Layout.MonitorConstraint({ primary: true }));
 | 
			
		||||
        this.actor.connect('allocate', Lang.bind(this, this._onAllocate));
 | 
			
		||||
        this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
 | 
			
		||||
        parentActor.add_child(this.actor);
 | 
			
		||||
 | 
			
		||||
        this._userManager = AccountsService.UserManager.get_default()
 | 
			
		||||
        this._gdmClient = new Gdm.Client();
 | 
			
		||||
        let gdmClient = new Gdm.Client();
 | 
			
		||||
 | 
			
		||||
        if (GLib.getenv('GDM_GREETER_TEST') != '1') {
 | 
			
		||||
            this._greeter = gdmClient.get_greeter_sync(null);
 | 
			
		||||
 | 
			
		||||
            this._defaultSessionChangedId = this._greeter.connect('default-session-name-changed',
 | 
			
		||||
                                                                  Lang.bind(this, this._onDefaultSessionChanged));
 | 
			
		||||
            this._sessionOpenedId = this._greeter.connect('session-opened',
 | 
			
		||||
                                                          Lang.bind(this, this._onSessionOpened));
 | 
			
		||||
            this._timedLoginRequestedId = this._greeter.connect('timed-login-requested',
 | 
			
		||||
                                                                Lang.bind(this, this._onTimedLoginRequested));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._settings = new Gio.Settings({ schema_id: GdmUtil.LOGIN_SCREEN_SCHEMA });
 | 
			
		||||
 | 
			
		||||
@@ -436,17 +405,24 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
        this._userSelectionBox = new St.BoxLayout({ style_class: 'login-dialog-user-selection-box',
 | 
			
		||||
                                                    x_align: Clutter.ActorAlign.CENTER,
 | 
			
		||||
                                                    y_align: Clutter.ActorAlign.CENTER,
 | 
			
		||||
                                                    x_expand: true,
 | 
			
		||||
                                                    y_expand: true,
 | 
			
		||||
                                                    vertical: true,
 | 
			
		||||
                                                    visible: false });
 | 
			
		||||
        this.actor.add_child(this._userSelectionBox);
 | 
			
		||||
 | 
			
		||||
        this._bannerLabel = new St.Label({ style_class: 'login-dialog-banner',
 | 
			
		||||
                                           text: '' });
 | 
			
		||||
        this._userSelectionBox.add(this._bannerLabel);
 | 
			
		||||
        this._updateBanner();
 | 
			
		||||
 | 
			
		||||
        this._userList = new UserList();
 | 
			
		||||
        this._userSelectionBox.add(this._userList.actor,
 | 
			
		||||
                                   { expand: true,
 | 
			
		||||
                                     x_fill: true,
 | 
			
		||||
                                     y_fill: true });
 | 
			
		||||
 | 
			
		||||
        this._authPrompt = new AuthPrompt.AuthPrompt(this._gdmClient, AuthPrompt.AuthPromptMode.UNLOCK_OR_LOG_IN);
 | 
			
		||||
        this._authPrompt = new AuthPrompt.AuthPrompt(gdmClient, AuthPrompt.AuthPromptMode.UNLOCK_OR_LOG_IN);
 | 
			
		||||
        this._authPrompt.connect('prompted', Lang.bind(this, this._onPrompted));
 | 
			
		||||
        this._authPrompt.connect('reset', Lang.bind(this, this._onReset));
 | 
			
		||||
        this._authPrompt.hide();
 | 
			
		||||
@@ -474,25 +450,11 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
                                     x_align: St.Align.START,
 | 
			
		||||
                                     x_fill: true });
 | 
			
		||||
 | 
			
		||||
        this._bannerView = new St.ScrollView({ style_class: 'login-dialog-banner-view',
 | 
			
		||||
                                               opacity: 0,
 | 
			
		||||
                                               vscrollbar_policy: Gtk.PolicyType.AUTOMATIC,
 | 
			
		||||
                                               hscrollbar_policy: Gtk.PolicyType.NEVER });
 | 
			
		||||
        this.actor.add_child(this._bannerView);
 | 
			
		||||
 | 
			
		||||
        let bannerBox = new St.BoxLayout({ vertical: true });
 | 
			
		||||
 | 
			
		||||
        this._bannerView.add_actor(bannerBox);
 | 
			
		||||
        this._bannerLabel = new St.Label({ style_class: 'login-dialog-banner',
 | 
			
		||||
                                           text: '' });
 | 
			
		||||
        this._bannerLabel.clutter_text.line_wrap = true;
 | 
			
		||||
        this._bannerLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 | 
			
		||||
        bannerBox.add_child(this._bannerLabel);
 | 
			
		||||
        this._updateBanner();
 | 
			
		||||
 | 
			
		||||
        this._logoBin = new St.Widget({ style_class: 'login-dialog-logo-bin',
 | 
			
		||||
                                        x_align: Clutter.ActorAlign.CENTER,
 | 
			
		||||
                                        y_align: Clutter.ActorAlign.END });
 | 
			
		||||
                                        y_align: Clutter.ActorAlign.END,
 | 
			
		||||
                                        x_expand: true,
 | 
			
		||||
                                        y_expand: true });
 | 
			
		||||
        this.actor.add_child(this._logoBin);
 | 
			
		||||
        this._updateLogo();
 | 
			
		||||
 | 
			
		||||
@@ -514,10 +476,6 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
        this._disableUserList = undefined;
 | 
			
		||||
        this._userListLoaded = false;
 | 
			
		||||
 | 
			
		||||
        this._realmManager = new Realmd.Manager();
 | 
			
		||||
        this._realmSignalId = this._realmManager.connect('login-format-changed',
 | 
			
		||||
                                                         Lang.bind(this, this._showRealmLoginHint));
 | 
			
		||||
 | 
			
		||||
        LoginManager.getLoginManager().getCurrentSessionProxy(Lang.bind(this, this._gotGreeterSessionProxy));
 | 
			
		||||
 | 
			
		||||
        // If the user list is enabled, it should take key focus; make sure the
 | 
			
		||||
@@ -527,190 +485,6 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
                                                             Lang.bind(this, this._updateDisableUserList));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _getBannerAllocation: function (dialogBox) {
 | 
			
		||||
        let actorBox = new Clutter.ActorBox();
 | 
			
		||||
 | 
			
		||||
        let [minWidth, minHeight, natWidth, natHeight] = this._bannerView.get_preferred_size();
 | 
			
		||||
        let centerX = dialogBox.x1 + (dialogBox.x2 - dialogBox.x1) / 2;
 | 
			
		||||
 | 
			
		||||
        actorBox.x1 = Math.floor(centerX - natWidth / 2);
 | 
			
		||||
        actorBox.y1 = dialogBox.y1 + Main.layoutManager.panelBox.height;
 | 
			
		||||
        actorBox.x2 = actorBox.x1 + natWidth;
 | 
			
		||||
        actorBox.y2 = actorBox.y1 + natHeight;
 | 
			
		||||
 | 
			
		||||
        return actorBox;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _getLogoBinAllocation: function (dialogBox) {
 | 
			
		||||
        let actorBox = new Clutter.ActorBox();
 | 
			
		||||
 | 
			
		||||
        let [minWidth, minHeight, natWidth, natHeight] = this._logoBin.get_preferred_size();
 | 
			
		||||
        let centerX = dialogBox.x1 + (dialogBox.x2 - dialogBox.x1) / 2;
 | 
			
		||||
 | 
			
		||||
        actorBox.x1 = Math.floor(centerX - natWidth / 2);
 | 
			
		||||
        actorBox.y1 = dialogBox.y2 - natHeight;
 | 
			
		||||
        actorBox.x2 = actorBox.x1 + natWidth;
 | 
			
		||||
        actorBox.y2 = actorBox.y1 + natHeight;
 | 
			
		||||
 | 
			
		||||
        return actorBox;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _getCenterActorAllocation: function (dialogBox, actor) {
 | 
			
		||||
        let actorBox = new Clutter.ActorBox();
 | 
			
		||||
 | 
			
		||||
        let [minWidth, minHeight, natWidth, natHeight] = actor.get_preferred_size();
 | 
			
		||||
        let centerX = dialogBox.x1 + (dialogBox.x2 - dialogBox.x1) / 2;
 | 
			
		||||
        let centerY = dialogBox.y1 + (dialogBox.y2 - dialogBox.y1) / 2;
 | 
			
		||||
 | 
			
		||||
        natWidth = Math.min(natWidth, dialogBox.x2 - dialogBox.x1);
 | 
			
		||||
        natHeight = Math.min(natHeight, dialogBox.y2 - dialogBox.y1);
 | 
			
		||||
 | 
			
		||||
        actorBox.x1 = Math.floor(centerX - natWidth / 2);
 | 
			
		||||
        actorBox.y1 = Math.floor(centerY - natHeight / 2);
 | 
			
		||||
        actorBox.x2 = actorBox.x1 + natWidth;
 | 
			
		||||
        actorBox.y2 = actorBox.y1 + natHeight;
 | 
			
		||||
 | 
			
		||||
        return actorBox;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onAllocate: function (actor, dialogBox, flags) {
 | 
			
		||||
        let dialogWidth = dialogBox.x2 - dialogBox.x1;
 | 
			
		||||
        let dialogHeight = dialogBox.y2 - dialogBox.y1;
 | 
			
		||||
 | 
			
		||||
        // First find out what space the children require
 | 
			
		||||
        let bannerAllocation = null;
 | 
			
		||||
        let bannerHeight = 0;
 | 
			
		||||
        let bannerWidth = 0;
 | 
			
		||||
        if (this._bannerView.visible) {
 | 
			
		||||
            bannerAllocation = this._getBannerAllocation(dialogBox, this._bannerView);
 | 
			
		||||
            bannerHeight = bannerAllocation.y2 - bannerAllocation.y1;
 | 
			
		||||
            bannerWidth = bannerAllocation.x2 - bannerAllocation.x1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let authPromptAllocation = null;
 | 
			
		||||
        let authPromptHeight = 0;
 | 
			
		||||
        let authPromptWidth = 0;
 | 
			
		||||
        if (this._authPrompt.actor.visible) {
 | 
			
		||||
            authPromptAllocation = this._getCenterActorAllocation(dialogBox, this._authPrompt.actor);
 | 
			
		||||
            authPromptHeight = authPromptAllocation.y2 - authPromptAllocation.y1;
 | 
			
		||||
            authPromptWidth = authPromptAllocation.x2 - authPromptAllocation.x1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let userSelectionAllocation = null;
 | 
			
		||||
        let userSelectionHeight = 0;
 | 
			
		||||
        if (this._userSelectionBox.visible) {
 | 
			
		||||
            userSelectionAllocation = this._getCenterActorAllocation(dialogBox, this._userSelectionBox);
 | 
			
		||||
            userSelectionHeight = userSelectionAllocation.y2 - userSelectionAllocation.y1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let logoAllocation = null;
 | 
			
		||||
        let logoHeight = 0;
 | 
			
		||||
        if (this._logoBin.visible) {
 | 
			
		||||
            logoAllocation = this._getLogoBinAllocation(dialogBox);
 | 
			
		||||
            logoHeight = logoAllocation.y2 - logoAllocation.y1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Then figure out if we're overly constrained and need to
 | 
			
		||||
        // try a different layout, or if we have what extra space we
 | 
			
		||||
        // can hand out
 | 
			
		||||
        if (bannerAllocation) {
 | 
			
		||||
            let bannerSpace;
 | 
			
		||||
 | 
			
		||||
            if (authPromptAllocation)
 | 
			
		||||
                bannerSpace = authPromptAllocation.y1 - bannerAllocation.y1;
 | 
			
		||||
            else
 | 
			
		||||
                bannerSpace = 0;
 | 
			
		||||
 | 
			
		||||
            let leftOverYSpace = bannerSpace - bannerHeight;
 | 
			
		||||
 | 
			
		||||
            if (leftOverYSpace > 0) {
 | 
			
		||||
                 // First figure out how much left over space is up top
 | 
			
		||||
                 let leftOverTopSpace = leftOverYSpace / 2;
 | 
			
		||||
 | 
			
		||||
                 // Then, shift the banner into the middle of that extra space
 | 
			
		||||
                 let yShift = Math.floor(leftOverTopSpace / 2);
 | 
			
		||||
 | 
			
		||||
                 bannerAllocation.y1 += yShift;
 | 
			
		||||
                 bannerAllocation.y2 += yShift;
 | 
			
		||||
            } else {
 | 
			
		||||
                 // Then figure out how much space there would be if we switched to a
 | 
			
		||||
                 // wide layout with banner on one side and authprompt on the other.
 | 
			
		||||
                 let leftOverXSpace = dialogWidth - authPromptWidth;
 | 
			
		||||
 | 
			
		||||
                 // In a wide view, half of the available space goes to the banner,
 | 
			
		||||
                 // and the other half goes to the margins.
 | 
			
		||||
                 let wideBannerWidth = leftOverXSpace / 2;
 | 
			
		||||
                 let wideSpacing  = leftOverXSpace - wideBannerWidth;
 | 
			
		||||
 | 
			
		||||
                 // If we do go with a wide layout, we need there to be at least enough
 | 
			
		||||
                 // space for the banner and the auth prompt to be the same width,
 | 
			
		||||
                 // so it doesn't look unbalanced.
 | 
			
		||||
                 if (authPromptWidth > 0 && wideBannerWidth > authPromptWidth) {
 | 
			
		||||
                     let centerX = dialogBox.x1 + dialogWidth / 2;
 | 
			
		||||
                     let centerY = dialogBox.y1 + dialogHeight / 2;
 | 
			
		||||
 | 
			
		||||
                     // A small portion of the spacing goes down the center of the
 | 
			
		||||
                     // screen to help delimit the two columns of the wide view
 | 
			
		||||
                     let centerGap = wideSpacing / 8;
 | 
			
		||||
 | 
			
		||||
                     // place the banner along the left edge of the center margin
 | 
			
		||||
                     bannerAllocation.x2 = Math.floor(centerX - centerGap / 2);
 | 
			
		||||
                     bannerAllocation.x1 = Math.floor(bannerAllocation.x2 - wideBannerWidth);
 | 
			
		||||
 | 
			
		||||
                     // figure out how tall it would like to be and try to accomodate
 | 
			
		||||
                     // but don't let it get too close to the logo
 | 
			
		||||
                     let [wideMinHeight, wideBannerHeight] = this._bannerView.get_preferred_height(wideBannerWidth);
 | 
			
		||||
 | 
			
		||||
                     let maxWideHeight = dialogHeight - 3 * logoHeight;
 | 
			
		||||
                     wideBannerHeight = Math.min(maxWideHeight, wideBannerHeight);
 | 
			
		||||
                     bannerAllocation.y1 = Math.floor(centerY - wideBannerHeight / 2);
 | 
			
		||||
                     bannerAllocation.y2 = bannerAllocation.y1 + wideBannerHeight;
 | 
			
		||||
 | 
			
		||||
                     // place the auth prompt along the right edge of the center margin
 | 
			
		||||
                     authPromptAllocation.x1 = Math.floor(centerX + centerGap / 2);
 | 
			
		||||
                     authPromptAllocation.x2 = authPromptAllocation.x1 + authPromptWidth;
 | 
			
		||||
                 } else {
 | 
			
		||||
                     // If we aren't going to do a wide view, then we need to limit
 | 
			
		||||
                     // the height of the banner so it will present scrollbars
 | 
			
		||||
 | 
			
		||||
                     // First figure out how much space there is without the banner
 | 
			
		||||
                     leftOverYSpace += bannerHeight;
 | 
			
		||||
 | 
			
		||||
                     // Then figure out how much of that space is up top
 | 
			
		||||
                     let availableTopSpace = Math.floor(leftOverYSpace / 2);
 | 
			
		||||
 | 
			
		||||
                     // Then give all of that space to the banner
 | 
			
		||||
                     bannerAllocation.y2 = bannerAllocation.y1 + availableTopSpace;
 | 
			
		||||
                 }
 | 
			
		||||
            }
 | 
			
		||||
        } else if (userSelectionAllocation) {
 | 
			
		||||
            // Grow the user list to fill the space
 | 
			
		||||
            let leftOverYSpace = dialogHeight - userSelectionHeight - logoHeight;
 | 
			
		||||
 | 
			
		||||
            if (leftOverYSpace > 0) {
 | 
			
		||||
                let topExpansion = Math.floor(leftOverYSpace / 2);
 | 
			
		||||
                let bottomExpansion = topExpansion;
 | 
			
		||||
 | 
			
		||||
                userSelectionAllocation.y1 -= topExpansion;
 | 
			
		||||
                userSelectionAllocation.y2 += bottomExpansion;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Finally hand out the allocations
 | 
			
		||||
        if (bannerAllocation) {
 | 
			
		||||
            this._bannerView.allocate(bannerAllocation, flags);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (authPromptAllocation)
 | 
			
		||||
            this._authPrompt.actor.allocate(authPromptAllocation, flags);
 | 
			
		||||
 | 
			
		||||
        if (userSelectionAllocation)
 | 
			
		||||
            this._userSelectionBox.allocate(userSelectionAllocation, flags);
 | 
			
		||||
 | 
			
		||||
        if (logoAllocation)
 | 
			
		||||
            this._logoBin.allocate(logoAllocation, flags);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _ensureUserListLoaded: function() {
 | 
			
		||||
        if (!this._userManager.is_loaded) {
 | 
			
		||||
            this._userManagerLoadedId = this._userManager.connect('notify::is-loaded',
 | 
			
		||||
@@ -730,10 +504,6 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
    _updateDisableUserList: function() {
 | 
			
		||||
        let disableUserList = this._settings.get_boolean(GdmUtil.DISABLE_USER_LIST_KEY);
 | 
			
		||||
 | 
			
		||||
        // Disable user list when there are no users.
 | 
			
		||||
        if (this._userListLoaded && this._userList.numItems() == 0)
 | 
			
		||||
            disableUserList = true;
 | 
			
		||||
 | 
			
		||||
        if (disableUserList != this._disableUserList) {
 | 
			
		||||
            this._disableUserList = disableUserList;
 | 
			
		||||
 | 
			
		||||
@@ -767,20 +537,6 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _fadeInBannerView: function() {
 | 
			
		||||
        this._bannerView.show();
 | 
			
		||||
        Tweener.addTween(this._bannerView,
 | 
			
		||||
                         { opacity: 255,
 | 
			
		||||
                           time: _FADE_ANIMATION_TIME,
 | 
			
		||||
                           transition: 'easeOutQuad' });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _hideBannerView: function() {
 | 
			
		||||
        Tweener.removeTweens(this._bannerView);
 | 
			
		||||
        this._bannerView.opacity = 0;
 | 
			
		||||
        this._bannerView.hide();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _updateLogoTexture: function(cache, file) {
 | 
			
		||||
        if (this._logoFile && !this._logoFile.equal(file))
 | 
			
		||||
            return;
 | 
			
		||||
@@ -802,42 +558,18 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onPrompted: function() {
 | 
			
		||||
        if (this._shouldShowSessionMenuButton()) {
 | 
			
		||||
            this._sessionMenuButton.updateSensitivity(true);
 | 
			
		||||
        this._sessionMenuButton.updateSensitivity(true);
 | 
			
		||||
 | 
			
		||||
        if (this._shouldShowSessionMenuButton())
 | 
			
		||||
            this._authPrompt.setActorInDefaultButtonWell(this._sessionMenuButton.actor);
 | 
			
		||||
        } else {
 | 
			
		||||
            this._sessionMenuButton.updateSensitivity(false);
 | 
			
		||||
        }
 | 
			
		||||
        this._showPrompt();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _resetGreeterProxy: function() {
 | 
			
		||||
        if (GLib.getenv('GDM_GREETER_TEST') != '1') {
 | 
			
		||||
            if (this._greeter) {
 | 
			
		||||
                this._greeter.run_dispose();
 | 
			
		||||
            }
 | 
			
		||||
            this._greeter = this._gdmClient.get_greeter_sync(null);
 | 
			
		||||
 | 
			
		||||
            this._defaultSessionChangedId = this._greeter.connect('default-session-name-changed',
 | 
			
		||||
                                                                  Lang.bind(this, this._onDefaultSessionChanged));
 | 
			
		||||
            this._sessionOpenedId = this._greeter.connect('session-opened',
 | 
			
		||||
                                                          Lang.bind(this, this._onSessionOpened));
 | 
			
		||||
            this._timedLoginRequestedId = this._greeter.connect('timed-login-requested',
 | 
			
		||||
                                                                Lang.bind(this, this._onTimedLoginRequested));
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onReset: function(authPrompt, beginRequest) {
 | 
			
		||||
        this._resetGreeterProxy();
 | 
			
		||||
        this._sessionMenuButton.updateSensitivity(true);
 | 
			
		||||
 | 
			
		||||
        this._user = null;
 | 
			
		||||
 | 
			
		||||
        if (this._nextSignalId) {
 | 
			
		||||
            this._authPrompt.disconnect(this._nextSignalId);
 | 
			
		||||
            this._nextSignalId = 0;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (beginRequest == AuthPrompt.BeginRequestType.PROVIDE_USERNAME) {
 | 
			
		||||
            if (!this._disableUserList)
 | 
			
		||||
                this._showUserList();
 | 
			
		||||
@@ -872,7 +604,6 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
                         { opacity: 255,
 | 
			
		||||
                           time: _FADE_ANIMATION_TIME,
 | 
			
		||||
                           transition: 'easeOutQuad' });
 | 
			
		||||
        this._fadeInBannerView();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _showRealmLoginHint: function(realmManager, hint) {
 | 
			
		||||
@@ -892,31 +623,31 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
        this._authPrompt.setPasswordChar('');
 | 
			
		||||
        this._authPrompt.setQuestion(_("Username: "));
 | 
			
		||||
 | 
			
		||||
        this._showRealmLoginHint(this._realmManager.loginFormat);
 | 
			
		||||
        let realmManager = new Realmd.Manager();
 | 
			
		||||
        let realmSignalId = realmManager.connect('login-format-changed',
 | 
			
		||||
                                                 Lang.bind(this, this._showRealmLoginHint));
 | 
			
		||||
        this._showRealmLoginHint(realmManager.loginFormat);
 | 
			
		||||
 | 
			
		||||
        if (this._nextSignalId)
 | 
			
		||||
            this._authPrompt.disconnect(this._nextSignalId);
 | 
			
		||||
        this._nextSignalId = this._authPrompt.connect('next',
 | 
			
		||||
                                                      Lang.bind(this, function() {
 | 
			
		||||
                                                          this._authPrompt.disconnect(this._nextSignalId);
 | 
			
		||||
                                                          this._nextSignalId = 0;
 | 
			
		||||
                                                          this._authPrompt.updateSensitivity(false);
 | 
			
		||||
                                                          let answer = this._authPrompt.getAnswer();
 | 
			
		||||
                                                          this._user = this._userManager.get_user(answer);
 | 
			
		||||
                                                          this._authPrompt.clear();
 | 
			
		||||
                                                          this._authPrompt.startSpinning();
 | 
			
		||||
                                                          this._authPrompt.begin({ userName: answer });
 | 
			
		||||
                                                          this._updateCancelButton();
 | 
			
		||||
                                                      }));
 | 
			
		||||
        let nextSignalId = this._authPrompt.connect('next',
 | 
			
		||||
                                                    Lang.bind(this, function() {
 | 
			
		||||
                                                        this._authPrompt.disconnect(nextSignalId);
 | 
			
		||||
                                                        this._authPrompt.updateSensitivity(false);
 | 
			
		||||
                                                        let answer = this._authPrompt.getAnswer();
 | 
			
		||||
                                                        this._user = this._userManager.get_user(answer);
 | 
			
		||||
                                                        this._authPrompt.clear();
 | 
			
		||||
                                                        this._authPrompt.startSpinning();
 | 
			
		||||
                                                        this._authPrompt.begin({ userName: answer });
 | 
			
		||||
                                                        this._updateCancelButton();
 | 
			
		||||
 | 
			
		||||
                                                        realmManager.disconnect(realmSignalId)
 | 
			
		||||
                                                        realmManager.release();
 | 
			
		||||
                                                    }));
 | 
			
		||||
        this._updateCancelButton();
 | 
			
		||||
 | 
			
		||||
        this._sessionMenuButton.updateSensitivity(false);
 | 
			
		||||
        this._authPrompt.updateSensitivity(true);
 | 
			
		||||
        this._showPrompt();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _loginScreenSessionActivated: function() {
 | 
			
		||||
        if (this.actor.opacity == 255 && this._authPrompt.verificationStatus == AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
 | 
			
		||||
        if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.VERIFICATION_SUCCEEDED)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        Tweener.addTween(this.actor,
 | 
			
		||||
@@ -933,8 +664,7 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
                           },
 | 
			
		||||
                           onUpdateScope: this,
 | 
			
		||||
                           onComplete: function() {
 | 
			
		||||
                               if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
 | 
			
		||||
                                   this._authPrompt.reset();
 | 
			
		||||
                               this._authPrompt.reset();
 | 
			
		||||
                           },
 | 
			
		||||
                           onCompleteScope: this });
 | 
			
		||||
    },
 | 
			
		||||
@@ -963,7 +693,11 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
                           },
 | 
			
		||||
                           onUpdateScope: this,
 | 
			
		||||
                           onComplete: function() {
 | 
			
		||||
                               this._greeter.call_start_session_when_ready_sync(serviceName, true, null);
 | 
			
		||||
                               let id = Mainloop.idle_add(Lang.bind(this, function() {
 | 
			
		||||
                                   this._greeter.call_start_session_when_ready_sync(serviceName, true, null);
 | 
			
		||||
                                   return GLib.SOURCE_REMOVE;
 | 
			
		||||
                               }));
 | 
			
		||||
                               GLib.Source.set_name_by_id(id, '[gnome-shell] this._greeter.call_start_session_when_ready_sync');
 | 
			
		||||
                           },
 | 
			
		||||
                           onCompleteScope: this });
 | 
			
		||||
    },
 | 
			
		||||
@@ -1124,7 +858,6 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
    _showUserList: function() {
 | 
			
		||||
        this._ensureUserListLoaded();
 | 
			
		||||
        this._authPrompt.hide();
 | 
			
		||||
        this._hideBannerView();
 | 
			
		||||
        this._sessionMenuButton.close();
 | 
			
		||||
        this._setUserListExpanded(true);
 | 
			
		||||
        this._notListedButton.show();
 | 
			
		||||
@@ -1143,11 +876,18 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onUserListActivated: function(activatedItem) {
 | 
			
		||||
        let tasks = [function() {
 | 
			
		||||
                         return GdmUtil.cloneAndFadeOutActor(this._userSelectionBox);
 | 
			
		||||
                     },
 | 
			
		||||
                     function() {
 | 
			
		||||
                         this._setUserListExpanded(false);
 | 
			
		||||
                     }];
 | 
			
		||||
 | 
			
		||||
        this._user = activatedItem.user;
 | 
			
		||||
 | 
			
		||||
        this._updateCancelButton();
 | 
			
		||||
 | 
			
		||||
        let batch = new Batch.ConcurrentBatch(this, [GdmUtil.cloneAndFadeOutActor(this._userSelectionBox),
 | 
			
		||||
        let batch = new Batch.ConcurrentBatch(this, [new Batch.ConsecutiveBatch(this, tasks),
 | 
			
		||||
                                                     this._beginVerificationForItem(activatedItem)]);
 | 
			
		||||
        batch.run();
 | 
			
		||||
    },
 | 
			
		||||
@@ -1165,10 +905,6 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
            this._userManager.disconnect(this._userRemovedId);
 | 
			
		||||
            this._userRemovedId = 0;
 | 
			
		||||
        }
 | 
			
		||||
        if (this._userChangedId) {
 | 
			
		||||
            this._userManager.disconnect(this._userChangedId);
 | 
			
		||||
            this._userChangedId = 0;
 | 
			
		||||
        }
 | 
			
		||||
        this._textureCache.disconnect(this._updateLogoTextureId);
 | 
			
		||||
        Main.layoutManager.disconnect(this._startupCompleteId);
 | 
			
		||||
        if (this._settings) {
 | 
			
		||||
@@ -1185,12 +921,6 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
            this._greeterSessionProxy.disconnect(this._greeterSessionProxyChangedId);
 | 
			
		||||
            this._greeterSessionProxy = null;
 | 
			
		||||
        }
 | 
			
		||||
        if (this._realmManager) {
 | 
			
		||||
            this._realmManager.disconnect(this._realmSignalId);
 | 
			
		||||
            this._realmSignalId = 0;
 | 
			
		||||
            this._realmManager.release();
 | 
			
		||||
            this._realmManager = null;
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _loadUserList: function() {
 | 
			
		||||
@@ -1205,27 +935,14 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
            this._userList.addUser(users[i]);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._updateDisableUserList();
 | 
			
		||||
 | 
			
		||||
        this._userAddedId = this._userManager.connect('user-added',
 | 
			
		||||
                                                      Lang.bind(this, function(userManager, user) {
 | 
			
		||||
                                                          this._userList.addUser(user);
 | 
			
		||||
                                                          this._updateDisableUserList();
 | 
			
		||||
                                                      }));
 | 
			
		||||
 | 
			
		||||
        this._userRemovedId = this._userManager.connect('user-removed',
 | 
			
		||||
                                                        Lang.bind(this, function(userManager, user) {
 | 
			
		||||
                                                            this._userList.removeUser(user);
 | 
			
		||||
                                                            this._updateDisableUserList();
 | 
			
		||||
                                                        }));
 | 
			
		||||
 | 
			
		||||
        this._userChangedId = this._userManager.connect('user-changed',
 | 
			
		||||
                                                        Lang.bind(this, function(userManager, user) {
 | 
			
		||||
                                                            if (this._userList.containsUser(user) && user.locked)
 | 
			
		||||
                                                                this._userList.removeUser(user);
 | 
			
		||||
                                                            else if (!this._userList.containsUser(user) && !user.locked)
 | 
			
		||||
                                                                this._userList.addUser(user);
 | 
			
		||||
                                                            this._updateDisableUserList();
 | 
			
		||||
                                                        }));
 | 
			
		||||
 | 
			
		||||
        return GLib.SOURCE_REMOVE;
 | 
			
		||||
@@ -1240,7 +957,7 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
        this.actor.show();
 | 
			
		||||
        this.actor.opacity = 0;
 | 
			
		||||
 | 
			
		||||
        Main.pushModal(this.actor, { actionMode: Shell.ActionMode.LOGIN_SCREEN });
 | 
			
		||||
        Main.pushModal(this.actor, { keybindingMode: Shell.KeyBindingMode.LOGIN_SCREEN });
 | 
			
		||||
 | 
			
		||||
        Tweener.addTween(this.actor,
 | 
			
		||||
                         { opacity: 255,
 | 
			
		||||
@@ -1260,7 +977,7 @@ var LoginDialog = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    addCharacter: function(unichar) {
 | 
			
		||||
        // Don't allow type ahead at the login screen
 | 
			
		||||
        this._authPrompt.addCharacter(unichar);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    finish: function(onComplete) {
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ function OVirtCredentials() {
 | 
			
		||||
    return self;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var OVirtCredentialsManager = new Lang.Class({
 | 
			
		||||
const OVirtCredentialsManager = new Lang.Class({
 | 
			
		||||
    Name: 'OVirtCredentialsManager',
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._token = null;
 | 
			
		||||
 
 | 
			
		||||
@@ -59,7 +59,7 @@ const RealmIface = '<node> \
 | 
			
		||||
</node>';
 | 
			
		||||
const Realm = Gio.DBusProxy.makeProxyWrapper(RealmIface);
 | 
			
		||||
 | 
			
		||||
var Manager = new Lang.Class({
 | 
			
		||||
const Manager = new Lang.Class({
 | 
			
		||||
    Name: 'Manager',
 | 
			
		||||
 | 
			
		||||
    _init: function(parentActor) {
 | 
			
		||||
 
 | 
			
		||||
@@ -21,8 +21,8 @@ const PASSWORD_SERVICE_NAME = 'gdm-password';
 | 
			
		||||
const FINGERPRINT_SERVICE_NAME = 'gdm-fingerprint';
 | 
			
		||||
const SMARTCARD_SERVICE_NAME = 'gdm-smartcard';
 | 
			
		||||
const OVIRT_SERVICE_NAME = 'gdm-ovirtcred';
 | 
			
		||||
var FADE_ANIMATION_TIME = 0.16;
 | 
			
		||||
var CLONE_FADE_ANIMATION_TIME = 0.25;
 | 
			
		||||
const FADE_ANIMATION_TIME = 0.16;
 | 
			
		||||
const CLONE_FADE_ANIMATION_TIME = 0.25;
 | 
			
		||||
 | 
			
		||||
const LOGIN_SCREEN_SCHEMA = 'org.gnome.login-screen';
 | 
			
		||||
const PASSWORD_AUTHENTICATION_KEY = 'enable-password-authentication';
 | 
			
		||||
@@ -35,10 +35,10 @@ const ALLOWED_FAILURES_KEY = 'allowed-failures';
 | 
			
		||||
const LOGO_KEY = 'logo';
 | 
			
		||||
const DISABLE_USER_LIST_KEY = 'disable-user-list';
 | 
			
		||||
 | 
			
		||||
// Give user 48ms to read each character of a PAM message
 | 
			
		||||
var USER_READ_TIME = 48
 | 
			
		||||
// Give user 16ms to read each character of a PAM message
 | 
			
		||||
const USER_READ_TIME = 16
 | 
			
		||||
 | 
			
		||||
var MessageType = {
 | 
			
		||||
const MessageType = {
 | 
			
		||||
    NONE: 0,
 | 
			
		||||
    ERROR: 1,
 | 
			
		||||
    INFO: 2,
 | 
			
		||||
@@ -119,7 +119,7 @@ function cloneAndFadeOutActor(actor) {
 | 
			
		||||
    return hold;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var ShellUserVerifier = new Lang.Class({
 | 
			
		||||
const ShellUserVerifier = new Lang.Class({
 | 
			
		||||
    Name: 'ShellUserVerifier',
 | 
			
		||||
 | 
			
		||||
    _init: function(client, params) {
 | 
			
		||||
@@ -128,22 +128,18 @@ var ShellUserVerifier = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        this._client = client;
 | 
			
		||||
 | 
			
		||||
        this._defaultService = null;
 | 
			
		||||
        this._preemptingService = null;
 | 
			
		||||
 | 
			
		||||
        this._settings = new Gio.Settings({ schema_id: LOGIN_SCREEN_SCHEMA });
 | 
			
		||||
        this._settings.connect('changed',
 | 
			
		||||
                               Lang.bind(this, this._updateDefaultService));
 | 
			
		||||
        this._updateDefaultService();
 | 
			
		||||
 | 
			
		||||
        this._fprintManager = Fprint.FprintManager();
 | 
			
		||||
        this._fprintManager = new Fprint.FprintManager();
 | 
			
		||||
        this._smartcardManager = SmartcardManager.getSmartcardManager();
 | 
			
		||||
 | 
			
		||||
        // We check for smartcards right away, since an inserted smartcard
 | 
			
		||||
        // at startup should result in immediately initiating authentication.
 | 
			
		||||
        // This is different than fingerprint readers, where we only check them
 | 
			
		||||
        // This is different than fingeprint readers, where we only check them
 | 
			
		||||
        // after a user has been picked.
 | 
			
		||||
        this.smartcardDetected = false;
 | 
			
		||||
        this._checkForSmartcard();
 | 
			
		||||
 | 
			
		||||
        this._smartcardInsertedId = this._smartcardManager.connect('smartcard-inserted',
 | 
			
		||||
@@ -297,8 +293,7 @@ var ShellUserVerifier = new Lang.Class({
 | 
			
		||||
    _checkForFingerprintReader: function() {
 | 
			
		||||
        this._haveFingerprintReader = false;
 | 
			
		||||
 | 
			
		||||
        if (!this._settings.get_boolean(FINGERPRINT_AUTHENTICATION_KEY) ||
 | 
			
		||||
            this._fprintManager == null) {
 | 
			
		||||
        if (!this._settings.get_boolean(FINGERPRINT_AUTHENTICATION_KEY)) {
 | 
			
		||||
            this._updateDefaultService();
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
@@ -415,7 +410,7 @@ var ShellUserVerifier = new Lang.Class({
 | 
			
		||||
    _updateDefaultService: function() {
 | 
			
		||||
        if (this._settings.get_boolean(PASSWORD_AUTHENTICATION_KEY))
 | 
			
		||||
            this._defaultService = PASSWORD_SERVICE_NAME;
 | 
			
		||||
        else if (this._settings.get_boolean(SMARTCARD_AUTHENTICATION_KEY))
 | 
			
		||||
        else if (this.smartcardDetected)
 | 
			
		||||
            this._defaultService = SMARTCARD_SERVICE_NAME;
 | 
			
		||||
        else if (this._haveFingerprintReader)
 | 
			
		||||
            this._defaultService = FINGERPRINT_SERVICE_NAME;
 | 
			
		||||
@@ -544,8 +539,7 @@ var ShellUserVerifier = new Lang.Class({
 | 
			
		||||
                let signalId = this.connect('no-more-messages',
 | 
			
		||||
                                            Lang.bind(this, function() {
 | 
			
		||||
                                                this.disconnect(signalId);
 | 
			
		||||
                                                if (this._cancellable && !this._cancellable.is_cancelled())
 | 
			
		||||
                                                    this._retry();
 | 
			
		||||
                                                this._retry();
 | 
			
		||||
                                            }));
 | 
			
		||||
            }
 | 
			
		||||
        } else {
 | 
			
		||||
 
 | 
			
		||||
@@ -23,32 +23,26 @@
 | 
			
		||||
    <file>misc/modemManager.js</file>
 | 
			
		||||
    <file>misc/objectManager.js</file>
 | 
			
		||||
    <file>misc/params.js</file>
 | 
			
		||||
    <file>misc/permissionStore.js</file>
 | 
			
		||||
    <file>misc/smartcardManager.js</file>
 | 
			
		||||
    <file>misc/util.js</file>
 | 
			
		||||
    <file>misc/weather.js</file>
 | 
			
		||||
 | 
			
		||||
    <file>perf/core.js</file>
 | 
			
		||||
    <file>perf/hwtest.js</file>
 | 
			
		||||
 | 
			
		||||
    <file>portalHelper/main.js</file>
 | 
			
		||||
 | 
			
		||||
    <file>ui/accessDialog.js</file>
 | 
			
		||||
    <file>ui/altTab.js</file>
 | 
			
		||||
    <file>ui/animation.js</file>
 | 
			
		||||
    <file>ui/appDisplay.js</file>
 | 
			
		||||
    <file>ui/appFavorites.js</file>
 | 
			
		||||
    <file>ui/audioDeviceSelection.js</file>
 | 
			
		||||
    <file>ui/backgroundMenu.js</file>
 | 
			
		||||
    <file>ui/background.js</file>
 | 
			
		||||
    <file>ui/boxpointer.js</file>
 | 
			
		||||
    <file>ui/calendar.js</file>
 | 
			
		||||
    <file>ui/checkBox.js</file>
 | 
			
		||||
    <file>ui/closeDialog.js</file>
 | 
			
		||||
    <file>ui/ctrlAltTab.js</file>
 | 
			
		||||
    <file>ui/dash.js</file>
 | 
			
		||||
    <file>ui/dateMenu.js</file>
 | 
			
		||||
    <file>ui/dialog.js</file>
 | 
			
		||||
    <file>ui/dnd.js</file>
 | 
			
		||||
    <file>ui/edgeDragAction.js</file>
 | 
			
		||||
    <file>ui/endSessionDialog.js</file>
 | 
			
		||||
@@ -59,25 +53,19 @@
 | 
			
		||||
    <file>ui/grabHelper.js</file>
 | 
			
		||||
    <file>ui/ibusCandidatePopup.js</file>
 | 
			
		||||
    <file>ui/iconGrid.js</file>
 | 
			
		||||
    <file>ui/inhibitShortcutsDialog.js</file>
 | 
			
		||||
    <file>ui/keyboard.js</file>
 | 
			
		||||
    <file>ui/layout.js</file>
 | 
			
		||||
    <file>ui/lightbox.js</file>
 | 
			
		||||
    <file>ui/lookingGlass.js</file>
 | 
			
		||||
    <file>ui/legacyTray.js</file>
 | 
			
		||||
    <file>ui/magnifier.js</file>
 | 
			
		||||
    <file>ui/magnifierDBus.js</file>
 | 
			
		||||
    <file>ui/main.js</file>
 | 
			
		||||
    <file>ui/messageTray.js</file>
 | 
			
		||||
    <file>ui/messageList.js</file>
 | 
			
		||||
    <file>ui/modalDialog.js</file>
 | 
			
		||||
    <file>ui/mpris.js</file>
 | 
			
		||||
    <file>ui/notificationDaemon.js</file>
 | 
			
		||||
    <file>ui/osdWindow.js</file>
 | 
			
		||||
    <file>ui/osdMonitorLabeler.js</file>
 | 
			
		||||
    <file>ui/overview.js</file>
 | 
			
		||||
    <file>ui/overviewControls.js</file>
 | 
			
		||||
    <file>ui/padOsd.js</file>
 | 
			
		||||
    <file>ui/panel.js</file>
 | 
			
		||||
    <file>ui/panelMenu.js</file>
 | 
			
		||||
    <file>ui/pointerWatcher.js</file>
 | 
			
		||||
@@ -90,6 +78,7 @@
 | 
			
		||||
    <file>ui/screenshot.js</file>
 | 
			
		||||
    <file>ui/scripting.js</file>
 | 
			
		||||
    <file>ui/search.js</file>
 | 
			
		||||
    <file>ui/separator.js</file>
 | 
			
		||||
    <file>ui/sessionMode.js</file>
 | 
			
		||||
    <file>ui/shellDBus.js</file>
 | 
			
		||||
    <file>ui/shellEntry.js</file>
 | 
			
		||||
@@ -121,7 +110,6 @@
 | 
			
		||||
    <file>ui/status/brightness.js</file>
 | 
			
		||||
    <file>ui/status/location.js</file>
 | 
			
		||||
    <file>ui/status/keyboard.js</file>
 | 
			
		||||
    <file>ui/status/nightLight.js</file>
 | 
			
		||||
    <file>ui/status/network.js</file>
 | 
			
		||||
    <file>ui/status/power.js</file>
 | 
			
		||||
    <file>ui/status/rfkill.js</file>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +0,0 @@
 | 
			
		||||
subdir('misc')
 | 
			
		||||
 | 
			
		||||
js_resources = gnome.compile_resources(
 | 
			
		||||
  'js-resources', 'js-resources.gresource.xml',
 | 
			
		||||
  source_dir: ['.', meson.current_build_dir()],
 | 
			
		||||
  c_name: 'shell_js_resources',
 | 
			
		||||
  dependencies: [config_js]
 | 
			
		||||
)
 | 
			
		||||
@@ -1,19 +1,17 @@
 | 
			
		||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 | 
			
		||||
 | 
			
		||||
/* The name of this package (not localized) */
 | 
			
		||||
var PACKAGE_NAME = '@PACKAGE_NAME@';
 | 
			
		||||
const PACKAGE_NAME = '@PACKAGE_NAME@';
 | 
			
		||||
/* The version of this package */
 | 
			
		||||
var PACKAGE_VERSION = '@PACKAGE_VERSION@';
 | 
			
		||||
const PACKAGE_VERSION = '@PACKAGE_VERSION@';
 | 
			
		||||
/* 1 if gnome-bluetooth is available, 0 otherwise */
 | 
			
		||||
var HAVE_BLUETOOTH = @HAVE_BLUETOOTH@;
 | 
			
		||||
const HAVE_BLUETOOTH = @HAVE_BLUETOOTH@;
 | 
			
		||||
/* 1 if networkmanager is available, 0 otherwise */
 | 
			
		||||
var HAVE_NETWORKMANAGER = @HAVE_NETWORKMANAGER@;
 | 
			
		||||
const HAVE_NETWORKMANAGER = @HAVE_NETWORKMANAGER@;
 | 
			
		||||
/* gettext package */
 | 
			
		||||
var GETTEXT_PACKAGE = '@GETTEXT_PACKAGE@';
 | 
			
		||||
const GETTEXT_PACKAGE = '@GETTEXT_PACKAGE@';
 | 
			
		||||
/* locale dir */
 | 
			
		||||
var LOCALEDIR = '@datadir@/locale';
 | 
			
		||||
const LOCALEDIR = '@datadir@/locale';
 | 
			
		||||
/* other standard directories */
 | 
			
		||||
var LIBEXECDIR = '@libexecdir@';
 | 
			
		||||
var SYSCONFDIR = '@sysconfdir@';
 | 
			
		||||
/* g-i package versions */
 | 
			
		||||
var LIBMUTTER_API_VERSION = '@LIBMUTTER_API_VERSION@'
 | 
			
		||||
const LIBEXECDIR = '@libexecdir@';
 | 
			
		||||
const SYSCONFDIR = '@sysconfdir@';
 | 
			
		||||
 
 | 
			
		||||
@@ -6,38 +6,29 @@
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Signals = imports.signals;
 | 
			
		||||
 | 
			
		||||
const GLib = imports.gi.GLib;
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const ShellJS = imports.gi.ShellJS;
 | 
			
		||||
 | 
			
		||||
const Config = imports.misc.config;
 | 
			
		||||
const FileUtils = imports.misc.fileUtils;
 | 
			
		||||
 | 
			
		||||
var ExtensionType = {
 | 
			
		||||
const ExtensionType = {
 | 
			
		||||
    SYSTEM: 1,
 | 
			
		||||
    PER_USER: 2
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// Maps uuid -> metadata object
 | 
			
		||||
var extensions = {};
 | 
			
		||||
const extensions = {};
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * getCurrentExtension:
 | 
			
		||||
 *
 | 
			
		||||
 * Returns the current extension, or null if not called from an extension.
 | 
			
		||||
 */
 | 
			
		||||
function getCurrentExtension() {
 | 
			
		||||
    let stack = (new Error()).stack.split('\n');
 | 
			
		||||
    let extensionStackLine;
 | 
			
		||||
    let stack = (new Error()).stack;
 | 
			
		||||
 | 
			
		||||
    // Search for an occurrence of an extension stack frame
 | 
			
		||||
    // Start at 1 because 0 is the stack frame of this function
 | 
			
		||||
    for (let i = 1; i < stack.length; i++) {
 | 
			
		||||
        if (stack[i].indexOf('/gnome-shell/extensions/') > -1) {
 | 
			
		||||
            extensionStackLine = stack[i];
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    // Assuming we're importing this directly from an extension (and we shouldn't
 | 
			
		||||
    // ever not be), its UUID should be directly in the path here.
 | 
			
		||||
    let extensionStackLine = stack.split('\n')[1];
 | 
			
		||||
    if (!extensionStackLine)
 | 
			
		||||
        return null;
 | 
			
		||||
        throw new Error('Could not find current extension');
 | 
			
		||||
 | 
			
		||||
    // The stack line is like:
 | 
			
		||||
    //   init([object Object])@/home/user/data/gnome-shell/extensions/u@u.id/prefs.js:8
 | 
			
		||||
@@ -47,12 +38,12 @@ function getCurrentExtension() {
 | 
			
		||||
    //   @/home/user/data/gnome-shell/extensions/u@u.id/prefs.js:8
 | 
			
		||||
    let match = new RegExp('@(.+):\\d+').exec(extensionStackLine);
 | 
			
		||||
    if (!match)
 | 
			
		||||
        return null;
 | 
			
		||||
        throw new Error('Could not find current extension');
 | 
			
		||||
 | 
			
		||||
    let path = match[1];
 | 
			
		||||
    let file = Gio.File.new_for_path(path);
 | 
			
		||||
 | 
			
		||||
    // Walk up the directory tree, looking for an extension with
 | 
			
		||||
    // Walk up the directory tree, looking for an extesion with
 | 
			
		||||
    // the same UUID as a directory name.
 | 
			
		||||
    while (file != null) {
 | 
			
		||||
        let extension = extensions[file.get_basename()];
 | 
			
		||||
@@ -61,7 +52,7 @@ function getCurrentExtension() {
 | 
			
		||||
        file = file.get_parent();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return null;
 | 
			
		||||
    throw new Error('Could not find current extension');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -149,16 +140,15 @@ function createExtensionObject(uuid, dir, type) {
 | 
			
		||||
    return extension;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var _extension = null;
 | 
			
		||||
 | 
			
		||||
function installImporter(extension) {
 | 
			
		||||
    let oldSearchPath = imports.searchPath.slice();  // make a copy
 | 
			
		||||
    imports.searchPath = [extension.dir.get_parent().get_path()];
 | 
			
		||||
    // importing a "subdir" creates a new importer object that doesn't affect
 | 
			
		||||
    // the global one
 | 
			
		||||
    extension.imports = imports[extension.uuid];
 | 
			
		||||
    imports.searchPath = oldSearchPath;
 | 
			
		||||
    _extension = extension;
 | 
			
		||||
    ShellJS.add_extension_importer('imports.misc.extensionUtils._extension', 'imports', extension.path);
 | 
			
		||||
    _extension = null;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var ExtensionFinder = new Lang.Class({
 | 
			
		||||
const ExtensionFinder = new Lang.Class({
 | 
			
		||||
    Name: 'ExtensionFinder',
 | 
			
		||||
 | 
			
		||||
    _loadExtension: function(extensionDir, info, perUserDir) {
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,7 @@ const PresenceIface = '<node> \
 | 
			
		||||
</interface> \
 | 
			
		||||
</node>';
 | 
			
		||||
 | 
			
		||||
var PresenceStatus = {
 | 
			
		||||
const PresenceStatus = {
 | 
			
		||||
    AVAILABLE: 0,
 | 
			
		||||
    INVISIBLE: 1,
 | 
			
		||||
    BUSY: 2,
 | 
			
		||||
 
 | 
			
		||||
@@ -5,9 +5,9 @@ const Signals = imports.signals;
 | 
			
		||||
const Clutter = imports.gi.Clutter;
 | 
			
		||||
const Params = imports.misc.params;
 | 
			
		||||
 | 
			
		||||
var DEFAULT_LIMIT = 512;
 | 
			
		||||
const DEFAULT_LIMIT = 512;
 | 
			
		||||
 | 
			
		||||
var HistoryManager = new Lang.Class({
 | 
			
		||||
const HistoryManager = new Lang.Class({
 | 
			
		||||
    Name: 'HistoryManager',
 | 
			
		||||
 | 
			
		||||
    _init: function(params) {
 | 
			
		||||
@@ -69,7 +69,7 @@ var HistoryManager = new Lang.Class({
 | 
			
		||||
            this._indexChanged();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return this._historyIndex ? this._history[this._historyIndex -1] : null;
 | 
			
		||||
        return this._historyIndex[this._history.length];
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    addItem: function(input) {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,16 +1,14 @@
 | 
			
		||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 | 
			
		||||
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const GLib = imports.gi.GLib;
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Mainloop = imports.mainloop;
 | 
			
		||||
const Signals = imports.signals;
 | 
			
		||||
 | 
			
		||||
let IBusCandidatePopup;
 | 
			
		||||
try {
 | 
			
		||||
    var IBus = imports.gi.IBus;
 | 
			
		||||
    _checkIBusVersion(1, 5, 2);
 | 
			
		||||
    IBusCandidatePopup = imports.ui.ibusCandidatePopup;
 | 
			
		||||
    if (!('new_async' in IBus.Bus))
 | 
			
		||||
        throw "IBus version is too old";
 | 
			
		||||
    const IBusCandidatePopup = imports.ui.ibusCandidatePopup;
 | 
			
		||||
} catch (e) {
 | 
			
		||||
    var IBus = null;
 | 
			
		||||
    log(e);
 | 
			
		||||
@@ -18,31 +16,18 @@ try {
 | 
			
		||||
 | 
			
		||||
let _ibusManager = null;
 | 
			
		||||
 | 
			
		||||
function _checkIBusVersion(requiredMajor, requiredMinor, requiredMicro) {
 | 
			
		||||
    if ((IBus.MAJOR_VERSION > requiredMajor) ||
 | 
			
		||||
        (IBus.MAJOR_VERSION == requiredMajor && IBus.MINOR_VERSION > requiredMinor) ||
 | 
			
		||||
        (IBus.MAJOR_VERSION == requiredMajor && IBus.MINOR_VERSION == requiredMinor &&
 | 
			
		||||
         IBus.MICRO_VERSION >= requiredMicro))
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
    throw "Found IBus version %d.%d.%d but required is %d.%d.%d".
 | 
			
		||||
        format(IBus.MAJOR_VERSION, IBus.MINOR_VERSION, IBus.MINOR_VERSION,
 | 
			
		||||
               requiredMajor, requiredMinor, requiredMicro);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function getIBusManager() {
 | 
			
		||||
    if (_ibusManager == null)
 | 
			
		||||
        _ibusManager = new IBusManager();
 | 
			
		||||
    return _ibusManager;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var IBusManager = new Lang.Class({
 | 
			
		||||
const IBusManager = new Lang.Class({
 | 
			
		||||
    Name: 'IBusManager',
 | 
			
		||||
 | 
			
		||||
    // This is the longest we'll keep the keyboard frozen until an input
 | 
			
		||||
    // source is active.
 | 
			
		||||
    _MAX_INPUT_SOURCE_ACTIVATION_TIME: 4000, // ms
 | 
			
		||||
    _PRELOAD_ENGINES_DELAY_TIME: 30, // sec
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        if (!IBus)
 | 
			
		||||
@@ -57,7 +42,6 @@ var IBusManager = new Lang.Class({
 | 
			
		||||
        this._ready = false;
 | 
			
		||||
        this._registerPropertiesId = 0;
 | 
			
		||||
        this._currentEngineName = null;
 | 
			
		||||
        this._preloadEnginesId = 0;
 | 
			
		||||
 | 
			
		||||
        this._ibus = IBus.Bus.new_async();
 | 
			
		||||
        this._ibus.connect('connected', Lang.bind(this, this._onConnected));
 | 
			
		||||
@@ -122,16 +106,6 @@ var IBusManager = new Lang.Class({
 | 
			
		||||
                                                         object_path: IBus.PATH_PANEL });
 | 
			
		||||
            this._candidatePopup.setPanelService(this._panelService);
 | 
			
		||||
            this._panelService.connect('update-property', Lang.bind(this, this._updateProperty));
 | 
			
		||||
            try {
 | 
			
		||||
                // IBus versions older than 1.5.10 have a bug which
 | 
			
		||||
                // causes spurious set-content-type emissions when
 | 
			
		||||
                // switching input focus that temporarily lose purpose
 | 
			
		||||
                // and hints defeating its intended semantics and
 | 
			
		||||
                // confusing users. We thus don't use it in that case.
 | 
			
		||||
                _checkIBusVersion(1, 5, 10);
 | 
			
		||||
                this._panelService.connect('set-content-type', Lang.bind(this, this._setContentType));
 | 
			
		||||
            } catch (e) {
 | 
			
		||||
            }
 | 
			
		||||
            // If an engine is already active we need to get its properties
 | 
			
		||||
            this._ibus.get_global_engine_async(-1, null, Lang.bind(this, function(i, result) {
 | 
			
		||||
                let engine;
 | 
			
		||||
@@ -181,26 +155,19 @@ var IBusManager = new Lang.Class({
 | 
			
		||||
        this.emit('property-updated', this._currentEngineName, prop);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _setContentType: function(panel, purpose, hints) {
 | 
			
		||||
        this.emit('set-content-type', purpose, hints);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    activateProperty: function(key, state) {
 | 
			
		||||
        this._panelService.property_activate(key, state);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    getEngineDesc: function(id) {
 | 
			
		||||
        if (!IBus || !this._ready || !this._engines.hasOwnProperty(id))
 | 
			
		||||
        if (!IBus || !this._ready)
 | 
			
		||||
            return null;
 | 
			
		||||
 | 
			
		||||
        return this._engines[id];
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    setEngine: function(id, callback) {
 | 
			
		||||
        // Send id even if id == this._currentEngineName
 | 
			
		||||
        // because 'properties-registered' signal can be emitted
 | 
			
		||||
        // while this._ibusSources == null on a lock screen.
 | 
			
		||||
        if (!IBus || !this._ready) {
 | 
			
		||||
        if (!IBus || !this._ready || id == this._currentEngineName) {
 | 
			
		||||
            if (callback)
 | 
			
		||||
                callback();
 | 
			
		||||
            return;
 | 
			
		||||
@@ -209,27 +176,5 @@ var IBusManager = new Lang.Class({
 | 
			
		||||
        this._ibus.set_global_engine_async(id, this._MAX_INPUT_SOURCE_ACTIVATION_TIME,
 | 
			
		||||
                                           null, callback);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    preloadEngines: function(ids) {
 | 
			
		||||
        if (!IBus || !this._ibus || ids.length == 0)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        if (this._preloadEnginesId != 0) {
 | 
			
		||||
            Mainloop.source_remove(this._preloadEnginesId);
 | 
			
		||||
            this._preloadEnginesId = 0;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._preloadEnginesId =
 | 
			
		||||
            Mainloop.timeout_add_seconds(this._PRELOAD_ENGINES_DELAY_TIME,
 | 
			
		||||
                                         Lang.bind(this, function() {
 | 
			
		||||
                                             this._ibus.preload_engines_async(
 | 
			
		||||
                                                 ids,
 | 
			
		||||
                                                 -1,
 | 
			
		||||
                                                 null,
 | 
			
		||||
                                                 null);
 | 
			
		||||
                                             this._preloadEnginesId = 0;
 | 
			
		||||
                                             return GLib.SOURCE_REMOVE;
 | 
			
		||||
                                         }));
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(IBusManager.prototype);
 | 
			
		||||
 
 | 
			
		||||
@@ -7,9 +7,9 @@ const Meta = imports.gi.Meta;
 | 
			
		||||
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
 | 
			
		||||
var DEFAULT_LOCALE = 'en_US';
 | 
			
		||||
var DEFAULT_LAYOUT = 'us';
 | 
			
		||||
var DEFAULT_VARIANT = '';
 | 
			
		||||
const DEFAULT_LOCALE = 'en_US';
 | 
			
		||||
const DEFAULT_LAYOUT = 'us';
 | 
			
		||||
const DEFAULT_VARIANT = '';
 | 
			
		||||
 | 
			
		||||
let _xkbInfo = null;
 | 
			
		||||
 | 
			
		||||
@@ -38,7 +38,7 @@ function holdKeyboard() {
 | 
			
		||||
    global.display.freeze_keyboard(global.get_current_time());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var KeyboardManager = new Lang.Class({
 | 
			
		||||
const KeyboardManager = new Lang.Class({
 | 
			
		||||
    Name: 'KeyboardManager',
 | 
			
		||||
 | 
			
		||||
    // The XKB protocol doesn't allow for more that 4 layouts in a
 | 
			
		||||
@@ -128,8 +128,7 @@ var KeyboardManager = new Lang.Class({
 | 
			
		||||
        if (!found)
 | 
			
		||||
            [, , id] = GnomeDesktop.get_input_source_from_locale(DEFAULT_LOCALE);
 | 
			
		||||
 | 
			
		||||
        let _layout, _variant;
 | 
			
		||||
        [found, , , _layout, _variant] = this._xkbInfo.get_layout_info(id);
 | 
			
		||||
        let [found, , , _layout, _variant] = this._xkbInfo.get_layout_info(id);
 | 
			
		||||
        if (found)
 | 
			
		||||
            return { layout: _layout, variant: _variant };
 | 
			
		||||
        else
 | 
			
		||||
 
 | 
			
		||||
@@ -40,9 +40,6 @@ const SystemdLoginSessionIface = '<node> \
 | 
			
		||||
<signal name="Lock" /> \
 | 
			
		||||
<signal name="Unlock" /> \
 | 
			
		||||
<property name="Active" type="b" access="read" /> \
 | 
			
		||||
<method name="SetLockedHint"> \
 | 
			
		||||
    <arg type="b" direction="in"/> \
 | 
			
		||||
</method> \
 | 
			
		||||
</interface> \
 | 
			
		||||
</node>';
 | 
			
		||||
 | 
			
		||||
@@ -102,7 +99,7 @@ function getLoginManager() {
 | 
			
		||||
    return _loginManager;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var LoginManagerSystemd = new Lang.Class({
 | 
			
		||||
const LoginManagerSystemd = new Lang.Class({
 | 
			
		||||
    Name: 'LoginManagerSystemd',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -134,13 +131,10 @@ var LoginManagerSystemd = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    canSuspend: function(asyncCallback) {
 | 
			
		||||
        this._proxy.CanSuspendRemote(function(result, error) {
 | 
			
		||||
            if (error) {
 | 
			
		||||
                asyncCallback(false, false);
 | 
			
		||||
            } else {
 | 
			
		||||
                let needsAuth = result[0] == 'challenge';
 | 
			
		||||
                let canSuspend = needsAuth || result[0] == 'yes';
 | 
			
		||||
                asyncCallback(canSuspend, needsAuth);
 | 
			
		||||
            }
 | 
			
		||||
            if (error)
 | 
			
		||||
                asyncCallback(false);
 | 
			
		||||
            else
 | 
			
		||||
                asyncCallback(result[0] != 'no');
 | 
			
		||||
        });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
@@ -183,7 +177,7 @@ var LoginManagerSystemd = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(LoginManagerSystemd.prototype);
 | 
			
		||||
 | 
			
		||||
var LoginManagerDummy = new Lang.Class({
 | 
			
		||||
const LoginManagerDummy = new Lang.Class({
 | 
			
		||||
    Name: 'LoginManagerDummy',
 | 
			
		||||
 | 
			
		||||
    getCurrentSessionProxy: function(callback) {
 | 
			
		||||
@@ -193,7 +187,7 @@ var LoginManagerDummy = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    canSuspend: function(asyncCallback) {
 | 
			
		||||
        asyncCallback(false, false);
 | 
			
		||||
        asyncCallback(false);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    listSessions: function(asyncCallback) {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,16 +0,0 @@
 | 
			
		||||
jsconf = configuration_data()
 | 
			
		||||
jsconf.set('PACKAGE_NAME', meson.project_name())
 | 
			
		||||
jsconf.set('PACKAGE_VERSION', meson.project_version())
 | 
			
		||||
jsconf.set('GETTEXT_PACKAGE', meson.project_name())
 | 
			
		||||
jsconf.set('LIBMUTTER_API_VERSION', mutter_api_version)
 | 
			
		||||
jsconf.set10('HAVE_BLUETOOTH', bt_dep.found())
 | 
			
		||||
jsconf.set10('HAVE_NETWORKMANAGER', have_networkmanager)
 | 
			
		||||
jsconf.set('datadir', datadir)
 | 
			
		||||
jsconf.set('libexecdir', libexecdir)
 | 
			
		||||
jsconf.set('sysconfdir', sysconfdir)
 | 
			
		||||
 | 
			
		||||
config_js = configure_file(
 | 
			
		||||
  input: 'config.js.in',
 | 
			
		||||
  output: 'config.js',
 | 
			
		||||
  configuration: jsconf
 | 
			
		||||
)
 | 
			
		||||
@@ -130,7 +130,7 @@ const ModemCdmaInterface = '<node> \
 | 
			
		||||
 | 
			
		||||
const ModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(ModemCdmaInterface);
 | 
			
		||||
 | 
			
		||||
var ModemGsm = new Lang.Class({
 | 
			
		||||
const ModemGsm = new Lang.Class({
 | 
			
		||||
    Name: 'ModemGsm',
 | 
			
		||||
 | 
			
		||||
    _init: function(path) {
 | 
			
		||||
@@ -172,7 +172,7 @@ var ModemGsm = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(ModemGsm.prototype);
 | 
			
		||||
 | 
			
		||||
var ModemCdma = new Lang.Class({
 | 
			
		||||
const ModemCdma = new Lang.Class({
 | 
			
		||||
    Name: 'ModemCdma',
 | 
			
		||||
 | 
			
		||||
    _init: function(path) {
 | 
			
		||||
@@ -244,7 +244,7 @@ const BroadbandModemCdmaInterface = '<node> \
 | 
			
		||||
</node>';
 | 
			
		||||
const BroadbandModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModemCdmaInterface);
 | 
			
		||||
 | 
			
		||||
var BroadbandModem = new Lang.Class({
 | 
			
		||||
const BroadbandModem = new Lang.Class({
 | 
			
		||||
    Name: 'BroadbandModem',
 | 
			
		||||
 | 
			
		||||
    _init: function(path, capabilities) {
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ const ObjectManagerIface = '<node> \
 | 
			
		||||
 | 
			
		||||
const ObjectManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(ObjectManagerIface);
 | 
			
		||||
 | 
			
		||||
var ObjectManager = new Lang.Class({
 | 
			
		||||
const ObjectManager = new Lang.Class({
 | 
			
		||||
    Name: 'ObjectManager',
 | 
			
		||||
    _init: function(params) {
 | 
			
		||||
        params = Params.parse(params, { connection: null,
 | 
			
		||||
@@ -46,7 +46,7 @@ var ObjectManager = new Lang.Class({
 | 
			
		||||
                                                 g_interface_info: ObjectManagerInfo,
 | 
			
		||||
                                                 g_name: this._serviceName,
 | 
			
		||||
                                                 g_object_path: this._managerPath,
 | 
			
		||||
                                                 g_flags: Gio.DBusProxyFlags.DO_NOT_AUTO_START });
 | 
			
		||||
                                                 g_flags: Gio.DBusProxyFlags.NONE });
 | 
			
		||||
 | 
			
		||||
        this._interfaceInfos = {};
 | 
			
		||||
        this._objects = {};
 | 
			
		||||
@@ -65,9 +65,6 @@ var ObjectManager = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _tryToCompleteLoad: function() {
 | 
			
		||||
        if (this._numLoadInhibitors == 0)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._numLoadInhibitors--;
 | 
			
		||||
        if (this._numLoadInhibitors == 0) {
 | 
			
		||||
            if (this._onLoaded)
 | 
			
		||||
@@ -89,7 +86,7 @@ var ObjectManager = new Lang.Class({
 | 
			
		||||
                                       g_object_path: objectPath,
 | 
			
		||||
                                       g_interface_name: interfaceName,
 | 
			
		||||
                                       g_interface_info: info,
 | 
			
		||||
                                       g_flags: Gio.DBusProxyFlags.DO_NOT_AUTO_START });
 | 
			
		||||
                                       g_flags: Gio.DBusProxyFlags.NONE });
 | 
			
		||||
 | 
			
		||||
        proxy.init_async(GLib.PRIORITY_DEFAULT,
 | 
			
		||||
                         this._cancellable,
 | 
			
		||||
@@ -184,18 +181,6 @@ var ObjectManager = new Lang.Class({
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._managerProxy.connect('notify::g-name-owner', Lang.bind(this, function() {
 | 
			
		||||
            if (this._managerProxy.g_name_owner)
 | 
			
		||||
                this._onNameAppeared();
 | 
			
		||||
            else
 | 
			
		||||
                this._onNameVanished();
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
        if (this._managerProxy.g_name_owner)
 | 
			
		||||
            this._onNameAppeared();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onNameAppeared: function() {
 | 
			
		||||
        this._managerProxy.GetManagedObjectsRemote(Lang.bind(this, function(result, error) {
 | 
			
		||||
            if (!result) {
 | 
			
		||||
                if (error) {
 | 
			
		||||
@@ -208,11 +193,6 @@ var ObjectManager = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
            let [objects] = result;
 | 
			
		||||
 | 
			
		||||
            if (!objects) {
 | 
			
		||||
                this._tryToCompleteLoad();
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            let objectPaths = Object.keys(objects);
 | 
			
		||||
            for (let i = 0; i < objectPaths.length; i++) {
 | 
			
		||||
                let objectPath = objectPaths[i];
 | 
			
		||||
@@ -233,21 +213,6 @@ var ObjectManager = new Lang.Class({
 | 
			
		||||
        }));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onNameVanished: function() {
 | 
			
		||||
        let objectPaths = Object.keys(this._objects);
 | 
			
		||||
        for (let i = 0; i < objectPaths.length; i++) {
 | 
			
		||||
            let object = this._objects[objectPaths];
 | 
			
		||||
 | 
			
		||||
            let interfaceNames = Object.keys(object);
 | 
			
		||||
            for (let j = 0; i < interfaceNames.length; i++) {
 | 
			
		||||
                let interfaceName = interfaceNames[i];
 | 
			
		||||
 | 
			
		||||
                if (object[interfaceName])
 | 
			
		||||
                    this._removeInterface(objectPath, interfaceName);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _registerInterfaces: function(interfaces) {
 | 
			
		||||
        for (let i = 0; i < interfaces.length; i++) {
 | 
			
		||||
            let info = Gio.DBusInterfaceInfo.new_for_xml(interfaces[i]);
 | 
			
		||||
 
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 | 
			
		||||
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
 | 
			
		||||
const PermissionStoreIface = '<node> \
 | 
			
		||||
  <interface name="org.freedesktop.impl.portal.PermissionStore"> \
 | 
			
		||||
    <method name="Lookup"> \
 | 
			
		||||
      <arg name="table" type="s" direction="in"/> \
 | 
			
		||||
      <arg name="id" type="s" direction="in"/> \
 | 
			
		||||
      <arg name="permissions" type="a{sas}" direction="out"/> \
 | 
			
		||||
      <arg name="data" type="v" direction="out"/> \
 | 
			
		||||
    </method> \
 | 
			
		||||
    <method name="Set"> \
 | 
			
		||||
      <arg name="table" type="s" direction="in"/> \
 | 
			
		||||
      <arg name="create" type="b" direction="in"/> \
 | 
			
		||||
      <arg name="id" type="s" direction="in"/> \
 | 
			
		||||
      <arg name="app_permissions" type="a{sas}" direction="in"/> \
 | 
			
		||||
      <arg name="data" type="v" direction="in"/> \
 | 
			
		||||
    </method> \
 | 
			
		||||
    <signal name="Changed"> \
 | 
			
		||||
      <arg name="table" type="s" direction="out"/> \
 | 
			
		||||
      <arg name="id" type="s" direction="out"/> \
 | 
			
		||||
      <arg name="deleted" type="b" direction="out"/> \
 | 
			
		||||
      <arg name="data" type="v" direction="out"/> \
 | 
			
		||||
      <arg name="permissions" type="a{sas}" direction="out"/> \
 | 
			
		||||
    </signal> \
 | 
			
		||||
  </interface> \
 | 
			
		||||
</node>';
 | 
			
		||||
 | 
			
		||||
const PermissionStoreProxy = Gio.DBusProxy.makeProxyWrapper(PermissionStoreIface);
 | 
			
		||||
 | 
			
		||||
function PermissionStore(initCallback, cancellable) {
 | 
			
		||||
    return new PermissionStoreProxy(Gio.DBus.session,
 | 
			
		||||
                                    'org.freedesktop.impl.portal.PermissionStore',
 | 
			
		||||
                                    '/org/freedesktop/impl/portal/PermissionStore',
 | 
			
		||||
                                    initCallback, cancellable);
 | 
			
		||||
};
 | 
			
		||||
@@ -25,7 +25,7 @@ function getSmartcardManager() {
 | 
			
		||||
    return _smartcardManager;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var SmartcardManager = new Lang.Class({
 | 
			
		||||
const SmartcardManager = new Lang.Class({
 | 
			
		||||
    Name: 'SmartcardManager',
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._objectManager = new ObjectManager.ObjectManager({ connection: Gio.DBus.session,
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										238
									
								
								js/misc/util.js
									
									
									
									
									
								
							
							
						
						@@ -1,20 +1,15 @@
 | 
			
		||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 | 
			
		||||
 | 
			
		||||
const Clutter = imports.gi.Clutter;
 | 
			
		||||
const Gettext = imports.gettext;
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const GLib = imports.gi.GLib;
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Mainloop = imports.mainloop;
 | 
			
		||||
const Signals = imports.signals;
 | 
			
		||||
const Shell = imports.gi.Shell;
 | 
			
		||||
const St = imports.gi.St;
 | 
			
		||||
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
const Tweener = imports.ui.tweener;
 | 
			
		||||
const Params = imports.misc.params;
 | 
			
		||||
 | 
			
		||||
var SCROLL_TIME = 0.1;
 | 
			
		||||
const SCROLL_TIME = 0.1;
 | 
			
		||||
 | 
			
		||||
// http://daringfireball.net/2010/07/improved_regex_for_matching_urls
 | 
			
		||||
const _balancedParens = '\\((?:[^\\s()<>]+|(?:\\(?:[^\\s()<>]+\\)))*\\)';
 | 
			
		||||
@@ -43,8 +38,6 @@ const _urlRegexp = new RegExp(
 | 
			
		||||
        ')' +
 | 
			
		||||
    ')', 'gi');
 | 
			
		||||
 | 
			
		||||
let _desktopSettings = null;
 | 
			
		||||
 | 
			
		||||
// findUrls:
 | 
			
		||||
// @str: string to find URLs in
 | 
			
		||||
//
 | 
			
		||||
@@ -164,142 +157,6 @@ function _handleSpawnError(command, err) {
 | 
			
		||||
    Main.notifyError(title, err.message);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function formatTimeSpan(date) {
 | 
			
		||||
    let now = GLib.DateTime.new_now_local();
 | 
			
		||||
 | 
			
		||||
    let timespan = now.difference(date);
 | 
			
		||||
 | 
			
		||||
    let minutesAgo = timespan / GLib.TIME_SPAN_MINUTE;
 | 
			
		||||
    let hoursAgo = timespan / GLib.TIME_SPAN_HOUR;
 | 
			
		||||
    let daysAgo = timespan / GLib.TIME_SPAN_DAY;
 | 
			
		||||
    let weeksAgo = daysAgo / 7;
 | 
			
		||||
    let monthsAgo = daysAgo / 30;
 | 
			
		||||
    let yearsAgo = weeksAgo / 52;
 | 
			
		||||
 | 
			
		||||
    if (minutesAgo < 5)
 | 
			
		||||
        return _("Just now");
 | 
			
		||||
    if (hoursAgo < 1)
 | 
			
		||||
        return Gettext.ngettext("%d minute ago",
 | 
			
		||||
                                "%d minutes ago", minutesAgo).format(minutesAgo);
 | 
			
		||||
    if (daysAgo < 1)
 | 
			
		||||
        return Gettext.ngettext("%d hour ago",
 | 
			
		||||
                                "%d hours ago", hoursAgo).format(hoursAgo);
 | 
			
		||||
    if (daysAgo < 2)
 | 
			
		||||
        return _("Yesterday");
 | 
			
		||||
    if (daysAgo < 15)
 | 
			
		||||
        return Gettext.ngettext("%d day ago",
 | 
			
		||||
                                "%d days ago", daysAgo).format(daysAgo);
 | 
			
		||||
    if (weeksAgo < 8)
 | 
			
		||||
        return Gettext.ngettext("%d week ago",
 | 
			
		||||
                                "%d weeks ago", weeksAgo).format(weeksAgo);
 | 
			
		||||
    if (yearsAgo < 1)
 | 
			
		||||
        return Gettext.ngettext("%d month ago",
 | 
			
		||||
                                "%d months ago", monthsAgo).format(monthsAgo);
 | 
			
		||||
    return Gettext.ngettext("%d year ago",
 | 
			
		||||
                            "%d years ago", yearsAgo).format(yearsAgo);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function formatTime(time, params) {
 | 
			
		||||
    let date;
 | 
			
		||||
    // HACK: The built-in Date type sucks at timezones, which we need for the
 | 
			
		||||
    //       world clock; it's often more convenient though, so allow either
 | 
			
		||||
    //       Date or GLib.DateTime as parameter
 | 
			
		||||
    if (time instanceof Date)
 | 
			
		||||
        date = GLib.DateTime.new_from_unix_local(time.getTime() / 1000);
 | 
			
		||||
    else
 | 
			
		||||
        date = time;
 | 
			
		||||
 | 
			
		||||
    let now = GLib.DateTime.new_now_local();
 | 
			
		||||
 | 
			
		||||
    let daysAgo = now.difference(date) / (24 * 60 * 60 * 1000 * 1000);
 | 
			
		||||
 | 
			
		||||
    let format;
 | 
			
		||||
 | 
			
		||||
    if (_desktopSettings == null)
 | 
			
		||||
        _desktopSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.interface' });
 | 
			
		||||
    let clockFormat = _desktopSettings.get_string('clock-format');
 | 
			
		||||
 | 
			
		||||
    params = Params.parse(params, { timeOnly: false });
 | 
			
		||||
 | 
			
		||||
    if (clockFormat == '24h') {
 | 
			
		||||
        // Show only the time if date is on today
 | 
			
		||||
        if (daysAgo < 1 || params.timeOnly)
 | 
			
		||||
            /* Translators: Time in 24h format */
 | 
			
		||||
            format = N_("%H\u2236%M");
 | 
			
		||||
        // Show the word "Yesterday" and time if date is on yesterday
 | 
			
		||||
        else if (daysAgo <2)
 | 
			
		||||
            /* Translators: this is the word "Yesterday" followed by a
 | 
			
		||||
             time string in 24h format. i.e. "Yesterday, 14:30" */
 | 
			
		||||
            // xgettext:no-c-format
 | 
			
		||||
            format = N_("Yesterday, %H\u2236%M");
 | 
			
		||||
        // Show a week day and time if date is in the last week
 | 
			
		||||
        else if (daysAgo < 7)
 | 
			
		||||
            /* Translators: this is the week day name followed by a time
 | 
			
		||||
             string in 24h format. i.e. "Monday, 14:30" */
 | 
			
		||||
            // xgettext:no-c-format
 | 
			
		||||
            format = N_("%A, %H\u2236%M");
 | 
			
		||||
        else if (date.get_year() == now.get_year())
 | 
			
		||||
            /* Translators: this is the month name and day number
 | 
			
		||||
             followed by a time string in 24h format.
 | 
			
		||||
             i.e. "May 25, 14:30" */
 | 
			
		||||
            // xgettext:no-c-format
 | 
			
		||||
            format = N_("%B %d, %H\u2236%M");
 | 
			
		||||
        else
 | 
			
		||||
            /* Translators: this is the month name, day number, year
 | 
			
		||||
             number followed by a time string in 24h format.
 | 
			
		||||
             i.e. "May 25 2012, 14:30" */
 | 
			
		||||
            // xgettext:no-c-format
 | 
			
		||||
            format = N_("%B %d %Y, %H\u2236%M");
 | 
			
		||||
    } else {
 | 
			
		||||
        // Show only the time if date is on today
 | 
			
		||||
        if (daysAgo < 1 || params.timeOnly)
 | 
			
		||||
            /* Translators: Time in 12h format */
 | 
			
		||||
            format = N_("%l\u2236%M %p");
 | 
			
		||||
        // Show the word "Yesterday" and time if date is on yesterday
 | 
			
		||||
        else if (daysAgo <2)
 | 
			
		||||
            /* Translators: this is the word "Yesterday" followed by a
 | 
			
		||||
             time string in 12h format. i.e. "Yesterday, 2:30 pm" */
 | 
			
		||||
            // xgettext:no-c-format
 | 
			
		||||
            format = N_("Yesterday, %l\u2236%M %p");
 | 
			
		||||
        // Show a week day and time if date is in the last week
 | 
			
		||||
        else if (daysAgo < 7)
 | 
			
		||||
            /* Translators: this is the week day name followed by a time
 | 
			
		||||
             string in 12h format. i.e. "Monday, 2:30 pm" */
 | 
			
		||||
            // xgettext:no-c-format
 | 
			
		||||
            format = N_("%A, %l\u2236%M %p");
 | 
			
		||||
        else if (date.get_year() == now.get_year())
 | 
			
		||||
            /* Translators: this is the month name and day number
 | 
			
		||||
             followed by a time string in 12h format.
 | 
			
		||||
             i.e. "May 25, 2:30 pm" */
 | 
			
		||||
            // xgettext:no-c-format
 | 
			
		||||
            format = N_("%B %d, %l\u2236%M %p");
 | 
			
		||||
        else
 | 
			
		||||
            /* Translators: this is the month name, day number, year
 | 
			
		||||
             number followed by a time string in 12h format.
 | 
			
		||||
             i.e. "May 25 2012, 2:30 pm"*/
 | 
			
		||||
            // xgettext:no-c-format
 | 
			
		||||
            format = N_("%B %d %Y, %l\u2236%M %p");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    let formattedTime = date.format(Shell.util_translate_time_string(format));
 | 
			
		||||
    // prepend LTR-mark to colon/ratio to force a text direction on times
 | 
			
		||||
    return formattedTime.replace(/([:\u2236])/g, '\u200e$1');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function createTimeLabel(date, params) {
 | 
			
		||||
    if (_desktopSettings == null)
 | 
			
		||||
        _desktopSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.interface' });
 | 
			
		||||
 | 
			
		||||
    let label = new St.Label({ text: formatTime(date, params) });
 | 
			
		||||
    let id = _desktopSettings.connect('changed::clock-format', function() {
 | 
			
		||||
        label.text = formatTime(date, params);
 | 
			
		||||
    });
 | 
			
		||||
    label.connect('destroy', function() {
 | 
			
		||||
        _desktopSettings.disconnect(id);
 | 
			
		||||
    });
 | 
			
		||||
    return label;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// lowerBound:
 | 
			
		||||
// @array: an array or array-like object, already sorted
 | 
			
		||||
//         according to @cmp
 | 
			
		||||
@@ -350,7 +207,7 @@ function insertSorted(array, val, cmp) {
 | 
			
		||||
    return pos;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var CloseButton = new Lang.Class({
 | 
			
		||||
const CloseButton = new Lang.Class({
 | 
			
		||||
    Name: 'CloseButton',
 | 
			
		||||
    Extends: St.Button,
 | 
			
		||||
 | 
			
		||||
@@ -438,94 +295,3 @@ function ensureActorVisibleInScrollView(scrollView, actor) {
 | 
			
		||||
                       time: SCROLL_TIME,
 | 
			
		||||
                       transition: 'easeOutQuad' });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var AppSettingsMonitor = new Lang.Class({
 | 
			
		||||
    Name: 'AppSettingsMonitor',
 | 
			
		||||
 | 
			
		||||
    _init: function(appId, schemaId) {
 | 
			
		||||
        this._appId = appId;
 | 
			
		||||
        this._schemaId = schemaId;
 | 
			
		||||
 | 
			
		||||
        this._app = null;
 | 
			
		||||
        this._settings = null;
 | 
			
		||||
        this._handlers = [];
 | 
			
		||||
 | 
			
		||||
        this._schemaSource = Gio.SettingsSchemaSource.get_default();
 | 
			
		||||
 | 
			
		||||
        this._appSystem = Shell.AppSystem.get_default();
 | 
			
		||||
        this._appSystem.connect('installed-changed',
 | 
			
		||||
                                Lang.bind(this, this._onInstalledChanged));
 | 
			
		||||
        this._onInstalledChanged();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    get available() {
 | 
			
		||||
        return this._app != null && this._settings != null;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    activateApp: function() {
 | 
			
		||||
        if (this._app)
 | 
			
		||||
            this._app.activate();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    watchSetting: function(key, callback) {
 | 
			
		||||
        let handler = { id: 0, key: key, callback: callback };
 | 
			
		||||
        this._handlers.push(handler);
 | 
			
		||||
 | 
			
		||||
        this._connectHandler(handler);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _connectHandler: function(handler) {
 | 
			
		||||
        if (!this._settings || handler.id > 0)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        handler.id = this._settings.connect('changed::' + handler.key,
 | 
			
		||||
                                            handler.callback);
 | 
			
		||||
        handler.callback(this._settings, handler.key);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _disconnectHandler: function(handler) {
 | 
			
		||||
        if (this._settings && handler.id > 0)
 | 
			
		||||
            this._settings.disconnect(handler.id);
 | 
			
		||||
        handler.id = 0;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onInstalledChanged: function() {
 | 
			
		||||
        let hadApp = (this._app != null);
 | 
			
		||||
        this._app = this._appSystem.lookup_app(this._appId);
 | 
			
		||||
        let haveApp = (this._app != null);
 | 
			
		||||
 | 
			
		||||
        if (hadApp == haveApp)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        if (haveApp)
 | 
			
		||||
            this._checkSettings();
 | 
			
		||||
        else
 | 
			
		||||
            this._setSettings(null);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _setSettings: function(settings) {
 | 
			
		||||
        this._handlers.forEach((handler) => { this._disconnectHandler(handler); });
 | 
			
		||||
 | 
			
		||||
        let hadSettings = (this._settings != null);
 | 
			
		||||
        this._settings = settings;
 | 
			
		||||
        let haveSettings = (this._settings != null);
 | 
			
		||||
 | 
			
		||||
        this._handlers.forEach((handler) => { this._connectHandler(handler); });
 | 
			
		||||
 | 
			
		||||
        if (hadSettings != haveSettings)
 | 
			
		||||
            this.emit('available-changed');
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _checkSettings: function() {
 | 
			
		||||
        let schema = this._schemaSource.lookup(this._schemaId, true);
 | 
			
		||||
        if (schema) {
 | 
			
		||||
            this._setSettings(new Gio.Settings({ settings_schema: schema }));
 | 
			
		||||
        } else if (this._app) {
 | 
			
		||||
            Mainloop.timeout_add_seconds(1, () => {
 | 
			
		||||
                this._checkSettings();
 | 
			
		||||
                return GLib.SOURCE_REMOVE;
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(AppSettingsMonitor.prototype);
 | 
			
		||||
 
 | 
			
		||||
@@ -1,247 +0,0 @@
 | 
			
		||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 | 
			
		||||
 | 
			
		||||
const Geoclue = imports.gi.Geoclue;
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const GLib = imports.gi.GLib;
 | 
			
		||||
const GWeather = imports.gi.GWeather;
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Signals = imports.signals;
 | 
			
		||||
 | 
			
		||||
const PermissionStore = imports.misc.permissionStore;
 | 
			
		||||
const Util = imports.misc.util;
 | 
			
		||||
 | 
			
		||||
// Minimum time between updates to show loading indication
 | 
			
		||||
var UPDATE_THRESHOLD = 10 * GLib.TIME_SPAN_MINUTE;
 | 
			
		||||
 | 
			
		||||
var WeatherClient = new Lang.Class({
 | 
			
		||||
    Name: 'WeatherClient',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._loading = false;
 | 
			
		||||
        this._locationValid = false;
 | 
			
		||||
        this._lastUpdate = GLib.DateTime.new_from_unix_local(0);
 | 
			
		||||
 | 
			
		||||
        this._autoLocationRequested = false;
 | 
			
		||||
        this._mostRecentLocation = null;
 | 
			
		||||
 | 
			
		||||
        this._gclueService = null;
 | 
			
		||||
        this._gclueStarted = false;
 | 
			
		||||
        this._gclueStarting = false;
 | 
			
		||||
        this._gclueLocationChangedId = 0;
 | 
			
		||||
 | 
			
		||||
        this._weatherAuthorized = false;
 | 
			
		||||
        this._permStore = new PermissionStore.PermissionStore((proxy, error) => {
 | 
			
		||||
            if (error) {
 | 
			
		||||
                log('Failed to connect to permissionStore: ' + error.message);
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            this._permStore.LookupRemote('gnome', 'geolocation', (res, error) => {
 | 
			
		||||
                if (error)
 | 
			
		||||
                    log('Error looking up permission: ' + error.message);
 | 
			
		||||
 | 
			
		||||
                let [perms, data] = error ? [{}, null] : res;
 | 
			
		||||
                let  params = ['gnome', 'geolocation', false, data, perms];
 | 
			
		||||
                this._onPermStoreChanged(this._permStore, '', params);
 | 
			
		||||
            });
 | 
			
		||||
        });
 | 
			
		||||
        this._permStore.connectSignal('Changed',
 | 
			
		||||
                                      Lang.bind(this, this._onPermStoreChanged));
 | 
			
		||||
 | 
			
		||||
        this._locationSettings = new Gio.Settings({ schema_id: 'org.gnome.system.location' });
 | 
			
		||||
        this._locationSettings.connect('changed::enabled',
 | 
			
		||||
                                       Lang.bind(this, this._updateAutoLocation));
 | 
			
		||||
 | 
			
		||||
        this._world = GWeather.Location.get_world();
 | 
			
		||||
 | 
			
		||||
        this._providers = GWeather.Provider.METAR |
 | 
			
		||||
                          GWeather.Provider.YR_NO |
 | 
			
		||||
                          GWeather.Provider.OWM;
 | 
			
		||||
 | 
			
		||||
        this._weatherInfo = new GWeather.Info({ enabled_providers: 0 });
 | 
			
		||||
        this._weatherInfo.connect_after('updated', () => {
 | 
			
		||||
            this._lastUpdate = GLib.DateTime.new_now_local();
 | 
			
		||||
            this.emit('changed');
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        this._weatherAppMon = new Util.AppSettingsMonitor('org.gnome.Weather.Application.desktop',
 | 
			
		||||
                                                          'org.gnome.Weather.Application');
 | 
			
		||||
        this._weatherAppMon.connect('available-changed', () => { this.emit('changed'); });
 | 
			
		||||
        this._weatherAppMon.watchSetting('automatic-location',
 | 
			
		||||
                                         Lang.bind(this, this._onAutomaticLocationChanged));
 | 
			
		||||
        this._weatherAppMon.watchSetting('locations',
 | 
			
		||||
                                         Lang.bind(this, this._onLocationsChanged));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    get available() {
 | 
			
		||||
        return this._weatherAppMon.available;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    get loading() {
 | 
			
		||||
        return this._loading;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    get hasLocation() {
 | 
			
		||||
        return this._locationValid;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    get info() {
 | 
			
		||||
        return this._weatherInfo;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    activateApp: function() {
 | 
			
		||||
        this._weatherAppMon.activateApp();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    update: function() {
 | 
			
		||||
        if (!this._locationValid)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        let now = GLib.DateTime.new_now_local();
 | 
			
		||||
        // Update without loading indication if the current info is recent enough
 | 
			
		||||
        if (this._weatherInfo.is_valid() &&
 | 
			
		||||
            now.difference(this._lastUpdate) < UPDATE_THRESHOLD)
 | 
			
		||||
            this._weatherInfo.update();
 | 
			
		||||
        else
 | 
			
		||||
            this._loadInfo();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    get _useAutoLocation() {
 | 
			
		||||
        return this._autoLocationRequested &&
 | 
			
		||||
               this._locationSettings.get_boolean('enabled') &&
 | 
			
		||||
               this._weatherAuthorized;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _loadInfo: function() {
 | 
			
		||||
        let id = this._weatherInfo.connect('updated', () => {
 | 
			
		||||
            this._weatherInfo.disconnect(id);
 | 
			
		||||
            this._loading = false;
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        this._loading = true;
 | 
			
		||||
        this.emit('changed');
 | 
			
		||||
 | 
			
		||||
        this._weatherInfo.update();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _locationsEqual: function(loc1, loc2) {
 | 
			
		||||
        if (loc1 == loc2)
 | 
			
		||||
            return true;
 | 
			
		||||
 | 
			
		||||
        if (loc1 == null || loc2 == null)
 | 
			
		||||
            return false;
 | 
			
		||||
 | 
			
		||||
        return loc1.equal(loc2);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _setLocation: function(location) {
 | 
			
		||||
        if (this._locationsEqual(this._weatherInfo.location, location))
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._weatherInfo.abort();
 | 
			
		||||
        this._weatherInfo.set_location(location);
 | 
			
		||||
        this._locationValid = (location != null);
 | 
			
		||||
 | 
			
		||||
        this._weatherInfo.set_enabled_providers(location ? this._providers : 0);
 | 
			
		||||
 | 
			
		||||
        if (location)
 | 
			
		||||
            this._loadInfo();
 | 
			
		||||
        else
 | 
			
		||||
            this.emit('changed');
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _updateLocationMonitoring: function() {
 | 
			
		||||
        if (this._useAutoLocation) {
 | 
			
		||||
            if (this._gclueLocationChangedId != 0 || this._gclueService == null)
 | 
			
		||||
                return;
 | 
			
		||||
 | 
			
		||||
            this._gclueLocationChangedId =
 | 
			
		||||
                this._gclueService.connect('notify::location',
 | 
			
		||||
                                           Lang.bind(this, this._onGClueLocationChanged));
 | 
			
		||||
            this._onGClueLocationChanged();
 | 
			
		||||
        } else {
 | 
			
		||||
            if (this._gclueLocationChangedId)
 | 
			
		||||
                this._gclueService.disconnect(this._gclueLocationChangedId);
 | 
			
		||||
            this._gclueLocationChangedId = 0;
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _startGClueService: function() {
 | 
			
		||||
        if (this._gclueStarting)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._gclueStarting = true;
 | 
			
		||||
 | 
			
		||||
        Geoclue.Simple.new('org.gnome.Shell', Geoclue.AccuracyLevel.CITY, null,
 | 
			
		||||
            (o, res) => {
 | 
			
		||||
                try {
 | 
			
		||||
                    this._gclueService = Geoclue.Simple.new_finish(res);
 | 
			
		||||
                } catch(e) {
 | 
			
		||||
                    log('Failed to connect to Geoclue2 service: ' + e.message);
 | 
			
		||||
                    this._setLocation(this._mostRecentLocation);
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
                this._gclueStarted = true;
 | 
			
		||||
                this._gclueService.get_client().distance_threshold = 100;
 | 
			
		||||
                this._updateLocationMonitoring();
 | 
			
		||||
            });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onGClueLocationChanged: function() {
 | 
			
		||||
        let geoLocation = this._gclueService.location;
 | 
			
		||||
        let location = GWeather.Location.new_detached(geoLocation.description,
 | 
			
		||||
                                                      null,
 | 
			
		||||
                                                      geoLocation.latitude,
 | 
			
		||||
                                                      geoLocation.longitude);
 | 
			
		||||
        this._setLocation(location);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onAutomaticLocationChanged: function(settings, key) {
 | 
			
		||||
        let useAutoLocation = settings.get_boolean(key);
 | 
			
		||||
        if (this._autoLocationRequested == useAutoLocation)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._autoLocationRequested = useAutoLocation;
 | 
			
		||||
 | 
			
		||||
        this._updateAutoLocation();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _updateAutoLocation: function() {
 | 
			
		||||
        this._updateLocationMonitoring();
 | 
			
		||||
 | 
			
		||||
        if (this._useAutoLocation)
 | 
			
		||||
            this._startGClueService();
 | 
			
		||||
        else
 | 
			
		||||
            this._setLocation(this._mostRecentLocation);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onLocationsChanged: function(settings, key) {
 | 
			
		||||
        let serialized = settings.get_value(key).deep_unpack().shift();
 | 
			
		||||
        let mostRecentLocation = null;
 | 
			
		||||
 | 
			
		||||
        if (serialized)
 | 
			
		||||
            mostRecentLocation = this._world.deserialize(serialized);
 | 
			
		||||
 | 
			
		||||
        if (this._locationsEqual(this._mostRecentLocation, mostRecentLocation))
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._mostRecentLocation = mostRecentLocation;
 | 
			
		||||
 | 
			
		||||
        if (!this._useAutoLocation || !this._gclueStarted)
 | 
			
		||||
            this._setLocation(this._mostRecentLocation);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onPermStoreChanged: function(proxy, sender, params) {
 | 
			
		||||
        let [table, id, deleted, data, perms] = params;
 | 
			
		||||
 | 
			
		||||
        if (table != 'gnome' || id != 'geolocation')
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        let permission = perms['org.gnome.Weather.Application'] || ['NONE'];
 | 
			
		||||
        let [accuracy] = permission;
 | 
			
		||||
        this._weatherAuthorized = accuracy != 'NONE';
 | 
			
		||||
 | 
			
		||||
        this._updateAutoLocation();
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(WeatherClient.prototype);
 | 
			
		||||
@@ -19,15 +19,7 @@ const PortalHelperResult = {
 | 
			
		||||
    RECHECK: 2
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const PortalHelperSecurityLevel = {
 | 
			
		||||
    NOT_YET_DETERMINED: 0,
 | 
			
		||||
    SECURE: 1,
 | 
			
		||||
    INSECURE: 2
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const INACTIVITY_TIMEOUT = 30000; //ms
 | 
			
		||||
const CONNECTIVITY_CHECK_HOST = 'nmcheck.gnome.org';
 | 
			
		||||
const CONNECTIVITY_CHECK_URI = 'http://' + CONNECTIVITY_CHECK_HOST;
 | 
			
		||||
const CONNECTIVITY_RECHECK_RATELIMIT_TIMEOUT = 30 * GLib.USEC_PER_SEC;
 | 
			
		||||
 | 
			
		||||
const HelperDBusInterface = '<node> \
 | 
			
		||||
@@ -50,86 +42,15 @@ const HelperDBusInterface = '<node> \
 | 
			
		||||
</interface> \
 | 
			
		||||
</node>';
 | 
			
		||||
 | 
			
		||||
var PortalHeaderBar = new Lang.Class({
 | 
			
		||||
    Name: 'PortalHeaderBar',
 | 
			
		||||
    Extends: Gtk.HeaderBar,
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this.parent({ show_close_button: true });
 | 
			
		||||
 | 
			
		||||
        // See ephy-title-box.c in epiphany for the layout
 | 
			
		||||
        let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL,
 | 
			
		||||
                                 spacing: 0 });
 | 
			
		||||
        this.set_custom_title(vbox);
 | 
			
		||||
 | 
			
		||||
        /* TRANSLATORS: this is the title of the wifi captive portal login window */
 | 
			
		||||
        let titleLabel = new Gtk.Label({ label: _("Hotspot Login"),
 | 
			
		||||
                                         wrap: false,
 | 
			
		||||
                                         single_line_mode: true,
 | 
			
		||||
                                         ellipsize: Pango.EllipsizeMode.END });
 | 
			
		||||
        titleLabel.get_style_context().add_class('title');
 | 
			
		||||
        vbox.add(titleLabel);
 | 
			
		||||
 | 
			
		||||
        let hbox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL,
 | 
			
		||||
                                 spacing: 4,
 | 
			
		||||
                                 halign: Gtk.Align.CENTER,
 | 
			
		||||
                                 valign: Gtk.Align.BASELINE });
 | 
			
		||||
        hbox.get_style_context().add_class('subtitle');
 | 
			
		||||
        vbox.add(hbox);
 | 
			
		||||
 | 
			
		||||
        this._lockImage = new Gtk.Image({ icon_size: Gtk.IconSize.MENU,
 | 
			
		||||
                                          valign: Gtk.Align.BASELINE });
 | 
			
		||||
        hbox.add(this._lockImage);
 | 
			
		||||
 | 
			
		||||
        this.subtitleLabel = new Gtk.Label({ wrap: false,
 | 
			
		||||
                                             single_line_mode: true,
 | 
			
		||||
                                             ellipsize: Pango.EllipsizeMode.END,
 | 
			
		||||
                                             valign: Gtk.Align.BASELINE,
 | 
			
		||||
                                             selectable: true});
 | 
			
		||||
        this.subtitleLabel.get_style_context().add_class('subtitle');
 | 
			
		||||
        hbox.add(this.subtitleLabel);
 | 
			
		||||
 | 
			
		||||
        vbox.show_all();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    setSubtitle: function(label) {
 | 
			
		||||
        this.subtitleLabel.set_text(label);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    setSecurityIcon: function(securityLevel) {
 | 
			
		||||
        switch (securityLevel) {
 | 
			
		||||
        case PortalHelperSecurityLevel.NOT_YET_DETERMINED:
 | 
			
		||||
            this._lockImage.hide();
 | 
			
		||||
            break;
 | 
			
		||||
        case PortalHelperSecurityLevel.SECURE:
 | 
			
		||||
            this._lockImage.show();
 | 
			
		||||
            this._lockImage.set_from_icon_name("channel-secure-symbolic", Gtk.IconSize.MENU);
 | 
			
		||||
            this._lockImage.set_tooltip_text(null);
 | 
			
		||||
            break;
 | 
			
		||||
        case PortalHelperSecurityLevel.INSECURE:
 | 
			
		||||
            this._lockImage.show();
 | 
			
		||||
            this._lockImage.set_from_icon_name("channel-insecure-symbolic", Gtk.IconSize.MENU);
 | 
			
		||||
            this._lockImage.set_tooltip_text(_('Your connection to this hotspot login is not secure. Passwords or other information you enter on this page can be viewed by people nearby.'));
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var PortalWindow = new Lang.Class({
 | 
			
		||||
const PortalWindow = new Lang.Class({
 | 
			
		||||
    Name: 'PortalWindow',
 | 
			
		||||
    Extends: Gtk.ApplicationWindow,
 | 
			
		||||
 | 
			
		||||
    _init: function(application, url, timestamp, doneCallback) {
 | 
			
		||||
        this.parent({ application: application });
 | 
			
		||||
 | 
			
		||||
        this.connect('delete-event', Lang.bind(this, this.destroyWindow));
 | 
			
		||||
        this._headerBar = new PortalHeaderBar();
 | 
			
		||||
        this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.NOT_YET_DETERMINED);
 | 
			
		||||
        this.set_titlebar(this._headerBar);
 | 
			
		||||
        this._headerBar.show();
 | 
			
		||||
 | 
			
		||||
        if (!url) {
 | 
			
		||||
            url = CONNECTIVITY_CHECK_URI;
 | 
			
		||||
            url = 'http://www.gnome.org';
 | 
			
		||||
            this._originalUrlWasGnome = true;
 | 
			
		||||
        } else {
 | 
			
		||||
            this._originalUrlWasGnome = false;
 | 
			
		||||
@@ -141,38 +62,28 @@ var PortalWindow = new Lang.Class({
 | 
			
		||||
        this._lastRecheck = 0;
 | 
			
		||||
        this._recheckAtExit = false;
 | 
			
		||||
 | 
			
		||||
        this._webContext = WebKit.WebContext.new_ephemeral();
 | 
			
		||||
        this._webContext.set_cache_model(WebKit.CacheModel.DOCUMENT_VIEWER);
 | 
			
		||||
        this._webContext.set_network_proxy_settings(WebKit.NetworkProxyMode.NO_PROXY, null);
 | 
			
		||||
 | 
			
		||||
        this._webView = WebKit.WebView.new_with_context(this._webContext);
 | 
			
		||||
        this._webView = new WebKit.WebView();
 | 
			
		||||
        this._webView.connect('decide-policy', Lang.bind(this, this._onDecidePolicy));
 | 
			
		||||
        this._webView.connect('load-changed', Lang.bind(this, this._onLoadChanged));
 | 
			
		||||
        this._webView.connect('insecure-content-detected', Lang.bind(this, this._onInsecureContentDetected));
 | 
			
		||||
        this._webView.connect('load-failed-with-tls-errors', Lang.bind(this, this._onLoadFailedWithTlsErrors));
 | 
			
		||||
        this._webView.load_uri(url);
 | 
			
		||||
        this._webView.connect('notify::uri', Lang.bind(this, this._syncUri));
 | 
			
		||||
        this._syncUri();
 | 
			
		||||
        this._webView.connect('notify::title', Lang.bind(this, this._syncTitle));
 | 
			
		||||
        this._syncTitle();
 | 
			
		||||
 | 
			
		||||
        this.add(this._webView);
 | 
			
		||||
        this._webView.show();
 | 
			
		||||
        this.set_size_request(600, 450);
 | 
			
		||||
        this.maximize();
 | 
			
		||||
        this.present_with_time(timestamp);
 | 
			
		||||
 | 
			
		||||
        this.application.set_accels_for_action('app.quit', ['<Primary>q', '<Primary>w']);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    destroyWindow: function() {
 | 
			
		||||
        this.destroy();
 | 
			
		||||
    },
 | 
			
		||||
    _syncTitle: function() {
 | 
			
		||||
        let title = this._webView.title;
 | 
			
		||||
 | 
			
		||||
    _syncUri: function() {
 | 
			
		||||
        let uri = this._webView.uri;
 | 
			
		||||
        if (uri)
 | 
			
		||||
            this._headerBar.setSubtitle(GLib.uri_unescape_string(uri, null));
 | 
			
		||||
        else
 | 
			
		||||
            this._headerBar.setSubtitle('');
 | 
			
		||||
        if (title) {
 | 
			
		||||
            this.title = title;
 | 
			
		||||
        } else {
 | 
			
		||||
            // TRANSLATORS: this is the title of the wifi captive portal login
 | 
			
		||||
            // window, until we know the title of the actual login page
 | 
			
		||||
            this.title = _("Web Authentication Redirect");
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    refresh: function() {
 | 
			
		||||
@@ -188,46 +99,8 @@ var PortalWindow = new Lang.Class({
 | 
			
		||||
        return false;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onLoadChanged: function(view, loadEvent) {
 | 
			
		||||
        if (loadEvent == WebKit.LoadEvent.STARTED) {
 | 
			
		||||
            this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.NOT_YET_DETERMINED);
 | 
			
		||||
        } else if (loadEvent == WebKit.LoadEvent.COMMITTED) {
 | 
			
		||||
            let tlsInfo = this._webView.get_tls_info();
 | 
			
		||||
            let ret = tlsInfo[0];
 | 
			
		||||
            let flags = tlsInfo[2];
 | 
			
		||||
            if (ret && flags == 0)
 | 
			
		||||
                this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.SECURE);
 | 
			
		||||
            else
 | 
			
		||||
                this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.INSECURE);
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onInsecureContentDetected: function () {
 | 
			
		||||
        this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.INSECURE);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onLoadFailedWithTlsErrors: function (view, failingURI, certificate, errors) {
 | 
			
		||||
        this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.INSECURE);
 | 
			
		||||
        let uri = new Soup.URI(failingURI);
 | 
			
		||||
        this._webContext.allow_tls_certificate_for_host(certificate, uri.get_host());
 | 
			
		||||
        this._webView.load_uri(failingURI);
 | 
			
		||||
        return true;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onDecidePolicy: function(view, decision, type) {
 | 
			
		||||
        if (type == WebKit.PolicyDecisionType.NEW_WINDOW_ACTION) {
 | 
			
		||||
            let navigationAction = decision.get_navigation_action();
 | 
			
		||||
            if (navigationAction.is_user_gesture()) {
 | 
			
		||||
                // Even though the portal asks for a new window,
 | 
			
		||||
                // perform the navigation in the current one. Some
 | 
			
		||||
                // portals open a window as their last login step and
 | 
			
		||||
                // ignoring that window causes them to not let the
 | 
			
		||||
                // user go through. We don't risk popups taking over
 | 
			
		||||
                // the page because we check that the navigation is
 | 
			
		||||
                // user initiated.
 | 
			
		||||
                this._webView.load_request(navigationAction.get_request());
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            decision.ignore();
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
@@ -239,12 +112,12 @@ var PortalWindow = new Lang.Class({
 | 
			
		||||
        let uri = new Soup.URI(request.get_uri());
 | 
			
		||||
 | 
			
		||||
        if (!uri.host_equal(this._uri) && this._originalUrlWasGnome) {
 | 
			
		||||
            if (uri.get_host() == CONNECTIVITY_CHECK_HOST && this._everSeenRedirect) {
 | 
			
		||||
            if (uri.get_host() == 'www.gnome.org' && this._everSeenRedirect) {
 | 
			
		||||
                // Yay, we got to gnome!
 | 
			
		||||
                decision.ignore();
 | 
			
		||||
                this._doneCallback(PortalHelperResult.COMPLETED);
 | 
			
		||||
                return true;
 | 
			
		||||
            } else if (uri.get_host() != CONNECTIVITY_CHECK_HOST) {
 | 
			
		||||
            } else if (uri.get_host() != 'www.gnome.org') {
 | 
			
		||||
                this._everSeenRedirect = true;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
@@ -282,7 +155,7 @@ var PortalWindow = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var WebPortalHelper = new Lang.Class({
 | 
			
		||||
const WebPortalHelper = new Lang.Class({
 | 
			
		||||
    Name: 'WebPortalHelper',
 | 
			
		||||
    Extends: Gtk.Application,
 | 
			
		||||
 | 
			
		||||
@@ -293,10 +166,6 @@ var WebPortalHelper = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(HelperDBusInterface, this);
 | 
			
		||||
        this._queue = [];
 | 
			
		||||
 | 
			
		||||
        let action = new Gio.SimpleAction({ name: 'quit' });
 | 
			
		||||
        action.connect('activate', () => { this.active_window.destroyWindow(); });
 | 
			
		||||
        this.add_action(action);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    vfunc_dbus_register: function(connection, path) {
 | 
			
		||||
@@ -328,7 +197,7 @@ var WebPortalHelper = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
            if (obj.connection == connection) {
 | 
			
		||||
                if (obj.window)
 | 
			
		||||
                    obj.window.destroyWindow();
 | 
			
		||||
                    obj.window.destroy();
 | 
			
		||||
                this._queue.splice(i, 1);
 | 
			
		||||
                break;
 | 
			
		||||
            }
 | 
			
		||||
@@ -357,7 +226,7 @@ var WebPortalHelper = new Lang.Class({
 | 
			
		||||
        if (top.window != null)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        top.window = new PortalWindow(this, top.url, top.timestamp, Lang.bind(this, function(result) {
 | 
			
		||||
        top.window = new PortalWindow(this, top.uri, top.timestamp, Lang.bind(this, function(result) {
 | 
			
		||||
            this._dbusImpl.emit_signal('Done', new GLib.Variant('(ou)', [top.connection, result]));
 | 
			
		||||
        }));
 | 
			
		||||
    },
 | 
			
		||||
@@ -370,11 +239,6 @@ function initEnvironment() {
 | 
			
		||||
function main(argv) {
 | 
			
		||||
    initEnvironment();
 | 
			
		||||
 | 
			
		||||
    if (!WebKit.WebContext.new_ephemeral) {
 | 
			
		||||
        log('WebKitGTK 2.16 is required for the portal-helper, see https://bugzilla.gnome.org/show_bug.cgi?id=780453');
 | 
			
		||||
        return 1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Gettext.bindtextdomain(Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
 | 
			
		||||
    Gettext.textdomain(Config.GETTEXT_PACKAGE);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,180 +0,0 @@
 | 
			
		||||
const Clutter = imports.gi.Clutter;
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const GLib = imports.gi.GLib;
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Pango = imports.gi.Pango;
 | 
			
		||||
const Shell = imports.gi.Shell;
 | 
			
		||||
const St = imports.gi.St;
 | 
			
		||||
 | 
			
		||||
const CheckBox = imports.ui.checkBox;
 | 
			
		||||
const Dialog = imports.ui.dialog;
 | 
			
		||||
const ModalDialog = imports.ui.modalDialog;
 | 
			
		||||
 | 
			
		||||
const RequestIface = '<node> \
 | 
			
		||||
<interface name="org.freedesktop.impl.portal.Request"> \
 | 
			
		||||
<method name="Close"/> \
 | 
			
		||||
</interface> \
 | 
			
		||||
</node>';
 | 
			
		||||
 | 
			
		||||
const AccessIface = '<node> \
 | 
			
		||||
<interface name="org.freedesktop.impl.portal.Access"> \
 | 
			
		||||
<method name="AccessDialog"> \
 | 
			
		||||
  <arg type="o" name="handle" direction="in"/> \
 | 
			
		||||
  <arg type="s" name="app_id" direction="in"/> \
 | 
			
		||||
  <arg type="s" name="parent_window" direction="in"/> \
 | 
			
		||||
  <arg type="s" name="title" direction="in"/> \
 | 
			
		||||
  <arg type="s" name="subtitle" direction="in"/> \
 | 
			
		||||
  <arg type="s" name="body" direction="in"/> \
 | 
			
		||||
  <arg type="a{sv}" name="options" direction="in"/> \
 | 
			
		||||
  <arg type="u" name="response" direction="out"/> \
 | 
			
		||||
  <arg type="a{sv}" name="results" direction="out"/> \
 | 
			
		||||
</method> \
 | 
			
		||||
</interface> \
 | 
			
		||||
</node>';
 | 
			
		||||
 | 
			
		||||
var DialogResponse = {
 | 
			
		||||
    OK: 0,
 | 
			
		||||
    CANCEL: 1,
 | 
			
		||||
    CLOSED: 2
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
var AccessDialog = new Lang.Class({
 | 
			
		||||
    Name: 'AccessDialog',
 | 
			
		||||
    Extends: ModalDialog.ModalDialog,
 | 
			
		||||
 | 
			
		||||
    _init: function(invocation, handle, title, subtitle, body, options) {
 | 
			
		||||
        this.parent({ styleClass: 'access-dialog' });
 | 
			
		||||
 | 
			
		||||
        this._invocation = invocation;
 | 
			
		||||
        this._handle = handle;
 | 
			
		||||
 | 
			
		||||
        this._requestExported = false;
 | 
			
		||||
        this._request = Gio.DBusExportedObject.wrapJSObject(RequestIface, this);
 | 
			
		||||
 | 
			
		||||
        for (let option in options)
 | 
			
		||||
            options[option] = options[option].deep_unpack();
 | 
			
		||||
 | 
			
		||||
        this._buildLayout(title, subtitle, body, options);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _buildLayout: function(title, subtitle, body, options) {
 | 
			
		||||
        // No support for non-modal system dialogs, so ignore the option
 | 
			
		||||
        //let modal = options['modal'] || true;
 | 
			
		||||
        let denyLabel = options['deny_label'] || _("Deny Access");
 | 
			
		||||
        let grantLabel = options['grant_label'] || _("Grant Access");
 | 
			
		||||
        let iconName = options['icon'] || null;
 | 
			
		||||
        let choices = options['choices'] || [];
 | 
			
		||||
 | 
			
		||||
        let contentParams = { title, subtitle, body };
 | 
			
		||||
        if (iconName)
 | 
			
		||||
            contentParams.icon = new Gio.ThemedIcon({ name: iconName });
 | 
			
		||||
        let content = new Dialog.MessageDialogContent(contentParams);
 | 
			
		||||
        this.contentLayout.add_actor(content);
 | 
			
		||||
 | 
			
		||||
        this._choices = new Map();
 | 
			
		||||
 | 
			
		||||
        for (let i = 0; i < choices.length; i++) {
 | 
			
		||||
            let [id, name, opts, selected] = choices[i];
 | 
			
		||||
            if (opts.length > 0)
 | 
			
		||||
                continue; // radio buttons, not implemented
 | 
			
		||||
 | 
			
		||||
            let check = new CheckBox.CheckBox();
 | 
			
		||||
            check.getLabelActor().text = name;
 | 
			
		||||
            check.actor.checked = selected == "true";
 | 
			
		||||
            content.insertBeforeBody(check.actor);
 | 
			
		||||
 | 
			
		||||
            this._choices.set(id, check);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this.addButton({ label: denyLabel,
 | 
			
		||||
                         action: () => {
 | 
			
		||||
                             this._sendResponse(DialogResponse.CANCEL);
 | 
			
		||||
                         },
 | 
			
		||||
                         key: Clutter.KEY_Escape });
 | 
			
		||||
        this.addButton({ label: grantLabel,
 | 
			
		||||
                         action: () => {
 | 
			
		||||
                             this._sendResponse(DialogResponse.OK);
 | 
			
		||||
                         }});
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    open: function() {
 | 
			
		||||
        this.parent();
 | 
			
		||||
 | 
			
		||||
        let connection = this._invocation.get_connection();
 | 
			
		||||
        this._requestExported = this._request.export(connection, this._handle);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    CloseAsync: function(invocation, params) {
 | 
			
		||||
        if (this._invocation.get_sender() != invocation.get_sender()) {
 | 
			
		||||
            invocation.return_error_literal(Gio.DBusError,
 | 
			
		||||
                                            Gio.DBusError.ACCESS_DENIED,
 | 
			
		||||
                                            '');
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._sendResponse(DialogResponse.CLOSED);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _sendResponse: function(response) {
 | 
			
		||||
        if (this._requestExported)
 | 
			
		||||
            this._request.unexport();
 | 
			
		||||
        this._requestExported = false;
 | 
			
		||||
 | 
			
		||||
        let results = {};
 | 
			
		||||
        if (response == DialogResponse.OK) {
 | 
			
		||||
            for (let [id, check] of this._choices) {
 | 
			
		||||
                let checked = check.actor.checked ? 'true' : 'false';
 | 
			
		||||
                results[id] = new GLib.Variant('s', checked);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Delay actual response until the end of the close animation (if any)
 | 
			
		||||
        this.connect('closed', () => {
 | 
			
		||||
            this._invocation.return_value(new GLib.Variant('(ua{sv})',
 | 
			
		||||
                                                           [response, results]));
 | 
			
		||||
        });
 | 
			
		||||
        this.close();
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var AccessDialogDBus = new Lang.Class({
 | 
			
		||||
    Name: 'AccessDialogDBus',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._accessDialog = null;
 | 
			
		||||
 | 
			
		||||
        this._windowTracker = Shell.WindowTracker.get_default();
 | 
			
		||||
 | 
			
		||||
        this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(AccessIface, this);
 | 
			
		||||
        this._dbusImpl.export(Gio.DBus.session, '/org/freedesktop/portal/desktop');
 | 
			
		||||
 | 
			
		||||
        Gio.DBus.session.own_name('org.freedesktop.impl.portal.desktop.gnome', Gio.BusNameOwnerFlags.REPLACE, null, null);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    AccessDialogAsync: function(params, invocation) {
 | 
			
		||||
        if (this._accessDialog) {
 | 
			
		||||
            invocation.return_error_literal(Gio.DBusError,
 | 
			
		||||
                                            Gio.DBusError.LIMITS_EXCEEDED,
 | 
			
		||||
                                            'Already showing a system access dialog');
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let [handle, appId, parentWindow, title, subtitle, body, options] = params;
 | 
			
		||||
        // We probably want to use parentWindow and global.display.focus_window
 | 
			
		||||
        // for this check in the future
 | 
			
		||||
        if (appId && appId + '.desktop' != this._windowTracker.focus_app.id) {
 | 
			
		||||
            invocation.return_error_literal(Gio.DBusError,
 | 
			
		||||
                                            Gio.DBusError.ACCESS_DENIED,
 | 
			
		||||
                                            'Only the focused app is allowed to show a system access dialog');
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let dialog = new AccessDialog(invocation, handle, title,
 | 
			
		||||
                                      subtitle, body, options);
 | 
			
		||||
        dialog.open();
 | 
			
		||||
 | 
			
		||||
        dialog.connect('closed', () => { this._accessDialog = null; });
 | 
			
		||||
 | 
			
		||||
        this._accessDialog = dialog;
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										230
									
								
								js/ui/altTab.js
									
									
									
									
									
								
							
							
						
						@@ -14,28 +14,29 @@ const Main = imports.ui.main;
 | 
			
		||||
const SwitcherPopup = imports.ui.switcherPopup;
 | 
			
		||||
const Tweener = imports.ui.tweener;
 | 
			
		||||
 | 
			
		||||
var APP_ICON_HOVER_TIMEOUT = 200; // milliseconds
 | 
			
		||||
const APP_ICON_HOVER_TIMEOUT = 200; // milliseconds
 | 
			
		||||
 | 
			
		||||
var THUMBNAIL_DEFAULT_SIZE = 256;
 | 
			
		||||
var THUMBNAIL_POPUP_TIME = 500; // milliseconds
 | 
			
		||||
var THUMBNAIL_FADE_TIME = 0.1; // seconds
 | 
			
		||||
const THUMBNAIL_DEFAULT_SIZE = 256;
 | 
			
		||||
const THUMBNAIL_POPUP_TIME = 500; // milliseconds
 | 
			
		||||
const THUMBNAIL_FADE_TIME = 0.1; // seconds
 | 
			
		||||
 | 
			
		||||
var WINDOW_PREVIEW_SIZE = 128;
 | 
			
		||||
var APP_ICON_SIZE = 96;
 | 
			
		||||
var APP_ICON_SIZE_SMALL = 48;
 | 
			
		||||
const WINDOW_PREVIEW_SIZE = 128;
 | 
			
		||||
const APP_ICON_SIZE = 96;
 | 
			
		||||
const APP_ICON_SIZE_SMALL = 48;
 | 
			
		||||
 | 
			
		||||
const baseIconSizes = [96, 64, 48, 32, 22];
 | 
			
		||||
 | 
			
		||||
var AppIconMode = {
 | 
			
		||||
const AppIconMode = {
 | 
			
		||||
    THUMBNAIL_ONLY: 1,
 | 
			
		||||
    APP_ICON_ONLY: 2,
 | 
			
		||||
    BOTH: 3,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
function _createWindowClone(window, size) {
 | 
			
		||||
    let [width, height] = window.get_size();
 | 
			
		||||
    let windowTexture = window.get_texture();
 | 
			
		||||
    let [width, height] = windowTexture.get_size();
 | 
			
		||||
    let scale = Math.min(1.0, size / width, size / height);
 | 
			
		||||
    return new Clutter.Clone({ source: window,
 | 
			
		||||
    return new Clutter.Clone({ source: windowTexture,
 | 
			
		||||
                               width: width * scale,
 | 
			
		||||
                               height: height * scale,
 | 
			
		||||
                               x_align: Clutter.ActorAlign.CENTER,
 | 
			
		||||
@@ -45,20 +46,7 @@ function _createWindowClone(window, size) {
 | 
			
		||||
                               y_expand: true });
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
function getWindows(workspace) {
 | 
			
		||||
    // We ignore skip-taskbar windows in switchers, but if they are attached
 | 
			
		||||
    // to their parent, their position in the MRU list may be more appropriate
 | 
			
		||||
    // than the parent; so start with the complete list ...
 | 
			
		||||
    let windows = global.display.get_tab_list(Meta.TabList.NORMAL_ALL,
 | 
			
		||||
                                              workspace);
 | 
			
		||||
    // ... map windows to their parent where appropriate ...
 | 
			
		||||
    return windows.map(w => {
 | 
			
		||||
        return w.is_attached_dialog() ? w.get_transient_for() : w;
 | 
			
		||||
    // ... and filter out skip-taskbar windows and duplicates
 | 
			
		||||
    }).filter((w, i, a) => !w.skip_taskbar && a.indexOf(w) == i);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var AppSwitcherPopup = new Lang.Class({
 | 
			
		||||
const AppSwitcherPopup = new Lang.Class({
 | 
			
		||||
    Name: 'AppSwitcherPopup',
 | 
			
		||||
    Extends: SwitcherPopup.SwitcherPopup,
 | 
			
		||||
 | 
			
		||||
@@ -93,6 +81,7 @@ var AppSwitcherPopup = new Lang.Class({
 | 
			
		||||
            let leftPadding = this.actor.get_theme_node().get_padding(St.Side.LEFT);
 | 
			
		||||
            let rightPadding = this.actor.get_theme_node().get_padding(St.Side.RIGHT);
 | 
			
		||||
            let bottomPadding = this.actor.get_theme_node().get_padding(St.Side.BOTTOM);
 | 
			
		||||
            let vPadding = this.actor.get_theme_node().get_vertical_padding();
 | 
			
		||||
            let hPadding = leftPadding + rightPadding;
 | 
			
		||||
 | 
			
		||||
            let icon = this._items[this._selectedIndex].actor;
 | 
			
		||||
@@ -366,150 +355,7 @@ var AppSwitcherPopup = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var CyclerHighlight = new Lang.Class({
 | 
			
		||||
    Name: 'CyclerHighlight',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._window = null;
 | 
			
		||||
 | 
			
		||||
        this.actor = new St.Widget({ layout_manager: new Clutter.BinLayout() });
 | 
			
		||||
 | 
			
		||||
        this._clone = new Clutter.Clone();
 | 
			
		||||
        this.actor.add_actor(this._clone);
 | 
			
		||||
 | 
			
		||||
        this._highlight = new St.Widget({ style_class: 'cycler-highlight' });
 | 
			
		||||
        this.actor.add_actor(this._highlight);
 | 
			
		||||
 | 
			
		||||
        let coordinate = Clutter.BindCoordinate.ALL;
 | 
			
		||||
        let constraint = new Clutter.BindConstraint({ coordinate: coordinate });
 | 
			
		||||
        this._clone.bind_property('source', constraint, 'source', 0);
 | 
			
		||||
 | 
			
		||||
        this.actor.add_constraint(constraint);
 | 
			
		||||
 | 
			
		||||
        this.actor.connect('notify::allocation',
 | 
			
		||||
                           Lang.bind(this, this._onAllocationChanged));
 | 
			
		||||
        this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    set window(w) {
 | 
			
		||||
        if (this._window == w)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._window = w;
 | 
			
		||||
 | 
			
		||||
        if (this._clone.source)
 | 
			
		||||
            this._clone.source.sync_visibility();
 | 
			
		||||
 | 
			
		||||
        let windowActor = this._window ? this._window.get_compositor_private()
 | 
			
		||||
                                       : null;
 | 
			
		||||
 | 
			
		||||
        if (windowActor)
 | 
			
		||||
            windowActor.hide();
 | 
			
		||||
 | 
			
		||||
        this._clone.source = windowActor;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onAllocationChanged: function() {
 | 
			
		||||
        if (!this._window) {
 | 
			
		||||
            this._highlight.set_size(0, 0);
 | 
			
		||||
            this._highlight.hide();
 | 
			
		||||
        } else {
 | 
			
		||||
            let [x, y] = this.actor.allocation.get_origin();
 | 
			
		||||
            let rect = this._window.get_frame_rect();
 | 
			
		||||
            this._highlight.set_size(rect.width, rect.height);
 | 
			
		||||
            this._highlight.set_position(rect.x - x, rect.y - y);
 | 
			
		||||
            this._highlight.show();
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onDestroy: function() {
 | 
			
		||||
        this.window = null;
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var CyclerPopup = new Lang.Class({
 | 
			
		||||
    Name: 'CyclerPopup',
 | 
			
		||||
    Extends: SwitcherPopup.SwitcherPopup,
 | 
			
		||||
    Abstract: true,
 | 
			
		||||
 | 
			
		||||
    _init : function() {
 | 
			
		||||
        this.parent();
 | 
			
		||||
 | 
			
		||||
        this._items = this._getWindows();
 | 
			
		||||
 | 
			
		||||
        if (this._items.length == 0)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._highlight = new CyclerHighlight();
 | 
			
		||||
        global.window_group.add_actor(this._highlight.actor);
 | 
			
		||||
 | 
			
		||||
        // We don't show an actual popup, so just provide what SwitcherPopup
 | 
			
		||||
        // expects instead of inheriting from SwitcherList
 | 
			
		||||
        this._switcherList = { actor: new St.Widget(),
 | 
			
		||||
                               highlight: Lang.bind(this, this._highlightItem),
 | 
			
		||||
                               connect: function() {} };
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _highlightItem: function(index, justOutline) {
 | 
			
		||||
        this._highlight.window = this._items[index];
 | 
			
		||||
        global.window_group.set_child_above_sibling(this._highlight.actor, null);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _finish: function() {
 | 
			
		||||
        let window = this._items[this._selectedIndex];
 | 
			
		||||
        let ws = window.get_workspace();
 | 
			
		||||
        let activeWs = global.screen.get_active_workspace();
 | 
			
		||||
 | 
			
		||||
        if (window.minimized) {
 | 
			
		||||
            Main.wm.skipNextEffect(window.get_compositor_private());
 | 
			
		||||
            window.unminimize();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (activeWs == ws) {
 | 
			
		||||
            Main.activateWindow(window);
 | 
			
		||||
        } else {
 | 
			
		||||
            // If the selected window is on a different workspace, we don't
 | 
			
		||||
            // want it to disappear, then slide in with the workspace; instead,
 | 
			
		||||
            // always activate it on the active workspace ...
 | 
			
		||||
            activeWs.activate_with_focus(window, global.get_current_time());
 | 
			
		||||
 | 
			
		||||
            // ... then slide it over to the original workspace if necessary
 | 
			
		||||
            Main.wm.actionMoveWindow(window, ws);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this.parent();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onDestroy: function() {
 | 
			
		||||
        this._highlight.actor.destroy();
 | 
			
		||||
 | 
			
		||||
        this.parent();
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
var GroupCyclerPopup = new Lang.Class({
 | 
			
		||||
    Name: 'GroupCyclerPopup',
 | 
			
		||||
    Extends: CyclerPopup,
 | 
			
		||||
 | 
			
		||||
    _getWindows: function() {
 | 
			
		||||
        let app = Shell.WindowTracker.get_default().focus_app;
 | 
			
		||||
        return app ? app.get_windows() : [];
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _keyPressHandler: function(keysym, action) {
 | 
			
		||||
        if (action == Meta.KeyBindingAction.CYCLE_GROUP)
 | 
			
		||||
            this._select(this._next());
 | 
			
		||||
        else if (action == Meta.KeyBindingAction.CYCLE_GROUP_BACKWARD)
 | 
			
		||||
            this._select(this._previous());
 | 
			
		||||
        else
 | 
			
		||||
            return Clutter.EVENT_PROPAGATE;
 | 
			
		||||
 | 
			
		||||
        return Clutter.EVENT_STOP;
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var WindowSwitcherPopup = new Lang.Class({
 | 
			
		||||
const WindowSwitcherPopup = new Lang.Class({
 | 
			
		||||
    Name: 'WindowSwitcherPopup',
 | 
			
		||||
    Extends: SwitcherPopup.SwitcherPopup,
 | 
			
		||||
 | 
			
		||||
@@ -529,7 +375,7 @@ var WindowSwitcherPopup = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    _getWindowList: function() {
 | 
			
		||||
        let workspace = this._settings.get_boolean('current-workspace-only') ? global.screen.get_active_workspace() : null;
 | 
			
		||||
        return getWindows(workspace);
 | 
			
		||||
        return global.display.get_tab_list(Meta.TabList.NORMAL, workspace);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _keyPressHandler: function(keysym, action) {
 | 
			
		||||
@@ -556,33 +402,7 @@ var WindowSwitcherPopup = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var WindowCyclerPopup = new Lang.Class({
 | 
			
		||||
    Name: 'WindowCyclerPopup',
 | 
			
		||||
    Extends: CyclerPopup,
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell.window-switcher' });
 | 
			
		||||
        this.parent();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _getWindows: function() {
 | 
			
		||||
        let workspace = this._settings.get_boolean('current-workspace-only') ? global.screen.get_active_workspace() : null;
 | 
			
		||||
        return getWindows(workspace);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _keyPressHandler: function(keysym, action) {
 | 
			
		||||
        if (action == Meta.KeyBindingAction.CYCLE_WINDOWS)
 | 
			
		||||
            this._select(this._next());
 | 
			
		||||
        else if (action == Meta.KeyBindingAction.CYCLE_WINDOWS_BACKWARD)
 | 
			
		||||
            this._select(this._previous());
 | 
			
		||||
        else
 | 
			
		||||
            return Clutter.EVENT_PROPAGATE;
 | 
			
		||||
 | 
			
		||||
        return Clutter.EVENT_STOP;
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var AppIcon = new Lang.Class({
 | 
			
		||||
const AppIcon = new Lang.Class({
 | 
			
		||||
    Name: 'AppIcon',
 | 
			
		||||
 | 
			
		||||
    _init: function(app) {
 | 
			
		||||
@@ -603,7 +423,7 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var AppSwitcher = new Lang.Class({
 | 
			
		||||
const AppSwitcher = new Lang.Class({
 | 
			
		||||
    Name: 'AppSwitcher',
 | 
			
		||||
    Extends: SwitcherPopup.SwitcherList,
 | 
			
		||||
 | 
			
		||||
@@ -629,6 +449,8 @@ var AppSwitcher = new Lang.Class({
 | 
			
		||||
            });
 | 
			
		||||
            if (appIcon.cachedWindows.length > 0)
 | 
			
		||||
                this._addIcon(appIcon);
 | 
			
		||||
            else if (workspace == null)
 | 
			
		||||
                throw new Error('%s appears to be running, but doesn\'t have any windows'.format(appIcon.app.get_name()));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._curApp = -1;
 | 
			
		||||
@@ -777,7 +599,7 @@ var AppSwitcher = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var ThumbnailList = new Lang.Class({
 | 
			
		||||
const ThumbnailList = new Lang.Class({
 | 
			
		||||
    Name: 'ThumbnailList',
 | 
			
		||||
    Extends: SwitcherPopup.SwitcherList,
 | 
			
		||||
 | 
			
		||||
@@ -845,7 +667,7 @@ var ThumbnailList = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var WindowIcon = new Lang.Class({
 | 
			
		||||
const WindowIcon = new Lang.Class({
 | 
			
		||||
    Name: 'WindowIcon',
 | 
			
		||||
 | 
			
		||||
    _init: function(window, mode) {
 | 
			
		||||
@@ -866,17 +688,15 @@ var WindowIcon = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        this._icon.destroy_all_children();
 | 
			
		||||
 | 
			
		||||
        let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
 | 
			
		||||
 | 
			
		||||
        switch (mode) {
 | 
			
		||||
            case AppIconMode.THUMBNAIL_ONLY:
 | 
			
		||||
                size = WINDOW_PREVIEW_SIZE;
 | 
			
		||||
                this._icon.add_actor(_createWindowClone(mutterWindow, size * scaleFactor));
 | 
			
		||||
                this._icon.add_actor(_createWindowClone(mutterWindow, WINDOW_PREVIEW_SIZE));
 | 
			
		||||
                break;
 | 
			
		||||
 | 
			
		||||
            case AppIconMode.BOTH:
 | 
			
		||||
                size = WINDOW_PREVIEW_SIZE;
 | 
			
		||||
                this._icon.add_actor(_createWindowClone(mutterWindow, size * scaleFactor));
 | 
			
		||||
                this._icon.add_actor(_createWindowClone(mutterWindow, WINDOW_PREVIEW_SIZE));
 | 
			
		||||
 | 
			
		||||
                if (this.app)
 | 
			
		||||
                    this._icon.add_actor(this._createAppIcon(this.app,
 | 
			
		||||
@@ -888,7 +708,7 @@ var WindowIcon = new Lang.Class({
 | 
			
		||||
                this._icon.add_actor(this._createAppIcon(this.app, size));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._icon.set_size(size * scaleFactor, size * scaleFactor);
 | 
			
		||||
        this._icon.set_size(size, size);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _createAppIcon: function(app, size) {
 | 
			
		||||
@@ -902,7 +722,7 @@ var WindowIcon = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var WindowList = new Lang.Class({
 | 
			
		||||
const WindowList = new Lang.Class({
 | 
			
		||||
    Name: 'WindowList',
 | 
			
		||||
    Extends: SwitcherPopup.SwitcherList,
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -7,9 +7,9 @@ const St = imports.gi.St;
 | 
			
		||||
const Signals = imports.signals;
 | 
			
		||||
const Atk = imports.gi.Atk;
 | 
			
		||||
 | 
			
		||||
var ANIMATED_ICON_UPDATE_TIMEOUT = 16;
 | 
			
		||||
const ANIMATED_ICON_UPDATE_TIMEOUT = 100;
 | 
			
		||||
 | 
			
		||||
var Animation = new Lang.Class({
 | 
			
		||||
const Animation = new Lang.Class({
 | 
			
		||||
    Name: 'Animation',
 | 
			
		||||
 | 
			
		||||
    _init: function(file, width, height, speed) {
 | 
			
		||||
@@ -33,7 +33,7 @@ var Animation = new Lang.Class({
 | 
			
		||||
            if (this._frame == 0)
 | 
			
		||||
                this._showFrame(0);
 | 
			
		||||
 | 
			
		||||
            this._timeoutId = GLib.timeout_add(GLib.PRIORITY_LOW, this._speed, Lang.bind(this, this._update));
 | 
			
		||||
            this._timeoutId = Mainloop.timeout_add(this._speed, Lang.bind(this, this._update));
 | 
			
		||||
            GLib.Source.set_name_by_id(this._timeoutId, '[gnome-shell] this._update');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -67,7 +67,7 @@ var Animation = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _animationsLoaded: function() {
 | 
			
		||||
        this._isLoaded = this._animations.get_n_children() > 0;
 | 
			
		||||
        this._isLoaded = true;
 | 
			
		||||
 | 
			
		||||
        if (this._isPlaying)
 | 
			
		||||
            this.play();
 | 
			
		||||
@@ -78,7 +78,7 @@ var Animation = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var AnimatedIcon = new Lang.Class({
 | 
			
		||||
const AnimatedIcon = new Lang.Class({
 | 
			
		||||
    Name: 'AnimatedIcon',
 | 
			
		||||
    Extends: Animation,
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -27,50 +27,38 @@ const Workspace = imports.ui.workspace;
 | 
			
		||||
const Params = imports.misc.params;
 | 
			
		||||
const Util = imports.misc.util;
 | 
			
		||||
 | 
			
		||||
var MAX_APPLICATION_WORK_MILLIS = 75;
 | 
			
		||||
var MENU_POPUP_TIMEOUT = 600;
 | 
			
		||||
var MAX_COLUMNS = 6;
 | 
			
		||||
var MIN_COLUMNS = 4;
 | 
			
		||||
var MIN_ROWS = 4;
 | 
			
		||||
const MAX_APPLICATION_WORK_MILLIS = 75;
 | 
			
		||||
const MENU_POPUP_TIMEOUT = 600;
 | 
			
		||||
const MAX_COLUMNS = 6;
 | 
			
		||||
const MIN_COLUMNS = 4;
 | 
			
		||||
const MIN_ROWS = 4;
 | 
			
		||||
 | 
			
		||||
var INACTIVE_GRID_OPACITY = 77;
 | 
			
		||||
const INACTIVE_GRID_OPACITY = 77;
 | 
			
		||||
// This time needs to be less than IconGrid.EXTRA_SPACE_ANIMATION_TIME
 | 
			
		||||
// to not clash with other animations
 | 
			
		||||
var INACTIVE_GRID_OPACITY_ANIMATION_TIME = 0.24;
 | 
			
		||||
var FOLDER_SUBICON_FRACTION = .4;
 | 
			
		||||
const INACTIVE_GRID_OPACITY_ANIMATION_TIME = 0.24;
 | 
			
		||||
const FOLDER_SUBICON_FRACTION = .4;
 | 
			
		||||
 | 
			
		||||
var MIN_FREQUENT_APPS_COUNT = 3;
 | 
			
		||||
const MIN_FREQUENT_APPS_COUNT = 3;
 | 
			
		||||
 | 
			
		||||
var INDICATORS_BASE_TIME = 0.25;
 | 
			
		||||
var INDICATORS_ANIMATION_DELAY = 0.125;
 | 
			
		||||
var INDICATORS_ANIMATION_MAX_TIME = 0.75;
 | 
			
		||||
 | 
			
		||||
var VIEWS_SWITCH_TIME = 0.4;
 | 
			
		||||
var VIEWS_SWITCH_ANIMATION_DELAY = 0.1;
 | 
			
		||||
const INDICATORS_BASE_TIME = 0.25;
 | 
			
		||||
const INDICATORS_ANIMATION_DELAY = 0.125;
 | 
			
		||||
const INDICATORS_ANIMATION_MAX_TIME = 0.75;
 | 
			
		||||
 | 
			
		||||
// Follow iconGrid animations approach and divide by 2 to animate out to
 | 
			
		||||
// not annoy the user when the user wants to quit appDisplay.
 | 
			
		||||
// Also, make sure we don't exceed iconGrid animation total time or
 | 
			
		||||
// views switch time.
 | 
			
		||||
var INDICATORS_BASE_TIME_OUT = 0.125;
 | 
			
		||||
var INDICATORS_ANIMATION_DELAY_OUT = 0.0625;
 | 
			
		||||
var INDICATORS_ANIMATION_MAX_TIME_OUT =
 | 
			
		||||
const INDICATORS_BASE_TIME_OUT = 0.125;
 | 
			
		||||
const INDICATORS_ANIMATION_DELAY_OUT = 0.0625;
 | 
			
		||||
const INDICATORS_ANIMATION_MAX_TIME_OUT =
 | 
			
		||||
    Math.min (VIEWS_SWITCH_TIME,
 | 
			
		||||
              IconGrid.ANIMATION_TIME_OUT + IconGrid.ANIMATION_MAX_DELAY_OUT_FOR_ITEM);
 | 
			
		||||
 | 
			
		||||
var PAGE_SWITCH_TIME = 0.3;
 | 
			
		||||
const PAGE_SWITCH_TIME = 0.3;
 | 
			
		||||
 | 
			
		||||
const SWITCHEROO_BUS_NAME = 'net.hadess.SwitcherooControl';
 | 
			
		||||
const SWITCHEROO_OBJECT_PATH = '/net/hadess/SwitcherooControl';
 | 
			
		||||
 | 
			
		||||
const SwitcherooProxyInterface = '<node> \
 | 
			
		||||
<interface name="net.hadess.SwitcherooControl"> \
 | 
			
		||||
  <property name="HasDualGpu" type="b" access="read"/> \
 | 
			
		||||
</interface> \
 | 
			
		||||
</node>';
 | 
			
		||||
 | 
			
		||||
const SwitcherooProxy = Gio.DBusProxy.makeProxyWrapper(SwitcherooProxyInterface);
 | 
			
		||||
let discreteGpuAvailable = false;
 | 
			
		||||
const VIEWS_SWITCH_TIME = 0.4;
 | 
			
		||||
const VIEWS_SWITCH_ANIMATION_DELAY = 0.1;
 | 
			
		||||
 | 
			
		||||
function _getCategories(info) {
 | 
			
		||||
    let categoriesStr = info.get_categories();
 | 
			
		||||
@@ -108,7 +96,7 @@ function clamp(value, min, max) {
 | 
			
		||||
    return Math.max(min, Math.min(max, value));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var BaseAppView = new Lang.Class({
 | 
			
		||||
const BaseAppView = new Lang.Class({
 | 
			
		||||
    Name: 'BaseAppView',
 | 
			
		||||
    Abstract: true,
 | 
			
		||||
 | 
			
		||||
@@ -210,6 +198,22 @@ var BaseAppView = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    animate: function(animationDirection, onComplete) {
 | 
			
		||||
        if (animationDirection == IconGrid.AnimationDirection.IN) {
 | 
			
		||||
            let toAnimate = this._grid.actor.connect('notify::allocation', Lang.bind(this,
 | 
			
		||||
                function() {
 | 
			
		||||
                    this._grid.actor.disconnect(toAnimate);
 | 
			
		||||
                    // We need to hide the grid temporary to not flash it
 | 
			
		||||
                    // for a frame
 | 
			
		||||
                    this._grid.actor.opacity = 0;
 | 
			
		||||
                    Meta.later_add(Meta.LaterType.BEFORE_REDRAW,
 | 
			
		||||
                                   Lang.bind(this, function() {
 | 
			
		||||
                                       this._doSpringAnimation(animationDirection)
 | 
			
		||||
                                  }));
 | 
			
		||||
                }));
 | 
			
		||||
        } else {
 | 
			
		||||
            this._doSpringAnimation(animationDirection);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (onComplete) {
 | 
			
		||||
            let animationDoneId = this._grid.connect('animation-done', Lang.bind(this,
 | 
			
		||||
                function () {
 | 
			
		||||
@@ -217,15 +221,6 @@ var BaseAppView = new Lang.Class({
 | 
			
		||||
                    onComplete();
 | 
			
		||||
            }));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (animationDirection == IconGrid.AnimationDirection.IN) {
 | 
			
		||||
            let id = this._grid.actor.connect('paint', () => {
 | 
			
		||||
                this._grid.actor.disconnect(id);
 | 
			
		||||
                this._doSpringAnimation(animationDirection);
 | 
			
		||||
            });
 | 
			
		||||
        } else {
 | 
			
		||||
            this._doSpringAnimation(animationDirection);
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    animateSwitch: function(animationDirection) {
 | 
			
		||||
@@ -249,7 +244,7 @@ var BaseAppView = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(BaseAppView.prototype);
 | 
			
		||||
 | 
			
		||||
var PageIndicatorsActor = new Lang.Class({
 | 
			
		||||
const PageIndicatorsActor = new Lang.Class({
 | 
			
		||||
    Name:'PageIndicatorsActor',
 | 
			
		||||
    Extends: St.BoxLayout,
 | 
			
		||||
 | 
			
		||||
@@ -273,7 +268,7 @@ var PageIndicatorsActor = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var PageIndicators = new Lang.Class({
 | 
			
		||||
const PageIndicators = new Lang.Class({
 | 
			
		||||
    Name:'PageIndicators',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -366,7 +361,7 @@ var PageIndicators = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(PageIndicators.prototype);
 | 
			
		||||
 | 
			
		||||
var AllView = new Lang.Class({
 | 
			
		||||
const AllView = new Lang.Class({
 | 
			
		||||
    Name: 'AllView',
 | 
			
		||||
    Extends: BaseAppView,
 | 
			
		||||
 | 
			
		||||
@@ -440,10 +435,7 @@ var AllView = new Lang.Class({
 | 
			
		||||
            }));
 | 
			
		||||
        this._grid.connect('space-opened', Lang.bind(this,
 | 
			
		||||
            function() {
 | 
			
		||||
                let fadeEffect = this._scrollView.get_effect('fade');
 | 
			
		||||
                if (fadeEffect)
 | 
			
		||||
                    fadeEffect.enabled = false;
 | 
			
		||||
 | 
			
		||||
                this._scrollView.get_effect('fade').enabled = false;
 | 
			
		||||
                this.emit('space-ready');
 | 
			
		||||
            }));
 | 
			
		||||
        this._grid.connect('space-closed', Lang.bind(this,
 | 
			
		||||
@@ -508,11 +500,6 @@ var AllView = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    _loadApps: function() {
 | 
			
		||||
        let apps = Gio.AppInfo.get_all().filter(function(appInfo) {
 | 
			
		||||
            try {
 | 
			
		||||
                let id = appInfo.get_id(); // catch invalid file encodings
 | 
			
		||||
            } catch(e) {
 | 
			
		||||
                return false;
 | 
			
		||||
            }
 | 
			
		||||
            return appInfo.should_show();
 | 
			
		||||
        }).map(function(app) {
 | 
			
		||||
            return app.get_id();
 | 
			
		||||
@@ -530,19 +517,9 @@ var AllView = new Lang.Class({
 | 
			
		||||
            this.folderIcons.push(icon);
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
        // Allow dragging of the icon only if the Dash would accept a drop to
 | 
			
		||||
        // change favorite-apps. There are no other possible drop targets from
 | 
			
		||||
        // the app picker, so there's no other need for a drag to start,
 | 
			
		||||
        // at least on single-monitor setups.
 | 
			
		||||
        // This also disables drag-to-launch on multi-monitor setups,
 | 
			
		||||
        // but we hope that is not used much.
 | 
			
		||||
        let favoritesWritable = global.settings.is_writable('favorite-apps');
 | 
			
		||||
 | 
			
		||||
        apps.forEach(Lang.bind(this, function(appId) {
 | 
			
		||||
            let app = appSys.lookup_app(appId);
 | 
			
		||||
 | 
			
		||||
            let icon = new AppIcon(app,
 | 
			
		||||
                                   { isDraggable: favoritesWritable });
 | 
			
		||||
            let icon = new AppIcon(app);
 | 
			
		||||
            this.addItem(icon);
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
@@ -552,13 +529,6 @@ var AllView = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    // Overriden from BaseAppView
 | 
			
		||||
    animate: function (animationDirection, onComplete) {
 | 
			
		||||
        this._scrollView.reactive = false;
 | 
			
		||||
        let completionFunc = Lang.bind(this, function() {
 | 
			
		||||
            this._scrollView.reactive = true;
 | 
			
		||||
            if (onComplete)
 | 
			
		||||
                onComplete();
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        if (animationDirection == IconGrid.AnimationDirection.OUT &&
 | 
			
		||||
            this._displayingPopup && this._currentPopup) {
 | 
			
		||||
            this._currentPopup.popdown();
 | 
			
		||||
@@ -569,10 +539,10 @@ var AllView = new Lang.Class({
 | 
			
		||||
                    // signal handler, call again animate which will
 | 
			
		||||
                    // call the parent given that popup is already
 | 
			
		||||
                    // closed.
 | 
			
		||||
                    this.animate(animationDirection, completionFunc);
 | 
			
		||||
                    this.animate(animationDirection, onComplete);
 | 
			
		||||
                }));
 | 
			
		||||
        } else {
 | 
			
		||||
            this.parent(animationDirection, completionFunc);
 | 
			
		||||
            this.parent(animationDirection, onComplete);
 | 
			
		||||
            if (animationDirection == IconGrid.AnimationDirection.OUT)
 | 
			
		||||
                this._pageIndicators.animateIndicators(animationDirection);
 | 
			
		||||
        }
 | 
			
		||||
@@ -654,16 +624,12 @@ var AllView = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    _closeSpaceForPopup: function() {
 | 
			
		||||
        this._updateIconOpacities(false);
 | 
			
		||||
 | 
			
		||||
        let fadeEffect = this._scrollView.get_effect('fade');
 | 
			
		||||
        if (fadeEffect)
 | 
			
		||||
            fadeEffect.enabled = true;
 | 
			
		||||
 | 
			
		||||
        this._scrollView.get_effect('fade').enabled = true;
 | 
			
		||||
        this._grid.closeExtraSpace();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onScroll: function(actor, event) {
 | 
			
		||||
        if (this._displayingPopup || !this._scrollView.reactive)
 | 
			
		||||
        if (this._displayingPopup)
 | 
			
		||||
            return Clutter.EVENT_STOP;
 | 
			
		||||
 | 
			
		||||
        let direction = event.get_scroll_direction();
 | 
			
		||||
@@ -770,8 +736,7 @@ var AllView = new Lang.Class({
 | 
			
		||||
        let fadeOffset = Math.min(this._grid.topPadding,
 | 
			
		||||
                                  this._grid.bottomPadding);
 | 
			
		||||
        this._scrollView.update_fade_effect(fadeOffset, 0);
 | 
			
		||||
        if (fadeOffset > 0)
 | 
			
		||||
            this._scrollView.get_effect('fade').fade_edges = true;
 | 
			
		||||
        this._scrollView.get_effect('fade').fade_edges = true;
 | 
			
		||||
 | 
			
		||||
        if (this._availWidth != availWidth || this._availHeight != availHeight || oldNPages != this._grid.nPages()) {
 | 
			
		||||
            this._adjustment.value = 0;
 | 
			
		||||
@@ -792,13 +757,12 @@ var AllView = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(AllView.prototype);
 | 
			
		||||
 | 
			
		||||
var FrequentView = new Lang.Class({
 | 
			
		||||
const FrequentView = new Lang.Class({
 | 
			
		||||
    Name: 'FrequentView',
 | 
			
		||||
    Extends: BaseAppView,
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this.parent(null, { fillParent: true });
 | 
			
		||||
 | 
			
		||||
        this.actor = new St.Widget({ style_class: 'frequent-apps',
 | 
			
		||||
                                     layout_manager: new Clutter.BinLayout(),
 | 
			
		||||
                                     x_expand: true, y_expand: true });
 | 
			
		||||
@@ -835,19 +799,10 @@ var FrequentView = new Lang.Class({
 | 
			
		||||
        if(!hasUsefulData)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        // Allow dragging of the icon only if the Dash would accept a drop to
 | 
			
		||||
        // change favorite-apps. There are no other possible drop targets from
 | 
			
		||||
        // the app picker, so there's no other need for a drag to start,
 | 
			
		||||
        // at least on single-monitor setups.
 | 
			
		||||
        // This also disables drag-to-launch on multi-monitor setups,
 | 
			
		||||
        // but we hope that is not used much.
 | 
			
		||||
        let favoritesWritable = global.settings.is_writable('favorite-apps');
 | 
			
		||||
 | 
			
		||||
        for (let i = 0; i < mostUsed.length; i++) {
 | 
			
		||||
            if (!mostUsed[i].get_app_info().should_show())
 | 
			
		||||
                continue;
 | 
			
		||||
            let appIcon = new AppIcon(mostUsed[i],
 | 
			
		||||
                                      { isDraggable: favoritesWritable });
 | 
			
		||||
            let appIcon = new AppIcon(mostUsed[i]);
 | 
			
		||||
            this._grid.addItem(appIcon, -1);
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
@@ -866,12 +821,12 @@ var FrequentView = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var Views = {
 | 
			
		||||
const Views = {
 | 
			
		||||
    FREQUENT: 0,
 | 
			
		||||
    ALL: 1
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
var ControlsBoxLayout = Lang.Class({
 | 
			
		||||
const ControlsBoxLayout = Lang.Class({
 | 
			
		||||
    Name: 'ControlsBoxLayout',
 | 
			
		||||
    Extends: Clutter.BoxLayout,
 | 
			
		||||
 | 
			
		||||
@@ -896,11 +851,9 @@ var ControlsBoxLayout = Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var ViewStackLayout = new Lang.Class({
 | 
			
		||||
const ViewStackLayout = new Lang.Class({
 | 
			
		||||
    Name: 'ViewStackLayout',
 | 
			
		||||
    Extends: Clutter.BinLayout,
 | 
			
		||||
    Signals: { 'allocated-size-changed': { param_types: [GObject.TYPE_INT,
 | 
			
		||||
                                                         GObject.TYPE_INT] } },
 | 
			
		||||
 | 
			
		||||
    vfunc_allocate: function (actor, box, flags) {
 | 
			
		||||
        let availWidth = box.x2 - box.x1;
 | 
			
		||||
@@ -911,8 +864,9 @@ var ViewStackLayout = new Lang.Class({
 | 
			
		||||
        this.parent(actor, box, flags);
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(ViewStackLayout.prototype);
 | 
			
		||||
 | 
			
		||||
var AppDisplay = new Lang.Class({
 | 
			
		||||
const AppDisplay = new Lang.Class({
 | 
			
		||||
    Name: 'AppDisplay',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -925,14 +879,14 @@ var AppDisplay = new Lang.Class({
 | 
			
		||||
        let view, button;
 | 
			
		||||
        view = new FrequentView();
 | 
			
		||||
        button = new St.Button({ label: _("Frequent"),
 | 
			
		||||
                                 style_class: 'app-view-control button',
 | 
			
		||||
                                 style_class: 'app-view-control',
 | 
			
		||||
                                 can_focus: true,
 | 
			
		||||
                                 x_expand: true });
 | 
			
		||||
        this._views[Views.FREQUENT] = { 'view': view, 'control': button };
 | 
			
		||||
 | 
			
		||||
        view = new AllView();
 | 
			
		||||
        button = new St.Button({ label: _("All"),
 | 
			
		||||
                                 style_class: 'app-view-control button',
 | 
			
		||||
                                 style_class: 'app-view-control',
 | 
			
		||||
                                 can_focus: true,
 | 
			
		||||
                                 x_expand: true });
 | 
			
		||||
        this._views[Views.ALL] = { 'view': view, 'control': button };
 | 
			
		||||
@@ -982,36 +936,10 @@ var AppDisplay = new Lang.Class({
 | 
			
		||||
            initialView = Views.ALL;
 | 
			
		||||
        this._showView(initialView);
 | 
			
		||||
        this._updateFrequentVisibility();
 | 
			
		||||
 | 
			
		||||
        Gio.DBus.system.watch_name(SWITCHEROO_BUS_NAME,
 | 
			
		||||
                                   Gio.BusNameWatcherFlags.NONE,
 | 
			
		||||
                                   Lang.bind(this, this._switcherooProxyAppeared),
 | 
			
		||||
                                   Lang.bind(this, function() {
 | 
			
		||||
                                       this._switcherooProxy = null;
 | 
			
		||||
                                       this._updateDiscreteGpuAvailable();
 | 
			
		||||
                                   }));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _updateDiscreteGpuAvailable: function() {
 | 
			
		||||
        if (!this._switcherooProxy)
 | 
			
		||||
            discreteGpuAvailable = false;
 | 
			
		||||
        else
 | 
			
		||||
            discreteGpuAvailable = this._switcherooProxy.HasDualGpu;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _switcherooProxyAppeared: function() {
 | 
			
		||||
        this._switcherooProxy = new SwitcherooProxy(Gio.DBus.system, SWITCHEROO_BUS_NAME, SWITCHEROO_OBJECT_PATH,
 | 
			
		||||
            Lang.bind(this, function(proxy, error) {
 | 
			
		||||
                if (error) {
 | 
			
		||||
                    log(error.message);
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
                this._updateDiscreteGpuAvailable();
 | 
			
		||||
            }));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    animate: function(animationDirection, onComplete) {
 | 
			
		||||
        let currentView = this._views.filter(v => v.control.has_style_pseudo_class('checked')).pop().view;
 | 
			
		||||
        let currentView = this._views[global.settings.get_uint('app-picker-view')].view;
 | 
			
		||||
 | 
			
		||||
        // Animate controls opacity using iconGrid animation time, since
 | 
			
		||||
        // it will be the time the AllView or FrequentView takes to show
 | 
			
		||||
@@ -1077,14 +1005,12 @@ var AppDisplay = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
var AppSearchProvider = new Lang.Class({
 | 
			
		||||
const AppSearchProvider = new Lang.Class({
 | 
			
		||||
    Name: 'AppSearchProvider',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._appSys = Shell.AppSystem.get_default();
 | 
			
		||||
        this.id = 'applications';
 | 
			
		||||
        this.isRemoteProvider = false;
 | 
			
		||||
        this.canLaunchSearch = false;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    getResultMetas: function(apps, callback) {
 | 
			
		||||
@@ -1107,7 +1033,7 @@ var AppSearchProvider = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    getInitialResultSet: function(terms, callback, cancellable) {
 | 
			
		||||
        let query = terms.join(' ');
 | 
			
		||||
        let groups = Shell.AppSystem.search(query);
 | 
			
		||||
        let groups = Gio.DesktopAppInfo.search(query);
 | 
			
		||||
        let usage = Shell.AppUsage.get_default();
 | 
			
		||||
        let results = [];
 | 
			
		||||
        groups.forEach(function(group) {
 | 
			
		||||
@@ -1132,7 +1058,7 @@ var AppSearchProvider = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var FolderView = new Lang.Class({
 | 
			
		||||
const FolderView = new Lang.Class({
 | 
			
		||||
    Name: 'FolderView',
 | 
			
		||||
    Extends: BaseAppView,
 | 
			
		||||
 | 
			
		||||
@@ -1248,12 +1174,11 @@ var FolderView = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var FolderIcon = new Lang.Class({
 | 
			
		||||
const FolderIcon = new Lang.Class({
 | 
			
		||||
    Name: 'FolderIcon',
 | 
			
		||||
 | 
			
		||||
    _init: function(id, path, parentView) {
 | 
			
		||||
        this.id = id;
 | 
			
		||||
        this.name = '';
 | 
			
		||||
        this._parentView = parentView;
 | 
			
		||||
 | 
			
		||||
        this._folder = new Gio.Settings({ schema_id: 'org.gnome.desktop.app-folders.folder',
 | 
			
		||||
@@ -1337,10 +1262,7 @@ var FolderIcon = new Lang.Class({
 | 
			
		||||
            if (!_listsIntersect(folderCategories, appCategories))
 | 
			
		||||
                return;
 | 
			
		||||
 | 
			
		||||
            try {
 | 
			
		||||
                addAppId(appInfo.get_id()); // catch invalid file encodings
 | 
			
		||||
            } catch(e) {
 | 
			
		||||
            }
 | 
			
		||||
            addAppId(appInfo.get_id());
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        this.actor.visible = this.view.getAllItems().length > 0;
 | 
			
		||||
@@ -1426,7 +1348,7 @@ var FolderIcon = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(FolderIcon.prototype);
 | 
			
		||||
 | 
			
		||||
var AppFolderPopup = new Lang.Class({
 | 
			
		||||
const AppFolderPopup = new Lang.Class({
 | 
			
		||||
    Name: 'AppFolderPopup',
 | 
			
		||||
 | 
			
		||||
    _init: function(source, side) {
 | 
			
		||||
@@ -1587,7 +1509,7 @@ var AppFolderPopup = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(AppFolderPopup.prototype);
 | 
			
		||||
 | 
			
		||||
var AppIcon = new Lang.Class({
 | 
			
		||||
const AppIcon = new Lang.Class({
 | 
			
		||||
    Name: 'AppIcon',
 | 
			
		||||
 | 
			
		||||
    _init : function(app, iconParams) {
 | 
			
		||||
@@ -1595,12 +1517,12 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
        this.id = app.get_id();
 | 
			
		||||
        this.name = app.get_name();
 | 
			
		||||
 | 
			
		||||
        this.actor = new St.Button({ style_class: 'app-well-app',
 | 
			
		||||
        // We need to make it track_hover so dash item can connect to
 | 
			
		||||
        // the hover signal of the actor in _hookupLabel to call
 | 
			
		||||
        // shouldShowTooltip when hovered.
 | 
			
		||||
        this.actor = new St.Widget({ layout_manager: new Clutter.BinLayout(),
 | 
			
		||||
                                     reactive: true,
 | 
			
		||||
                                     button_mask: St.ButtonMask.ONE | St.ButtonMask.TWO,
 | 
			
		||||
                                     can_focus: true,
 | 
			
		||||
                                     x_fill: true,
 | 
			
		||||
                                     y_fill: true });
 | 
			
		||||
                                     track_hover: true });
 | 
			
		||||
 | 
			
		||||
        this._dot = new St.Widget({ style_class: 'app-well-app-running-dot',
 | 
			
		||||
                                    layout_manager: new Clutter.BinLayout(),
 | 
			
		||||
@@ -1608,54 +1530,54 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
                                    x_align: Clutter.ActorAlign.CENTER,
 | 
			
		||||
                                    y_align: Clutter.ActorAlign.END });
 | 
			
		||||
 | 
			
		||||
        this._iconContainer = new St.Widget({ layout_manager: new Clutter.BinLayout(),
 | 
			
		||||
                                              x_expand: true, y_expand: true });
 | 
			
		||||
        this._dot.hide();
 | 
			
		||||
 | 
			
		||||
        this.actor.set_child(this._iconContainer);
 | 
			
		||||
        this._iconContainer.add_child(this._dot);
 | 
			
		||||
        this._button = new St.Button({ style_class: 'app-well-app',
 | 
			
		||||
                                       reactive: true,
 | 
			
		||||
                                       button_mask: St.ButtonMask.ONE | St.ButtonMask.TWO,
 | 
			
		||||
                                       can_focus: true,
 | 
			
		||||
                                       x_fill: true,
 | 
			
		||||
                                       y_fill: true });
 | 
			
		||||
 | 
			
		||||
        this.actor.add_actor(this._button);
 | 
			
		||||
        this.actor.add_actor(this._dot);
 | 
			
		||||
 | 
			
		||||
        this.actor._delegate = this;
 | 
			
		||||
        this._button._delegate = this;
 | 
			
		||||
 | 
			
		||||
        if (!iconParams)
 | 
			
		||||
            iconParams = {};
 | 
			
		||||
 | 
			
		||||
        // Get the isDraggable property without passing it on to the BaseIcon:
 | 
			
		||||
        let appIconParams = Params.parse(iconParams, { isDraggable: true }, true);
 | 
			
		||||
        let isDraggable = appIconParams['isDraggable'];
 | 
			
		||||
        delete iconParams['isDraggable'];
 | 
			
		||||
 | 
			
		||||
        iconParams['createIcon'] = Lang.bind(this, this._createIcon);
 | 
			
		||||
        iconParams['setSizeManually'] = true;
 | 
			
		||||
        this.icon = new IconGrid.BaseIcon(app.get_name(), iconParams);
 | 
			
		||||
        this._iconContainer.add_child(this.icon.actor);
 | 
			
		||||
        this._button.set_child(this.icon.actor);
 | 
			
		||||
 | 
			
		||||
        this.actor.label_actor = this.icon.label;
 | 
			
		||||
 | 
			
		||||
        this.actor.connect('leave-event', Lang.bind(this, this._onLeaveEvent));
 | 
			
		||||
        this.actor.connect('button-press-event', Lang.bind(this, this._onButtonPress));
 | 
			
		||||
        this.actor.connect('touch-event', Lang.bind(this, this._onTouchEvent));
 | 
			
		||||
        this.actor.connect('clicked', Lang.bind(this, this._onClicked));
 | 
			
		||||
        this.actor.connect('popup-menu', Lang.bind(this, this._onKeyboardPopupMenu));
 | 
			
		||||
        this._button.connect('leave-event', Lang.bind(this, this._onLeaveEvent));
 | 
			
		||||
        this._button.connect('button-press-event', Lang.bind(this, this._onButtonPress));
 | 
			
		||||
        this._button.connect('touch-event', Lang.bind(this, this._onTouchEvent));
 | 
			
		||||
        this._button.connect('clicked', Lang.bind(this, this._onClicked));
 | 
			
		||||
        this._button.connect('popup-menu', Lang.bind(this, this._onKeyboardPopupMenu));
 | 
			
		||||
 | 
			
		||||
        this._menu = null;
 | 
			
		||||
        this._menuManager = new PopupMenu.PopupMenuManager(this);
 | 
			
		||||
 | 
			
		||||
        if (isDraggable) {
 | 
			
		||||
            this._draggable = DND.makeDraggable(this.actor);
 | 
			
		||||
            this._draggable.connect('drag-begin', Lang.bind(this,
 | 
			
		||||
                function () {
 | 
			
		||||
                    this._removeMenuTimeout();
 | 
			
		||||
                    Main.overview.beginItemDrag(this);
 | 
			
		||||
                }));
 | 
			
		||||
            this._draggable.connect('drag-cancelled', Lang.bind(this,
 | 
			
		||||
                function () {
 | 
			
		||||
                    Main.overview.cancelledItemDrag(this);
 | 
			
		||||
                }));
 | 
			
		||||
            this._draggable.connect('drag-end', Lang.bind(this,
 | 
			
		||||
                function () {
 | 
			
		||||
                   Main.overview.endItemDrag(this);
 | 
			
		||||
                }));
 | 
			
		||||
        }
 | 
			
		||||
        this._draggable = DND.makeDraggable(this._button);
 | 
			
		||||
        this._draggable.connect('drag-begin', Lang.bind(this,
 | 
			
		||||
            function () {
 | 
			
		||||
                this._removeMenuTimeout();
 | 
			
		||||
                Main.overview.beginItemDrag(this);
 | 
			
		||||
            }));
 | 
			
		||||
        this._draggable.connect('drag-cancelled', Lang.bind(this,
 | 
			
		||||
            function () {
 | 
			
		||||
                Main.overview.cancelledItemDrag(this);
 | 
			
		||||
            }));
 | 
			
		||||
        this._draggable.connect('drag-end', Lang.bind(this,
 | 
			
		||||
            function () {
 | 
			
		||||
               Main.overview.endItemDrag(this);
 | 
			
		||||
            }));
 | 
			
		||||
 | 
			
		||||
        this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
 | 
			
		||||
 | 
			
		||||
@@ -1667,6 +1589,18 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
        this._updateRunningStyle();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    // Needed for containers that want to track focus of the widget
 | 
			
		||||
    // for i.e. scroll the container when navigating through items
 | 
			
		||||
    getFocusReceiver: function () {
 | 
			
		||||
        return this._button;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    // Needed for containers that want to change style of the widget
 | 
			
		||||
    // for i.e. set as selected when searching in shell
 | 
			
		||||
    getStyleReceiver: function () {
 | 
			
		||||
        return this._button;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onDestroy: function() {
 | 
			
		||||
        if (this._stateChangedId > 0)
 | 
			
		||||
            this.app.disconnect(this._stateChangedId);
 | 
			
		||||
@@ -1686,10 +1620,13 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _updateRunningStyle: function() {
 | 
			
		||||
        if (this.app.state != Shell.AppState.STOPPED)
 | 
			
		||||
        if (this.app.state != Shell.AppState.STOPPED) {
 | 
			
		||||
            this._button.add_style_class_name('running');
 | 
			
		||||
            this._dot.show();
 | 
			
		||||
        else
 | 
			
		||||
        } else {
 | 
			
		||||
            this._button.remove_style_class_name('running');
 | 
			
		||||
            this._dot.hide();
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _setPopupTimeout: function() {
 | 
			
		||||
@@ -1704,7 +1641,7 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onLeaveEvent: function(actor, event) {
 | 
			
		||||
        this.actor.fake_release();
 | 
			
		||||
        this._button.fake_release();
 | 
			
		||||
        this._removeMenuTimeout();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
@@ -1742,10 +1679,8 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    popupMenu: function() {
 | 
			
		||||
        this._removeMenuTimeout();
 | 
			
		||||
        this.actor.fake_release();
 | 
			
		||||
 | 
			
		||||
        if (this._draggable)
 | 
			
		||||
            this._draggable.fakeRelease();
 | 
			
		||||
        this._button.fake_release();
 | 
			
		||||
        this._draggable.fakeRelease();
 | 
			
		||||
 | 
			
		||||
        if (!this._menu) {
 | 
			
		||||
            this._menu = new AppIconMenu(this);
 | 
			
		||||
@@ -1756,17 +1691,14 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
                if (!isPoppedUp)
 | 
			
		||||
                    this._onMenuPoppedDown();
 | 
			
		||||
            }));
 | 
			
		||||
            let id = Main.overview.connect('hiding', Lang.bind(this, function () { this._menu.close(); }));
 | 
			
		||||
            this.actor.connect('destroy', function() {
 | 
			
		||||
                Main.overview.disconnect(id);
 | 
			
		||||
            });
 | 
			
		||||
            Main.overview.connect('hiding', Lang.bind(this, function () { this._menu.close(); }));
 | 
			
		||||
 | 
			
		||||
            this._menuManager.addMenu(this._menu);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this.emit('menu-state-changed', true);
 | 
			
		||||
 | 
			
		||||
        this.actor.set_hover(true);
 | 
			
		||||
        this._button.set_hover(true);
 | 
			
		||||
        this._menu.popup();
 | 
			
		||||
        this._menuManager.ignoreRelease();
 | 
			
		||||
        this.emit('sync-tooltip');
 | 
			
		||||
@@ -1783,7 +1715,7 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onMenuPoppedDown: function() {
 | 
			
		||||
        this.actor.sync_hover();
 | 
			
		||||
        this._button.sync_hover();
 | 
			
		||||
        this.emit('menu-state-changed', false);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
@@ -1833,7 +1765,7 @@ var AppIcon = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(AppIcon.prototype);
 | 
			
		||||
 | 
			
		||||
var AppIconMenu = new Lang.Class({
 | 
			
		||||
const AppIconMenu = new Lang.Class({
 | 
			
		||||
    Name: 'AppIconMenu',
 | 
			
		||||
    Extends: PopupMenu.PopupMenu,
 | 
			
		||||
 | 
			
		||||
@@ -1856,7 +1788,7 @@ var AppIconMenu = new Lang.Class({
 | 
			
		||||
            if (!source.actor.mapped)
 | 
			
		||||
                this.close();
 | 
			
		||||
        }));
 | 
			
		||||
        source.actor.connect('destroy', Lang.bind(this, this.destroy));
 | 
			
		||||
        source.actor.connect('destroy', Lang.bind(this, function () { this.actor.destroy(); }));
 | 
			
		||||
 | 
			
		||||
        Main.uiGroup.add_actor(this.actor);
 | 
			
		||||
    },
 | 
			
		||||
@@ -1888,10 +1820,7 @@ var AppIconMenu = new Lang.Class({
 | 
			
		||||
        if (!this._source.app.is_window_backed()) {
 | 
			
		||||
            this._appendSeparator();
 | 
			
		||||
 | 
			
		||||
            let appInfo = this._source.app.get_app_info();
 | 
			
		||||
            let actions = appInfo.list_actions();
 | 
			
		||||
            if (this._source.app.can_open_new_window() &&
 | 
			
		||||
                actions.indexOf('new-window') == -1) {
 | 
			
		||||
            if (this._source.app.can_open_new_window()) {
 | 
			
		||||
                this._newWindowMenuItem = this._appendMenuItem(_("New Window"));
 | 
			
		||||
                this._newWindowMenuItem.connect('activate', Lang.bind(this, function() {
 | 
			
		||||
                    if (this._source.app.state == Shell.AppState.STOPPED)
 | 
			
		||||
@@ -1903,19 +1832,8 @@ var AppIconMenu = new Lang.Class({
 | 
			
		||||
                this._appendSeparator();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (discreteGpuAvailable &&
 | 
			
		||||
                this._source.app.state == Shell.AppState.STOPPED &&
 | 
			
		||||
                actions.indexOf('activate-discrete-gpu') == -1) {
 | 
			
		||||
                this._onDiscreteGpuMenuItem = this._appendMenuItem(_("Launch using Dedicated Graphics Card"));
 | 
			
		||||
                this._onDiscreteGpuMenuItem.connect('activate', Lang.bind(this, function() {
 | 
			
		||||
                    if (this._source.app.state == Shell.AppState.STOPPED)
 | 
			
		||||
                        this._source.animateLaunch();
 | 
			
		||||
 | 
			
		||||
                    this._source.app.launch(0, -1, true);
 | 
			
		||||
                    this.emit('activate-window', null);
 | 
			
		||||
                }));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            let appInfo = this._source.app.get_app_info();
 | 
			
		||||
            let actions = appInfo.list_actions();
 | 
			
		||||
            for (let i = 0; i < actions.length; i++) {
 | 
			
		||||
                let action = actions[i];
 | 
			
		||||
                let item = this._appendMenuItem(appInfo.get_action_name(action));
 | 
			
		||||
@@ -1924,27 +1842,22 @@ var AppIconMenu = new Lang.Class({
 | 
			
		||||
                    this.emit('activate-window', null);
 | 
			
		||||
                }));
 | 
			
		||||
            }
 | 
			
		||||
            this._appendSeparator();
 | 
			
		||||
 | 
			
		||||
            let canFavorite = global.settings.is_writable('favorite-apps');
 | 
			
		||||
            let isFavorite = AppFavorites.getAppFavorites().isFavorite(this._source.app.get_id());
 | 
			
		||||
 | 
			
		||||
            if (canFavorite) {
 | 
			
		||||
                this._appendSeparator();
 | 
			
		||||
 | 
			
		||||
                let isFavorite = AppFavorites.getAppFavorites().isFavorite(this._source.app.get_id());
 | 
			
		||||
 | 
			
		||||
                if (isFavorite) {
 | 
			
		||||
                    let item = this._appendMenuItem(_("Remove from Favorites"));
 | 
			
		||||
                    item.connect('activate', Lang.bind(this, function() {
 | 
			
		||||
                        let favs = AppFavorites.getAppFavorites();
 | 
			
		||||
                        favs.removeFavorite(this._source.app.get_id());
 | 
			
		||||
                    }));
 | 
			
		||||
                } else {
 | 
			
		||||
                    let item = this._appendMenuItem(_("Add to Favorites"));
 | 
			
		||||
                    item.connect('activate', Lang.bind(this, function() {
 | 
			
		||||
                        let favs = AppFavorites.getAppFavorites();
 | 
			
		||||
                        favs.addFavorite(this._source.app.get_id());
 | 
			
		||||
                    }));
 | 
			
		||||
                }
 | 
			
		||||
            if (isFavorite) {
 | 
			
		||||
                let item = this._appendMenuItem(_("Remove from Favorites"));
 | 
			
		||||
                item.connect('activate', Lang.bind(this, function() {
 | 
			
		||||
                    let favs = AppFavorites.getAppFavorites();
 | 
			
		||||
                    favs.removeFavorite(this._source.app.get_id());
 | 
			
		||||
                }));
 | 
			
		||||
            } else {
 | 
			
		||||
                let item = this._appendMenuItem(_("Add to Favorites"));
 | 
			
		||||
                item.connect('activate', Lang.bind(this, function() {
 | 
			
		||||
                    let favs = AppFavorites.getAppFavorites();
 | 
			
		||||
                    favs.addFavorite(this._source.app.get_id());
 | 
			
		||||
                }));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (Shell.AppSystem.get_default().lookup_app('org.gnome.Software.desktop')) {
 | 
			
		||||
 
 | 
			
		||||
@@ -6,33 +6,26 @@ const Signals = imports.signals;
 | 
			
		||||
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
 | 
			
		||||
// In alphabetical order
 | 
			
		||||
const RENAMED_DESKTOP_IDS = {
 | 
			
		||||
    'baobab.desktop': 'org.gnome.baobab.desktop',
 | 
			
		||||
    'cheese.desktop': 'org.gnome.Cheese.desktop',
 | 
			
		||||
    'dconf-editor.desktop': 'ca.desrt.dconf-editor.desktop',
 | 
			
		||||
    'epiphany.desktop': 'org.gnome.Epiphany.desktop',
 | 
			
		||||
    'file-roller.desktop': 'org.gnome.FileRoller.desktop',
 | 
			
		||||
    'gcalctool.desktop': 'org.gnome.Calculator.desktop',
 | 
			
		||||
    'geary.desktop': 'org.gnome.Geary.desktop',
 | 
			
		||||
    'gcalctool.desktop': 'gnome-calculator.desktop',
 | 
			
		||||
    'gedit.desktop': 'org.gnome.gedit.desktop',
 | 
			
		||||
    'glchess.desktop': 'gnome-chess.desktop',
 | 
			
		||||
    'glines.desktop': 'five-or-more.desktop',
 | 
			
		||||
    'gnect.desktop': 'four-in-a-row.desktop',
 | 
			
		||||
    'gnibbles.desktop': 'org.gnome.Nibbles.desktop',
 | 
			
		||||
    'gnibbles.desktop': 'gnome-nibbles.desktop',
 | 
			
		||||
    'gnobots2.desktop': 'gnome-robots.desktop',
 | 
			
		||||
    'gnome-boxes.desktop': 'org.gnome.Boxes.desktop',
 | 
			
		||||
    'gnome-calculator.desktop': 'org.gnome.Calculator.desktop',
 | 
			
		||||
    'gnome-clocks.desktop': 'org.gnome.clocks.desktop',
 | 
			
		||||
    'gnome-contacts.desktop': 'org.gnome.Contacts.desktop',
 | 
			
		||||
    'gnome-documents.desktop': 'org.gnome.Documents.desktop',
 | 
			
		||||
    'gnome-font-viewer.desktop': 'org.gnome.font-viewer.desktop',
 | 
			
		||||
    'gnome-nibbles.desktop': 'org.gnome.Nibbles.desktop',
 | 
			
		||||
    'gnome-music.desktop': 'org.gnome.Music.desktop',
 | 
			
		||||
    'gnome-photos.desktop': 'org.gnome.Photos.desktop',
 | 
			
		||||
    'gnome-screenshot.desktop': 'org.gnome.Screenshot.desktop',
 | 
			
		||||
    'gnome-software.desktop': 'org.gnome.Software.desktop',
 | 
			
		||||
    'gnome-terminal.desktop': 'org.gnome.Terminal.desktop',
 | 
			
		||||
    'gnome-weather.desktop': 'org.gnome.Weather.Application.desktop',
 | 
			
		||||
    'gnomine.desktop': 'gnome-mines.desktop',
 | 
			
		||||
    'gnotravex.desktop': 'gnome-tetravex.desktop',
 | 
			
		||||
@@ -43,7 +36,7 @@ const RENAMED_DESKTOP_IDS = {
 | 
			
		||||
    'totem.desktop': 'org.gnome.Totem.desktop',
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
var AppFavorites = new Lang.Class({
 | 
			
		||||
const AppFavorites = new Lang.Class({
 | 
			
		||||
    Name: 'AppFavorites',
 | 
			
		||||
 | 
			
		||||
    FAVORITE_APPS_KEY: 'favorite-apps',
 | 
			
		||||
@@ -61,14 +54,12 @@ var AppFavorites = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    reload: function() {
 | 
			
		||||
        let ids = global.settings.get_strv(this.FAVORITE_APPS_KEY);
 | 
			
		||||
        let appSys = Shell.AppSystem.get_default();
 | 
			
		||||
 | 
			
		||||
        // Map old desktop file names to the current ones
 | 
			
		||||
        let updated = false;
 | 
			
		||||
        ids = ids.map(function (id) {
 | 
			
		||||
            let newId = RENAMED_DESKTOP_IDS[id];
 | 
			
		||||
            if (newId !== undefined &&
 | 
			
		||||
                appSys.lookup_app(newId) != null) {
 | 
			
		||||
            if (newId !== undefined) {
 | 
			
		||||
                updated = true;
 | 
			
		||||
                return newId;
 | 
			
		||||
            }
 | 
			
		||||
@@ -78,6 +69,7 @@ var AppFavorites = new Lang.Class({
 | 
			
		||||
        if (updated)
 | 
			
		||||
            global.settings.set_strv(this.FAVORITE_APPS_KEY, ids);
 | 
			
		||||
 | 
			
		||||
        let appSys = Shell.AppSystem.get_default();
 | 
			
		||||
        let apps = ids.map(function (id) {
 | 
			
		||||
                return appSys.lookup_app(id);
 | 
			
		||||
            }).filter(function (app) {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,216 +0,0 @@
 | 
			
		||||
const Clutter = imports.gi.Clutter;
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const GLib = imports.gi.GLib;
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Meta = imports.gi.Meta;
 | 
			
		||||
const Shell = imports.gi.Shell;
 | 
			
		||||
const St = imports.gi.St;
 | 
			
		||||
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
const ModalDialog = imports.ui.modalDialog;
 | 
			
		||||
 | 
			
		||||
var AudioDevice = {
 | 
			
		||||
    HEADPHONES: 1 << 0,
 | 
			
		||||
    HEADSET:    1 << 1,
 | 
			
		||||
    MICROPHONE: 1 << 2
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const AudioDeviceSelectionIface = '<node> \
 | 
			
		||||
<interface name="org.gnome.Shell.AudioDeviceSelection"> \
 | 
			
		||||
<method name="Open"> \
 | 
			
		||||
    <arg name="devices" direction="in" type="as" /> \
 | 
			
		||||
</method> \
 | 
			
		||||
<method name="Close"> \
 | 
			
		||||
</method> \
 | 
			
		||||
<signal name="DeviceSelected"> \
 | 
			
		||||
    <arg name="device" type="s" /> \
 | 
			
		||||
</signal> \
 | 
			
		||||
</interface> \
 | 
			
		||||
</node>';
 | 
			
		||||
 | 
			
		||||
var AudioDeviceSelectionDialog = new Lang.Class({
 | 
			
		||||
    Name: 'AudioDeviceSelectionDialog',
 | 
			
		||||
    Extends: ModalDialog.ModalDialog,
 | 
			
		||||
 | 
			
		||||
    _init: function(devices) {
 | 
			
		||||
        this.parent({ styleClass: 'audio-device-selection-dialog' });
 | 
			
		||||
 | 
			
		||||
        this._deviceItems = {};
 | 
			
		||||
 | 
			
		||||
        this._buildLayout();
 | 
			
		||||
 | 
			
		||||
        if (devices & AudioDevice.HEADPHONES)
 | 
			
		||||
            this._addDevice(AudioDevice.HEADPHONES);
 | 
			
		||||
        if (devices & AudioDevice.HEADSET)
 | 
			
		||||
            this._addDevice(AudioDevice.HEADSET);
 | 
			
		||||
        if (devices & AudioDevice.MICROPHONE)
 | 
			
		||||
            this._addDevice(AudioDevice.MICROPHONE);
 | 
			
		||||
 | 
			
		||||
        if (this._selectionBox.get_n_children() < 2)
 | 
			
		||||
            throw new Error('Too few devices for a selection');
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    destroy: function() {
 | 
			
		||||
        this.parent();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _buildLayout: function(devices) {
 | 
			
		||||
        let title = new St.Label({ style_class: 'audio-selection-title',
 | 
			
		||||
                                   text: _("Select Audio Device"),
 | 
			
		||||
                                   x_align: Clutter.ActorAlign.CENTER });
 | 
			
		||||
 | 
			
		||||
        this.contentLayout.style_class = 'audio-selection-content';
 | 
			
		||||
        this.contentLayout.add(title);
 | 
			
		||||
 | 
			
		||||
        this._selectionBox = new St.BoxLayout({ style_class: 'audio-selection-box' });
 | 
			
		||||
        this.contentLayout.add(this._selectionBox, { expand: true });
 | 
			
		||||
 | 
			
		||||
        this.addButton({ action: Lang.bind(this, this._openSettings),
 | 
			
		||||
                         label: _("Sound Settings") });
 | 
			
		||||
        this.addButton({ action: Lang.bind(this, this.close),
 | 
			
		||||
                         label: _("Cancel"),
 | 
			
		||||
                         key: Clutter.Escape });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _getDeviceLabel: function(device) {
 | 
			
		||||
        switch(device) {
 | 
			
		||||
            case AudioDevice.HEADPHONES:
 | 
			
		||||
                return _("Headphones");
 | 
			
		||||
            case AudioDevice.HEADSET:
 | 
			
		||||
                return _("Headset");
 | 
			
		||||
            case AudioDevice.MICROPHONE:
 | 
			
		||||
                return _("Microphone");
 | 
			
		||||
            default:
 | 
			
		||||
                return null;
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _getDeviceIcon: function(device) {
 | 
			
		||||
        switch(device) {
 | 
			
		||||
            case AudioDevice.HEADPHONES:
 | 
			
		||||
                return 'audio-headphones-symbolic';
 | 
			
		||||
            case AudioDevice.HEADSET:
 | 
			
		||||
                return 'audio-headset-symbolic';
 | 
			
		||||
            case AudioDevice.MICROPHONE:
 | 
			
		||||
                return 'audio-input-microphone-symbolic';
 | 
			
		||||
            default:
 | 
			
		||||
                return null;
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _addDevice: function(device) {
 | 
			
		||||
        let box = new St.BoxLayout({ style_class: 'audio-selection-device-box',
 | 
			
		||||
                                     vertical: true });
 | 
			
		||||
        box.connect('notify::height',
 | 
			
		||||
            function() {
 | 
			
		||||
                Meta.later_add(Meta.LaterType.BEFORE_REDRAW,
 | 
			
		||||
                    function() {
 | 
			
		||||
                        box.width = box.height;
 | 
			
		||||
                    });
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
        let icon = new St.Icon({ style_class: 'audio-selection-device-icon',
 | 
			
		||||
                                 icon_name: this._getDeviceIcon(device) });
 | 
			
		||||
        box.add(icon);
 | 
			
		||||
 | 
			
		||||
        let label = new St.Label({ style_class: 'audio-selection-device-label',
 | 
			
		||||
                                   text: this._getDeviceLabel(device),
 | 
			
		||||
                                   x_align: Clutter.ActorAlign.CENTER });
 | 
			
		||||
        box.add(label);
 | 
			
		||||
 | 
			
		||||
        let button = new St.Button({ style_class: 'audio-selection-device',
 | 
			
		||||
                                     can_focus: true,
 | 
			
		||||
                                     child: box });
 | 
			
		||||
        this._selectionBox.add(button);
 | 
			
		||||
 | 
			
		||||
        button.connect('clicked', Lang.bind(this,
 | 
			
		||||
            function() {
 | 
			
		||||
                this.emit('device-selected', device);
 | 
			
		||||
                this.close();
 | 
			
		||||
                Main.overview.hide();
 | 
			
		||||
            }));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _openSettings: function() {
 | 
			
		||||
        let desktopFile = 'gnome-sound-panel.desktop'
 | 
			
		||||
        let app = Shell.AppSystem.get_default().lookup_app(desktopFile);
 | 
			
		||||
 | 
			
		||||
        if (!app) {
 | 
			
		||||
            log('Settings panel for desktop file ' + desktopFile + ' could not be loaded!');
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this.close();
 | 
			
		||||
        Main.overview.hide();
 | 
			
		||||
        app.activate();
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var AudioDeviceSelectionDBus = new Lang.Class({
 | 
			
		||||
    Name: 'AudioDeviceSelectionDBus',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._audioSelectionDialog = null;
 | 
			
		||||
 | 
			
		||||
        this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(AudioDeviceSelectionIface, this);
 | 
			
		||||
        this._dbusImpl.export(Gio.DBus.session, '/org/gnome/Shell/AudioDeviceSelection');
 | 
			
		||||
 | 
			
		||||
        Gio.DBus.session.own_name('org.gnome.Shell.AudioDeviceSelection', Gio.BusNameOwnerFlags.REPLACE, null, null);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onDialogClosed: function() {
 | 
			
		||||
        this._audioSelectionDialog = null;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onDeviceSelected: function(dialog, device) {
 | 
			
		||||
        let connection = this._dbusImpl.get_connection();
 | 
			
		||||
        let info = this._dbusImpl.get_info();
 | 
			
		||||
        let deviceName = Object.keys(AudioDevice).filter(
 | 
			
		||||
            function(dev) {
 | 
			
		||||
                return AudioDevice[dev] == device;
 | 
			
		||||
            })[0].toLowerCase();
 | 
			
		||||
        connection.emit_signal(this._audioSelectionDialog._sender,
 | 
			
		||||
                               this._dbusImpl.get_object_path(),
 | 
			
		||||
                               info ? info.name : null,
 | 
			
		||||
                               'DeviceSelected',
 | 
			
		||||
                               GLib.Variant.new('(s)', [deviceName]));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    OpenAsync: function(params, invocation) {
 | 
			
		||||
        if (this._audioSelectionDialog) {
 | 
			
		||||
            invocation.return_value(null);
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let [deviceNames] = params;
 | 
			
		||||
        let devices = 0;
 | 
			
		||||
        deviceNames.forEach(function(n) {
 | 
			
		||||
            devices |= AudioDevice[n.toUpperCase()];
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        let dialog;
 | 
			
		||||
        try {
 | 
			
		||||
            dialog = new AudioDeviceSelectionDialog(devices);
 | 
			
		||||
        } catch(e) {
 | 
			
		||||
            invocation.return_value(null);
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        dialog._sender = invocation.get_sender();
 | 
			
		||||
 | 
			
		||||
        dialog.connect('closed', Lang.bind(this, this._onDialogClosed));
 | 
			
		||||
        dialog.connect('device-selected',
 | 
			
		||||
                       Lang.bind(this, this._onDeviceSelected));
 | 
			
		||||
        dialog.open();
 | 
			
		||||
 | 
			
		||||
        this._audioSelectionDialog = dialog;
 | 
			
		||||
        invocation.return_value(null);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    CloseAsync: function(params, invocation) {
 | 
			
		||||
        if (this._audioSelectionDialog &&
 | 
			
		||||
            this._audioSelectionDialog._sender == invocation.get_sender())
 | 
			
		||||
            this._audioSelectionDialog.close();
 | 
			
		||||
 | 
			
		||||
        invocation.return_value(null);
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
@@ -102,12 +102,11 @@ const Lang = imports.lang;
 | 
			
		||||
const Meta = imports.gi.Meta;
 | 
			
		||||
const Signals = imports.signals;
 | 
			
		||||
 | 
			
		||||
const LoginManager = imports.misc.loginManager;
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
const Params = imports.misc.params;
 | 
			
		||||
const Tweener = imports.ui.tweener;
 | 
			
		||||
 | 
			
		||||
var DEFAULT_BACKGROUND_COLOR = Clutter.Color.from_pixel(0x2e3436ff);
 | 
			
		||||
const DEFAULT_BACKGROUND_COLOR = Clutter.Color.from_pixel(0x2e3436ff);
 | 
			
		||||
 | 
			
		||||
const BACKGROUND_SCHEMA = 'org.gnome.desktop.background';
 | 
			
		||||
const PRIMARY_COLOR_KEY = 'primary-color';
 | 
			
		||||
@@ -117,14 +116,14 @@ const BACKGROUND_STYLE_KEY = 'picture-options';
 | 
			
		||||
const PICTURE_OPACITY_KEY = 'picture-opacity';
 | 
			
		||||
const PICTURE_URI_KEY = 'picture-uri';
 | 
			
		||||
 | 
			
		||||
var FADE_ANIMATION_TIME = 1.0;
 | 
			
		||||
const FADE_ANIMATION_TIME = 1.0;
 | 
			
		||||
 | 
			
		||||
// These parameters affect how often we redraw.
 | 
			
		||||
// The first is how different (percent crossfaded) the slide show
 | 
			
		||||
// has to look before redrawing and the second is the minimum
 | 
			
		||||
// frequency (in seconds) we're willing to wake up
 | 
			
		||||
var ANIMATION_OPACITY_STEP_INCREMENT = 4.0;
 | 
			
		||||
var ANIMATION_MIN_WAKEUP_INTERVAL = 1.0;
 | 
			
		||||
const ANIMATION_OPACITY_STEP_INCREMENT = 4.0;
 | 
			
		||||
const ANIMATION_MIN_WAKEUP_INTERVAL = 1.0;
 | 
			
		||||
 | 
			
		||||
let _backgroundCache = null;
 | 
			
		||||
 | 
			
		||||
@@ -138,13 +137,13 @@ function _fileEqual0(file1, file2) {
 | 
			
		||||
    return file1.equal(file2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var BackgroundCache = new Lang.Class({
 | 
			
		||||
const BackgroundCache = new Lang.Class({
 | 
			
		||||
    Name: 'BackgroundCache',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._pendingFileLoads = [];
 | 
			
		||||
        this._fileMonitors = {};
 | 
			
		||||
        this._backgroundSources = {};
 | 
			
		||||
        this._animations = {};
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    monitorFile: function(file) {
 | 
			
		||||
@@ -154,12 +153,8 @@ var BackgroundCache = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        let monitor = file.monitor(Gio.FileMonitorFlags.NONE, null);
 | 
			
		||||
        monitor.connect('changed',
 | 
			
		||||
                        Lang.bind(this, function(obj, file, otherFile, eventType) {
 | 
			
		||||
                            // Ignore CHANGED and CREATED events, since in both cases
 | 
			
		||||
                            // we'll get a CHANGES_DONE_HINT event when done.
 | 
			
		||||
                            if (eventType != Gio.FileMonitorEvent.CHANGED &&
 | 
			
		||||
                                eventType != Gio.FileMonitorEvent.CREATED)
 | 
			
		||||
                                this.emit('file-changed', file);
 | 
			
		||||
                        Lang.bind(this, function() {
 | 
			
		||||
                            this.emit('file-changed', file);
 | 
			
		||||
                        }));
 | 
			
		||||
 | 
			
		||||
        this._fileMonitors[key] = monitor;
 | 
			
		||||
@@ -167,14 +162,12 @@ var BackgroundCache = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    getAnimation: function(params) {
 | 
			
		||||
        params = Params.parse(params, { file: null,
 | 
			
		||||
                                        settingsSchema: null,
 | 
			
		||||
                                        onLoaded: null });
 | 
			
		||||
 | 
			
		||||
        let animation = this._animations[params.settingsSchema];
 | 
			
		||||
        if (animation && _fileEqual0(animation.file, params.file)) {
 | 
			
		||||
        if (_fileEqual0(this._animationFile, params.file)) {
 | 
			
		||||
            if (params.onLoaded) {
 | 
			
		||||
                let id = GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, function() {
 | 
			
		||||
                    params.onLoaded(this._animations[params.settingsSchema]);
 | 
			
		||||
                    params.onLoaded(this._animation);
 | 
			
		||||
                    return GLib.SOURCE_REMOVE;
 | 
			
		||||
                }));
 | 
			
		||||
                GLib.Source.set_name_by_id(id, '[gnome-shell] params.onLoaded');
 | 
			
		||||
@@ -182,14 +175,15 @@ var BackgroundCache = new Lang.Class({
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        animation = new Animation({ file: params.file });
 | 
			
		||||
        let animation = new Animation({ file: params.file });
 | 
			
		||||
 | 
			
		||||
        animation.load(Lang.bind(this, function() {
 | 
			
		||||
                           this._animations[params.settingsSchema] = animation;
 | 
			
		||||
                           this._animationFile = params.file;
 | 
			
		||||
                           this._animation = animation;
 | 
			
		||||
 | 
			
		||||
                           if (params.onLoaded) {
 | 
			
		||||
                               let id = GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, function() {
 | 
			
		||||
                                   params.onLoaded(this._animations[params.settingsSchema]);
 | 
			
		||||
                                   params.onLoaded(this._animation);
 | 
			
		||||
                                   return GLib.SOURCE_REMOVE;
 | 
			
		||||
                               }));
 | 
			
		||||
                               GLib.Source.set_name_by_id(id, '[gnome-shell] params.onLoaded');
 | 
			
		||||
@@ -230,7 +224,7 @@ function getBackgroundCache() {
 | 
			
		||||
    return _backgroundCache;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var Background = new Lang.Class({
 | 
			
		||||
const Background = new Lang.Class({
 | 
			
		||||
    Name: 'Background',
 | 
			
		||||
 | 
			
		||||
    _init: function(params) {
 | 
			
		||||
@@ -252,21 +246,6 @@ var Background = new Lang.Class({
 | 
			
		||||
        this._cancellable = new Gio.Cancellable();
 | 
			
		||||
        this.isLoaded = false;
 | 
			
		||||
 | 
			
		||||
        this._clock = new GnomeDesktop.WallClock();
 | 
			
		||||
        this._timezoneChangedId = this._clock.connect('notify::timezone',
 | 
			
		||||
            Lang.bind(this, function() {
 | 
			
		||||
                if (this._animation)
 | 
			
		||||
                    this._loadAnimation(this._animation.file);
 | 
			
		||||
            }));
 | 
			
		||||
 | 
			
		||||
        let loginManager = LoginManager.getLoginManager();
 | 
			
		||||
        this._prepareForSleepId = loginManager.connect('prepare-for-sleep',
 | 
			
		||||
            (lm, aboutToSuspend) => {
 | 
			
		||||
                if (aboutToSuspend)
 | 
			
		||||
                    return;
 | 
			
		||||
                this._refreshAnimation();
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
        this._settingsChangedSignalId = this._settings.connect('changed', Lang.bind(this, function() {
 | 
			
		||||
                                            this.emit('changed');
 | 
			
		||||
                                        }));
 | 
			
		||||
@@ -285,30 +264,16 @@ var Background = new Lang.Class({
 | 
			
		||||
        }
 | 
			
		||||
        this._fileWatches = null;
 | 
			
		||||
 | 
			
		||||
        if (this._timezoneChangedId != 0)
 | 
			
		||||
            this._clock.disconnect(this._timezoneChangedId);
 | 
			
		||||
        this._timezoneChangedId = 0;
 | 
			
		||||
 | 
			
		||||
        if (this._prepareForSleepId != 0)
 | 
			
		||||
            LoginManager.getLoginManager().disconnect(this._prepareForSleepId);
 | 
			
		||||
        this._prepareForSleepId = 0;
 | 
			
		||||
 | 
			
		||||
        if (this._settingsChangedSignalId != 0)
 | 
			
		||||
            this._settings.disconnect(this._settingsChangedSignalId);
 | 
			
		||||
        this._settingsChangedSignalId = 0;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    updateResolution: function() {
 | 
			
		||||
        if (this._animation)
 | 
			
		||||
            this._refreshAnimation();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _refreshAnimation: function() {
 | 
			
		||||
        if (!this._animation)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._removeAnimationTimeout();
 | 
			
		||||
        this._updateAnimation();
 | 
			
		||||
        if (this._animation) {
 | 
			
		||||
            this._removeAnimationTimeout();
 | 
			
		||||
            this._updateAnimation();
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _setLoaded: function() {
 | 
			
		||||
@@ -386,9 +351,11 @@ var Background = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        let cache = Meta.BackgroundImageCache.get_default();
 | 
			
		||||
        let numPendingImages = files.length;
 | 
			
		||||
        let images = [];
 | 
			
		||||
        for (let i = 0; i < files.length; i++) {
 | 
			
		||||
            this._watchFile(files[i]);
 | 
			
		||||
            let image = cache.load(files[i]);
 | 
			
		||||
            images.push(image);
 | 
			
		||||
            if (image.is_loaded()) {
 | 
			
		||||
                numPendingImages--;
 | 
			
		||||
                if (numPendingImages == 0)
 | 
			
		||||
@@ -436,18 +403,17 @@ var Background = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    _loadAnimation: function(file) {
 | 
			
		||||
        this._cache.getAnimation({ file: file,
 | 
			
		||||
                                   settingsSchema: this._settings.schema_id,
 | 
			
		||||
                                   onLoaded: Lang.bind(this, function(animation) {
 | 
			
		||||
                                       this._animation = animation;
 | 
			
		||||
                                         onLoaded: Lang.bind(this, function(animation) {
 | 
			
		||||
                                             this._animation = animation;
 | 
			
		||||
 | 
			
		||||
                                       if (!this._animation || this._cancellable.is_cancelled()) {
 | 
			
		||||
                                           this._setLoaded();
 | 
			
		||||
                                           return;
 | 
			
		||||
                                       }
 | 
			
		||||
                                             if (!this._animation || this._cancellable.is_cancelled()) {
 | 
			
		||||
                                                 this._setLoaded();
 | 
			
		||||
                                                 return;
 | 
			
		||||
                                             }
 | 
			
		||||
 | 
			
		||||
                                       this._updateAnimation();
 | 
			
		||||
                                       this._watchFile(file);
 | 
			
		||||
                                   })
 | 
			
		||||
                                             this._updateAnimation();
 | 
			
		||||
                                             this._watchFile(file);
 | 
			
		||||
                                         })
 | 
			
		||||
                                 });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
@@ -492,7 +458,7 @@ Signals.addSignalMethods(Background.prototype);
 | 
			
		||||
 | 
			
		||||
let _systemBackground;
 | 
			
		||||
 | 
			
		||||
var SystemBackground = new Lang.Class({
 | 
			
		||||
const SystemBackground = new Lang.Class({
 | 
			
		||||
    Name: 'SystemBackground',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -529,7 +495,7 @@ var SystemBackground = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(SystemBackground.prototype);
 | 
			
		||||
 | 
			
		||||
var BackgroundSource = new Lang.Class({
 | 
			
		||||
const BackgroundSource = new Lang.Class({
 | 
			
		||||
    Name: 'BackgroundSource',
 | 
			
		||||
 | 
			
		||||
    _init: function(layoutManager, settingsSchema) {
 | 
			
		||||
@@ -561,10 +527,6 @@ var BackgroundSource = new Lang.Class({
 | 
			
		||||
        let file = null;
 | 
			
		||||
        let style;
 | 
			
		||||
 | 
			
		||||
        // We don't watch changes to settings here,
 | 
			
		||||
        // instead we rely on Background to watch those
 | 
			
		||||
        // and emit 'changed' at the right time
 | 
			
		||||
 | 
			
		||||
        if (this._overrideImage != null) {
 | 
			
		||||
            file = Gio.File.new_for_path(this._overrideImage);
 | 
			
		||||
            style = GDesktopEnums.BackgroundStyle.ZOOM; // Hardcode
 | 
			
		||||
@@ -617,7 +579,7 @@ var BackgroundSource = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var Animation = new Lang.Class({
 | 
			
		||||
const Animation = new Lang.Class({
 | 
			
		||||
    Name: 'Animation',
 | 
			
		||||
 | 
			
		||||
    _init: function(params) {
 | 
			
		||||
@@ -665,7 +627,7 @@ var Animation = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(Animation.prototype);
 | 
			
		||||
 | 
			
		||||
var BackgroundManager = new Lang.Class({
 | 
			
		||||
const BackgroundManager = new Lang.Class({
 | 
			
		||||
    Name: 'BackgroundManager',
 | 
			
		||||
 | 
			
		||||
    _init: function(params) {
 | 
			
		||||
@@ -717,7 +679,6 @@ var BackgroundManager = new Lang.Class({
 | 
			
		||||
                           time: FADE_ANIMATION_TIME,
 | 
			
		||||
                           transition: 'easeOutQuad',
 | 
			
		||||
                           onComplete: function() {
 | 
			
		||||
                               oldBackgroundActor.background.run_dispose();
 | 
			
		||||
                               oldBackgroundActor.destroy();
 | 
			
		||||
                           }
 | 
			
		||||
                         });
 | 
			
		||||
 
 | 
			
		||||
@@ -9,17 +9,16 @@ const BoxPointer = imports.ui.boxpointer;
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
const PopupMenu = imports.ui.popupMenu;
 | 
			
		||||
 | 
			
		||||
var BackgroundMenu = new Lang.Class({
 | 
			
		||||
const BackgroundMenu = new Lang.Class({
 | 
			
		||||
    Name: 'BackgroundMenu',
 | 
			
		||||
    Extends: PopupMenu.PopupMenu,
 | 
			
		||||
 | 
			
		||||
    _init: function(layoutManager) {
 | 
			
		||||
        this.parent(layoutManager.dummyCursor, 0, St.Side.TOP);
 | 
			
		||||
 | 
			
		||||
        this.addSettingsAction(_("Change Background…"), 'gnome-background-panel.desktop');
 | 
			
		||||
        this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
 | 
			
		||||
        this.addSettingsAction(_("Display Settings"), 'gnome-display-panel.desktop');
 | 
			
		||||
        this.addSettingsAction(_("Settings"), 'gnome-control-center.desktop');
 | 
			
		||||
        this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
 | 
			
		||||
        this.addSettingsAction(_("Change Background…"), 'gnome-background-panel.desktop');
 | 
			
		||||
 | 
			
		||||
        this.actor.add_style_class_name('background-menu');
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -10,14 +10,14 @@ const St = imports.gi.St;
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
const Tweener = imports.ui.tweener;
 | 
			
		||||
 | 
			
		||||
var PopupAnimation = {
 | 
			
		||||
const PopupAnimation = {
 | 
			
		||||
    NONE:  0,
 | 
			
		||||
    SLIDE: 1 << 0,
 | 
			
		||||
    FADE:  1 << 1,
 | 
			
		||||
    FULL:  ~0,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
var POPUP_ANIMATION_TIME = 0.15;
 | 
			
		||||
const POPUP_ANIMATION_TIME = 0.15;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * BoxPointer:
 | 
			
		||||
@@ -32,7 +32,7 @@ var POPUP_ANIMATION_TIME = 0.15;
 | 
			
		||||
 * totally inside the monitor if possible.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
var BoxPointer = new Lang.Class({
 | 
			
		||||
const BoxPointer = new Lang.Class({
 | 
			
		||||
    Name: 'BoxPointer',
 | 
			
		||||
 | 
			
		||||
    _init: function(arrowSide, binProperties) {
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@ const St = imports.gi.St;
 | 
			
		||||
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
 | 
			
		||||
var CheckBox = new Lang.Class({
 | 
			
		||||
const CheckBox = new Lang.Class({
 | 
			
		||||
    Name: 'CheckBox',
 | 
			
		||||
 | 
			
		||||
    _init: function(label) {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,138 +0,0 @@
 | 
			
		||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 | 
			
		||||
 | 
			
		||||
const Clutter = imports.gi.Clutter;
 | 
			
		||||
const Gio = imports.gi.Gio;
 | 
			
		||||
const GObject = imports.gi.GObject;
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Meta = imports.gi.Meta;
 | 
			
		||||
const Shell = imports.gi.Shell;
 | 
			
		||||
 | 
			
		||||
const Dialog = imports.ui.dialog;
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
const Tweener = imports.ui.tweener;
 | 
			
		||||
 | 
			
		||||
var FROZEN_WINDOW_BRIGHTNESS = -0.3
 | 
			
		||||
var DIALOG_TRANSITION_TIME = 0.15
 | 
			
		||||
 | 
			
		||||
var CloseDialog = new Lang.Class({
 | 
			
		||||
    Name: 'CloseDialog',
 | 
			
		||||
    Extends: GObject.Object,
 | 
			
		||||
    Implements: [ Meta.CloseDialog ],
 | 
			
		||||
    Properties: {
 | 
			
		||||
        'window': GObject.ParamSpec.override('window', Meta.CloseDialog)
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _init: function (window) {
 | 
			
		||||
        this.parent();
 | 
			
		||||
        this._window = window;
 | 
			
		||||
        this._dialog = null;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    get window() {
 | 
			
		||||
        return this._window;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    set window(window) {
 | 
			
		||||
        this._window = window;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _createDialogContent: function () {
 | 
			
		||||
        let tracker = Shell.WindowTracker.get_default();
 | 
			
		||||
        let windowApp = tracker.get_window_app(this._window);
 | 
			
		||||
 | 
			
		||||
        /* Translators: %s is an application name */
 | 
			
		||||
        let title = _("“%s” is not responding.").format(windowApp.get_name());
 | 
			
		||||
        let subtitle = _("You may choose to wait a short while for it to " +
 | 
			
		||||
                         "continue or force the application to quit entirely.");
 | 
			
		||||
        let icon = new Gio.ThemedIcon({ name: 'dialog-warning-symbolic' });
 | 
			
		||||
        return new Dialog.MessageDialogContent({ icon, title, subtitle });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _initDialog: function () {
 | 
			
		||||
        if (this._dialog)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        let windowActor = this._window.get_compositor_private();
 | 
			
		||||
        this._dialog = new Dialog.Dialog(windowActor, 'close-dialog');
 | 
			
		||||
        this._dialog.width = windowActor.width;
 | 
			
		||||
        this._dialog.height = windowActor.height;
 | 
			
		||||
 | 
			
		||||
        this._dialog.addContent(this._createDialogContent());
 | 
			
		||||
        this._dialog.addButton({ label:   _('Force Quit'),
 | 
			
		||||
                                 action:  Lang.bind(this, this._onClose),
 | 
			
		||||
                                 default: true });
 | 
			
		||||
        this._dialog.addButton({ label:  _('Wait'),
 | 
			
		||||
                                 action: Lang.bind(this, this._onWait),
 | 
			
		||||
                                 key:    Clutter.Escape });
 | 
			
		||||
 | 
			
		||||
        global.focus_manager.add_group(this._dialog);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _addWindowEffect: function () {
 | 
			
		||||
        // We set the effect on the surface actor, so the dialog itself
 | 
			
		||||
        // (which is a child of the MetaWindowActor) does not get the
 | 
			
		||||
        // effect applied itself.
 | 
			
		||||
        let windowActor = this._window.get_compositor_private();
 | 
			
		||||
        let surfaceActor = windowActor.get_first_child();
 | 
			
		||||
        let effect = new Clutter.BrightnessContrastEffect();
 | 
			
		||||
        effect.set_brightness(FROZEN_WINDOW_BRIGHTNESS);
 | 
			
		||||
        surfaceActor.add_effect_with_name("gnome-shell-frozen-window", effect);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _removeWindowEffect: function () {
 | 
			
		||||
        let windowActor = this._window.get_compositor_private();
 | 
			
		||||
        let surfaceActor = windowActor.get_first_child();
 | 
			
		||||
        surfaceActor.remove_effect_by_name("gnome-shell-frozen-window");
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onWait: function () {
 | 
			
		||||
        this.response(Meta.CloseDialogResponse.WAIT);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onClose: function () {
 | 
			
		||||
        this.response(Meta.CloseDialogResponse.FORCE_CLOSE);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    vfunc_show: function () {
 | 
			
		||||
        if (this._dialog != null)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._addWindowEffect();
 | 
			
		||||
        this._initDialog();
 | 
			
		||||
 | 
			
		||||
        this._dialog.scale_y = 0;
 | 
			
		||||
        this._dialog.set_pivot_point(0.5, 0.5);
 | 
			
		||||
 | 
			
		||||
        Tweener.addTween(this._dialog,
 | 
			
		||||
                         { scale_y: 1,
 | 
			
		||||
                           transition: 'linear',
 | 
			
		||||
                           time: DIALOG_TRANSITION_TIME,
 | 
			
		||||
                           onComplete: Lang.bind(this, function () {
 | 
			
		||||
                               Main.layoutManager.trackChrome(this._dialog, { affectsInputRegion: true });
 | 
			
		||||
                           })
 | 
			
		||||
                         });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    vfunc_hide: function () {
 | 
			
		||||
        if (this._dialog == null)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        let dialog = this._dialog;
 | 
			
		||||
        this._dialog = null;
 | 
			
		||||
        this._removeWindowEffect();
 | 
			
		||||
 | 
			
		||||
        Tweener.addTween(dialog,
 | 
			
		||||
                         { scale_y: 0,
 | 
			
		||||
                           transition: 'linear',
 | 
			
		||||
                           time: DIALOG_TRANSITION_TIME,
 | 
			
		||||
                           onComplete: Lang.bind(this, function () {
 | 
			
		||||
                               dialog.destroy();
 | 
			
		||||
                           })
 | 
			
		||||
                         });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    vfunc_focus: function () {
 | 
			
		||||
        if (this._dialog)
 | 
			
		||||
            this._dialog.grab_key_focus();
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
const Lang = imports.lang;
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
 | 
			
		||||
var ComponentManager = new Lang.Class({
 | 
			
		||||
const ComponentManager = new Lang.Class({
 | 
			
		||||
    Name: 'ComponentManager',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
 
 | 
			
		||||
@@ -11,15 +11,15 @@ const GnomeSession = imports.misc.gnomeSession;
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
const ShellMountOperation = imports.ui.shellMountOperation;
 | 
			
		||||
 | 
			
		||||
var GNOME_SESSION_AUTOMOUNT_INHIBIT = 16;
 | 
			
		||||
const GNOME_SESSION_AUTOMOUNT_INHIBIT = 16;
 | 
			
		||||
 | 
			
		||||
// GSettings keys
 | 
			
		||||
const SETTINGS_SCHEMA = 'org.gnome.desktop.media-handling';
 | 
			
		||||
const SETTING_ENABLE_AUTOMOUNT = 'automount';
 | 
			
		||||
 | 
			
		||||
var AUTORUN_EXPIRE_TIMEOUT_SECS = 10;
 | 
			
		||||
const AUTORUN_EXPIRE_TIMEOUT_SECS = 10;
 | 
			
		||||
 | 
			
		||||
var AutomountManager = new Lang.Class({
 | 
			
		||||
const AutomountManager = new Lang.Class({
 | 
			
		||||
    Name: 'AutomountManager',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -242,4 +242,4 @@ var AutomountManager = new Lang.Class({
 | 
			
		||||
        GLib.Source.set_name_by_id(id, '[gnome-shell] volume.allowAutorun');
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
var Component = AutomountManager;
 | 
			
		||||
const Component = AutomountManager;
 | 
			
		||||
 
 | 
			
		||||
@@ -7,6 +7,7 @@ const St = imports.gi.St;
 | 
			
		||||
const GnomeSession = imports.misc.gnomeSession;
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
const MessageTray = imports.ui.messageTray;
 | 
			
		||||
const ShellMountOperation = imports.ui.shellMountOperation;
 | 
			
		||||
 | 
			
		||||
// GSettings keys
 | 
			
		||||
const SETTINGS_SCHEMA = 'org.gnome.desktop.media-handling';
 | 
			
		||||
@@ -15,7 +16,7 @@ const SETTING_START_APP = 'autorun-x-content-start-app';
 | 
			
		||||
const SETTING_IGNORE = 'autorun-x-content-ignore';
 | 
			
		||||
const SETTING_OPEN_FOLDER = 'autorun-x-content-open-folder';
 | 
			
		||||
 | 
			
		||||
var AutorunSetting = {
 | 
			
		||||
const AutorunSetting = {
 | 
			
		||||
    RUN: 0,
 | 
			
		||||
    IGNORE: 1,
 | 
			
		||||
    FILES: 2,
 | 
			
		||||
@@ -23,11 +24,11 @@ var AutorunSetting = {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// misc utils
 | 
			
		||||
function shouldAutorunMount(mount) {
 | 
			
		||||
function shouldAutorunMount(mount, forTransient) {
 | 
			
		||||
    let root = mount.get_root();
 | 
			
		||||
    let volume = mount.get_volume();
 | 
			
		||||
 | 
			
		||||
    if (!volume || !volume.allowAutorun)
 | 
			
		||||
    if (!volume || (!volume.allowAutorun && forTransient))
 | 
			
		||||
        return false;
 | 
			
		||||
 | 
			
		||||
    if (root.is_native() && isMountRootHidden(root))
 | 
			
		||||
@@ -63,7 +64,7 @@ function startAppForMount(app, mount) {
 | 
			
		||||
 | 
			
		||||
    try {
 | 
			
		||||
        retval = app.launch(files, 
 | 
			
		||||
                            global.create_app_launch_context(0, -1));
 | 
			
		||||
                            global.create_app_launch_context(0, -1))
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
        log('Unable to launch the application ' + app.get_name()
 | 
			
		||||
            + ': ' + e.toString());
 | 
			
		||||
@@ -90,7 +91,7 @@ function HotplugSniffer() {
 | 
			
		||||
                                   '/org/gnome/Shell/HotplugSniffer');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var ContentTypeDiscoverer = new Lang.Class({
 | 
			
		||||
const ContentTypeDiscoverer = new Lang.Class({
 | 
			
		||||
    Name: 'ContentTypeDiscoverer',
 | 
			
		||||
 | 
			
		||||
    _init: function(callback) {
 | 
			
		||||
@@ -159,45 +160,283 @@ var ContentTypeDiscoverer = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var AutorunManager = new Lang.Class({
 | 
			
		||||
const AutorunManager = new Lang.Class({
 | 
			
		||||
    Name: 'AutorunManager',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
        this._session = new GnomeSession.SessionManager();
 | 
			
		||||
        this._volumeMonitor = Gio.VolumeMonitor.get();
 | 
			
		||||
 | 
			
		||||
        this._dispatcher = new AutorunDispatcher(this);
 | 
			
		||||
        this._transDispatcher = new AutorunTransientDispatcher(this);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _ensureResidentSource: function() {
 | 
			
		||||
        if (this._residentSource)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        this._residentSource = new AutorunResidentSource(this);
 | 
			
		||||
        let destroyId = this._residentSource.connect('destroy', Lang.bind(this, function() {
 | 
			
		||||
            this._residentSource.disconnect(destroyId);
 | 
			
		||||
            this._residentSource = null;
 | 
			
		||||
        }));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    enable: function() {
 | 
			
		||||
        this._scanMounts();
 | 
			
		||||
 | 
			
		||||
        this._mountAddedId = this._volumeMonitor.connect('mount-added', Lang.bind(this, this._onMountAdded));
 | 
			
		||||
        this._mountRemovedId = this._volumeMonitor.connect('mount-removed', Lang.bind(this, this._onMountRemoved));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    disable: function() {
 | 
			
		||||
        if (this._residentSource)
 | 
			
		||||
            this._residentSource.destroy();
 | 
			
		||||
        this._volumeMonitor.disconnect(this._mountAddedId);
 | 
			
		||||
        this._volumeMonitor.disconnect(this._mountRemovedId);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _processMount: function(mount, hotplug) {
 | 
			
		||||
        let discoverer = new ContentTypeDiscoverer(Lang.bind(this, function(mount, apps, contentTypes) {
 | 
			
		||||
            this._ensureResidentSource();
 | 
			
		||||
            this._residentSource.addMount(mount, apps);
 | 
			
		||||
 | 
			
		||||
            if (hotplug)
 | 
			
		||||
                this._transDispatcher.addMount(mount, apps, contentTypes);
 | 
			
		||||
        }));
 | 
			
		||||
        discoverer.guessContentTypes(mount);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _scanMounts: function() {
 | 
			
		||||
        let mounts = this._volumeMonitor.get_mounts();
 | 
			
		||||
        mounts.forEach(Lang.bind(this, function(mount) {
 | 
			
		||||
            this._processMount(mount, false);
 | 
			
		||||
        }));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onMountAdded: function(monitor, mount) {
 | 
			
		||||
        // don't do anything if our session is not the currently
 | 
			
		||||
        // active one
 | 
			
		||||
        if (!this._session.SessionIsActive)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        let discoverer = new ContentTypeDiscoverer(Lang.bind(this, function(mount, apps, contentTypes) {
 | 
			
		||||
            this._dispatcher.addMount(mount, apps, contentTypes);
 | 
			
		||||
        }));
 | 
			
		||||
        discoverer.guessContentTypes(mount);
 | 
			
		||||
        this._processMount(mount, true);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onMountRemoved: function(monitor, mount) {
 | 
			
		||||
        this._dispatcher.removeMount(mount);
 | 
			
		||||
        this._transDispatcher.removeMount(mount);
 | 
			
		||||
        if (this._residentSource)
 | 
			
		||||
            this._residentSource.removeMount(mount);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    ejectMount: function(mount) {
 | 
			
		||||
        let mountOp = new ShellMountOperation.ShellMountOperation(mount);
 | 
			
		||||
 | 
			
		||||
        // first, see if we have a drive
 | 
			
		||||
        let drive = mount.get_drive();
 | 
			
		||||
        let volume = mount.get_volume();
 | 
			
		||||
 | 
			
		||||
        if (drive &&
 | 
			
		||||
            drive.get_start_stop_type() == Gio.DriveStartStopType.SHUTDOWN &&
 | 
			
		||||
            drive.can_stop()) {
 | 
			
		||||
            drive.stop(0, mountOp.mountOp, null,
 | 
			
		||||
                       Lang.bind(this, this._onStop));
 | 
			
		||||
        } else {
 | 
			
		||||
            if (mount.can_eject()) {
 | 
			
		||||
                mount.eject_with_operation(0, mountOp.mountOp, null,
 | 
			
		||||
                                           Lang.bind(this, this._onEject));
 | 
			
		||||
            } else if (volume && volume.can_eject()) {
 | 
			
		||||
                volume.eject_with_operation(0, mountOp.mountOp, null,
 | 
			
		||||
                                            Lang.bind(this, this._onEject));
 | 
			
		||||
            } else if (drive && drive.can_eject()) {
 | 
			
		||||
                drive.eject_with_operation(0, mountOp.mountOp, null,
 | 
			
		||||
                                           Lang.bind(this, this._onEject));
 | 
			
		||||
            } else if (mount.can_unmount()) {
 | 
			
		||||
                mount.unmount_with_operation(0, mountOp.mountOp, null,
 | 
			
		||||
                                             Lang.bind(this, this._onUnmount));
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onUnmount: function(mount, res) {
 | 
			
		||||
        try {
 | 
			
		||||
            mount.unmount_with_operation_finish(res);
 | 
			
		||||
        } catch (e) {
 | 
			
		||||
            if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED_HANDLED))
 | 
			
		||||
                log('Unable to eject the mount ' + mount.get_name() 
 | 
			
		||||
                    + ': ' + e.toString());
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onEject: function(source, res) {
 | 
			
		||||
        try {
 | 
			
		||||
            source.eject_with_operation_finish(res);
 | 
			
		||||
        } catch (e) {
 | 
			
		||||
            if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED_HANDLED))
 | 
			
		||||
                log('Unable to eject the drive ' + source.get_name()
 | 
			
		||||
                    + ': ' + e.toString());
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onStop: function(drive, res) {
 | 
			
		||||
        try {
 | 
			
		||||
            drive.stop_finish(res);
 | 
			
		||||
        } catch (e) {
 | 
			
		||||
            if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED_HANDLED))
 | 
			
		||||
                log('Unable to stop the drive ' + drive.get_name() 
 | 
			
		||||
                    + ': ' + e.toString());
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
const AutorunResidentSource = new Lang.Class({
 | 
			
		||||
    Name: 'AutorunResidentSource',
 | 
			
		||||
    Extends: MessageTray.Source,
 | 
			
		||||
 | 
			
		||||
    _init: function(manager) {
 | 
			
		||||
        this.parent(_("Removable Devices"), 'media-removable');
 | 
			
		||||
        this.resident = true;
 | 
			
		||||
 | 
			
		||||
        this._mounts = [];
 | 
			
		||||
 | 
			
		||||
        this._manager = manager;
 | 
			
		||||
        this._notification = new AutorunResidentNotification(this._manager, this);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _createPolicy: function() {
 | 
			
		||||
        return new MessageTray.NotificationPolicy({ showInLockScreen: false });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    buildRightClickMenu: function() {
 | 
			
		||||
        return null;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    addMount: function(mount, apps) {
 | 
			
		||||
        if (!shouldAutorunMount(mount, false))
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        let filtered = this._mounts.filter(function (element) {
 | 
			
		||||
            return (element.mount == mount);
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        if (filtered.length != 0)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        let element = { mount: mount, apps: apps };
 | 
			
		||||
        this._mounts.push(element);
 | 
			
		||||
        this._redisplay();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    removeMount: function(mount) {
 | 
			
		||||
        this._mounts =
 | 
			
		||||
            this._mounts.filter(function (element) {
 | 
			
		||||
                return (element.mount != mount);
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
        this._redisplay();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _redisplay: function() {
 | 
			
		||||
        if (this._mounts.length == 0) {
 | 
			
		||||
            this._notification.destroy();
 | 
			
		||||
            this.destroy();
 | 
			
		||||
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._notification.updateForMounts(this._mounts);
 | 
			
		||||
 | 
			
		||||
        // add ourselves as a source, and push the notification
 | 
			
		||||
        if (!Main.messageTray.contains(this)) {
 | 
			
		||||
            Main.messageTray.add(this);
 | 
			
		||||
            this.pushNotification(this._notification);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var AutorunDispatcher = new Lang.Class({
 | 
			
		||||
    Name: 'AutorunDispatcher',
 | 
			
		||||
const AutorunResidentNotification = new Lang.Class({
 | 
			
		||||
    Name: 'AutorunResidentNotification',
 | 
			
		||||
    Extends: MessageTray.Notification,
 | 
			
		||||
 | 
			
		||||
    _init: function(manager, source) {
 | 
			
		||||
        this.parent(source, source.title, null, { customContent: true });
 | 
			
		||||
 | 
			
		||||
        // set the notification as resident
 | 
			
		||||
        this.setResident(true);
 | 
			
		||||
 | 
			
		||||
        this._layout = new St.BoxLayout ({ style_class: 'hotplug-resident-box',
 | 
			
		||||
                                           vertical: true });
 | 
			
		||||
        this._manager = manager;
 | 
			
		||||
 | 
			
		||||
        this.addActor(this._layout,
 | 
			
		||||
                      { x_expand: true,
 | 
			
		||||
                        x_fill: true });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    updateForMounts: function(mounts) {
 | 
			
		||||
        // remove all the layout content
 | 
			
		||||
        this._layout.destroy_all_children();
 | 
			
		||||
 | 
			
		||||
        for (let idx = 0; idx < mounts.length; idx++) {
 | 
			
		||||
            let element = mounts[idx];
 | 
			
		||||
 | 
			
		||||
            let actor = this._itemForMount(element.mount, element.apps);
 | 
			
		||||
            this._layout.add(actor, { x_fill: true,
 | 
			
		||||
                                      expand: true });
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _itemForMount: function(mount, apps) {
 | 
			
		||||
        let item = new St.BoxLayout();
 | 
			
		||||
 | 
			
		||||
        // prepare the mount button content
 | 
			
		||||
        let mountLayout = new St.BoxLayout();
 | 
			
		||||
 | 
			
		||||
        let mountIcon = new St.Icon({ gicon: mount.get_icon(),
 | 
			
		||||
                                      style_class: 'hotplug-resident-mount-icon' });
 | 
			
		||||
        mountLayout.add_actor(mountIcon);
 | 
			
		||||
 | 
			
		||||
        let labelBin = new St.Bin({ y_align: St.Align.MIDDLE });
 | 
			
		||||
        let mountLabel =
 | 
			
		||||
            new St.Label({ text: mount.get_name(),
 | 
			
		||||
                           style_class: 'hotplug-resident-mount-label',
 | 
			
		||||
                           track_hover: true,
 | 
			
		||||
                           reactive: true });
 | 
			
		||||
        labelBin.add_actor(mountLabel);
 | 
			
		||||
        mountLayout.add_actor(labelBin);
 | 
			
		||||
 | 
			
		||||
        let mountButton = new St.Button({ child: mountLayout,
 | 
			
		||||
                                          x_align: St.Align.START,
 | 
			
		||||
                                          x_fill: true,
 | 
			
		||||
                                          style_class: 'hotplug-resident-mount',
 | 
			
		||||
                                          button_mask: St.ButtonMask.ONE });
 | 
			
		||||
        item.add(mountButton, { x_align: St.Align.START,
 | 
			
		||||
                                expand: true });
 | 
			
		||||
 | 
			
		||||
        let ejectIcon = 
 | 
			
		||||
            new St.Icon({ icon_name: 'media-eject-symbolic',
 | 
			
		||||
                          style_class: 'hotplug-resident-eject-icon' });
 | 
			
		||||
 | 
			
		||||
        let ejectButton =
 | 
			
		||||
            new St.Button({ style_class: 'hotplug-resident-eject-button',
 | 
			
		||||
                            button_mask: St.ButtonMask.ONE,
 | 
			
		||||
                            child: ejectIcon });
 | 
			
		||||
        item.add(ejectButton, { x_align: St.Align.END });
 | 
			
		||||
 | 
			
		||||
        // now connect signals
 | 
			
		||||
        mountButton.connect('clicked', Lang.bind(this, function(actor, event) {
 | 
			
		||||
            startAppForMount(apps[0], mount);
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
        ejectButton.connect('clicked', Lang.bind(this, function() {
 | 
			
		||||
            this._manager.ejectMount(mount);
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
        return item;
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
const AutorunTransientDispatcher = new Lang.Class({
 | 
			
		||||
    Name: 'AutorunTransientDispatcher',
 | 
			
		||||
 | 
			
		||||
    _init: function(manager) {
 | 
			
		||||
        this._manager = manager;
 | 
			
		||||
@@ -243,7 +482,7 @@ var AutorunDispatcher = new Lang.Class({
 | 
			
		||||
            return;
 | 
			
		||||
     
 | 
			
		||||
        // add a new source
 | 
			
		||||
        this._sources.push(new AutorunSource(this._manager, mount, apps));
 | 
			
		||||
        this._sources.push(new AutorunTransientSource(this._manager, mount, apps));
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    addMount: function(mount, apps, contentTypes) {
 | 
			
		||||
@@ -252,7 +491,7 @@ var AutorunDispatcher = new Lang.Class({
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        // if the mount doesn't want to be autorun, return
 | 
			
		||||
        if (!shouldAutorunMount(mount))
 | 
			
		||||
        if (!shouldAutorunMount(mount, true))
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        let setting = this._getAutorunSettingForType(contentTypes[0]);
 | 
			
		||||
@@ -292,8 +531,8 @@ var AutorunDispatcher = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var AutorunSource = new Lang.Class({
 | 
			
		||||
    Name: 'AutorunSource',
 | 
			
		||||
const AutorunTransientSource = new Lang.Class({
 | 
			
		||||
    Name: 'AutorunTransientSource',
 | 
			
		||||
    Extends: MessageTray.Source,
 | 
			
		||||
 | 
			
		||||
    _init: function(manager, mount, apps) {
 | 
			
		||||
@@ -303,7 +542,7 @@ var AutorunSource = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        this.parent(mount.get_name());
 | 
			
		||||
 | 
			
		||||
        this._notification = new AutorunNotification(this._manager, this);
 | 
			
		||||
        this._notification = new AutorunTransientNotification(this._manager, this);
 | 
			
		||||
 | 
			
		||||
        // add ourselves as a source, and popup the notification
 | 
			
		||||
        Main.messageTray.add(this);
 | 
			
		||||
@@ -312,35 +551,38 @@ var AutorunSource = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
    getIcon: function() {
 | 
			
		||||
        return this.mount.get_icon();
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _createPolicy: function() {
 | 
			
		||||
        return new MessageTray.NotificationApplicationPolicy('org.gnome.Nautilus');
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var AutorunNotification = new Lang.Class({
 | 
			
		||||
    Name: 'AutorunNotification',
 | 
			
		||||
const AutorunTransientNotification = new Lang.Class({
 | 
			
		||||
    Name: 'AutorunTransientNotification',
 | 
			
		||||
    Extends: MessageTray.Notification,
 | 
			
		||||
 | 
			
		||||
    _init: function(manager, source) {
 | 
			
		||||
        this.parent(source, source.title);
 | 
			
		||||
        this.parent(source, source.title, null, { customContent: true });
 | 
			
		||||
 | 
			
		||||
        this._manager = manager;
 | 
			
		||||
        this._box = new St.BoxLayout({ style_class: 'hotplug-transient-box',
 | 
			
		||||
                                       vertical: true });
 | 
			
		||||
        this.addActor(this._box);
 | 
			
		||||
 | 
			
		||||
        this._mount = source.mount;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    createBanner: function() {
 | 
			
		||||
        let banner = new MessageTray.NotificationBanner(this);
 | 
			
		||||
 | 
			
		||||
        this.source.apps.forEach(Lang.bind(this, function (app) {
 | 
			
		||||
        source.apps.forEach(Lang.bind(this, function (app) {
 | 
			
		||||
            let actor = this._buttonForApp(app);
 | 
			
		||||
 | 
			
		||||
            if (actor)
 | 
			
		||||
                banner.addButton(actor);
 | 
			
		||||
                this._box.add(actor, { x_fill: true,
 | 
			
		||||
                                       x_align: St.Align.START });
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
        return banner;
 | 
			
		||||
        this._box.add(this._buttonForEject(), { x_fill: true,
 | 
			
		||||
                                                x_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        // set the notification to transient and urgent, so that it
 | 
			
		||||
        // expands out
 | 
			
		||||
        this.setTransient(true);
 | 
			
		||||
        this.setUrgency(MessageTray.Urgency.CRITICAL);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _buttonForApp: function(app) {
 | 
			
		||||
@@ -358,9 +600,8 @@ var AutorunNotification = new Lang.Class({
 | 
			
		||||
        let button = new St.Button({ child: box,
 | 
			
		||||
                                     x_fill: true,
 | 
			
		||||
                                     x_align: St.Align.START,
 | 
			
		||||
                                     x_expand: true,
 | 
			
		||||
                                     button_mask: St.ButtonMask.ONE,
 | 
			
		||||
                                     style_class: 'hotplug-notification-item button' });
 | 
			
		||||
                                     style_class: 'hotplug-notification-item' });
 | 
			
		||||
 | 
			
		||||
        button.connect('clicked', Lang.bind(this, function() {
 | 
			
		||||
            startAppForMount(app, this._mount);
 | 
			
		||||
@@ -370,12 +611,30 @@ var AutorunNotification = new Lang.Class({
 | 
			
		||||
        return button;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    activate: function() {
 | 
			
		||||
        this.parent();
 | 
			
		||||
    _buttonForEject: function() {
 | 
			
		||||
        let box = new St.BoxLayout();
 | 
			
		||||
        let icon = new St.Icon({ icon_name: 'media-eject-symbolic',
 | 
			
		||||
                                 style_class: 'hotplug-notification-item-icon' });
 | 
			
		||||
        box.add(icon);
 | 
			
		||||
 | 
			
		||||
        let app = Gio.app_info_get_default_for_type('inode/directory', false);
 | 
			
		||||
        startAppForMount(app, this._mount);
 | 
			
		||||
        let label = new St.Bin({ y_align: St.Align.MIDDLE,
 | 
			
		||||
                                 child: new St.Label
 | 
			
		||||
                                 ({ text: _("Eject") })
 | 
			
		||||
                               });
 | 
			
		||||
        box.add(label);
 | 
			
		||||
 | 
			
		||||
        let button = new St.Button({ child: box,
 | 
			
		||||
                                     x_fill: true,
 | 
			
		||||
                                     x_align: St.Align.START,
 | 
			
		||||
                                     button_mask: St.ButtonMask.ONE,
 | 
			
		||||
                                     style_class: 'hotplug-notification-item' });
 | 
			
		||||
 | 
			
		||||
        button.connect('clicked', Lang.bind(this, function() {
 | 
			
		||||
            this._manager.ejectMount(this._mount);
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
        return button;
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var Component = AutorunManager;
 | 
			
		||||
const Component = AutorunManager;
 | 
			
		||||
 
 | 
			
		||||
@@ -9,18 +9,11 @@ const Gio = imports.gi.Gio;
 | 
			
		||||
const GObject = imports.gi.GObject;
 | 
			
		||||
const Gcr = imports.gi.Gcr;
 | 
			
		||||
 | 
			
		||||
const Animation = imports.ui.animation;
 | 
			
		||||
const Dialog = imports.ui.dialog;
 | 
			
		||||
const ModalDialog = imports.ui.modalDialog;
 | 
			
		||||
const ShellEntry = imports.ui.shellEntry;
 | 
			
		||||
const CheckBox = imports.ui.checkBox;
 | 
			
		||||
const Tweener = imports.ui.tweener;
 | 
			
		||||
 | 
			
		||||
var WORK_SPINNER_ICON_SIZE = 16;
 | 
			
		||||
var WORK_SPINNER_ANIMATION_DELAY = 1.0;
 | 
			
		||||
var WORK_SPINNER_ANIMATION_TIME = 0.3;
 | 
			
		||||
 | 
			
		||||
var KeyringDialog = new Lang.Class({
 | 
			
		||||
const KeyringDialog = new Lang.Class({
 | 
			
		||||
    Name: 'KeyringDialog',
 | 
			
		||||
    Extends: ModalDialog.ModalDialog,
 | 
			
		||||
 | 
			
		||||
@@ -32,66 +25,60 @@ var KeyringDialog = new Lang.Class({
 | 
			
		||||
        this.prompt.connect('show-confirm', Lang.bind(this, this._onShowConfirm));
 | 
			
		||||
        this.prompt.connect('prompt-close', Lang.bind(this, this._onHidePrompt));
 | 
			
		||||
 | 
			
		||||
        let icon = new Gio.ThemedIcon({ name: 'dialog-password-symbolic' });
 | 
			
		||||
        this._content = new Dialog.MessageDialogContent({ icon });
 | 
			
		||||
        this.contentLayout.add(this._content);
 | 
			
		||||
        let mainContentBox = new St.BoxLayout({ style_class: 'prompt-dialog-main-layout',
 | 
			
		||||
                                                vertical: false });
 | 
			
		||||
        this.contentLayout.add(mainContentBox);
 | 
			
		||||
 | 
			
		||||
        // FIXME: Why does this break now?
 | 
			
		||||
        /*
 | 
			
		||||
        this.prompt.bind_property('message', this._content, 'title', GObject.BindingFlags.SYNC_CREATE);
 | 
			
		||||
        this.prompt.bind_property('description', this._content, 'body', GObject.BindingFlags.SYNC_CREATE);
 | 
			
		||||
        */
 | 
			
		||||
        this.prompt.connect('notify::message', () => {
 | 
			
		||||
            this._content.title = this.prompt.message;
 | 
			
		||||
        });
 | 
			
		||||
        this._content.title = this.prompt.message;
 | 
			
		||||
        let icon = new St.Icon({ icon_name: 'dialog-password-symbolic' });
 | 
			
		||||
        mainContentBox.add(icon,
 | 
			
		||||
                           { x_fill:  true,
 | 
			
		||||
                             y_fill:  false,
 | 
			
		||||
                             x_align: St.Align.END,
 | 
			
		||||
                             y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        this.prompt.connect('notify::description', () => {
 | 
			
		||||
            this._content.body = this.prompt.description;
 | 
			
		||||
        });
 | 
			
		||||
        this._content.body = this.prompt.description;
 | 
			
		||||
        this._messageBox = new St.BoxLayout({ style_class: 'prompt-dialog-message-layout',
 | 
			
		||||
                                              vertical: true });
 | 
			
		||||
        mainContentBox.add(this._messageBox,
 | 
			
		||||
                           { y_align: St.Align.START, expand: true, x_fill: true, y_fill: true });
 | 
			
		||||
 | 
			
		||||
        let subject = new St.Label({ style_class: 'prompt-dialog-headline' });
 | 
			
		||||
        this.prompt.bind_property('message', subject, 'text', GObject.BindingFlags.SYNC_CREATE);
 | 
			
		||||
 | 
			
		||||
        this._messageBox.add(subject,
 | 
			
		||||
                             { x_fill: false,
 | 
			
		||||
                               y_fill:  false,
 | 
			
		||||
                               x_align: St.Align.START,
 | 
			
		||||
                               y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        let description = new St.Label({ style_class: 'prompt-dialog-description' });
 | 
			
		||||
        description.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 | 
			
		||||
        description.clutter_text.line_wrap = true;
 | 
			
		||||
        this.prompt.bind_property('description', description, 'text', GObject.BindingFlags.SYNC_CREATE);
 | 
			
		||||
        this._messageBox.add(description,
 | 
			
		||||
                            { y_fill:  true,
 | 
			
		||||
                              y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        this._workSpinner = null;
 | 
			
		||||
        this._controlTable = null;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        this._cancelButton = this.addButton({ label: '',
 | 
			
		||||
                                              action: Lang.bind(this, this._onCancelButton),
 | 
			
		||||
                                              key: Clutter.Escape });
 | 
			
		||||
                                              key: Clutter.Escape },
 | 
			
		||||
                                            { expand: true, x_fill: false, x_align: St.Align.START });
 | 
			
		||||
        this.placeSpinner({ expand: false,
 | 
			
		||||
                            x_fill: false,
 | 
			
		||||
                            y_fill: false,
 | 
			
		||||
                            x_align: St.Align.END,
 | 
			
		||||
                            y_align: St.Align.MIDDLE });
 | 
			
		||||
        this._continueButton = this.addButton({ label: '',
 | 
			
		||||
                                                action: Lang.bind(this, this._onContinueButton),
 | 
			
		||||
                                                default: true });
 | 
			
		||||
                                                default: true },
 | 
			
		||||
                                              { expand: false, x_fill: false, x_align: St.Align.END });
 | 
			
		||||
 | 
			
		||||
        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);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _setWorking: function(working) {
 | 
			
		||||
        if (!this._workSpinner)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        Tweener.removeTweens(this._workSpinner.actor);
 | 
			
		||||
        if (working) {
 | 
			
		||||
            this._workSpinner.play();
 | 
			
		||||
            Tweener.addTween(this._workSpinner.actor,
 | 
			
		||||
                             { opacity: 255,
 | 
			
		||||
                               delay: WORK_SPINNER_ANIMATION_DELAY,
 | 
			
		||||
                               time: WORK_SPINNER_ANIMATION_TIME,
 | 
			
		||||
                               transition: 'linear'
 | 
			
		||||
                             });
 | 
			
		||||
        } else {
 | 
			
		||||
            Tweener.addTween(this._workSpinner.actor,
 | 
			
		||||
                             { opacity: 0,
 | 
			
		||||
                               time: WORK_SPINNER_ANIMATION_TIME,
 | 
			
		||||
                               transition: 'linear',
 | 
			
		||||
                               onCompleteScope: this,
 | 
			
		||||
                               onComplete: function() {
 | 
			
		||||
                                   if (this._workSpinner)
 | 
			
		||||
                                       this._workSpinner.stop();
 | 
			
		||||
                               }
 | 
			
		||||
                             });
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _buildControlTable: function() {
 | 
			
		||||
        let layout = new Clutter.GridLayout({ orientation: Clutter.Orientation.VERTICAL });
 | 
			
		||||
        let table = new St.Widget({ style_class: 'keyring-dialog-control-table',
 | 
			
		||||
@@ -114,22 +101,15 @@ var KeyringDialog = new Lang.Class({
 | 
			
		||||
            ShellEntry.addContextMenu(this._passwordEntry, { isPassword: true });
 | 
			
		||||
            this._passwordEntry.clutter_text.connect('activate', Lang.bind(this, this._onPasswordActivate));
 | 
			
		||||
 | 
			
		||||
            let spinnerIcon = Gio.File.new_for_uri('resource:///org/gnome/shell/theme/process-working.svg');
 | 
			
		||||
            this._workSpinner = new Animation.AnimatedIcon(spinnerIcon, WORK_SPINNER_ICON_SIZE);
 | 
			
		||||
            this._workSpinner.actor.opacity = 0;
 | 
			
		||||
 | 
			
		||||
            if (rtl) {
 | 
			
		||||
                layout.attach(this._workSpinner.actor, 0, row, 1, 1);
 | 
			
		||||
                layout.attach(this._passwordEntry, 1, row, 1, 1);
 | 
			
		||||
                layout.attach(label, 2, row, 1, 1);
 | 
			
		||||
                layout.attach(this._passwordEntry, 0, row, 1, 1);
 | 
			
		||||
                layout.attach(label, 1, row, 1, 1);
 | 
			
		||||
            } else {
 | 
			
		||||
                layout.attach(label, 0, row, 1, 1);
 | 
			
		||||
                layout.attach(this._passwordEntry, 1, row, 1, 1);
 | 
			
		||||
                layout.attach(this._workSpinner.actor, 2, row, 1, 1);
 | 
			
		||||
            }
 | 
			
		||||
            row++;
 | 
			
		||||
        } else {
 | 
			
		||||
            this._workSpinner = null;
 | 
			
		||||
            this._passwordEntry = null;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -182,7 +162,7 @@ var KeyringDialog = new Lang.Class({
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._controlTable = table;
 | 
			
		||||
        this._content.messageBox.add(table, { x_fill: true, y_fill: true });
 | 
			
		||||
        this._messageBox.add(table, { x_fill: true, y_fill: true });
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _updateSensitivity: function(sensitive) {
 | 
			
		||||
@@ -198,7 +178,7 @@ var KeyringDialog = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        this._continueButton.can_focus = sensitive;
 | 
			
		||||
        this._continueButton.reactive = sensitive;
 | 
			
		||||
        this._setWorking(!sensitive);
 | 
			
		||||
        this.setWorking(!sensitive);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _ensureOpen: function() {
 | 
			
		||||
@@ -258,7 +238,7 @@ var KeyringDialog = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var KeyringDummyDialog = new Lang.Class({
 | 
			
		||||
const KeyringDummyDialog = new Lang.Class({
 | 
			
		||||
    Name: 'KeyringDummyDialog',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -274,7 +254,7 @@ var KeyringDummyDialog = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var KeyringPrompter = new Lang.Class({
 | 
			
		||||
const KeyringPrompter = new Lang.Class({
 | 
			
		||||
    Name: 'KeyringPrompter',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -311,4 +291,4 @@ var KeyringPrompter = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var Component = KeyringPrompter;
 | 
			
		||||
const Component = KeyringPrompter;
 | 
			
		||||
 
 | 
			
		||||
@@ -12,16 +12,13 @@ const Shell = imports.gi.Shell;
 | 
			
		||||
const St = imports.gi.St;
 | 
			
		||||
 | 
			
		||||
const Config = imports.misc.config;
 | 
			
		||||
const Dialog = imports.ui.dialog;
 | 
			
		||||
const Main = imports.ui.main;
 | 
			
		||||
const MessageTray = imports.ui.messageTray;
 | 
			
		||||
const ModalDialog = imports.ui.modalDialog;
 | 
			
		||||
const PopupMenu = imports.ui.popupMenu;
 | 
			
		||||
const ShellEntry = imports.ui.shellEntry;
 | 
			
		||||
 | 
			
		||||
const VPN_UI_GROUP = 'VPN Plugin UI';
 | 
			
		||||
 | 
			
		||||
var NetworkSecretDialog = new Lang.Class({
 | 
			
		||||
const NetworkSecretDialog = new Lang.Class({
 | 
			
		||||
    Name: 'NetworkSecretDialog',
 | 
			
		||||
    Extends: ModalDialog.ModalDialog,
 | 
			
		||||
 | 
			
		||||
@@ -39,12 +36,41 @@ var NetworkSecretDialog = new Lang.Class({
 | 
			
		||||
        else
 | 
			
		||||
            this._content = this._getContent();
 | 
			
		||||
 | 
			
		||||
        let icon = new Gio.ThemedIcon({ name: 'dialog-password-symbolic' });
 | 
			
		||||
        let contentParams = { icon,
 | 
			
		||||
                              title: this._content.title,
 | 
			
		||||
                              body: this._content.message };
 | 
			
		||||
        let contentBox = new Dialog.MessageDialogContent(contentParams);
 | 
			
		||||
        this.contentLayout.add_actor(contentBox);
 | 
			
		||||
        let mainContentBox = new St.BoxLayout({ style_class: 'prompt-dialog-main-layout',
 | 
			
		||||
                                                vertical: false });
 | 
			
		||||
        this.contentLayout.add(mainContentBox,
 | 
			
		||||
                               { x_fill: true,
 | 
			
		||||
                                 y_fill: true });
 | 
			
		||||
 | 
			
		||||
        let icon = new St.Icon({ icon_name: 'dialog-password-symbolic' });
 | 
			
		||||
        mainContentBox.add(icon,
 | 
			
		||||
                           { x_fill:  true,
 | 
			
		||||
                             y_fill:  false,
 | 
			
		||||
                             x_align: St.Align.END,
 | 
			
		||||
                             y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        let messageBox = new St.BoxLayout({ style_class: 'prompt-dialog-message-layout',
 | 
			
		||||
                                            vertical: true });
 | 
			
		||||
        mainContentBox.add(messageBox,
 | 
			
		||||
                           { y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        let subjectLabel = new St.Label({ style_class: 'prompt-dialog-headline',
 | 
			
		||||
                                            text: this._content.title });
 | 
			
		||||
        messageBox.add(subjectLabel,
 | 
			
		||||
                       { y_fill:  false,
 | 
			
		||||
                         y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        if (this._content.message != null) {
 | 
			
		||||
            let descriptionLabel = new St.Label({ style_class: 'prompt-dialog-description',
 | 
			
		||||
                                                  text: this._content.message });
 | 
			
		||||
            descriptionLabel.clutter_text.line_wrap = true;
 | 
			
		||||
            descriptionLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 | 
			
		||||
 | 
			
		||||
            messageBox.add(descriptionLabel,
 | 
			
		||||
                           { y_fill:  true,
 | 
			
		||||
                             y_align: St.Align.START,
 | 
			
		||||
                             expand: true });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let layout = new Clutter.GridLayout({ orientation: Clutter.Orientation.VERTICAL });
 | 
			
		||||
        let secretTable = new St.Widget({ style_class: 'network-dialog-secret-table',
 | 
			
		||||
@@ -107,7 +133,7 @@ var NetworkSecretDialog = new Lang.Class({
 | 
			
		||||
                secret.entry.clutter_text.set_password_char('\u25cf');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        contentBox.messageBox.add(secretTable);
 | 
			
		||||
        messageBox.add(secretTable);
 | 
			
		||||
 | 
			
		||||
        this._okButton = { label:  _("Connect"),
 | 
			
		||||
                           action: Lang.bind(this, this._onOk),
 | 
			
		||||
@@ -312,7 +338,6 @@ var NetworkSecretDialog = new Lang.Class({
 | 
			
		||||
                content.message = _("PIN code is needed for the mobile broadband device");
 | 
			
		||||
                content.secrets.push({ label: _("PIN: "), key: 'pin',
 | 
			
		||||
                                       value: gsmSetting.pin || '', password: true });
 | 
			
		||||
                break;
 | 
			
		||||
            }
 | 
			
		||||
            // fall through
 | 
			
		||||
        case 'cdma':
 | 
			
		||||
@@ -329,7 +354,7 @@ var NetworkSecretDialog = new Lang.Class({
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var VPNRequestHandler = new Lang.Class({
 | 
			
		||||
const VPNRequestHandler = new Lang.Class({
 | 
			
		||||
    Name: 'VPNRequestHandler',
 | 
			
		||||
 | 
			
		||||
    _init: function(agent, requestId, authHelper, serviceType, connection, hints, flags) {
 | 
			
		||||
@@ -575,7 +600,7 @@ var VPNRequestHandler = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var NetworkAgent = new Lang.Class({
 | 
			
		||||
const NetworkAgent = new Lang.Class({
 | 
			
		||||
    Name: 'NetworkAgent',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -585,15 +610,6 @@ var NetworkAgent = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        this._dialogs = { };
 | 
			
		||||
        this._vpnRequests = { };
 | 
			
		||||
        this._notifications = { };
 | 
			
		||||
 | 
			
		||||
        this._pluginDir = Gio.file_new_for_path(GLib.build_filenamev([Config.SYSCONFDIR, 'NetworkManager/VPN']));
 | 
			
		||||
        try {
 | 
			
		||||
            let monitor = this._pluginDir.monitor(Gio.FileMonitorFlags.NONE, null);
 | 
			
		||||
            monitor.connect('changed', () => { this._vpnCacheBuilt = false; });
 | 
			
		||||
        } catch(e) {
 | 
			
		||||
            log('Failed to create monitor for VPN plugin dir: ' + e.message);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this._native.connect('new-request', Lang.bind(this, this._newRequest));
 | 
			
		||||
        this._native.connect('cancel-request', Lang.bind(this, this._cancelRequest));
 | 
			
		||||
@@ -616,92 +632,21 @@ var NetworkAgent = new Lang.Class({
 | 
			
		||||
            this._vpnRequests[requestId].cancel(true);
 | 
			
		||||
        this._vpnRequests = { };
 | 
			
		||||
 | 
			
		||||
        for (requestId in this._notifications)
 | 
			
		||||
            this._notifications[requestId].destroy();
 | 
			
		||||
        this._notifications = { };
 | 
			
		||||
 | 
			
		||||
        this._enabled = false;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _showNotification: function(requestId, connection, settingName, hints, flags) {
 | 
			
		||||
        let source = new MessageTray.Source(_("Network Manager"), 'network-transmit-receive');
 | 
			
		||||
        source.policy = new MessageTray.NotificationApplicationPolicy('gnome-network-panel');
 | 
			
		||||
 | 
			
		||||
        let title, body;
 | 
			
		||||
 | 
			
		||||
        let connectionSetting = connection.get_setting_connection();
 | 
			
		||||
        let connectionType = connectionSetting.get_connection_type();
 | 
			
		||||
        switch (connectionType) {
 | 
			
		||||
        case '802-11-wireless':
 | 
			
		||||
            let wirelessSetting = connection.get_setting_wireless();
 | 
			
		||||
            let ssid = NetworkManager.utils_ssid_to_utf8(wirelessSetting.get_ssid());
 | 
			
		||||
            title = _("Authentication required by wireless network");
 | 
			
		||||
            body = _("Passwords or encryption keys are required to access the wireless network “%s”.").format(ssid);
 | 
			
		||||
            break;
 | 
			
		||||
        case '802-3-ethernet':
 | 
			
		||||
            title = _("Wired 802.1X authentication");
 | 
			
		||||
            body = _("A password is required to connect to “%s”.".format(connection.get_id()));
 | 
			
		||||
            break;
 | 
			
		||||
        case 'pppoe':
 | 
			
		||||
            title = _("DSL authentication");
 | 
			
		||||
            body = _("A password is required to connect to “%s”.".format(connection.get_id()));
 | 
			
		||||
            break;
 | 
			
		||||
        case 'gsm':
 | 
			
		||||
            if (hints.indexOf('pin') != -1) {
 | 
			
		||||
                let gsmSetting = connection.get_setting_gsm();
 | 
			
		||||
                title = _("PIN code required");
 | 
			
		||||
                message = _("PIN code is needed for the mobile broadband device");
 | 
			
		||||
                break;
 | 
			
		||||
            }
 | 
			
		||||
            // fall through
 | 
			
		||||
        case 'cdma':
 | 
			
		||||
        case 'bluetooth':
 | 
			
		||||
            title = _("Mobile broadband network password");
 | 
			
		||||
            message = _("A password is required to connect to “%s”.").format(connectionSetting.get_id());
 | 
			
		||||
            break;
 | 
			
		||||
        default:
 | 
			
		||||
            log('Invalid connection type: ' + connectionType);
 | 
			
		||||
            this._native.respond(requestId, Shell.NetworkAgentResponse.INTERNAL_ERROR);
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let notification = new MessageTray.Notification(source, title, body);
 | 
			
		||||
 | 
			
		||||
        notification.connect('activated', Lang.bind(this, function() {
 | 
			
		||||
            notification.answered = true;
 | 
			
		||||
            this._handleRequest(requestId, connection, settingName, hints, flags);
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
        this._notifications[requestId] = notification;
 | 
			
		||||
        notification.connect('destroy', Lang.bind(this, function() {
 | 
			
		||||
            if (!notification.answered)
 | 
			
		||||
                this._native.respond(requestId, Shell.NetworkAgentResponse.USER_CANCELED);
 | 
			
		||||
            delete this._notifications[requestId];
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
        Main.messageTray.add(source);
 | 
			
		||||
        source.notify(notification);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _newRequest:  function(agent, requestId, connection, settingName, hints, flags) {
 | 
			
		||||
        if (!this._enabled) {
 | 
			
		||||
            agent.respond(requestId, Shell.NetworkAgentResponse.USER_CANCELED);
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!(flags & NMClient.SecretAgentGetSecretsFlags.USER_REQUESTED))
 | 
			
		||||
            this._showNotification(requestId, connection, settingName, hints, flags);
 | 
			
		||||
        else
 | 
			
		||||
            this._handleRequest(requestId, connection, settingName, hints, flags);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _handleRequest: function(requestId, connection, settingName, hints, flags) {
 | 
			
		||||
        if (settingName == 'vpn') {
 | 
			
		||||
            this._vpnRequest(requestId, connection, hints, flags);
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let dialog = new NetworkSecretDialog(this._native, requestId, connection, settingName, hints);
 | 
			
		||||
        let dialog = new NetworkSecretDialog(agent, requestId, connection, settingName, hints);
 | 
			
		||||
        dialog.connect('destroy', Lang.bind(this, function() {
 | 
			
		||||
            delete this._dialogs[requestId];
 | 
			
		||||
        }));
 | 
			
		||||
@@ -745,8 +690,9 @@ var NetworkAgent = new Lang.Class({
 | 
			
		||||
        this._vpnCacheBuilt = true;
 | 
			
		||||
        this._vpnBinaries = { };
 | 
			
		||||
 | 
			
		||||
        let dir = Gio.file_new_for_path(GLib.build_filenamev([Config.SYSCONFDIR, 'NetworkManager/VPN']));
 | 
			
		||||
        try {
 | 
			
		||||
            let fileEnum = this._pluginDir.enumerate_children('standard::name', Gio.FileQueryInfoFlags.NONE, null);
 | 
			
		||||
            let fileEnum = dir.enumerate_children('standard::name', Gio.FileQueryInfoFlags.NONE, null);
 | 
			
		||||
            let info;
 | 
			
		||||
 | 
			
		||||
            while ((info = fileEnum.next_file(null))) {
 | 
			
		||||
@@ -756,7 +702,7 @@ var NetworkAgent = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
                try {
 | 
			
		||||
                    let keyfile = new GLib.KeyFile();
 | 
			
		||||
                    keyfile.load_from_file(this._pluginDir.get_child(name).get_path(), GLib.KeyFileFlags.NONE);
 | 
			
		||||
                    keyfile.load_from_file(dir.get_child(name).get_path(), GLib.KeyFileFlags.NONE);
 | 
			
		||||
                    let service = keyfile.get_string('VPN Connection', 'service');
 | 
			
		||||
                    let binary = keyfile.get_string('GNOME', 'auth-dialog');
 | 
			
		||||
                    let externalUIMode = false;
 | 
			
		||||
@@ -775,21 +721,13 @@ var NetworkAgent = new Lang.Class({
 | 
			
		||||
                        path = GLib.build_filenamev([Config.LIBEXECDIR, path]);
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    if (GLib.file_test(path, GLib.FileTest.IS_EXECUTABLE)) {
 | 
			
		||||
                    if (GLib.file_test(path, GLib.FileTest.IS_EXECUTABLE))
 | 
			
		||||
                        this._vpnBinaries[service] = { fileName: path, externalUIMode: externalUIMode, supportsHints: hints };
 | 
			
		||||
                        try {
 | 
			
		||||
                            let aliases = keyfile.get_string_list('VPN Connection', 'aliases');
 | 
			
		||||
 | 
			
		||||
                            for (let alias of aliases) {
 | 
			
		||||
                                this._vpnBinaries[alias] = { fileName: path, externalUIMode: externalUIMode, supportsHints: hints };
 | 
			
		||||
                            }
 | 
			
		||||
                        } catch(e) { } // ignore errors if key does not exist
 | 
			
		||||
                    } else {
 | 
			
		||||
                    else
 | 
			
		||||
                        throw new Error('VPN plugin at %s is not executable'.format(path));
 | 
			
		||||
                    }
 | 
			
		||||
                } catch(e) {
 | 
			
		||||
                    log('Error \'%s\' while processing VPN keyfile \'%s\''.
 | 
			
		||||
                        format(e.message, this._pluginDir.get_child(name).get_path()));
 | 
			
		||||
                        format(e.message, dir.get_child(name).get_path()));
 | 
			
		||||
                    continue;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
@@ -798,4 +736,4 @@ var NetworkAgent = new Lang.Class({
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
var Component = NetworkAgent;
 | 
			
		||||
const Component = NetworkAgent;
 | 
			
		||||
 
 | 
			
		||||
@@ -13,37 +13,62 @@ const Mainloop = imports.mainloop;
 | 
			
		||||
const Polkit = imports.gi.Polkit;
 | 
			
		||||
const PolkitAgent = imports.gi.PolkitAgent;
 | 
			
		||||
 | 
			
		||||
const Animation = imports.ui.animation;
 | 
			
		||||
const Components = imports.ui.components;
 | 
			
		||||
const Dialog = imports.ui.dialog;
 | 
			
		||||
const ModalDialog = imports.ui.modalDialog;
 | 
			
		||||
const ShellEntry = imports.ui.shellEntry;
 | 
			
		||||
const UserWidget = imports.ui.userWidget;
 | 
			
		||||
const Tweener = imports.ui.tweener;
 | 
			
		||||
 | 
			
		||||
var DIALOG_ICON_SIZE = 48;
 | 
			
		||||
const DIALOG_ICON_SIZE = 48;
 | 
			
		||||
 | 
			
		||||
var WORK_SPINNER_ICON_SIZE = 16;
 | 
			
		||||
var WORK_SPINNER_ANIMATION_DELAY = 1.0;
 | 
			
		||||
var WORK_SPINNER_ANIMATION_TIME = 0.3;
 | 
			
		||||
 | 
			
		||||
var AuthenticationDialog = new Lang.Class({
 | 
			
		||||
const AuthenticationDialog = new Lang.Class({
 | 
			
		||||
    Name: 'AuthenticationDialog',
 | 
			
		||||
    Extends: ModalDialog.ModalDialog,
 | 
			
		||||
 | 
			
		||||
    _init: function(actionId, body, cookie, userNames) {
 | 
			
		||||
    _init: function(actionId, message, cookie, userNames) {
 | 
			
		||||
        this.parent({ styleClass: 'prompt-dialog' });
 | 
			
		||||
 | 
			
		||||
        this.actionId = actionId;
 | 
			
		||||
        this.message = body;
 | 
			
		||||
        this.message = message;
 | 
			
		||||
        this.userNames = userNames;
 | 
			
		||||
        this._wasDismissed = false;
 | 
			
		||||
 | 
			
		||||
        let icon = new Gio.ThemedIcon({ name: 'dialog-password-symbolic' });
 | 
			
		||||
        let title = _("Authentication Required");
 | 
			
		||||
        let mainContentBox = new St.BoxLayout({ style_class: 'prompt-dialog-main-layout',
 | 
			
		||||
                                                vertical: false });
 | 
			
		||||
        this.contentLayout.add(mainContentBox,
 | 
			
		||||
                               { x_fill: true,
 | 
			
		||||
                                 y_fill: true });
 | 
			
		||||
 | 
			
		||||
        let content = new Dialog.MessageDialogContent({ icon, title, body });
 | 
			
		||||
        this.contentLayout.add_actor(content);
 | 
			
		||||
        let icon = new St.Icon({ icon_name: 'dialog-password-symbolic' });
 | 
			
		||||
        mainContentBox.add(icon,
 | 
			
		||||
                           { x_fill:  true,
 | 
			
		||||
                             y_fill:  false,
 | 
			
		||||
                             x_align: St.Align.END,
 | 
			
		||||
                             y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        let messageBox = new St.BoxLayout({ style_class: 'prompt-dialog-message-layout',
 | 
			
		||||
                                            vertical: true });
 | 
			
		||||
        mainContentBox.add(messageBox,
 | 
			
		||||
                           { expand: true, y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        this._subjectLabel = new St.Label({ style_class: 'prompt-dialog-headline',
 | 
			
		||||
                                            text: _("Authentication Required") });
 | 
			
		||||
 | 
			
		||||
        messageBox.add(this._subjectLabel,
 | 
			
		||||
                       { x_fill: false,
 | 
			
		||||
                         y_fill:  false,
 | 
			
		||||
                         x_align: St.Align.START,
 | 
			
		||||
                         y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        this._descriptionLabel = new St.Label({ style_class: 'prompt-dialog-description',
 | 
			
		||||
                                                text: message });
 | 
			
		||||
        this._descriptionLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 | 
			
		||||
        this._descriptionLabel.clutter_text.line_wrap = true;
 | 
			
		||||
 | 
			
		||||
        messageBox.add(this._descriptionLabel,
 | 
			
		||||
                       { x_fill: false,
 | 
			
		||||
                         y_fill:  true,
 | 
			
		||||
                         x_align: St.Align.START,
 | 
			
		||||
                         y_align: St.Align.START });
 | 
			
		||||
 | 
			
		||||
        if (userNames.length > 1) {
 | 
			
		||||
            log('polkitAuthenticationAgent: Received ' + userNames.length +
 | 
			
		||||
@@ -74,12 +99,12 @@ var AuthenticationDialog = new Lang.Class({
 | 
			
		||||
        if (userIsRoot) {
 | 
			
		||||
            let userLabel = new St.Label(({ style_class: 'polkit-dialog-user-root-label',
 | 
			
		||||
                                            text: userRealName }));
 | 
			
		||||
            content.messageBox.add(userLabel, { x_fill: false,
 | 
			
		||||
                                                x_align: St.Align.START });
 | 
			
		||||
            messageBox.add(userLabel, { x_fill: false,
 | 
			
		||||
                                        x_align: St.Align.START });
 | 
			
		||||
        } else {
 | 
			
		||||
            let userBox = new St.BoxLayout({ style_class: 'polkit-dialog-user-layout',
 | 
			
		||||
                                             vertical: false });
 | 
			
		||||
            content.messageBox.add(userBox);
 | 
			
		||||
            messageBox.add(userBox);
 | 
			
		||||
            this._userAvatar = new UserWidget.Avatar(this._user,
 | 
			
		||||
                                                     { iconSize: DIALOG_ICON_SIZE,
 | 
			
		||||
                                                       styleClass: 'polkit-dialog-user-icon' });
 | 
			
		||||
@@ -101,7 +126,7 @@ var AuthenticationDialog = new Lang.Class({
 | 
			
		||||
        this._onUserChanged();
 | 
			
		||||
 | 
			
		||||
        this._passwordBox = new St.BoxLayout({ vertical: false, style_class: 'prompt-dialog-password-box' });
 | 
			
		||||
        content.messageBox.add(this._passwordBox);
 | 
			
		||||
        messageBox.add(this._passwordBox);
 | 
			
		||||
        this._passwordLabel = new St.Label(({ style_class: 'prompt-dialog-password-label' }));
 | 
			
		||||
        this._passwordBox.add(this._passwordLabel, { y_fill: false, y_align: St.Align.MIDDLE });
 | 
			
		||||
        this._passwordEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry',
 | 
			
		||||
@@ -111,26 +136,19 @@ var AuthenticationDialog = new Lang.Class({
 | 
			
		||||
        this._passwordEntry.clutter_text.connect('activate', Lang.bind(this, this._onEntryActivate));
 | 
			
		||||
        this._passwordBox.add(this._passwordEntry,
 | 
			
		||||
                              { expand: true });
 | 
			
		||||
 | 
			
		||||
        let spinnerIcon = Gio.File.new_for_uri('resource:///org/gnome/shell/theme/process-working.svg');
 | 
			
		||||
        this._workSpinner = new Animation.AnimatedIcon(spinnerIcon, WORK_SPINNER_ICON_SIZE);
 | 
			
		||||
        this._workSpinner.actor.opacity = 0;
 | 
			
		||||
 | 
			
		||||
        this._passwordBox.add(this._workSpinner.actor);
 | 
			
		||||
 | 
			
		||||
        this.setInitialKeyFocus(this._passwordEntry);
 | 
			
		||||
        this._passwordBox.hide();
 | 
			
		||||
 | 
			
		||||
        this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label' });
 | 
			
		||||
        this._errorMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 | 
			
		||||
        this._errorMessageLabel.clutter_text.line_wrap = true;
 | 
			
		||||
        content.messageBox.add(this._errorMessageLabel, { x_fill: false, x_align: St.Align.START });
 | 
			
		||||
        messageBox.add(this._errorMessageLabel, { x_fill: false, x_align: St.Align.START });
 | 
			
		||||
        this._errorMessageLabel.hide();
 | 
			
		||||
 | 
			
		||||
        this._infoMessageLabel = new St.Label({ style_class: 'prompt-dialog-info-label' });
 | 
			
		||||
        this._infoMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 | 
			
		||||
        this._infoMessageLabel.clutter_text.line_wrap = true;
 | 
			
		||||
        content.messageBox.add(this._infoMessageLabel);
 | 
			
		||||
        messageBox.add(this._infoMessageLabel);
 | 
			
		||||
        this._infoMessageLabel.hide();
 | 
			
		||||
 | 
			
		||||
        /* text is intentionally non-blank otherwise the height is not the same as for
 | 
			
		||||
@@ -142,15 +160,22 @@ var AuthenticationDialog = new Lang.Class({
 | 
			
		||||
        this._nullMessageLabel.add_style_class_name('hidden');
 | 
			
		||||
        this._nullMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 | 
			
		||||
        this._nullMessageLabel.clutter_text.line_wrap = true;
 | 
			
		||||
        content.messageBox.add(this._nullMessageLabel);
 | 
			
		||||
        messageBox.add(this._nullMessageLabel);
 | 
			
		||||
        this._nullMessageLabel.show();
 | 
			
		||||
 | 
			
		||||
        this._cancelButton = this.addButton({ label: _("Cancel"),
 | 
			
		||||
                                              action: Lang.bind(this, this.cancel),
 | 
			
		||||
                                              key: Clutter.Escape });
 | 
			
		||||
                                              key: Clutter.Escape },
 | 
			
		||||
                                            { expand: true, x_fill: false, x_align: St.Align.START });
 | 
			
		||||
        this.placeSpinner({ expand: false,
 | 
			
		||||
                            x_fill: false,
 | 
			
		||||
                            y_fill: false,
 | 
			
		||||
                            x_align: St.Align.END,
 | 
			
		||||
                            y_align: St.Align.MIDDLE });
 | 
			
		||||
        this._okButton = this.addButton({ label:  _("Authenticate"),
 | 
			
		||||
                                          action: Lang.bind(this, this._onAuthenticateButtonPressed),
 | 
			
		||||
                                          default: true });
 | 
			
		||||
                                          default: true },
 | 
			
		||||
                                        { expand: false, x_fill: false, x_align: St.Align.END });
 | 
			
		||||
 | 
			
		||||
        this._doneEmitted = false;
 | 
			
		||||
 | 
			
		||||
@@ -158,30 +183,6 @@ var AuthenticationDialog = new Lang.Class({
 | 
			
		||||
        this._cookie = cookie;
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _setWorking: function(working) {
 | 
			
		||||
        Tweener.removeTweens(this._workSpinner.actor);
 | 
			
		||||
        if (working) {
 | 
			
		||||
            this._workSpinner.play();
 | 
			
		||||
            Tweener.addTween(this._workSpinner.actor,
 | 
			
		||||
                             { opacity: 255,
 | 
			
		||||
                               delay: WORK_SPINNER_ANIMATION_DELAY,
 | 
			
		||||
                               time: WORK_SPINNER_ANIMATION_TIME,
 | 
			
		||||
                               transition: 'linear'
 | 
			
		||||
                             });
 | 
			
		||||
        } else {
 | 
			
		||||
            Tweener.addTween(this._workSpinner.actor,
 | 
			
		||||
                             { opacity: 0,
 | 
			
		||||
                               time: WORK_SPINNER_ANIMATION_TIME,
 | 
			
		||||
                               transition: 'linear',
 | 
			
		||||
                               onCompleteScope: this,
 | 
			
		||||
                               onComplete: function() {
 | 
			
		||||
                                   if (this._workSpinner)
 | 
			
		||||
                                       this._workSpinner.stop();
 | 
			
		||||
                               }
 | 
			
		||||
                             });
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    performAuthentication: function() {
 | 
			
		||||
        this.destroySession();
 | 
			
		||||
        this._session = new PolkitAgent.Session({ identity: this._identityToAuth,
 | 
			
		||||
@@ -228,7 +229,7 @@ var AuthenticationDialog = new Lang.Class({
 | 
			
		||||
 | 
			
		||||
        this._okButton.can_focus = sensitive;
 | 
			
		||||
        this._okButton.reactive = sensitive;
 | 
			
		||||
        this._setWorking(!sensitive);
 | 
			
		||||
        this.setWorking(!sensitive);
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    _onEntryActivate: function() {
 | 
			
		||||
@@ -267,7 +268,7 @@ var AuthenticationDialog = new Lang.Class({
 | 
			
		||||
                 * requested authentication was not gained; this can happen
 | 
			
		||||
                 * because of an authentication error (like invalid password),
 | 
			
		||||
                 * for instance. */
 | 
			
		||||
                this._errorMessageLabel.set_text(_("Sorry, that didn’t work. Please try again."));
 | 
			
		||||
                this._errorMessageLabel.set_text(_("Sorry, that didn\'t work. Please try again."));
 | 
			
		||||
                this._errorMessageLabel.show();
 | 
			
		||||
                this._infoMessageLabel.hide();
 | 
			
		||||
                this._nullMessageLabel.hide();
 | 
			
		||||
@@ -339,7 +340,7 @@ var AuthenticationDialog = new Lang.Class({
 | 
			
		||||
});
 | 
			
		||||
Signals.addSignalMethods(AuthenticationDialog.prototype);
 | 
			
		||||
 | 
			
		||||
var AuthenticationAgent = new Lang.Class({
 | 
			
		||||
const AuthenticationAgent = new Lang.Class({
 | 
			
		||||
    Name: 'AuthenticationAgent',
 | 
			
		||||
 | 
			
		||||
    _init: function() {
 | 
			
		||||
@@ -400,4 +401,4 @@ var AuthenticationAgent = new Lang.Class({
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
var Component = AuthenticationAgent;
 | 
			
		||||
const Component = AuthenticationAgent;
 | 
			
		||||
 
 | 
			
		||||