diff --git a/HACKING b/HACKING index b6ceaf110..5165cfdc0 100644 --- a/HACKING +++ b/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. - const IconLabelMenuItem = new Lang.Class({ + var 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: - const MyClutterActor = new Lang.Class({ + var 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: - const MyClass = new Lang.Class({ + var MyClass = new Lang.Class({ Name: 'MyClass', _init: function() { @@ -264,7 +264,7 @@ prototype: const Lang = imports.lang; const FnorbLib = imports.fborbLib; - const MyClass = new Lang.Class({ + var MyClass = new Lang.Class({ _init: function() { let fnorb = new FnorbLib.Fnorb(); fnorb.connect('frobate', Lang.bind(this, this._onFnorbFrobate)); @@ -306,7 +306,7 @@ property. const ANIMATION_TIME = 2000; - const MyClass = new Lang.Class({ + var MyClass = new Lang.Class({ Name: 'MyClass', _init: function() { diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index 457ab6c1d..7feef5db4 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -32,7 +32,7 @@ function stripPrefix(string, prefix) { return string; } -const Application = new Lang.Class({ +var Application = new Lang.Class({ Name: 'Application', _init: function() { GLib.set_prgname('gnome-shell-extension-prefs'); @@ -253,7 +253,7 @@ const Application = new Lang.Class({ } }); -const DescriptionLabel = new Lang.Class({ +var DescriptionLabel = new Lang.Class({ Name: 'DescriptionLabel', Extends: Gtk.Label, @@ -265,7 +265,7 @@ const DescriptionLabel = new Lang.Class({ } }); -const ExtensionRow = new Lang.Class({ +var ExtensionRow = new Lang.Class({ Name: 'ExtensionRow', Extends: Gtk.ListBoxRow, diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 4b2509ad7..e22db49c3 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -38,7 +38,7 @@ const BeginRequestType = { DONT_PROVIDE_USERNAME: 1 }; -const AuthPrompt = new Lang.Class({ +var AuthPrompt = new Lang.Class({ Name: 'AuthPrompt', _init: function(gdmClient, mode) { diff --git a/js/gdm/batch.js b/js/gdm/batch.js index 1b34d63eb..c0193773f 100644 --- a/js/gdm/batch.js +++ b/js/gdm/batch.js @@ -47,7 +47,7 @@ const Lang = imports.lang; const Signals = imports.signals; -const Task = new Lang.Class({ +var Task = new Lang.Class({ Name: 'Task', _init: function(scope, handler) { @@ -68,7 +68,7 @@ const Task = new Lang.Class({ }); Signals.addSignalMethods(Task.prototype); -const Hold = new Lang.Class({ +var Hold = new Lang.Class({ Name: 'Hold', Extends: Task, @@ -110,7 +110,7 @@ const Hold = new Lang.Class({ }); Signals.addSignalMethods(Hold.prototype); -const Batch = new Lang.Class({ +var Batch = new Lang.Class({ Name: 'Batch', Extends: Task, @@ -185,7 +185,7 @@ const Batch = new Lang.Class({ }); Signals.addSignalMethods(Batch.prototype); -const ConcurrentBatch = new Lang.Class({ +var ConcurrentBatch = new Lang.Class({ Name: 'ConcurrentBatch', Extends: Batch, @@ -204,7 +204,7 @@ const ConcurrentBatch = new Lang.Class({ }); Signals.addSignalMethods(ConcurrentBatch.prototype); -const ConsecutiveBatch = new Lang.Class({ +var ConsecutiveBatch = new Lang.Class({ Name: 'ConsecutiveBatch', Extends: Batch, diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 49cab5647..1cae3db85 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -51,7 +51,7 @@ const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0; const _LOGO_ICON_HEIGHT = 48; const _MAX_BOTTOM_MENU_ITEMS = 5; -const UserListItem = new Lang.Class({ +var UserListItem = new Lang.Class({ Name: 'UserListItem', _init: function(user) { @@ -145,7 +145,7 @@ const UserListItem = new Lang.Class({ }); Signals.addSignalMethods(UserListItem.prototype); -const UserList = new Lang.Class({ +var UserList = new Lang.Class({ Name: 'UserList', _init: function() { @@ -296,7 +296,7 @@ const UserList = new Lang.Class({ }); Signals.addSignalMethods(UserList.prototype); -const SessionMenuButton = new Lang.Class({ +var SessionMenuButton = new Lang.Class({ Name: 'SessionMenuButton', _init: function() { @@ -402,7 +402,7 @@ const SessionMenuButton = new Lang.Class({ }); Signals.addSignalMethods(SessionMenuButton.prototype); -const LoginDialog = new Lang.Class({ +var LoginDialog = new Lang.Class({ Name: 'LoginDialog', _init: function(parentActor) { diff --git a/js/gdm/oVirt.js b/js/gdm/oVirt.js index 33d0b9559..962fdf55b 100644 --- a/js/gdm/oVirt.js +++ b/js/gdm/oVirt.js @@ -27,7 +27,7 @@ function OVirtCredentials() { return self; } -const OVirtCredentialsManager = new Lang.Class({ +var OVirtCredentialsManager = new Lang.Class({ Name: 'OVirtCredentialsManager', _init: function() { this._token = null; diff --git a/js/gdm/realmd.js b/js/gdm/realmd.js index ac83684a2..e0c90edb1 100644 --- a/js/gdm/realmd.js +++ b/js/gdm/realmd.js @@ -59,7 +59,7 @@ const RealmIface = ' \ '; const Realm = Gio.DBusProxy.makeProxyWrapper(RealmIface); -const Manager = new Lang.Class({ +var Manager = new Lang.Class({ Name: 'Manager', _init: function(parentActor) { diff --git a/js/gdm/util.js b/js/gdm/util.js index 667bbf14a..5b1b4f3aa 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -119,7 +119,7 @@ function cloneAndFadeOutActor(actor) { return hold; } -const ShellUserVerifier = new Lang.Class({ +var ShellUserVerifier = new Lang.Class({ Name: 'ShellUserVerifier', _init: function(client, params) { diff --git a/js/misc/extensionUtils.js b/js/misc/extensionUtils.js index 15438c293..b8c94150a 100644 --- a/js/misc/extensionUtils.js +++ b/js/misc/extensionUtils.js @@ -158,7 +158,7 @@ function installImporter(extension) { imports.searchPath = oldSearchPath; } -const ExtensionFinder = new Lang.Class({ +var ExtensionFinder = new Lang.Class({ Name: 'ExtensionFinder', _loadExtension: function(extensionDir, info, perUserDir) { diff --git a/js/misc/history.js b/js/misc/history.js index 44d21b7d6..6668bd03c 100644 --- a/js/misc/history.js +++ b/js/misc/history.js @@ -7,7 +7,7 @@ const Params = imports.misc.params; const DEFAULT_LIMIT = 512; -const HistoryManager = new Lang.Class({ +var HistoryManager = new Lang.Class({ Name: 'HistoryManager', _init: function(params) { diff --git a/js/misc/ibusManager.js b/js/misc/ibusManager.js index 8c812feb1..bbe2c7e1d 100644 --- a/js/misc/ibusManager.js +++ b/js/misc/ibusManager.js @@ -36,7 +36,7 @@ function getIBusManager() { return _ibusManager; } -const IBusManager = new Lang.Class({ +var IBusManager = new Lang.Class({ Name: 'IBusManager', // This is the longest we'll keep the keyboard frozen until an input diff --git a/js/misc/keyboardManager.js b/js/misc/keyboardManager.js index 95afb4a8c..108986bc2 100644 --- a/js/misc/keyboardManager.js +++ b/js/misc/keyboardManager.js @@ -38,7 +38,7 @@ function holdKeyboard() { global.display.freeze_keyboard(global.get_current_time()); } -const KeyboardManager = new Lang.Class({ +var KeyboardManager = new Lang.Class({ Name: 'KeyboardManager', // The XKB protocol doesn't allow for more that 4 layouts in a diff --git a/js/misc/loginManager.js b/js/misc/loginManager.js index 3e3df3753..ed390f720 100644 --- a/js/misc/loginManager.js +++ b/js/misc/loginManager.js @@ -102,7 +102,7 @@ function getLoginManager() { return _loginManager; } -const LoginManagerSystemd = new Lang.Class({ +var LoginManagerSystemd = new Lang.Class({ Name: 'LoginManagerSystemd', _init: function() { @@ -183,7 +183,7 @@ const LoginManagerSystemd = new Lang.Class({ }); Signals.addSignalMethods(LoginManagerSystemd.prototype); -const LoginManagerDummy = new Lang.Class({ +var LoginManagerDummy = new Lang.Class({ Name: 'LoginManagerDummy', getCurrentSessionProxy: function(callback) { diff --git a/js/misc/modemManager.js b/js/misc/modemManager.js index fb6514e63..0e6046f9a 100644 --- a/js/misc/modemManager.js +++ b/js/misc/modemManager.js @@ -130,7 +130,7 @@ const ModemCdmaInterface = ' \ const ModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(ModemCdmaInterface); -const ModemGsm = new Lang.Class({ +var ModemGsm = new Lang.Class({ Name: 'ModemGsm', _init: function(path) { @@ -172,7 +172,7 @@ const ModemGsm = new Lang.Class({ }); Signals.addSignalMethods(ModemGsm.prototype); -const ModemCdma = new Lang.Class({ +var ModemCdma = new Lang.Class({ Name: 'ModemCdma', _init: function(path) { @@ -244,7 +244,7 @@ const BroadbandModemCdmaInterface = ' \ '; const BroadbandModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModemCdmaInterface); -const BroadbandModem = new Lang.Class({ +var BroadbandModem = new Lang.Class({ Name: 'BroadbandModem', _init: function(path, capabilities) { diff --git a/js/misc/objectManager.js b/js/misc/objectManager.js index 835057f5e..9331f5627 100644 --- a/js/misc/objectManager.js +++ b/js/misc/objectManager.js @@ -26,7 +26,7 @@ const ObjectManagerIface = ' \ const ObjectManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(ObjectManagerIface); -const ObjectManager = new Lang.Class({ +var ObjectManager = new Lang.Class({ Name: 'ObjectManager', _init: function(params) { params = Params.parse(params, { connection: null, diff --git a/js/misc/smartcardManager.js b/js/misc/smartcardManager.js index 674efc9ad..4388f286d 100644 --- a/js/misc/smartcardManager.js +++ b/js/misc/smartcardManager.js @@ -25,7 +25,7 @@ function getSmartcardManager() { return _smartcardManager; } -const SmartcardManager = new Lang.Class({ +var SmartcardManager = new Lang.Class({ Name: 'SmartcardManager', _init: function() { this._objectManager = new ObjectManager.ObjectManager({ connection: Gio.DBus.session, diff --git a/js/misc/util.js b/js/misc/util.js index bcf8614ef..525491949 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -350,7 +350,7 @@ function insertSorted(array, val, cmp) { return pos; } -const CloseButton = new Lang.Class({ +var CloseButton = new Lang.Class({ Name: 'CloseButton', Extends: St.Button, @@ -439,7 +439,7 @@ function ensureActorVisibleInScrollView(scrollView, actor) { transition: 'easeOutQuad' }); } -const AppSettingsMonitor = new Lang.Class({ +var AppSettingsMonitor = new Lang.Class({ Name: 'AppSettingsMonitor', _init: function(appId, schemaId) { diff --git a/js/misc/weather.js b/js/misc/weather.js index 02c07889f..38fb56657 100644 --- a/js/misc/weather.js +++ b/js/misc/weather.js @@ -13,7 +13,7 @@ const Util = imports.misc.util; // Minimum time between updates to show loading indication const UPDATE_THRESHOLD = 10 * GLib.TIME_SPAN_MINUTE; -const WeatherClient = new Lang.Class({ +var WeatherClient = new Lang.Class({ Name: 'WeatherClient', _init: function() { diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index 31ae969e3..1711c0919 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -50,7 +50,7 @@ const HelperDBusInterface = ' \ \ '; -const PortalHeaderBar = new Lang.Class({ +var PortalHeaderBar = new Lang.Class({ Name: 'PortalHeaderBar', Extends: Gtk.HeaderBar, @@ -115,7 +115,7 @@ const PortalHeaderBar = new Lang.Class({ }, }); -const PortalWindow = new Lang.Class({ +var PortalWindow = new Lang.Class({ Name: 'PortalWindow', Extends: Gtk.ApplicationWindow, @@ -282,7 +282,7 @@ const PortalWindow = new Lang.Class({ }, }); -const WebPortalHelper = new Lang.Class({ +var WebPortalHelper = new Lang.Class({ Name: 'WebPortalHelper', Extends: Gtk.Application, diff --git a/js/ui/accessDialog.js b/js/ui/accessDialog.js index 4a5647d3f..dc7eb8285 100644 --- a/js/ui/accessDialog.js +++ b/js/ui/accessDialog.js @@ -38,7 +38,7 @@ const DialogResponse = { CLOSED: 2 }; -const AccessDialog = new Lang.Class({ +var AccessDialog = new Lang.Class({ Name: 'AccessDialog', Extends: ModalDialog.ModalDialog, @@ -137,7 +137,7 @@ const AccessDialog = new Lang.Class({ } }); -const AccessDialogDBus = new Lang.Class({ +var AccessDialogDBus = new Lang.Class({ Name: 'AccessDialogDBus', _init: function() { diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 95306817d..2a4d827bb 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -58,7 +58,7 @@ function getWindows(workspace) { }).filter((w, i, a) => !w.skip_taskbar && a.indexOf(w) == i); } -const AppSwitcherPopup = new Lang.Class({ +var AppSwitcherPopup = new Lang.Class({ Name: 'AppSwitcherPopup', Extends: SwitcherPopup.SwitcherPopup, @@ -366,7 +366,7 @@ const AppSwitcherPopup = new Lang.Class({ } }); -const CyclerHighlight = new Lang.Class({ +var CyclerHighlight = new Lang.Class({ Name: 'CyclerHighlight', _init: function() { @@ -427,7 +427,7 @@ const CyclerHighlight = new Lang.Class({ } }); -const CyclerPopup = new Lang.Class({ +var CyclerPopup = new Lang.Class({ Name: 'CyclerPopup', Extends: SwitcherPopup.SwitcherPopup, Abstract: true, @@ -488,7 +488,7 @@ const CyclerPopup = new Lang.Class({ }); -const GroupCyclerPopup = new Lang.Class({ +var GroupCyclerPopup = new Lang.Class({ Name: 'GroupCyclerPopup', Extends: CyclerPopup, @@ -509,7 +509,7 @@ const GroupCyclerPopup = new Lang.Class({ } }); -const WindowSwitcherPopup = new Lang.Class({ +var WindowSwitcherPopup = new Lang.Class({ Name: 'WindowSwitcherPopup', Extends: SwitcherPopup.SwitcherPopup, @@ -556,7 +556,7 @@ const WindowSwitcherPopup = new Lang.Class({ } }); -const WindowCyclerPopup = new Lang.Class({ +var WindowCyclerPopup = new Lang.Class({ Name: 'WindowCyclerPopup', Extends: CyclerPopup, @@ -582,7 +582,7 @@ const WindowCyclerPopup = new Lang.Class({ } }); -const AppIcon = new Lang.Class({ +var AppIcon = new Lang.Class({ Name: 'AppIcon', _init: function(app) { @@ -603,7 +603,7 @@ const AppIcon = new Lang.Class({ } }); -const AppSwitcher = new Lang.Class({ +var AppSwitcher = new Lang.Class({ Name: 'AppSwitcher', Extends: SwitcherPopup.SwitcherList, @@ -777,7 +777,7 @@ const AppSwitcher = new Lang.Class({ } }); -const ThumbnailList = new Lang.Class({ +var ThumbnailList = new Lang.Class({ Name: 'ThumbnailList', Extends: SwitcherPopup.SwitcherList, @@ -845,7 +845,7 @@ const ThumbnailList = new Lang.Class({ } }); -const WindowIcon = new Lang.Class({ +var WindowIcon = new Lang.Class({ Name: 'WindowIcon', _init: function(window, mode) { @@ -902,7 +902,7 @@ const WindowIcon = new Lang.Class({ } }); -const WindowList = new Lang.Class({ +var WindowList = new Lang.Class({ Name: 'WindowList', Extends: SwitcherPopup.SwitcherList, diff --git a/js/ui/animation.js b/js/ui/animation.js index 1ae9ba0ea..4ea8727cd 100644 --- a/js/ui/animation.js +++ b/js/ui/animation.js @@ -9,7 +9,7 @@ const Atk = imports.gi.Atk; const ANIMATED_ICON_UPDATE_TIMEOUT = 16; -const Animation = new Lang.Class({ +var Animation = new Lang.Class({ Name: 'Animation', _init: function(file, width, height, speed) { @@ -78,7 +78,7 @@ const Animation = new Lang.Class({ } }); -const AnimatedIcon = new Lang.Class({ +var AnimatedIcon = new Lang.Class({ Name: 'AnimatedIcon', Extends: Animation, diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index c30407545..611f7ea3c 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -108,7 +108,7 @@ function clamp(value, min, max) { return Math.max(min, Math.min(max, value)); } -const BaseAppView = new Lang.Class({ +var BaseAppView = new Lang.Class({ Name: 'BaseAppView', Abstract: true, @@ -256,7 +256,7 @@ const BaseAppView = new Lang.Class({ }); Signals.addSignalMethods(BaseAppView.prototype); -const PageIndicatorsActor = new Lang.Class({ +var PageIndicatorsActor = new Lang.Class({ Name:'PageIndicatorsActor', Extends: St.BoxLayout, @@ -280,7 +280,7 @@ const PageIndicatorsActor = new Lang.Class({ } }); -const PageIndicators = new Lang.Class({ +var PageIndicators = new Lang.Class({ Name:'PageIndicators', _init: function() { @@ -373,7 +373,7 @@ const PageIndicators = new Lang.Class({ }); Signals.addSignalMethods(PageIndicators.prototype); -const AllView = new Lang.Class({ +var AllView = new Lang.Class({ Name: 'AllView', Extends: BaseAppView, @@ -799,7 +799,7 @@ const AllView = new Lang.Class({ }); Signals.addSignalMethods(AllView.prototype); -const FrequentView = new Lang.Class({ +var FrequentView = new Lang.Class({ Name: 'FrequentView', Extends: BaseAppView, @@ -878,7 +878,7 @@ const Views = { ALL: 1 }; -const ControlsBoxLayout = Lang.Class({ +var ControlsBoxLayout = Lang.Class({ Name: 'ControlsBoxLayout', Extends: Clutter.BoxLayout, @@ -903,7 +903,7 @@ const ControlsBoxLayout = Lang.Class({ } }); -const ViewStackLayout = new Lang.Class({ +var ViewStackLayout = new Lang.Class({ Name: 'ViewStackLayout', Extends: Clutter.BinLayout, Signals: { 'allocated-size-changed': { param_types: [GObject.TYPE_INT, @@ -919,7 +919,7 @@ const ViewStackLayout = new Lang.Class({ } }); -const AppDisplay = new Lang.Class({ +var AppDisplay = new Lang.Class({ Name: 'AppDisplay', _init: function() { @@ -1084,7 +1084,7 @@ const AppDisplay = new Lang.Class({ } }) -const AppSearchProvider = new Lang.Class({ +var AppSearchProvider = new Lang.Class({ Name: 'AppSearchProvider', _init: function() { @@ -1139,7 +1139,7 @@ const AppSearchProvider = new Lang.Class({ } }); -const FolderView = new Lang.Class({ +var FolderView = new Lang.Class({ Name: 'FolderView', Extends: BaseAppView, @@ -1255,7 +1255,7 @@ const FolderView = new Lang.Class({ } }); -const FolderIcon = new Lang.Class({ +var FolderIcon = new Lang.Class({ Name: 'FolderIcon', _init: function(id, path, parentView) { @@ -1433,7 +1433,7 @@ const FolderIcon = new Lang.Class({ }); Signals.addSignalMethods(FolderIcon.prototype); -const AppFolderPopup = new Lang.Class({ +var AppFolderPopup = new Lang.Class({ Name: 'AppFolderPopup', _init: function(source, side) { @@ -1594,7 +1594,7 @@ const AppFolderPopup = new Lang.Class({ }); Signals.addSignalMethods(AppFolderPopup.prototype); -const AppIcon = new Lang.Class({ +var AppIcon = new Lang.Class({ Name: 'AppIcon', _init : function(app, iconParams) { @@ -1840,7 +1840,7 @@ const AppIcon = new Lang.Class({ }); Signals.addSignalMethods(AppIcon.prototype); -const AppIconMenu = new Lang.Class({ +var AppIconMenu = new Lang.Class({ Name: 'AppIconMenu', Extends: PopupMenu.PopupMenu, diff --git a/js/ui/appFavorites.js b/js/ui/appFavorites.js index 33d66bb5b..59bc745e1 100644 --- a/js/ui/appFavorites.js +++ b/js/ui/appFavorites.js @@ -43,7 +43,7 @@ const RENAMED_DESKTOP_IDS = { 'totem.desktop': 'org.gnome.Totem.desktop', }; -const AppFavorites = new Lang.Class({ +var AppFavorites = new Lang.Class({ Name: 'AppFavorites', FAVORITE_APPS_KEY: 'favorite-apps', diff --git a/js/ui/audioDeviceSelection.js b/js/ui/audioDeviceSelection.js index c97184de9..8bfb3c315 100644 --- a/js/ui/audioDeviceSelection.js +++ b/js/ui/audioDeviceSelection.js @@ -28,7 +28,7 @@ const AudioDeviceSelectionIface = ' \ \ '; -const AudioDeviceSelectionDialog = new Lang.Class({ +var AudioDeviceSelectionDialog = new Lang.Class({ Name: 'AudioDeviceSelectionDialog', Extends: ModalDialog.ModalDialog, @@ -146,7 +146,7 @@ const AudioDeviceSelectionDialog = new Lang.Class({ } }); -const AudioDeviceSelectionDBus = new Lang.Class({ +var AudioDeviceSelectionDBus = new Lang.Class({ Name: 'AudioDeviceSelectionDBus', _init: function() { diff --git a/js/ui/background.js b/js/ui/background.js index 5f4ce0d3e..ec058a7f8 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -138,7 +138,7 @@ function _fileEqual0(file1, file2) { return file1.equal(file2); } -const BackgroundCache = new Lang.Class({ +var BackgroundCache = new Lang.Class({ Name: 'BackgroundCache', _init: function() { @@ -226,7 +226,7 @@ function getBackgroundCache() { return _backgroundCache; } -const Background = new Lang.Class({ +var Background = new Lang.Class({ Name: 'Background', _init: function(params) { @@ -488,7 +488,7 @@ Signals.addSignalMethods(Background.prototype); let _systemBackground; -const SystemBackground = new Lang.Class({ +var SystemBackground = new Lang.Class({ Name: 'SystemBackground', _init: function() { @@ -525,7 +525,7 @@ const SystemBackground = new Lang.Class({ }); Signals.addSignalMethods(SystemBackground.prototype); -const BackgroundSource = new Lang.Class({ +var BackgroundSource = new Lang.Class({ Name: 'BackgroundSource', _init: function(layoutManager, settingsSchema) { @@ -613,7 +613,7 @@ const BackgroundSource = new Lang.Class({ } }); -const Animation = new Lang.Class({ +var Animation = new Lang.Class({ Name: 'Animation', _init: function(params) { @@ -661,7 +661,7 @@ const Animation = new Lang.Class({ }); Signals.addSignalMethods(Animation.prototype); -const BackgroundManager = new Lang.Class({ +var BackgroundManager = new Lang.Class({ Name: 'BackgroundManager', _init: function(params) { diff --git a/js/ui/backgroundMenu.js b/js/ui/backgroundMenu.js index 6ced5177b..cae8f0f67 100644 --- a/js/ui/backgroundMenu.js +++ b/js/ui/backgroundMenu.js @@ -9,7 +9,7 @@ const BoxPointer = imports.ui.boxpointer; const Main = imports.ui.main; const PopupMenu = imports.ui.popupMenu; -const BackgroundMenu = new Lang.Class({ +var BackgroundMenu = new Lang.Class({ Name: 'BackgroundMenu', Extends: PopupMenu.PopupMenu, diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js index 041884e2b..7a77d914d 100644 --- a/js/ui/boxpointer.js +++ b/js/ui/boxpointer.js @@ -32,7 +32,7 @@ const POPUP_ANIMATION_TIME = 0.15; * totally inside the monitor if possible. * */ -const BoxPointer = new Lang.Class({ +var BoxPointer = new Lang.Class({ Name: 'BoxPointer', _init: function(arrowSide, binProperties) { diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 298807db9..2c4c1f9be 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -92,7 +92,7 @@ function _getCalendarDayAbbreviation(dayNumber) { // Abstraction for an appointment/event in a calendar -const CalendarEvent = new Lang.Class({ +var CalendarEvent = new Lang.Class({ Name: 'CalendarEvent', _init: function(id, date, end, summary, allDay) { @@ -108,7 +108,7 @@ const CalendarEvent = new Lang.Class({ // // First, an implementation with no events -const EmptyEventSource = new Lang.Class({ +var EmptyEventSource = new Lang.Class({ Name: 'EmptyEventSource', _init: function() { @@ -179,7 +179,7 @@ function _dateIntervalsOverlap(a0, a1, b0, b1) } // an implementation that reads data from a session bus service -const DBusEventSource = new Lang.Class({ +var DBusEventSource = new Lang.Class({ Name: 'DBusEventSource', _init: function() { @@ -366,7 +366,7 @@ const DBusEventSource = new Lang.Class({ }); Signals.addSignalMethods(DBusEventSource.prototype); -const Calendar = new Lang.Class({ +var Calendar = new Lang.Class({ Name: 'Calendar', _init: function() { @@ -697,7 +697,7 @@ const Calendar = new Lang.Class({ }); Signals.addSignalMethods(Calendar.prototype); -const EventMessage = new Lang.Class({ +var EventMessage = new Lang.Class({ Name: 'EventMessage', Extends: MessageList.Message, @@ -754,7 +754,7 @@ const EventMessage = new Lang.Class({ } }); -const NotificationMessage = new Lang.Class({ +var NotificationMessage = new Lang.Class({ Name: 'NotificationMessage', Extends: MessageList.Message, @@ -810,7 +810,7 @@ const NotificationMessage = new Lang.Class({ } }); -const EventsSection = new Lang.Class({ +var EventsSection = new Lang.Class({ Name: 'EventsSection', Extends: MessageList.MessageListSection, @@ -941,7 +941,7 @@ const EventsSection = new Lang.Class({ } }); -const NotificationSection = new Lang.Class({ +var NotificationSection = new Lang.Class({ Name: 'NotificationSection', Extends: MessageList.MessageListSection, @@ -1044,7 +1044,7 @@ const NotificationSection = new Lang.Class({ } }); -const Placeholder = new Lang.Class({ +var Placeholder = new Lang.Class({ Name: 'Placeholder', _init: function() { @@ -1091,7 +1091,7 @@ const Placeholder = new Lang.Class({ } }); -const CalendarMessageList = new Lang.Class({ +var CalendarMessageList = new Lang.Class({ Name: 'CalendarMessageList', _init: function() { diff --git a/js/ui/checkBox.js b/js/ui/checkBox.js index 18960dcb7..04e44b5fe 100644 --- a/js/ui/checkBox.js +++ b/js/ui/checkBox.js @@ -4,7 +4,7 @@ const St = imports.gi.St; const Lang = imports.lang; -const CheckBox = new Lang.Class({ +var CheckBox = new Lang.Class({ Name: 'CheckBox', _init: function(label) { diff --git a/js/ui/closeDialog.js b/js/ui/closeDialog.js index 942852184..b3a570dea 100644 --- a/js/ui/closeDialog.js +++ b/js/ui/closeDialog.js @@ -14,7 +14,7 @@ const Tweener = imports.ui.tweener; const FROZEN_WINDOW_BRIGHTNESS = -0.3 const DIALOG_TRANSITION_TIME = 0.15 -const CloseDialog = new Lang.Class({ +var CloseDialog = new Lang.Class({ Name: 'CloseDialog', Extends: GObject.Object, Implements: [ Meta.CloseDialog ], diff --git a/js/ui/components/__init__.js b/js/ui/components/__init__.js index cb370199d..bba13bfb6 100644 --- a/js/ui/components/__init__.js +++ b/js/ui/components/__init__.js @@ -2,7 +2,7 @@ const Lang = imports.lang; const Main = imports.ui.main; -const ComponentManager = new Lang.Class({ +var ComponentManager = new Lang.Class({ Name: 'ComponentManager', _init: function() { diff --git a/js/ui/components/automountManager.js b/js/ui/components/automountManager.js index 84dc47c5f..051d260b5 100644 --- a/js/ui/components/automountManager.js +++ b/js/ui/components/automountManager.js @@ -19,7 +19,7 @@ const SETTING_ENABLE_AUTOMOUNT = 'automount'; const AUTORUN_EXPIRE_TIMEOUT_SECS = 10; -const AutomountManager = new Lang.Class({ +var AutomountManager = new Lang.Class({ Name: 'AutomountManager', _init: function() { diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js index e6ea58358..38935bfa9 100644 --- a/js/ui/components/autorunManager.js +++ b/js/ui/components/autorunManager.js @@ -90,7 +90,7 @@ function HotplugSniffer() { '/org/gnome/Shell/HotplugSniffer'); } -const ContentTypeDiscoverer = new Lang.Class({ +var ContentTypeDiscoverer = new Lang.Class({ Name: 'ContentTypeDiscoverer', _init: function(callback) { @@ -159,7 +159,7 @@ const ContentTypeDiscoverer = new Lang.Class({ } }); -const AutorunManager = new Lang.Class({ +var AutorunManager = new Lang.Class({ Name: 'AutorunManager', _init: function() { @@ -196,7 +196,7 @@ const AutorunManager = new Lang.Class({ } }); -const AutorunDispatcher = new Lang.Class({ +var AutorunDispatcher = new Lang.Class({ Name: 'AutorunDispatcher', _init: function(manager) { @@ -292,7 +292,7 @@ const AutorunDispatcher = new Lang.Class({ } }); -const AutorunSource = new Lang.Class({ +var AutorunSource = new Lang.Class({ Name: 'AutorunSource', Extends: MessageTray.Source, @@ -319,7 +319,7 @@ const AutorunSource = new Lang.Class({ } }); -const AutorunNotification = new Lang.Class({ +var AutorunNotification = new Lang.Class({ Name: 'AutorunNotification', Extends: MessageTray.Notification, diff --git a/js/ui/components/keyring.js b/js/ui/components/keyring.js index d51a0a448..6abd003f3 100644 --- a/js/ui/components/keyring.js +++ b/js/ui/components/keyring.js @@ -20,7 +20,7 @@ const WORK_SPINNER_ICON_SIZE = 16; const WORK_SPINNER_ANIMATION_DELAY = 1.0; const WORK_SPINNER_ANIMATION_TIME = 0.3; -const KeyringDialog = new Lang.Class({ +var KeyringDialog = new Lang.Class({ Name: 'KeyringDialog', Extends: ModalDialog.ModalDialog, @@ -258,7 +258,7 @@ const KeyringDialog = new Lang.Class({ }, }); -const KeyringDummyDialog = new Lang.Class({ +var KeyringDummyDialog = new Lang.Class({ Name: 'KeyringDummyDialog', _init: function() { @@ -274,7 +274,7 @@ const KeyringDummyDialog = new Lang.Class({ } }); -const KeyringPrompter = new Lang.Class({ +var KeyringPrompter = new Lang.Class({ Name: 'KeyringPrompter', _init: function() { diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js index 6ad787a91..02c8363c2 100644 --- a/js/ui/components/networkAgent.js +++ b/js/ui/components/networkAgent.js @@ -21,7 +21,7 @@ const ShellEntry = imports.ui.shellEntry; const VPN_UI_GROUP = 'VPN Plugin UI'; -const NetworkSecretDialog = new Lang.Class({ +var NetworkSecretDialog = new Lang.Class({ Name: 'NetworkSecretDialog', Extends: ModalDialog.ModalDialog, @@ -329,7 +329,7 @@ const NetworkSecretDialog = new Lang.Class({ } }); -const VPNRequestHandler = new Lang.Class({ +var VPNRequestHandler = new Lang.Class({ Name: 'VPNRequestHandler', _init: function(agent, requestId, authHelper, serviceType, connection, hints, flags) { @@ -575,7 +575,7 @@ const VPNRequestHandler = new Lang.Class({ }, }); -const NetworkAgent = new Lang.Class({ +var NetworkAgent = new Lang.Class({ Name: 'NetworkAgent', _init: function() { diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index cfa535504..c7345d138 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -27,7 +27,7 @@ const WORK_SPINNER_ICON_SIZE = 16; const WORK_SPINNER_ANIMATION_DELAY = 1.0; const WORK_SPINNER_ANIMATION_TIME = 0.3; -const AuthenticationDialog = new Lang.Class({ +var AuthenticationDialog = new Lang.Class({ Name: 'AuthenticationDialog', Extends: ModalDialog.ModalDialog, @@ -339,7 +339,7 @@ const AuthenticationDialog = new Lang.Class({ }); Signals.addSignalMethods(AuthenticationDialog.prototype); -const AuthenticationAgent = new Lang.Class({ +var AuthenticationAgent = new Lang.Class({ Name: 'AuthenticationAgent', _init: function() { diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index e0a388be6..516b10f78 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -79,7 +79,7 @@ function makeMessageFromTplEvent(event) { }; } -const TelepathyComponent = new Lang.Class({ +var TelepathyComponent = new Lang.Class({ Name: 'TelepathyComponent', _init: function() { @@ -113,7 +113,7 @@ const TelepathyComponent = new Lang.Class({ } }); -const TelepathyClient = HAVE_TP ? new Lang.Class({ +var TelepathyClient = HAVE_TP ? new Lang.Class({ Name: 'TelepathyClient', Extends: Tp.BaseClient, @@ -280,7 +280,7 @@ const TelepathyClient = HAVE_TP ? new Lang.Class({ }, }) : null; -const ChatSource = new Lang.Class({ +var ChatSource = new Lang.Class({ Name: 'ChatSource', Extends: MessageTray.Source, @@ -647,7 +647,7 @@ const ChatSource = new Lang.Class({ } }); -const ChatNotification = new Lang.Class({ +var ChatNotification = new Lang.Class({ Name: 'ChatNotification', Extends: MessageTray.Notification, @@ -806,7 +806,7 @@ const ChatNotification = new Lang.Class({ } }); -const ChatLineBox = new Lang.Class({ +var ChatLineBox = new Lang.Class({ Name: 'ChatLineBox', Extends: St.BoxLayout, @@ -816,7 +816,7 @@ const ChatLineBox = new Lang.Class({ } }); -const ChatNotificationBanner = new Lang.Class({ +var ChatNotificationBanner = new Lang.Class({ Name: 'ChatNotificationBanner', Extends: MessageTray.NotificationBanner, diff --git a/js/ui/ctrlAltTab.js b/js/ui/ctrlAltTab.js index f847ceac8..d6de9de71 100644 --- a/js/ui/ctrlAltTab.js +++ b/js/ui/ctrlAltTab.js @@ -21,7 +21,7 @@ const SortGroup = { BOTTOM: 2 }; -const CtrlAltTabManager = new Lang.Class({ +var CtrlAltTabManager = new Lang.Class({ Name: 'CtrlAltTabManager', _init: function() { @@ -136,7 +136,7 @@ const CtrlAltTabManager = new Lang.Class({ } }); -const CtrlAltTabPopup = new Lang.Class({ +var CtrlAltTabPopup = new Lang.Class({ Name: 'CtrlAltTabPopup', Extends: SwitcherPopup.SwitcherPopup, @@ -167,7 +167,7 @@ const CtrlAltTabPopup = new Lang.Class({ }, }); -const CtrlAltTabSwitcher = new Lang.Class({ +var CtrlAltTabSwitcher = new Lang.Class({ Name: 'CtrlAltTabSwitcher', Extends: SwitcherPopup.SwitcherList, diff --git a/js/ui/dash.js b/js/ui/dash.js index 2252a74d8..8f728c167 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -33,7 +33,7 @@ function getAppFromSource(source) { // A container like StBin, but taking the child's scale into account // when requesting a size -const DashItemContainer = new Lang.Class({ +var DashItemContainer = new Lang.Class({ Name: 'DashItemContainer', Extends: St.Widget, @@ -235,7 +235,7 @@ const DashItemContainer = new Lang.Class({ } }); -const ShowAppsIcon = new Lang.Class({ +var ShowAppsIcon = new Lang.Class({ Name: 'ShowAppsIcon', Extends: DashItemContainer, @@ -315,7 +315,7 @@ const ShowAppsIcon = new Lang.Class({ } }); -const DragPlaceholderItem = new Lang.Class({ +var DragPlaceholderItem = new Lang.Class({ Name: 'DragPlaceholderItem', Extends: DashItemContainer, @@ -325,7 +325,7 @@ const DragPlaceholderItem = new Lang.Class({ } }); -const EmptyDropTargetItem = new Lang.Class({ +var EmptyDropTargetItem = new Lang.Class({ Name: 'EmptyDropTargetItem', Extends: DashItemContainer, @@ -335,7 +335,7 @@ const EmptyDropTargetItem = new Lang.Class({ } }); -const DashActor = new Lang.Class({ +var DashActor = new Lang.Class({ Name: 'DashActor', Extends: St.Widget, @@ -387,7 +387,7 @@ const DashActor = new Lang.Class({ const baseIconSizes = [ 16, 22, 24, 32, 48, 64 ]; -const Dash = new Lang.Class({ +var Dash = new Lang.Class({ Name: 'Dash', _init : function() { diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index f891ae3c2..4f9cf7085 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -30,7 +30,7 @@ function _isToday(date) { now.getDate() == date.getDate(); } -const TodayButton = new Lang.Class({ +var TodayButton = new Lang.Class({ Name: 'TodayButton', _init: function(calendar) { @@ -84,7 +84,7 @@ const TodayButton = new Lang.Class({ } }); -const WorldClocksSection = new Lang.Class({ +var WorldClocksSection = new Lang.Class({ Name: 'WorldClocksSection', _init: function() { @@ -194,7 +194,7 @@ const WorldClocksSection = new Lang.Class({ } }); -const WeatherSection = new Lang.Class({ +var WeatherSection = new Lang.Class({ Name: 'WeatherSection', _init: function() { @@ -324,7 +324,7 @@ const WeatherSection = new Lang.Class({ } }); -const MessagesIndicator = new Lang.Class({ +var MessagesIndicator = new Lang.Class({ Name: 'MessagesIndicator', _init: function() { @@ -364,7 +364,7 @@ const MessagesIndicator = new Lang.Class({ } }); -const IndicatorPad = new Lang.Class({ +var IndicatorPad = new Lang.Class({ Name: 'IndicatorPad', Extends: St.Widget, @@ -387,7 +387,7 @@ const IndicatorPad = new Lang.Class({ } }); -const FreezableBinLayout = new Lang.Class({ +var FreezableBinLayout = new Lang.Class({ Name: 'FreezableBinLayout', Extends: Clutter.BinLayout, @@ -429,7 +429,7 @@ const FreezableBinLayout = new Lang.Class({ } }); -const CalendarColumnLayout = new Lang.Class({ +var CalendarColumnLayout = new Lang.Class({ Name: 'CalendarColumnLayout', Extends: Clutter.BoxLayout, @@ -445,7 +445,7 @@ const CalendarColumnLayout = new Lang.Class({ } }); -const DateMenuButton = new Lang.Class({ +var DateMenuButton = new Lang.Class({ Name: 'DateMenuButton', Extends: PanelMenu.Button, diff --git a/js/ui/dialog.js b/js/ui/dialog.js index e26684790..3fdc3ef88 100644 --- a/js/ui/dialog.js +++ b/js/ui/dialog.js @@ -7,7 +7,7 @@ const Pango = imports.gi.Pango; const St = imports.gi.St; const Lang = imports.lang; -const Dialog = new Lang.Class({ +var Dialog = new Lang.Class({ Name: 'Dialog', Extends: St.Widget, @@ -133,7 +133,7 @@ const Dialog = new Lang.Class({ }, }); -const MessageDialogContent = new Lang.Class({ +var MessageDialogContent = new Lang.Class({ Name: 'MessageDialogContent', Extends: St.BoxLayout, Properties: { diff --git a/js/ui/dnd.js b/js/ui/dnd.js index e749dd9a8..95e9f7e4d 100644 --- a/js/ui/dnd.js +++ b/js/ui/dnd.js @@ -69,7 +69,7 @@ function removeDragMonitor(monitor) { } } -const _Draggable = new Lang.Class({ +var _Draggable = new Lang.Class({ Name: 'Draggable', _init : function(actor, params) { diff --git a/js/ui/edgeDragAction.js b/js/ui/edgeDragAction.js index 115b89cdc..085266084 100644 --- a/js/ui/edgeDragAction.js +++ b/js/ui/edgeDragAction.js @@ -11,7 +11,7 @@ const Main = imports.ui.main; const EDGE_THRESHOLD = 20; const DRAG_DISTANCE = 80; -const EdgeDragAction = new Lang.Class({ +var EdgeDragAction = new Lang.Class({ Name: 'EdgeDragAction', Extends: Clutter.GestureAction, Signals: { 'activated': {} }, diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 42977d394..e65ede322 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -275,7 +275,7 @@ function init() { _endSessionDialog = new EndSessionDialog(); } -const EndSessionDialog = new Lang.Class({ +var EndSessionDialog = new Lang.Class({ Name: 'EndSessionDialog', Extends: ModalDialog.ModalDialog, diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js index 452a83a4d..926114107 100644 --- a/js/ui/extensionDownloader.js +++ b/js/ui/extensionDownloader.js @@ -183,7 +183,7 @@ function checkForUpdates() { }); } -const InstallExtensionDialog = new Lang.Class({ +var InstallExtensionDialog = new Lang.Class({ Name: 'InstallExtensionDialog', Extends: ModalDialog.ModalDialog, diff --git a/js/ui/focusCaretTracker.js b/js/ui/focusCaretTracker.js index 01660e0b8..c5feb518a 100644 --- a/js/ui/focusCaretTracker.js +++ b/js/ui/focusCaretTracker.js @@ -28,7 +28,7 @@ const Signals = imports.signals; const CARETMOVED = 'object:text-caret-moved'; const STATECHANGED = 'object:state-changed'; -const FocusCaretTracker = new Lang.Class({ +var FocusCaretTracker = new Lang.Class({ Name: 'FocusCaretTracker', _init: function() { diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index a2a1cb55d..69f0a7770 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -46,7 +46,7 @@ function _popGrabHelper(grabHelper) { // your code just needs to deal with it; you shouldn't adjust behavior directly // after you call ungrab(), but instead pass an 'onUngrab' callback when you // call grab(). -const GrabHelper = new Lang.Class({ +var GrabHelper = new Lang.Class({ Name: 'GrabHelper', _init: function(owner, params) { diff --git a/js/ui/ibusCandidatePopup.js b/js/ui/ibusCandidatePopup.js index 683bb3003..1b5c56084 100644 --- a/js/ui/ibusCandidatePopup.js +++ b/js/ui/ibusCandidatePopup.js @@ -14,7 +14,7 @@ const MAX_CANDIDATES_PER_PAGE = 16; const DEFAULT_INDEX_LABELS = [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'a', 'b', 'c', 'd', 'e', 'f' ]; -const CandidateArea = new Lang.Class({ +var CandidateArea = new Lang.Class({ Name: 'CandidateArea', _init: function() { @@ -128,7 +128,7 @@ const CandidateArea = new Lang.Class({ }); Signals.addSignalMethods(CandidateArea.prototype); -const CandidatePopup = new Lang.Class({ +var CandidatePopup = new Lang.Class({ Name: 'CandidatePopup', _init: function() { diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index 875450191..b72c6e209 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -34,7 +34,7 @@ const AnimationDirection = { const APPICON_ANIMATION_OUT_SCALE = 3; const APPICON_ANIMATION_OUT_TIME = 0.25; -const BaseIcon = new Lang.Class({ +var BaseIcon = new Lang.Class({ Name: 'BaseIcon', _init : function(label, params) { @@ -240,7 +240,7 @@ function zoomOutActor(actor) { }); } -const IconGrid = new Lang.Class({ +var IconGrid = new Lang.Class({ Name: 'IconGrid', _init: function(params) { @@ -790,7 +790,7 @@ const IconGrid = new Lang.Class({ }); Signals.addSignalMethods(IconGrid.prototype); -const PaginatedIconGrid = new Lang.Class({ +var PaginatedIconGrid = new Lang.Class({ Name: 'PaginatedIconGrid', Extends: IconGrid, diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 67ba8b88b..e00d44d37 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -27,7 +27,7 @@ const KEYBOARD_TYPE = 'keyboard-type'; const A11Y_APPLICATIONS_SCHEMA = 'org.gnome.desktop.a11y.applications'; const SHOW_KEYBOARD = 'screen-keyboard-enabled'; -const Key = new Lang.Class({ +var Key = new Lang.Class({ Name: 'Key', _init : function(key) { @@ -153,7 +153,7 @@ const Key = new Lang.Class({ }); Signals.addSignalMethods(Key.prototype); -const Keyboard = new Lang.Class({ +var Keyboard = new Lang.Class({ Name: 'Keyboard', _init: function () { @@ -731,7 +731,7 @@ const Keyboard = new Lang.Class({ }, }); -const KeyboardSource = new Lang.Class({ +var KeyboardSource = new Lang.Class({ Name: 'KeyboardSource', Extends: MessageTray.Source, @@ -752,7 +752,7 @@ const KeyboardSource = new Lang.Class({ } }); -const LocalAdapter = new Lang.Class({ +var LocalAdapter = new Lang.Class({ Name: 'LocalAdapter', Extends: Caribou.XAdapter, diff --git a/js/ui/layout.js b/js/ui/layout.js index ebf09c24b..b44c5ea5d 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -36,7 +36,7 @@ function isPopupMetaWindow(actor) { } } -const MonitorConstraint = new Lang.Class({ +var MonitorConstraint = new Lang.Class({ Name: 'MonitorConstraint', Extends: Clutter.Constraint, Properties: {'primary': GObject.ParamSpec.boolean('primary', @@ -147,7 +147,7 @@ const MonitorConstraint = new Lang.Class({ } }); -const Monitor = new Lang.Class({ +var Monitor = new Lang.Class({ Name: 'Monitor', _init: function(index, geometry) { @@ -169,7 +169,7 @@ const defaultParams = { affectsInputRegion: true }; -const LayoutManager = new Lang.Class({ +var LayoutManager = new Lang.Class({ Name: 'LayoutManager', _init: function () { @@ -1045,7 +1045,7 @@ Signals.addSignalMethods(LayoutManager.prototype); // // This class manages a "hot corner" that can toggle switching to // overview. -const HotCorner = new Lang.Class({ +var HotCorner = new Lang.Class({ Name: 'HotCorner', _init : function(layoutManager, monitor, x, y) { @@ -1239,7 +1239,7 @@ const HotCorner = new Lang.Class({ } }); -const PressureBarrier = new Lang.Class({ +var PressureBarrier = new Lang.Class({ Name: 'PressureBarrier', _init: function(threshold, timeout, actionMode) { diff --git a/js/ui/legacyTray.js b/js/ui/legacyTray.js index 4fc2f0fbe..f76615ef8 100644 --- a/js/ui/legacyTray.js +++ b/js/ui/legacyTray.js @@ -36,7 +36,7 @@ const TEMP_REVEAL_TIME = 2; const BARRIER_THRESHOLD = 70; const BARRIER_TIMEOUT = 1000; -const LegacyTray = new Lang.Class({ +var LegacyTray = new Lang.Class({ Name: 'LegacyTray', _init: function() { diff --git a/js/ui/lightbox.js b/js/ui/lightbox.js index 2188b23b3..41956b77b 100644 --- a/js/ui/lightbox.js +++ b/js/ui/lightbox.js @@ -27,7 +27,7 @@ t = clamp(t, 0.0, 1.0);\n\ float pixel_brightness = mix(1.0, 1.0 - vignette_sharpness, t);\n\ cogl_color_out.a = cogl_color_out.a * (1 - pixel_brightness * brightness);'; -const RadialShaderQuad = new Lang.Class({ +var RadialShaderQuad = new Lang.Class({ Name: 'RadialShaderQuad', Extends: Shell.GLSLQuad, @@ -91,7 +91,7 @@ const RadialShaderQuad = new Lang.Class({ * @container and will track any changes in its size. You can override * this by passing an explicit width and height in @params. */ -const Lightbox = new Lang.Class({ +var Lightbox = new Lang.Class({ Name: 'Lightbox', _init : function(container, params) { diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index ad33290bf..292dc9619 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -59,7 +59,7 @@ function _getAutoCompleteGlobalKeywords() { return keywords.concat(windowProperties).concat(headerProperties); } -const AutoComplete = new Lang.Class({ +var AutoComplete = new Lang.Class({ Name: 'AutoComplete', _init: function(entry) { @@ -125,7 +125,7 @@ const AutoComplete = new Lang.Class({ Signals.addSignalMethods(AutoComplete.prototype); -const Notebook = new Lang.Class({ +var Notebook = new Lang.Class({ Name: 'Notebook', _init: function() { @@ -263,7 +263,7 @@ function objectToString(o) { } } -const ObjLink = new Lang.Class({ +var ObjLink = new Lang.Class({ Name: 'ObjLink', _init: function(lookingGlass, o, title) { @@ -290,7 +290,7 @@ const ObjLink = new Lang.Class({ } }); -const Result = new Lang.Class({ +var Result = new Lang.Class({ Name: 'Result', _init: function(lookingGlass, command, o, index) { @@ -313,7 +313,7 @@ const Result = new Lang.Class({ } }); -const WindowList = new Lang.Class({ +var WindowList = new Lang.Class({ Name: 'WindowList', _init: function(lookingGlass) { @@ -361,7 +361,7 @@ const WindowList = new Lang.Class({ }); Signals.addSignalMethods(WindowList.prototype); -const ObjInspector = new Lang.Class({ +var ObjInspector = new Lang.Class({ Name: 'ObjInspector', _init: function(lookingGlass) { @@ -471,7 +471,7 @@ const ObjInspector = new Lang.Class({ } }); -const RedBorderEffect = new Lang.Class({ +var RedBorderEffect = new Lang.Class({ Name: 'RedBorderEffect', Extends: Clutter.Effect, @@ -497,7 +497,7 @@ const RedBorderEffect = new Lang.Class({ }, }); -const Inspector = new Lang.Class({ +var Inspector = new Lang.Class({ Name: 'Inspector', _init: function(lookingGlass) { @@ -631,7 +631,7 @@ const Inspector = new Lang.Class({ Signals.addSignalMethods(Inspector.prototype); -const Extensions = new Lang.Class({ +var Extensions = new Lang.Class({ Name: 'Extensions', _init: function(lookingGlass) { @@ -774,7 +774,7 @@ const Extensions = new Lang.Class({ } }); -const LookingGlass = new Lang.Class({ +var LookingGlass = new Lang.Class({ Name: 'LookingGlass', _init : function() { diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 6438c64c3..39a082246 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -54,7 +54,7 @@ const CROSS_HAIRS_CLIP_KEY = 'cross-hairs-clip'; let magDBusService = null; -const Magnifier = new Lang.Class({ +var Magnifier = new Lang.Class({ Name: 'Magnifier', _init: function() { @@ -672,7 +672,7 @@ const Magnifier = new Lang.Class({ }); Signals.addSignalMethods(Magnifier.prototype); -const ZoomRegion = new Lang.Class({ +var ZoomRegion = new Lang.Class({ Name: 'ZoomRegion', _init: function(magnifier, mouseSourceActor) { @@ -1536,7 +1536,7 @@ const ZoomRegion = new Lang.Class({ } }); -const Crosshairs = new Lang.Class({ +var Crosshairs = new Lang.Class({ Name: 'Crosshairs', _init: function() { @@ -1781,7 +1781,7 @@ const Crosshairs = new Lang.Class({ } }); -const MagShaderEffects = new Lang.Class({ +var MagShaderEffects = new Lang.Class({ Name: 'MagShaderEffects', _init: function(uiGroupClone) { diff --git a/js/ui/magnifierDBus.js b/js/ui/magnifierDBus.js index e508d79d7..5860eb52b 100644 --- a/js/ui/magnifierDBus.js +++ b/js/ui/magnifierDBus.js @@ -98,7 +98,7 @@ const ZoomRegionIface = ' \ // '/org/gnome/Magnifier/ZoomRegion/zoomer1', etc. let _zoomRegionInstanceCount = 0; -const ShellMagnifier = new Lang.Class({ +var ShellMagnifier = new Lang.Class({ Name: 'ShellMagnifier', _init: function() { @@ -334,7 +334,7 @@ const ShellMagnifier = new Lang.Class({ * @zoomerObjectPath: String that is the path to a DBus ZoomRegion. * @zoomRegion: The actual zoom region associated with the object path. */ -const ShellMagnifierZoomRegion = new Lang.Class({ +var ShellMagnifierZoomRegion = new Lang.Class({ Name: 'ShellMagnifierZoomRegion', _init: function(zoomerObjectPath, zoomRegion) { diff --git a/js/ui/main.js b/js/ui/main.js index 5af25ec11..9f71b30ec 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -669,7 +669,7 @@ function queueDeferredWork(workId) { } } -const RestartMessage = new Lang.Class({ +var RestartMessage = new Lang.Class({ Name: 'RestartMessage', Extends: ModalDialog.ModalDialog, diff --git a/js/ui/messageList.js b/js/ui/messageList.js index 99fd09fd9..1c783aeba 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -39,7 +39,7 @@ function _fixMarkup(text, allowMarkup) { return GLib.markup_escape_text(text, -1); } -const URLHighlighter = new Lang.Class({ +var URLHighlighter = new Lang.Class({ Name: 'URLHighlighter', _init: function(text, lineWrap, allowMarkup) { @@ -161,7 +161,7 @@ const URLHighlighter = new Lang.Class({ } }); -const ScaleLayout = new Lang.Class({ +var ScaleLayout = new Lang.Class({ Name: 'ScaleLayout', Extends: Clutter.BinLayout, @@ -208,7 +208,7 @@ const ScaleLayout = new Lang.Class({ } }); -const LabelExpanderLayout = new Lang.Class({ +var LabelExpanderLayout = new Lang.Class({ Name: 'LabelExpanderLayout', Extends: Clutter.LayoutManager, Properties: { 'expansion': GObject.ParamSpec.double('expansion', @@ -298,7 +298,7 @@ const LabelExpanderLayout = new Lang.Class({ } }); -const Message = new Lang.Class({ +var Message = new Lang.Class({ Name: 'Message', _init: function(title, body) { @@ -524,7 +524,7 @@ const Message = new Lang.Class({ }); Signals.addSignalMethods(Message.prototype); -const MessageListSection = new Lang.Class({ +var MessageListSection = new Lang.Class({ Name: 'MessageListSection', _init: function() { diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 80c0dee58..cadd1c425 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -69,7 +69,7 @@ const Urgency = { CRITICAL: 3 }; -const FocusGrabber = new Lang.Class({ +var FocusGrabber = new Lang.Class({ Name: 'FocusGrabber', _init: function(actor) { @@ -132,7 +132,7 @@ const FocusGrabber = new Lang.Class({ // source, such as whether to play sound or honour the critical bit. // // A notification without a policy object will inherit the default one. -const NotificationPolicy = new Lang.Class({ +var NotificationPolicy = new Lang.Class({ Name: 'NotificationPolicy', _init: function(params) { @@ -153,7 +153,7 @@ const NotificationPolicy = new Lang.Class({ }); Signals.addSignalMethods(NotificationPolicy.prototype); -const NotificationGenericPolicy = new Lang.Class({ +var NotificationGenericPolicy = new Lang.Class({ Name: 'NotificationGenericPolicy', Extends: NotificationPolicy, @@ -202,7 +202,7 @@ const NotificationGenericPolicy = new Lang.Class({ } }); -const NotificationApplicationPolicy = new Lang.Class({ +var NotificationApplicationPolicy = new Lang.Class({ Name: 'NotificationApplicationPolicy', Extends: NotificationPolicy, @@ -328,7 +328,7 @@ const NotificationApplicationPolicy = new Lang.Class({ // If @params contains 'soundName' or 'soundFile', the corresponding // event sound is played when the notification is shown (if the policy for // @source allows playing sounds). -const Notification = new Lang.Class({ +var Notification = new Lang.Class({ Name: 'Notification', _init: function(source, title, banner, params) { @@ -489,7 +489,7 @@ const Notification = new Lang.Class({ }); Signals.addSignalMethods(Notification.prototype); -const NotificationBanner = new Lang.Class({ +var NotificationBanner = new Lang.Class({ Name: 'NotificationBanner', Extends: Calendar.NotificationMessage, @@ -585,7 +585,7 @@ const NotificationBanner = new Lang.Class({ } }); -const SourceActor = new Lang.Class({ +var SourceActor = new Lang.Class({ Name: 'SourceActor', _init: function(source, size) { @@ -642,7 +642,7 @@ const SourceActor = new Lang.Class({ } }); -const SourceActorWithLabel = new Lang.Class({ +var SourceActorWithLabel = new Lang.Class({ Name: 'SourceActorWithLabel', Extends: SourceActor, @@ -715,7 +715,7 @@ const SourceActorWithLabel = new Lang.Class({ } }); -const Source = new Lang.Class({ +var Source = new Lang.Class({ Name: 'MessageTraySource', SOURCE_ICON_SIZE: 48, @@ -840,7 +840,7 @@ const Source = new Lang.Class({ }); Signals.addSignalMethods(Source.prototype); -const MessageTray = new Lang.Class({ +var MessageTray = new Lang.Class({ Name: 'MessageTray', _init: function() { @@ -1485,7 +1485,7 @@ const MessageTray = new Lang.Class({ }); Signals.addSignalMethods(MessageTray.prototype); -const SystemNotificationSource = new Lang.Class({ +var SystemNotificationSource = new Lang.Class({ Name: 'SystemNotificationSource', Extends: Source, diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index ed1b92f9d..acb200c5a 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -31,7 +31,7 @@ const State = { FADED_OUT: 4 }; -const ModalDialog = new Lang.Class({ +var ModalDialog = new Lang.Class({ Name: 'ModalDialog', _init: function(params) { diff --git a/js/ui/mpris.js b/js/ui/mpris.js index a5ca66f4d..7a858d301 100644 --- a/js/ui/mpris.js +++ b/js/ui/mpris.js @@ -47,7 +47,7 @@ const MprisPlayerProxy = Gio.DBusProxy.makeProxyWrapper(MprisPlayerIface); const MPRIS_PLAYER_PREFIX = 'org.mpris.MediaPlayer2.'; -const MediaMessage = new Lang.Class({ +var MediaMessage = new Lang.Class({ Name: 'MediaMessage', Extends: MessageList.Message, @@ -111,7 +111,7 @@ const MediaMessage = new Lang.Class({ } }); -const MprisPlayer = new Lang.Class({ +var MprisPlayer = new Lang.Class({ Name: 'MprisPlayer', _init: function(busName) { @@ -226,7 +226,7 @@ const MprisPlayer = new Lang.Class({ }); Signals.addSignalMethods(MprisPlayer.prototype); -const MediaSection = new Lang.Class({ +var MediaSection = new Lang.Class({ Name: 'MediaSection', Extends: MessageList.MessageListSection, diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index c8cba607b..31f64b22b 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -91,7 +91,7 @@ const rewriteRules = { ] }; -const FdoNotificationDaemon = new Lang.Class({ +var FdoNotificationDaemon = new Lang.Class({ Name: 'FdoNotificationDaemon', _init: function() { @@ -459,7 +459,7 @@ const FdoNotificationDaemon = new Lang.Class({ } }); -const FdoNotificationDaemonSource = new Lang.Class({ +var FdoNotificationDaemonSource = new Lang.Class({ Name: 'FdoNotificationDaemonSource', Extends: MessageTray.Source, @@ -586,7 +586,7 @@ const PRIORITY_URGENCY_MAP = { urgent: MessageTray.Urgency.CRITICAL }; -const GtkNotificationDaemonNotification = new Lang.Class({ +var GtkNotificationDaemonNotification = new Lang.Class({ Name: 'GtkNotificationDaemonNotification', Extends: MessageTray.Notification, @@ -680,7 +680,7 @@ function getPlatformData() { function InvalidAppError() {} -const GtkNotificationDaemonAppSource = new Lang.Class({ +var GtkNotificationDaemonAppSource = new Lang.Class({ Name: 'GtkNotificationDaemonAppSource', Extends: MessageTray.Source, @@ -787,7 +787,7 @@ const GtkNotificationsIface = ' \ \ '; -const GtkNotificationDaemon = new Lang.Class({ +var GtkNotificationDaemon = new Lang.Class({ Name: 'GtkNotificationDaemon', _init: function() { @@ -885,7 +885,7 @@ const GtkNotificationDaemon = new Lang.Class({ }, }); -const NotificationDaemon = new Lang.Class({ +var NotificationDaemon = new Lang.Class({ Name: 'NotificationDaemon', _init: function() { diff --git a/js/ui/osdMonitorLabeler.js b/js/ui/osdMonitorLabeler.js index 83a79278d..92e076abb 100644 --- a/js/ui/osdMonitorLabeler.js +++ b/js/ui/osdMonitorLabeler.js @@ -11,7 +11,7 @@ const Meta = imports.gi.Meta; const FADE_TIME = 0.1; -const OsdMonitorLabel = new Lang.Class({ +var OsdMonitorLabel = new Lang.Class({ Name: 'OsdMonitorLabel', _init: function(monitor, label) { @@ -52,7 +52,7 @@ const OsdMonitorLabel = new Lang.Class({ } }); -const OsdMonitorLabeler = new Lang.Class({ +var OsdMonitorLabeler = new Lang.Class({ Name: 'OsdMonitorLabeler', _init: function() { diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js index 4c2b00b22..29afad44f 100644 --- a/js/ui/osdWindow.js +++ b/js/ui/osdWindow.js @@ -15,7 +15,7 @@ const HIDE_TIMEOUT = 1500; const FADE_TIME = 0.1; const LEVEL_ANIMATION_TIME = 0.1; -const LevelBar = new Lang.Class({ +var LevelBar = new Lang.Class({ Name: 'LevelBar', _init: function() { @@ -45,7 +45,7 @@ const LevelBar = new Lang.Class({ } }); -const OsdWindowConstraint = new Lang.Class({ +var OsdWindowConstraint = new Lang.Class({ Name: 'OsdWindowConstraint', Extends: Clutter.Constraint, @@ -77,7 +77,7 @@ const OsdWindowConstraint = new Lang.Class({ } }); -const OsdWindow = new Lang.Class({ +var OsdWindow = new Lang.Class({ Name: 'OsdWindow', _init: function(monitorIndex) { @@ -209,7 +209,7 @@ const OsdWindow = new Lang.Class({ } }); -const OsdWindowManager = new Lang.Class({ +var OsdWindowManager = new Lang.Class({ Name: 'OsdWindowManager', _init: function() { diff --git a/js/ui/overview.js b/js/ui/overview.js index 04a92b570..f763bef4c 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -35,7 +35,7 @@ const DND_WINDOW_SWITCH_TIMEOUT = 750; const OVERVIEW_ACTIVATION_TIMEOUT = 0.5; -const ShellInfo = new Lang.Class({ +var ShellInfo = new Lang.Class({ Name: 'ShellInfo', _init: function() { @@ -87,7 +87,7 @@ const ShellInfo = new Lang.Class({ } }); -const Overview = new Lang.Class({ +var Overview = new Lang.Class({ Name: 'Overview', _init: function() { diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 71114643b..c243e4261 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -30,7 +30,7 @@ const SlideDirection = { RIGHT: 1 }; -const SlideLayout = new Lang.Class({ +var SlideLayout = new Lang.Class({ Name: 'SlideLayout', Extends: Clutter.FixedLayout, @@ -104,7 +104,7 @@ const SlideLayout = new Lang.Class({ }, }); -const SlidingControl = new Lang.Class({ +var SlidingControl = new Lang.Class({ Name: 'SlidingControl', _init: function(params) { @@ -238,7 +238,7 @@ const SlidingControl = new Lang.Class({ } }); -const ThumbnailsSlider = new Lang.Class({ +var ThumbnailsSlider = new Lang.Class({ Name: 'ThumbnailsSlider', Extends: SlidingControl, @@ -314,7 +314,7 @@ const ThumbnailsSlider = new Lang.Class({ } }); -const DashSlider = new Lang.Class({ +var DashSlider = new Lang.Class({ Name: 'DashSlider', Extends: SlidingControl, @@ -353,7 +353,7 @@ const DashSlider = new Lang.Class({ } }); -const DashSpacer = new Lang.Class({ +var DashSpacer = new Lang.Class({ Name: 'DashSpacer', Extends: St.Widget, @@ -391,7 +391,7 @@ const DashSpacer = new Lang.Class({ } }); -const ControlsLayout = new Lang.Class({ +var ControlsLayout = new Lang.Class({ Name: 'ControlsLayout', Extends: Clutter.BinLayout, Signals: { 'allocation-changed': { flags: GObject.SignalFlags.RUN_LAST } }, @@ -402,7 +402,7 @@ const ControlsLayout = new Lang.Class({ } }); -const ControlsManager = new Lang.Class({ +var ControlsManager = new Lang.Class({ Name: 'ControlsManager', _init: function(searchEntry) { diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js index fc0ad45de..fb7ee6618 100644 --- a/js/ui/padOsd.js +++ b/js/ui/padOsd.js @@ -30,7 +30,7 @@ const CCW = 1; const UP = 0; const DOWN = 1; -const PadChooser = new Lang.Class({ +var PadChooser = new Lang.Class({ Name: 'PadChooser', _init: function (device, groupDevices) { @@ -96,7 +96,7 @@ const PadChooser = new Lang.Class({ }); Signals.addSignalMethods(PadChooser.prototype); -const KeybindingEntry = new Lang.Class({ +var KeybindingEntry = new Lang.Class({ Name: 'KeybindingEntry', _init: function () { @@ -120,7 +120,7 @@ const KeybindingEntry = new Lang.Class({ }); Signals.addSignalMethods(KeybindingEntry.prototype); -const ActionComboBox = new Lang.Class({ +var ActionComboBox = new Lang.Class({ Name: 'ActionComboBox', _init: function () { @@ -200,7 +200,7 @@ const ActionComboBox = new Lang.Class({ }); Signals.addSignalMethods(ActionComboBox.prototype); -const ActionEditor = new Lang.Class({ +var ActionEditor = new Lang.Class({ Name: 'ActionEditor', _init: function () { @@ -285,7 +285,7 @@ const ActionEditor = new Lang.Class({ }); Signals.addSignalMethods(ActionEditor.prototype); -const PadDiagram = new Lang.Class({ +var PadDiagram = new Lang.Class({ Name: 'PadDiagram', Extends: St.DrawingArea, Properties: { 'left-handed': GObject.ParamSpec.boolean('left-handed', @@ -619,7 +619,7 @@ const PadDiagram = new Lang.Class({ } }); -const PadOsd = new Lang.Class({ +var PadOsd = new Lang.Class({ Name: 'PadOsd', _init: function (padDevice, settings, imagePath, editionMode, monitorIndex) { @@ -961,7 +961,7 @@ const PadOsdIface = ' \ \ '; -const PadOsdService = new Lang.Class({ +var PadOsdService = new Lang.Class({ Name: 'PadOsdService', _init: function() { diff --git a/js/ui/panel.js b/js/ui/panel.js index d9df2618a..4220ff9c0 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -83,7 +83,7 @@ function _unpremultiply(color) { * this menu also handles startup notification for it. So when we * have an active startup notification, we switch modes to display that. */ -const AppMenuButton = new Lang.Class({ +var AppMenuButton = new Lang.Class({ Name: 'AppMenuButton', Extends: PanelMenu.Button, @@ -399,7 +399,7 @@ const AppMenuButton = new Lang.Class({ Signals.addSignalMethods(AppMenuButton.prototype); -const ActivitiesButton = new Lang.Class({ +var ActivitiesButton = new Lang.Class({ Name: 'ActivitiesButton', Extends: PanelMenu.Button, @@ -487,7 +487,7 @@ const ActivitiesButton = new Lang.Class({ } }); -const PanelCorner = new Lang.Class({ +var PanelCorner = new Lang.Class({ Name: 'PanelCorner', _init: function(side) { @@ -654,7 +654,7 @@ const PanelCorner = new Lang.Class({ } }); -const AggregateLayout = new Lang.Class({ +var AggregateLayout = new Lang.Class({ Name: 'AggregateLayout', Extends: Clutter.BoxLayout, @@ -687,7 +687,7 @@ const AggregateLayout = new Lang.Class({ } }); -const AggregateMenu = new Lang.Class({ +var AggregateMenu = new Lang.Class({ Name: 'AggregateMenu', Extends: PanelMenu.Button, @@ -767,7 +767,7 @@ const PANEL_ITEM_IMPLEMENTATIONS = { 'keyboard': imports.ui.status.keyboard.InputSourceIndicator, }; -const Panel = new Lang.Class({ +var Panel = new Lang.Class({ Name: 'Panel', _init : function() { diff --git a/js/ui/panelMenu.js b/js/ui/panelMenu.js index 662287ef2..5b76f2974 100644 --- a/js/ui/panelMenu.js +++ b/js/ui/panelMenu.js @@ -13,7 +13,7 @@ const Main = imports.ui.main; const Params = imports.misc.params; const PopupMenu = imports.ui.popupMenu; -const ButtonBox = new Lang.Class({ +var ButtonBox = new Lang.Class({ Name: 'ButtonBox', _init: function(params) { @@ -89,7 +89,7 @@ const ButtonBox = new Lang.Class({ }, }); -const Button = new Lang.Class({ +var Button = new Lang.Class({ Name: 'PanelMenuButton', Extends: ButtonBox, @@ -203,7 +203,7 @@ Signals.addSignalMethods(Button.prototype); * of an icon and a menu section, which will be composed into the * aggregate menu. */ -const SystemIndicator = new Lang.Class({ +var SystemIndicator = new Lang.Class({ Name: 'SystemIndicator', _init: function() { diff --git a/js/ui/pointerWatcher.js b/js/ui/pointerWatcher.js index c59d74128..fb2dac638 100644 --- a/js/ui/pointerWatcher.js +++ b/js/ui/pointerWatcher.js @@ -22,7 +22,7 @@ function getPointerWatcher() { return _pointerWatcher; } -const PointerWatch = new Lang.Class({ +var PointerWatch = new Lang.Class({ Name: 'PointerWatch', _init: function(watcher, interval, callback) { @@ -39,7 +39,7 @@ const PointerWatch = new Lang.Class({ } }); -const PointerWatcher = new Lang.Class({ +var PointerWatcher = new Lang.Class({ Name: 'PointerWatcher', _init: function() { diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index fbe409ee2..ffc4a54b1 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -58,7 +58,7 @@ function arrowIcon(side) { return arrow; } -const PopupBaseMenuItem = new Lang.Class({ +var PopupBaseMenuItem = new Lang.Class({ Name: 'PopupBaseMenuItem', _init: function (params) { @@ -236,7 +236,7 @@ const PopupBaseMenuItem = new Lang.Class({ }); Signals.addSignalMethods(PopupBaseMenuItem.prototype); -const PopupMenuItem = new Lang.Class({ +var PopupMenuItem = new Lang.Class({ Name: 'PopupMenuItem', Extends: PopupBaseMenuItem, @@ -249,7 +249,7 @@ const PopupMenuItem = new Lang.Class({ } }); -const PopupSeparatorMenuItem = new Lang.Class({ +var PopupSeparatorMenuItem = new Lang.Class({ Name: 'PopupSeparatorMenuItem', Extends: PopupBaseMenuItem, @@ -276,7 +276,7 @@ const PopupSeparatorMenuItem = new Lang.Class({ } }); -const Switch = new Lang.Class({ +var Switch = new Lang.Class({ Name: 'Switch', _init: function(state) { @@ -305,7 +305,7 @@ const Switch = new Lang.Class({ } }); -const PopupSwitchMenuItem = new Lang.Class({ +var PopupSwitchMenuItem = new Lang.Class({ Name: 'PopupSwitchMenuItem', Extends: PopupBaseMenuItem, @@ -387,7 +387,7 @@ const PopupSwitchMenuItem = new Lang.Class({ } }); -const PopupImageMenuItem = new Lang.Class({ +var PopupImageMenuItem = new Lang.Class({ Name: 'PopupImageMenuItem', Extends: PopupBaseMenuItem, @@ -412,7 +412,7 @@ const PopupImageMenuItem = new Lang.Class({ } }); -const PopupMenuBase = new Lang.Class({ +var PopupMenuBase = new Lang.Class({ Name: 'PopupMenuBase', Abstract: true, @@ -757,7 +757,7 @@ const PopupMenuBase = new Lang.Class({ }); Signals.addSignalMethods(PopupMenuBase.prototype); -const PopupMenu = new Lang.Class({ +var PopupMenu = new Lang.Class({ Name: 'PopupMenu', Extends: PopupMenuBase, @@ -893,7 +893,7 @@ const PopupMenu = new Lang.Class({ } }); -const PopupDummyMenu = new Lang.Class({ +var PopupDummyMenu = new Lang.Class({ Name: 'PopupDummyMenu', _init: function(sourceActor) { @@ -915,7 +915,7 @@ const PopupDummyMenu = new Lang.Class({ }); Signals.addSignalMethods(PopupDummyMenu.prototype); -const PopupSubMenu = new Lang.Class({ +var PopupSubMenu = new Lang.Class({ Name: 'PopupSubMenu', Extends: PopupMenuBase, @@ -1063,7 +1063,7 @@ const PopupSubMenu = new Lang.Class({ * can add it to another menu), but is completely transparent * to the user */ -const PopupMenuSection = new Lang.Class({ +var PopupMenuSection = new Lang.Class({ Name: 'PopupMenuSection', Extends: PopupMenuBase, @@ -1081,7 +1081,7 @@ const PopupMenuSection = new Lang.Class({ close: function() { this.emit('open-state-changed', false); }, }); -const PopupSubMenuMenuItem = new Lang.Class({ +var PopupSubMenuMenuItem = new Lang.Class({ Name: 'PopupSubMenuMenuItem', Extends: PopupBaseMenuItem, @@ -1206,7 +1206,7 @@ const PopupSubMenuMenuItem = new Lang.Class({ /* Basic implementation of a menu manager. * Call addMenu to add menus */ -const PopupMenuManager = new Lang.Class({ +var PopupMenuManager = new Lang.Class({ Name: 'PopupMenuManager', _init: function(owner, grabParams) { diff --git a/js/ui/remoteMenu.js b/js/ui/remoteMenu.js index 4aee3d7b1..aeb9db58a 100644 --- a/js/ui/remoteMenu.js +++ b/js/ui/remoteMenu.js @@ -38,7 +38,7 @@ function _removeItem(menu, position) { items[position].destroy(); } -const RemoteMenuSeparatorItemMapper = new Lang.Class({ +var RemoteMenuSeparatorItemMapper = new Lang.Class({ Name: 'RemoteMenuSeparatorItemMapper', _init: function(trackerItem) { @@ -57,7 +57,7 @@ const RemoteMenuSeparatorItemMapper = new Lang.Class({ }, }); -const RequestSubMenu = new Lang.Class({ +var RequestSubMenu = new Lang.Class({ Name: 'RequestSubMenu', Extends: PopupMenu.PopupSubMenuMenuItem, @@ -76,7 +76,7 @@ const RequestSubMenu = new Lang.Class({ }, }); -const RemoteMenuSubmenuItemMapper = new Lang.Class({ +var RemoteMenuSubmenuItemMapper = new Lang.Class({ Name: 'RemoteMenuSubmenuItemMapper', _init: function(trackerItem) { @@ -112,7 +112,7 @@ const RemoteMenuSubmenuItemMapper = new Lang.Class({ }, }); -const RemoteMenuItemMapper = new Lang.Class({ +var RemoteMenuItemMapper = new Lang.Class({ Name: 'RemoteMenuItemMapper', _init: function(trackerItem) { @@ -176,7 +176,7 @@ const RemoteMenuItemMapper = new Lang.Class({ }, }); -const RemoteMenu = new Lang.Class({ +var RemoteMenu = new Lang.Class({ Name: 'RemoteMenu', Extends: PopupMenu.PopupMenu, diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js index 5e1aadae4..24897a599 100644 --- a/js/ui/remoteSearch.js +++ b/js/ui/remoteSearch.js @@ -181,7 +181,7 @@ function loadRemoteSearchProviders(searchSettings, callback) { callback(loadedProviders); } -const RemoteSearchProvider = new Lang.Class({ +var RemoteSearchProvider = new Lang.Class({ Name: 'RemoteSearchProvider', _init: function(appInfo, dbusName, dbusPath, proxyInfo) { @@ -303,7 +303,7 @@ const RemoteSearchProvider = new Lang.Class({ } }); -const RemoteSearchProvider2 = new Lang.Class({ +var RemoteSearchProvider2 = new Lang.Class({ Name: 'RemoteSearchProvider2', Extends: RemoteSearchProvider, diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index dedb9d477..6591cf579 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -30,7 +30,7 @@ const EXEC_ARG_KEY = 'exec-arg'; const DIALOG_GROW_TIME = 0.1; -const RunDialog = new Lang.Class({ +var RunDialog = new Lang.Class({ Name: 'RunDialog', Extends: ModalDialog.ModalDialog, diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index fd4f28c51..af6b7df85 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -60,7 +60,7 @@ const MANUAL_FADE_TIME = 0.3; const BACKGROUND_FADE_TIME = 1.0; const CURTAIN_SLIDE_TIME = 0.3; -const Clock = new Lang.Class({ +var Clock = new Lang.Class({ Name: 'ScreenShieldClock', _init: function() { @@ -95,7 +95,7 @@ const Clock = new Lang.Class({ } }); -const NotificationsBox = new Lang.Class({ +var NotificationsBox = new Lang.Class({ Name: 'NotificationsBox', _init: function() { @@ -345,7 +345,7 @@ const NotificationsBox = new Lang.Class({ }); Signals.addSignalMethods(NotificationsBox.prototype); -const Arrow = new Lang.Class({ +var Arrow = new Lang.Class({ Name: 'Arrow', Extends: St.Bin, @@ -431,7 +431,7 @@ function clamp(value, min, max) { * This will ensure that the screen blanks at the right time when it fades out. * https://bugzilla.gnome.org/show_bug.cgi?id=668703 explains the dependency. */ -const ScreenShield = new Lang.Class({ +var ScreenShield = new Lang.Class({ Name: 'ScreenShield', _init: function() { diff --git a/js/ui/screencast.js b/js/ui/screencast.js index bbda5fc5c..c2259d66a 100644 --- a/js/ui/screencast.js +++ b/js/ui/screencast.js @@ -32,7 +32,7 @@ const ScreencastIface = ' \ \ '; -const ScreencastService = new Lang.Class({ +var ScreencastService = new Lang.Class({ Name: 'ScreencastService', _init: function() { diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 3a095b1b8..b8dfc1618 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -58,7 +58,7 @@ const ScreenshotIface = ' \ \ '; -const ScreenshotService = new Lang.Class({ +var ScreenshotService = new Lang.Class({ Name: 'ScreenshotService', _init: function() { @@ -213,7 +213,7 @@ const ScreenshotService = new Lang.Class({ } }); -const SelectArea = new Lang.Class({ +var SelectArea = new Lang.Class({ Name: 'SelectArea', _init: function() { @@ -340,7 +340,7 @@ Signals.addSignalMethods(SelectArea.prototype); const FLASHSPOT_ANIMATION_OUT_TIME = 0.5; // seconds -const Flashspot = new Lang.Class({ +var Flashspot = new Lang.Class({ Name: 'Flashspot', Extends: Lightbox.Lightbox, diff --git a/js/ui/search.js b/js/ui/search.js index 4b2cd520a..8e705356f 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -24,7 +24,7 @@ const SEARCH_PROVIDERS_SCHEMA = 'org.gnome.desktop.search-providers'; const MAX_LIST_SEARCH_RESULTS_ROWS = 5; const MAX_GRID_SEARCH_RESULTS_ROWS = 1; -const MaxWidthBin = new Lang.Class({ +var MaxWidthBin = new Lang.Class({ Name: 'MaxWidthBin', Extends: St.Bin, @@ -44,7 +44,7 @@ const MaxWidthBin = new Lang.Class({ } }); -const SearchResult = new Lang.Class({ +var SearchResult = new Lang.Class({ Name: 'SearchResult', _init: function(provider, metaInfo, resultsView) { @@ -68,7 +68,7 @@ const SearchResult = new Lang.Class({ }); Signals.addSignalMethods(SearchResult.prototype); -const ListSearchResult = new Lang.Class({ +var ListSearchResult = new Lang.Class({ Name: 'ListSearchResult', Extends: SearchResult, @@ -136,7 +136,7 @@ const ListSearchResult = new Lang.Class({ } }); -const GridSearchResult = new Lang.Class({ +var GridSearchResult = new Lang.Class({ Name: 'GridSearchResult', Extends: SearchResult, @@ -153,7 +153,7 @@ const GridSearchResult = new Lang.Class({ } }); -const SearchResultsBase = new Lang.Class({ +var SearchResultsBase = new Lang.Class({ Name: 'SearchResultsBase', _init: function(provider, resultsView) { @@ -285,7 +285,7 @@ const SearchResultsBase = new Lang.Class({ } }); -const ListSearchResults = new Lang.Class({ +var ListSearchResults = new Lang.Class({ Name: 'ListSearchResults', Extends: SearchResultsBase, @@ -344,7 +344,7 @@ const ListSearchResults = new Lang.Class({ }); Signals.addSignalMethods(ListSearchResults.prototype); -const GridSearchResults = new Lang.Class({ +var GridSearchResults = new Lang.Class({ Name: 'GridSearchResults', Extends: SearchResultsBase, @@ -393,7 +393,7 @@ const GridSearchResults = new Lang.Class({ }); Signals.addSignalMethods(GridSearchResults.prototype); -const SearchResults = new Lang.Class({ +var SearchResults = new Lang.Class({ Name: 'SearchResults', _init: function() { @@ -719,7 +719,7 @@ const SearchResults = new Lang.Class({ }); Signals.addSignalMethods(SearchResults.prototype); -const ProviderInfo = new Lang.Class({ +var ProviderInfo = new Lang.Class({ Name: 'ProviderInfo', Extends: St.Button, diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js index 2623029cf..707ab3cb7 100644 --- a/js/ui/sessionMode.js +++ b/js/ui/sessionMode.js @@ -149,7 +149,7 @@ function listModes() { Mainloop.run('listModes'); } -const SessionMode = new Lang.Class({ +var SessionMode = new Lang.Class({ Name: 'SessionMode', _init: function() { diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 8c9ff0c2d..3fd24d275 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -79,7 +79,7 @@ const ScreenSaverIface = ' \ \ '; -const GnomeShell = new Lang.Class({ +var GnomeShell = new Lang.Class({ Name: 'GnomeShellDBus', _init: function() { @@ -326,7 +326,7 @@ const GnomeShellExtensionsIface = ' \ \ '; -const GnomeShellExtensions = new Lang.Class({ +var GnomeShellExtensions = new Lang.Class({ Name: 'GnomeShellExtensionsDBus', _init: function() { @@ -432,7 +432,7 @@ const GnomeShellExtensions = new Lang.Class({ } }); -const ScreenSaverDBus = new Lang.Class({ +var ScreenSaverDBus = new Lang.Class({ Name: 'ScreenSaverDBus', _init: function(screenShield) { diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js index a20d9a45b..8bf84e4e2 100644 --- a/js/ui/shellEntry.js +++ b/js/ui/shellEntry.js @@ -10,7 +10,7 @@ const Main = imports.ui.main; const Params = imports.misc.params; const PopupMenu = imports.ui.popupMenu; -const EntryMenu = new Lang.Class({ +var EntryMenu = new Lang.Class({ Name: 'ShellEntryMenu', Extends: PopupMenu.PopupMenu, diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js index 8f799e4b7..6832abea7 100644 --- a/js/ui/shellMountOperation.js +++ b/js/ui/shellMountOperation.js @@ -61,7 +61,7 @@ function _createIcon(gicon) { /* -------------------------------------------------------- */ -const ListItem = new Lang.Class({ +var ListItem = new Lang.Class({ Name: 'ListItem', _init: function(app) { @@ -98,7 +98,7 @@ const ListItem = new Lang.Class({ }); Signals.addSignalMethods(ListItem.prototype); -const ShellMountOperation = new Lang.Class({ +var ShellMountOperation = new Lang.Class({ Name: 'ShellMountOperation', _init: function(source, params) { @@ -237,7 +237,7 @@ const ShellMountOperation = new Lang.Class({ } }); -const ShellUnmountNotifier = new Lang.Class({ +var ShellUnmountNotifier = new Lang.Class({ Name: 'ShellUnmountNotifier', Extends: MessageTray.Source, @@ -277,7 +277,7 @@ const ShellUnmountNotifier = new Lang.Class({ } }); -const ShellMountQuestionDialog = new Lang.Class({ +var ShellMountQuestionDialog = new Lang.Class({ Name: 'ShellMountQuestionDialog', Extends: ModalDialog.ModalDialog, @@ -295,7 +295,7 @@ const ShellMountQuestionDialog = new Lang.Class({ }); Signals.addSignalMethods(ShellMountQuestionDialog.prototype); -const ShellMountPasswordDialog = new Lang.Class({ +var ShellMountPasswordDialog = new Lang.Class({ Name: 'ShellMountPasswordDialog', Extends: ModalDialog.ModalDialog, @@ -376,7 +376,7 @@ const ShellMountPasswordDialog = new Lang.Class({ } }); -const ShellProcessesDialog = new Lang.Class({ +var ShellProcessesDialog = new Lang.Class({ Name: 'ShellProcessesDialog', Extends: ModalDialog.ModalDialog, @@ -480,7 +480,7 @@ const ShellMountOperationType = { SHOW_PROCESSES: 3 }; -const GnomeShellMountOpHandler = new Lang.Class({ +var GnomeShellMountOpHandler = new Lang.Class({ Name: 'GnomeShellMountOpHandler', _init: function() { diff --git a/js/ui/slider.js b/js/ui/slider.js index fbd28bd5d..72ef23bb4 100644 --- a/js/ui/slider.js +++ b/js/ui/slider.js @@ -9,7 +9,7 @@ const Signals = imports.signals; const SLIDER_SCROLL_STEP = 0.02; /* Slider scrolling step in % */ -const Slider = new Lang.Class({ +var Slider = new Lang.Class({ Name: "Slider", _init: function(value) { diff --git a/js/ui/status/accessibility.js b/js/ui/status/accessibility.js index 6aa1064de..79737e918 100644 --- a/js/ui/status/accessibility.js +++ b/js/ui/status/accessibility.js @@ -34,7 +34,7 @@ const KEY_TEXT_SCALING_FACTOR = 'text-scaling-factor'; const HIGH_CONTRAST_THEME = 'HighContrast'; -const ATIndicator = new Lang.Class({ +var ATIndicator = new Lang.Class({ Name: 'ATIndicator', Extends: PanelMenu.Button, @@ -213,7 +213,7 @@ const ATIndicator = new Lang.Class({ } }); -const ATGreeterIndicator = new Lang.Class({ +var ATGreeterIndicator = new Lang.Class({ Name: 'ATGreeterIndicator', Extends: ATIndicator, diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js index 49955f7d1..e1e0b2e3c 100644 --- a/js/ui/status/bluetooth.js +++ b/js/ui/status/bluetooth.js @@ -22,7 +22,7 @@ const RfkillManagerProxy = Gio.DBusProxy.makeProxyWrapper(RfkillManagerInterface const HAD_BLUETOOTH_DEVICES_SETUP = 'had-bluetooth-devices-setup'; -const Indicator = new Lang.Class({ +var Indicator = new Lang.Class({ Name: 'BTIndicator', Extends: PanelMenu.SystemIndicator, diff --git a/js/ui/status/brightness.js b/js/ui/status/brightness.js index 96e07909b..827d620e0 100644 --- a/js/ui/status/brightness.js +++ b/js/ui/status/brightness.js @@ -19,7 +19,7 @@ const BrightnessInterface = ' \ const BrightnessProxy = Gio.DBusProxy.makeProxyWrapper(BrightnessInterface); -const Indicator = new Lang.Class({ +var Indicator = new Lang.Class({ Name: 'BrightnessIndicator', Extends: PanelMenu.SystemIndicator, diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index d4b14d538..2d3d893bc 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -22,7 +22,7 @@ const Util = imports.misc.util; const INPUT_SOURCE_TYPE_XKB = 'xkb'; const INPUT_SOURCE_TYPE_IBUS = 'ibus'; -const LayoutMenuItem = new Lang.Class({ +var LayoutMenuItem = new Lang.Class({ Name: 'LayoutMenuItem', Extends: PopupMenu.PopupBaseMenuItem, @@ -37,7 +37,7 @@ const LayoutMenuItem = new Lang.Class({ } }); -const InputSource = new Lang.Class({ +var InputSource = new Lang.Class({ Name: 'InputSource', _init: function(type, id, displayName, shortName, index) { @@ -78,7 +78,7 @@ const InputSource = new Lang.Class({ }); Signals.addSignalMethods(InputSource.prototype); -const InputSourcePopup = new Lang.Class({ +var InputSourcePopup = new Lang.Class({ Name: 'InputSourcePopup', Extends: SwitcherPopup.SwitcherPopup, @@ -113,7 +113,7 @@ const InputSourcePopup = new Lang.Class({ }, }); -const InputSourceSwitcher = new Lang.Class({ +var InputSourceSwitcher = new Lang.Class({ Name: 'InputSourceSwitcher', Extends: SwitcherPopup.SwitcherList, @@ -139,7 +139,7 @@ const InputSourceSwitcher = new Lang.Class({ } }); -const InputSourceSettings = new Lang.Class({ +var InputSourceSettings = new Lang.Class({ Name: 'InputSourceSettings', Abstract: true, @@ -177,7 +177,7 @@ const InputSourceSettings = new Lang.Class({ }); Signals.addSignalMethods(InputSourceSettings.prototype); -const InputSourceSystemSettings = new Lang.Class({ +var InputSourceSystemSettings = new Lang.Class({ Name: 'InputSourceSystemSettings', Extends: InputSourceSettings, @@ -253,7 +253,7 @@ const InputSourceSystemSettings = new Lang.Class({ } }); -const InputSourceSessionSettings = new Lang.Class({ +var InputSourceSessionSettings = new Lang.Class({ Name: 'InputSourceSessionSettings', Extends: InputSourceSettings, @@ -304,7 +304,7 @@ const InputSourceSessionSettings = new Lang.Class({ } }); -const InputSourceManager = new Lang.Class({ +var InputSourceManager = new Lang.Class({ Name: 'InputSourceManager', _init: function() { @@ -774,7 +774,7 @@ function getInputSourceManager() { return _inputSourceManager; } -const InputSourceIndicator = new Lang.Class({ +var InputSourceIndicator = new Lang.Class({ Name: 'InputSourceIndicator', Extends: PanelMenu.Button, diff --git a/js/ui/status/location.js b/js/ui/status/location.js index 8f4d2afc7..ef62685a1 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -64,7 +64,7 @@ var AgentIface = ' \ \ '; -const Indicator = new Lang.Class({ +var Indicator = new Lang.Class({ Name: 'LocationIndicator', Extends: PanelMenu.SystemIndicator, @@ -252,7 +252,7 @@ function clamp(value, min, max) { return Math.max(min, Math.min(max, value)); } -const AppAuthorizer = new Lang.Class({ +var AppAuthorizer = new Lang.Class({ Name: 'LocationAppAuthorizer', _init: function(desktopId, @@ -374,7 +374,7 @@ const AppAuthorizer = new Lang.Class({ }, }); -const GeolocationDialog = new Lang.Class({ +var GeolocationDialog = new Lang.Class({ Name: 'GeolocationDialog', Extends: ModalDialog.ModalDialog, diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 19c689b0c..69b6c0012 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -126,7 +126,7 @@ function createSettingsAction(label, device) { return item; } -const NMConnectionItem = new Lang.Class({ +var NMConnectionItem = new Lang.Class({ Name: 'NMConnectionItem', _init: function(section, connection) { @@ -220,7 +220,7 @@ const NMConnectionItem = new Lang.Class({ }); Signals.addSignalMethods(NMConnectionItem.prototype); -const NMConnectionSection = new Lang.Class({ +var NMConnectionSection = new Lang.Class({ Name: 'NMConnectionSection', Abstract: true, @@ -352,7 +352,7 @@ const NMConnectionSection = new Lang.Class({ }); Signals.addSignalMethods(NMConnectionSection.prototype); -const NMConnectionDevice = new Lang.Class({ +var NMConnectionDevice = new Lang.Class({ Name: 'NMConnectionDevice', Extends: NMConnectionSection, Abstract: true, @@ -506,7 +506,7 @@ const NMConnectionDevice = new Lang.Class({ }, }); -const NMDeviceWired = new Lang.Class({ +var NMDeviceWired = new Lang.Class({ Name: 'NMDeviceWired', Extends: NMConnectionDevice, category: NMConnectionCategory.WIRED, @@ -548,7 +548,7 @@ const NMDeviceWired = new Lang.Class({ } }); -const NMDeviceModem = new Lang.Class({ +var NMDeviceModem = new Lang.Class({ Name: 'NMDeviceModem', Extends: NMConnectionDevice, category: NMConnectionCategory.WWAN, @@ -627,7 +627,7 @@ const NMDeviceModem = new Lang.Class({ }, }); -const NMDeviceBluetooth = new Lang.Class({ +var NMDeviceBluetooth = new Lang.Class({ Name: 'NMDeviceBluetooth', Extends: NMConnectionDevice, category: NMConnectionCategory.WWAN, @@ -661,7 +661,7 @@ const NMDeviceBluetooth = new Lang.Class({ } }); -const NMWirelessDialogItem = new Lang.Class({ +var NMWirelessDialogItem = new Lang.Class({ Name: 'NMWirelessDialogItem', _init: function(network) { @@ -726,7 +726,7 @@ const NMWirelessDialogItem = new Lang.Class({ }); Signals.addSignalMethods(NMWirelessDialogItem.prototype); -const NMWirelessDialog = new Lang.Class({ +var NMWirelessDialog = new Lang.Class({ Name: 'NMWirelessDialog', Extends: ModalDialog.ModalDialog, @@ -1187,7 +1187,7 @@ const NMWirelessDialog = new Lang.Class({ }, }); -const NMDeviceWireless = new Lang.Class({ +var NMDeviceWireless = new Lang.Class({ Name: 'NMDeviceWireless', category: NMConnectionCategory.WIRELESS, @@ -1405,7 +1405,7 @@ const NMDeviceWireless = new Lang.Class({ }); Signals.addSignalMethods(NMDeviceWireless.prototype); -const NMVPNConnectionItem = new Lang.Class({ +var NMVPNConnectionItem = new Lang.Class({ Name: 'NMVPNConnectionItem', Extends: NMConnectionItem, @@ -1494,7 +1494,7 @@ const NMVPNConnectionItem = new Lang.Class({ }, }); -const NMVPNSection = new Lang.Class({ +var NMVPNSection = new Lang.Class({ Name: 'NMVPNSection', Extends: NMConnectionSection, category: NMConnectionCategory.VPN, @@ -1589,7 +1589,7 @@ const NMVPNSection = new Lang.Class({ }); Signals.addSignalMethods(NMVPNSection.prototype); -const DeviceCategory = new Lang.Class({ +var DeviceCategory = new Lang.Class({ Name: 'DeviceCategory', Extends: PopupMenu.PopupMenuSection, @@ -1656,7 +1656,7 @@ const DeviceCategory = new Lang.Class({ } }); -const NMApplet = new Lang.Class({ +var NMApplet = new Lang.Class({ Name: 'NMApplet', Extends: PanelMenu.SystemIndicator, diff --git a/js/ui/status/nightLight.js b/js/ui/status/nightLight.js index b97710ccf..a7a8e42c4 100644 --- a/js/ui/status/nightLight.js +++ b/js/ui/status/nightLight.js @@ -19,7 +19,7 @@ const ColorInterface = ' \ const ColorProxy = Gio.DBusProxy.makeProxyWrapper(ColorInterface); -const Indicator = new Lang.Class({ +var Indicator = new Lang.Class({ Name: 'NightLightIndicator', Extends: PanelMenu.SystemIndicator, diff --git a/js/ui/status/power.js b/js/ui/status/power.js index 30b5e0498..cd0adb61f 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -29,7 +29,7 @@ const PowerManagerProxy = Gio.DBusProxy.makeProxyWrapper(DisplayDeviceInterface) const SHOW_BATTERY_PERCENTAGE = 'show-battery-percentage'; -const Indicator = new Lang.Class({ +var Indicator = new Lang.Class({ Name: 'PowerIndicator', Extends: PanelMenu.SystemIndicator, diff --git a/js/ui/status/rfkill.js b/js/ui/status/rfkill.js index b5470f58e..f092d5d57 100644 --- a/js/ui/status/rfkill.js +++ b/js/ui/status/rfkill.js @@ -21,7 +21,7 @@ const RfkillManagerInterface = ' \ const RfkillManagerProxy = Gio.DBusProxy.makeProxyWrapper(RfkillManagerInterface); -const RfkillManager = new Lang.Class({ +var RfkillManager = new Lang.Class({ Name: 'RfkillManager', _init: function() { @@ -68,7 +68,7 @@ function getRfkillManager() { return _manager; } -const Indicator = new Lang.Class({ +var Indicator = new Lang.Class({ Name: 'RfkillIndicator', Extends: PanelMenu.SystemIndicator, diff --git a/js/ui/status/screencast.js b/js/ui/status/screencast.js index 7a35ff0fb..b9f41fe9f 100644 --- a/js/ui/status/screencast.js +++ b/js/ui/status/screencast.js @@ -5,7 +5,7 @@ const Lang = imports.lang; const Main = imports.ui.main; const PanelMenu = imports.ui.panelMenu; -const Indicator = new Lang.Class({ +var Indicator = new Lang.Class({ Name: 'ScreencastIndicator', Extends: PanelMenu.SystemIndicator, diff --git a/js/ui/status/system.js b/js/ui/status/system.js index 8f99865e6..604183f69 100644 --- a/js/ui/status/system.js +++ b/js/ui/status/system.js @@ -36,7 +36,7 @@ const SensorProxyInterface = ' \ const SensorProxy = Gio.DBusProxy.makeProxyWrapper(SensorProxyInterface); -const AltSwitcher = new Lang.Class({ +var AltSwitcher = new Lang.Class({ Name: 'AltSwitcher', _init: function(standard, alternate) { @@ -131,7 +131,7 @@ const AltSwitcher = new Lang.Class({ } }); -const Indicator = new Lang.Class({ +var Indicator = new Lang.Class({ Name: 'SystemIndicator', Extends: PanelMenu.SystemIndicator, diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 1922c3a37..98a77254f 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -27,7 +27,7 @@ function getMixerControl() { return _mixerControl; } -const StreamSlider = new Lang.Class({ +var StreamSlider = new Lang.Class({ Name: 'StreamSlider', _init: function(control) { @@ -161,7 +161,7 @@ const StreamSlider = new Lang.Class({ }); Signals.addSignalMethods(StreamSlider.prototype); -const OutputStreamSlider = new Lang.Class({ +var OutputStreamSlider = new Lang.Class({ Name: 'OutputStreamSlider', Extends: StreamSlider, @@ -212,7 +212,7 @@ const OutputStreamSlider = new Lang.Class({ } }); -const InputStreamSlider = new Lang.Class({ +var InputStreamSlider = new Lang.Class({ Name: 'InputStreamSlider', Extends: StreamSlider, @@ -255,7 +255,7 @@ const InputStreamSlider = new Lang.Class({ } }); -const VolumeMenu = new Lang.Class({ +var VolumeMenu = new Lang.Class({ Name: 'VolumeMenu', Extends: PopupMenu.PopupMenuSection, @@ -313,7 +313,7 @@ const VolumeMenu = new Lang.Class({ } }); -const Indicator = new Lang.Class({ +var Indicator = new Lang.Class({ Name: 'VolumeIndicator', Extends: PanelMenu.SystemIndicator, diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 4538ceb38..6f7c472ab 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -36,7 +36,7 @@ function primaryModifier(mask) { return primary; } -const SwitcherPopup = new Lang.Class({ +var SwitcherPopup = new Lang.Class({ Name: 'SwitcherPopup', Abstract: true, @@ -295,7 +295,7 @@ const SwitcherPopup = new Lang.Class({ } }); -const SwitcherList = new Lang.Class({ +var SwitcherList = new Lang.Class({ Name: 'SwitcherList', _init : function(squareItems) { diff --git a/js/ui/tweener.js b/js/ui/tweener.js index d73214518..6b1d24c23 100644 --- a/js/ui/tweener.js +++ b/js/ui/tweener.js @@ -162,7 +162,7 @@ function registerSpecialPropertySplitter(name, splitFunction, parameters) { // time updates; even better is to pay attention to the vertical // vblank and sync to that when possible.) // -const ClutterFrameTicker = new Lang.Class({ +var ClutterFrameTicker = new Lang.Class({ Name: 'ClutterFrameTicker', FRAME_RATE : 60, diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index f4a73746b..baead5a6f 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -28,7 +28,7 @@ const LoginDialog = imports.gdm.loginDialog; // The timeout before going back automatically to the lock screen (in seconds) const IDLE_TIMEOUT = 2 * 60; -const UnlockDialog = new Lang.Class({ +var UnlockDialog = new Lang.Class({ Name: 'UnlockDialog', _init: function(parentActor) { diff --git a/js/ui/userWidget.js b/js/ui/userWidget.js index 5286ad14e..68c1d844c 100644 --- a/js/ui/userWidget.js +++ b/js/ui/userWidget.js @@ -19,7 +19,7 @@ const AVATAR_ICON_SIZE = 64; // Copyright (C) 2004-2005 James M. Cape . // Copyright (C) 2008,2009 Red Hat, Inc. -const Avatar = new Lang.Class({ +var Avatar = new Lang.Class({ Name: 'Avatar', _init: function(user, params) { @@ -59,7 +59,7 @@ const Avatar = new Lang.Class({ } }); -const UserWidgetLabel = new Lang.Class({ +var UserWidgetLabel = new Lang.Class({ Name: 'UserWidgetLabel', Extends: St.Widget, @@ -144,7 +144,7 @@ const UserWidgetLabel = new Lang.Class({ }, }); -const UserWidget = new Lang.Class({ +var UserWidget = new Lang.Class({ Name: 'UserWidget', _init: function(user) { diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index a0c900702..942086a5f 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -32,7 +32,7 @@ const ViewPage = { SEARCH: 3 }; -const FocusTrap = new Lang.Class({ +var FocusTrap = new Lang.Class({ Name: 'FocusTrap', Extends: St.Widget, @@ -53,7 +53,7 @@ function getTermsForSearchString(searchString) { return terms; } -const TouchpadShowOverviewAction = new Lang.Class({ +var TouchpadShowOverviewAction = new Lang.Class({ Name: 'TouchpadShowOverviewAction', _init: function(actor) { @@ -75,7 +75,7 @@ const TouchpadShowOverviewAction = new Lang.Class({ }); Signals.addSignalMethods(TouchpadShowOverviewAction.prototype); -const ShowOverviewAction = new Lang.Class({ +var ShowOverviewAction = new Lang.Class({ Name: 'ShowOverviewAction', Extends: Clutter.GestureAction, Signals: { 'activated': { param_types: [GObject.TYPE_DOUBLE] } }, @@ -138,7 +138,7 @@ const ShowOverviewAction = new Lang.Class({ } }); -const ViewSelector = new Lang.Class({ +var ViewSelector = new Lang.Class({ Name: 'ViewSelector', _init : function(searchEntry, showAppsButton) { diff --git a/js/ui/windowAttentionHandler.js b/js/ui/windowAttentionHandler.js index 2f8204215..d56f6b20b 100644 --- a/js/ui/windowAttentionHandler.js +++ b/js/ui/windowAttentionHandler.js @@ -6,7 +6,7 @@ const Shell = imports.gi.Shell; const Main = imports.ui.main; const MessageTray = imports.ui.messageTray; -const WindowAttentionHandler = new Lang.Class({ +var WindowAttentionHandler = new Lang.Class({ Name: 'WindowAttentionHandler', _init : function() { @@ -54,7 +54,7 @@ const WindowAttentionHandler = new Lang.Class({ } }); -const Source = new Lang.Class({ +var Source = new Lang.Class({ Name: 'WindowAttentionSource', Extends: MessageTray.Source, diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 0b8ba53e8..73eae5d81 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -55,7 +55,7 @@ const GsdWacomIface = ' \ const GsdWacomProxy = Gio.DBusProxy.makeProxyWrapper(GsdWacomIface); -const DisplayChangeDialog = new Lang.Class({ +var DisplayChangeDialog = new Lang.Class({ Name: 'DisplayChangeDialog', Extends: ModalDialog.ModalDialog, @@ -131,7 +131,7 @@ const DisplayChangeDialog = new Lang.Class({ }, }); -const WindowDimmer = new Lang.Class({ +var WindowDimmer = new Lang.Class({ Name: 'WindowDimmer', _init: function(actor) { @@ -185,7 +185,7 @@ function getWindowDimmer(actor) { */ const LAST_WINDOW_GRACE_TIME = 1000; -const WorkspaceTracker = new Lang.Class({ +var WorkspaceTracker = new Lang.Class({ Name: 'WorkspaceTracker', _init: function(wm) { @@ -389,7 +389,7 @@ const WorkspaceTracker = new Lang.Class({ } }); -const TilePreview = new Lang.Class({ +var TilePreview = new Lang.Class({ Name: 'TilePreview', _init: function() { @@ -476,7 +476,7 @@ const TilePreview = new Lang.Class({ } }); -const TouchpadWorkspaceSwitchAction = new Lang.Class({ +var TouchpadWorkspaceSwitchAction = new Lang.Class({ Name: 'TouchpadWorkspaceSwitchAction', _init: function(actor) { @@ -532,7 +532,7 @@ const TouchpadWorkspaceSwitchAction = new Lang.Class({ }); Signals.addSignalMethods(TouchpadWorkspaceSwitchAction.prototype); -const WorkspaceSwitchAction = new Lang.Class({ +var WorkspaceSwitchAction = new Lang.Class({ Name: 'WorkspaceSwitchAction', Extends: Clutter.SwipeAction, Signals: { 'activated': { param_types: [Meta.MotionDirection.$gtype] } }, @@ -574,7 +574,7 @@ const WorkspaceSwitchAction = new Lang.Class({ } }); -const AppSwitchAction = new Lang.Class({ +var AppSwitchAction = new Lang.Class({ Name: 'AppSwitchAction', Extends: Clutter.GestureAction, Signals: { 'activated': {} }, @@ -640,7 +640,7 @@ const AppSwitchAction = new Lang.Class({ } }); -const ResizePopup = new Lang.Class({ +var ResizePopup = new Lang.Class({ Name: 'ResizePopup', _init: function() { @@ -669,7 +669,7 @@ const ResizePopup = new Lang.Class({ }, }); -const WindowManager = new Lang.Class({ +var WindowManager = new Lang.Class({ Name: 'WindowManager', _init : function() { diff --git a/js/ui/windowMenu.js b/js/ui/windowMenu.js index 4e2a18b5b..7aa57beb3 100644 --- a/js/ui/windowMenu.js +++ b/js/ui/windowMenu.js @@ -11,7 +11,7 @@ const Main = imports.ui.main; const PopupMenu = imports.ui.popupMenu; const RemoteMenu = imports.ui.remoteMenu; -const WindowMenu = new Lang.Class({ +var WindowMenu = new Lang.Class({ Name: 'WindowMenu', Extends: PopupMenu.PopupMenu, @@ -165,7 +165,7 @@ const WindowMenu = new Lang.Class({ } }); -const AppMenu = new Lang.Class({ +var AppMenu = new Lang.Class({ Name: 'AppMenu', Extends: RemoteMenu.RemoteMenu, @@ -184,7 +184,7 @@ const AppMenu = new Lang.Class({ } }); -const WindowMenuManager = new Lang.Class({ +var WindowMenuManager = new Lang.Class({ Name: 'WindowMenuManager', _init: function() { diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 630e2f674..a7c229f9b 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -40,7 +40,7 @@ function _interpolate(start, end, step) { return start + (end - start) * step; } -const WindowCloneLayout = new Lang.Class({ +var WindowCloneLayout = new Lang.Class({ Name: 'WindowCloneLayout', Extends: Clutter.LayoutManager, @@ -102,7 +102,7 @@ const WindowCloneLayout = new Lang.Class({ } }); -const WindowClone = new Lang.Class({ +var WindowClone = new Lang.Class({ Name: 'WindowClone', _init : function(realWindow, workspace) { @@ -423,7 +423,7 @@ Signals.addSignalMethods(WindowClone.prototype); * @parentActor: The actor which will be the parent of all overlay items * such as app icon and window caption */ -const WindowOverlay = new Lang.Class({ +var WindowOverlay = new Lang.Class({ Name: 'WindowOverlay', _init : function(windowClone, parentActor) { @@ -811,7 +811,7 @@ const WindowPositionFlags = { // each window's "cell" area to be the same, but we shrink the thumbnail // and center it horizontally, and align it to the bottom vertically. -const LayoutStrategy = new Lang.Class({ +var LayoutStrategy = new Lang.Class({ Name: 'LayoutStrategy', Abstract: true, @@ -983,7 +983,7 @@ const LayoutStrategy = new Lang.Class({ } }); -const UnalignedLayoutStrategy = new Lang.Class({ +var UnalignedLayoutStrategy = new Lang.Class({ Name: 'UnalignedLayoutStrategy', Extends: LayoutStrategy, @@ -1094,7 +1094,7 @@ function rectEqual(one, two) { /** * @metaWorkspace: a #Meta.Workspace, or null */ -const Workspace = new Lang.Class({ +var Workspace = new Lang.Class({ Name: 'Workspace', _init : function(metaWorkspace, monitorIndex) { diff --git a/js/ui/workspaceSwitcherPopup.js b/js/ui/workspaceSwitcherPopup.js index b0a101a34..b4ed716a3 100644 --- a/js/ui/workspaceSwitcherPopup.js +++ b/js/ui/workspaceSwitcherPopup.js @@ -15,7 +15,7 @@ const Tweener = imports.ui.tweener; const ANIMATION_TIME = 0.1; const DISPLAY_TIMEOUT = 600; -const WorkspaceSwitcherPopup = new Lang.Class({ +var WorkspaceSwitcherPopup = new Lang.Class({ Name: 'WorkspaceSwitcherPopup', _init : function() { diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index c5472bb2b..645af5c90 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -35,7 +35,7 @@ const OVERRIDE_SCHEMA = 'org.gnome.shell.overrides'; /* A layout manager that requests size only for primary_actor, but then allocates all using a fixed layout */ -const PrimaryActorLayout = new Lang.Class({ +var PrimaryActorLayout = new Lang.Class({ Name: 'PrimaryActorLayout', Extends: Clutter.FixedLayout, @@ -54,7 +54,7 @@ const PrimaryActorLayout = new Lang.Class({ }, }); -const WindowClone = new Lang.Class({ +var WindowClone = new Lang.Class({ Name: 'WindowClone', _init : function(realWindow) { @@ -254,7 +254,7 @@ const ThumbnailState = { /** * @metaWorkspace: a #Meta.Workspace */ -const WorkspaceThumbnail = new Lang.Class({ +var WorkspaceThumbnail = new Lang.Class({ Name: 'WorkspaceThumbnail', _init : function(metaWorkspace) { @@ -612,7 +612,7 @@ const WorkspaceThumbnail = new Lang.Class({ Signals.addSignalMethods(WorkspaceThumbnail.prototype); -const ThumbnailsBox = new Lang.Class({ +var ThumbnailsBox = new Lang.Class({ Name: 'ThumbnailsBox', _init: function() { diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 2eacb5f2d..d4b265c4e 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -26,7 +26,7 @@ const AnimationType = { const OVERRIDE_SCHEMA = 'org.gnome.shell.overrides'; -const WorkspacesViewBase = new Lang.Class({ +var WorkspacesViewBase = new Lang.Class({ Name: 'WorkspacesViewBase', _init: function(monitorIndex) { @@ -86,7 +86,7 @@ const WorkspacesViewBase = new Lang.Class({ }, }); -const WorkspacesView = new Lang.Class({ +var WorkspacesView = new Lang.Class({ Name: 'WorkspacesView', Extends: WorkspacesViewBase, @@ -352,7 +352,7 @@ const WorkspacesView = new Lang.Class({ }); Signals.addSignalMethods(WorkspacesView.prototype); -const ExtraWorkspaceView = new Lang.Class({ +var ExtraWorkspaceView = new Lang.Class({ Name: 'ExtraWorkspaceView', Extends: WorkspacesViewBase, @@ -402,7 +402,7 @@ const ExtraWorkspaceView = new Lang.Class({ }, }); -const DelegateFocusNavigator = new Lang.Class({ +var DelegateFocusNavigator = new Lang.Class({ Name: 'DelegateFocusNavigator', Extends: St.Widget, @@ -411,7 +411,7 @@ const DelegateFocusNavigator = new Lang.Class({ }, }); -const WorkspacesDisplay = new Lang.Class({ +var WorkspacesDisplay = new Lang.Class({ Name: 'WorkspacesDisplay', _init: function() { diff --git a/js/ui/xdndHandler.js b/js/ui/xdndHandler.js index 1557396a2..4be62e2cc 100644 --- a/js/ui/xdndHandler.js +++ b/js/ui/xdndHandler.js @@ -8,7 +8,7 @@ const Shell = imports.gi.Shell; const Signals = imports.signals; const DND = imports.ui.dnd; -const XdndHandler = new Lang.Class({ +var XdndHandler = new Lang.Class({ Name: 'XdndHandler', _init: function() {