Define classes with 'var' instead of 'const'
Any symbols (including class properties) that should be visible outside the module it's defined in need to be defined as global. For now gjs still allows the access for 'const', but get rid of the warnings spill now by changing it. https://bugzilla.gnome.org/show_bug.cgi?id=785084
This commit is contained in:
parent
9e32ba61fd
commit
2582d16ca7
10
HACKING
10
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
|
(sigh), which is built in gjs. The advantage is that it supports inheriting from
|
||||||
GObjects, although this feature isn't used very often in the Shell itself.
|
GObjects, although this feature isn't used very often in the Shell itself.
|
||||||
|
|
||||||
const IconLabelMenuItem = new Lang.Class({
|
var IconLabelMenuItem = new Lang.Class({
|
||||||
Name: 'IconLabelMenuItem',
|
Name: 'IconLabelMenuItem',
|
||||||
Extends: PopupMenu.PopupMenuBaseItem,
|
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
|
bindings for almost any library built around GObject. If a library requires
|
||||||
you to inherit from a type to use it, you can do so:
|
you to inherit from a type to use it, you can do so:
|
||||||
|
|
||||||
const MyClutterActor = new Lang.Class({
|
var MyClutterActor = new Lang.Class({
|
||||||
Name: 'MyClutterActor',
|
Name: 'MyClutterActor',
|
||||||
Extends: Clutter.Actor,
|
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
|
We sometimes use expando properties to set a property called `_delegate` on
|
||||||
the actor itself:
|
the actor itself:
|
||||||
|
|
||||||
const MyClass = new Lang.Class({
|
var MyClass = new Lang.Class({
|
||||||
Name: 'MyClass',
|
Name: 'MyClass',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -264,7 +264,7 @@ prototype:
|
|||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const FnorbLib = imports.fborbLib;
|
const FnorbLib = imports.fborbLib;
|
||||||
|
|
||||||
const MyClass = new Lang.Class({
|
var MyClass = new Lang.Class({
|
||||||
_init: function() {
|
_init: function() {
|
||||||
let fnorb = new FnorbLib.Fnorb();
|
let fnorb = new FnorbLib.Fnorb();
|
||||||
fnorb.connect('frobate', Lang.bind(this, this._onFnorbFrobate));
|
fnorb.connect('frobate', Lang.bind(this, this._onFnorbFrobate));
|
||||||
@ -306,7 +306,7 @@ property.
|
|||||||
|
|
||||||
const ANIMATION_TIME = 2000;
|
const ANIMATION_TIME = 2000;
|
||||||
|
|
||||||
const MyClass = new Lang.Class({
|
var MyClass = new Lang.Class({
|
||||||
Name: 'MyClass',
|
Name: 'MyClass',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -32,7 +32,7 @@ function stripPrefix(string, prefix) {
|
|||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Application = new Lang.Class({
|
var Application = new Lang.Class({
|
||||||
Name: 'Application',
|
Name: 'Application',
|
||||||
_init: function() {
|
_init: function() {
|
||||||
GLib.set_prgname('gnome-shell-extension-prefs');
|
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',
|
Name: 'DescriptionLabel',
|
||||||
Extends: Gtk.Label,
|
Extends: Gtk.Label,
|
||||||
|
|
||||||
@ -265,7 +265,7 @@ const DescriptionLabel = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ExtensionRow = new Lang.Class({
|
var ExtensionRow = new Lang.Class({
|
||||||
Name: 'ExtensionRow',
|
Name: 'ExtensionRow',
|
||||||
Extends: Gtk.ListBoxRow,
|
Extends: Gtk.ListBoxRow,
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ const BeginRequestType = {
|
|||||||
DONT_PROVIDE_USERNAME: 1
|
DONT_PROVIDE_USERNAME: 1
|
||||||
};
|
};
|
||||||
|
|
||||||
const AuthPrompt = new Lang.Class({
|
var AuthPrompt = new Lang.Class({
|
||||||
Name: 'AuthPrompt',
|
Name: 'AuthPrompt',
|
||||||
|
|
||||||
_init: function(gdmClient, mode) {
|
_init: function(gdmClient, mode) {
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
|
|
||||||
const Task = new Lang.Class({
|
var Task = new Lang.Class({
|
||||||
Name: 'Task',
|
Name: 'Task',
|
||||||
|
|
||||||
_init: function(scope, handler) {
|
_init: function(scope, handler) {
|
||||||
@ -68,7 +68,7 @@ const Task = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Task.prototype);
|
Signals.addSignalMethods(Task.prototype);
|
||||||
|
|
||||||
const Hold = new Lang.Class({
|
var Hold = new Lang.Class({
|
||||||
Name: 'Hold',
|
Name: 'Hold',
|
||||||
Extends: Task,
|
Extends: Task,
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ const Hold = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Hold.prototype);
|
Signals.addSignalMethods(Hold.prototype);
|
||||||
|
|
||||||
const Batch = new Lang.Class({
|
var Batch = new Lang.Class({
|
||||||
Name: 'Batch',
|
Name: 'Batch',
|
||||||
Extends: Task,
|
Extends: Task,
|
||||||
|
|
||||||
@ -185,7 +185,7 @@ const Batch = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Batch.prototype);
|
Signals.addSignalMethods(Batch.prototype);
|
||||||
|
|
||||||
const ConcurrentBatch = new Lang.Class({
|
var ConcurrentBatch = new Lang.Class({
|
||||||
Name: 'ConcurrentBatch',
|
Name: 'ConcurrentBatch',
|
||||||
Extends: Batch,
|
Extends: Batch,
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ const ConcurrentBatch = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(ConcurrentBatch.prototype);
|
Signals.addSignalMethods(ConcurrentBatch.prototype);
|
||||||
|
|
||||||
const ConsecutiveBatch = new Lang.Class({
|
var ConsecutiveBatch = new Lang.Class({
|
||||||
Name: 'ConsecutiveBatch',
|
Name: 'ConsecutiveBatch',
|
||||||
Extends: Batch,
|
Extends: Batch,
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0;
|
|||||||
const _LOGO_ICON_HEIGHT = 48;
|
const _LOGO_ICON_HEIGHT = 48;
|
||||||
const _MAX_BOTTOM_MENU_ITEMS = 5;
|
const _MAX_BOTTOM_MENU_ITEMS = 5;
|
||||||
|
|
||||||
const UserListItem = new Lang.Class({
|
var UserListItem = new Lang.Class({
|
||||||
Name: 'UserListItem',
|
Name: 'UserListItem',
|
||||||
|
|
||||||
_init: function(user) {
|
_init: function(user) {
|
||||||
@ -145,7 +145,7 @@ const UserListItem = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(UserListItem.prototype);
|
Signals.addSignalMethods(UserListItem.prototype);
|
||||||
|
|
||||||
const UserList = new Lang.Class({
|
var UserList = new Lang.Class({
|
||||||
Name: 'UserList',
|
Name: 'UserList',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -296,7 +296,7 @@ const UserList = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(UserList.prototype);
|
Signals.addSignalMethods(UserList.prototype);
|
||||||
|
|
||||||
const SessionMenuButton = new Lang.Class({
|
var SessionMenuButton = new Lang.Class({
|
||||||
Name: 'SessionMenuButton',
|
Name: 'SessionMenuButton',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -402,7 +402,7 @@ const SessionMenuButton = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(SessionMenuButton.prototype);
|
Signals.addSignalMethods(SessionMenuButton.prototype);
|
||||||
|
|
||||||
const LoginDialog = new Lang.Class({
|
var LoginDialog = new Lang.Class({
|
||||||
Name: 'LoginDialog',
|
Name: 'LoginDialog',
|
||||||
|
|
||||||
_init: function(parentActor) {
|
_init: function(parentActor) {
|
||||||
|
@ -27,7 +27,7 @@ function OVirtCredentials() {
|
|||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
const OVirtCredentialsManager = new Lang.Class({
|
var OVirtCredentialsManager = new Lang.Class({
|
||||||
Name: 'OVirtCredentialsManager',
|
Name: 'OVirtCredentialsManager',
|
||||||
_init: function() {
|
_init: function() {
|
||||||
this._token = null;
|
this._token = null;
|
||||||
|
@ -59,7 +59,7 @@ const RealmIface = '<node> \
|
|||||||
</node>';
|
</node>';
|
||||||
const Realm = Gio.DBusProxy.makeProxyWrapper(RealmIface);
|
const Realm = Gio.DBusProxy.makeProxyWrapper(RealmIface);
|
||||||
|
|
||||||
const Manager = new Lang.Class({
|
var Manager = new Lang.Class({
|
||||||
Name: 'Manager',
|
Name: 'Manager',
|
||||||
|
|
||||||
_init: function(parentActor) {
|
_init: function(parentActor) {
|
||||||
|
@ -119,7 +119,7 @@ function cloneAndFadeOutActor(actor) {
|
|||||||
return hold;
|
return hold;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ShellUserVerifier = new Lang.Class({
|
var ShellUserVerifier = new Lang.Class({
|
||||||
Name: 'ShellUserVerifier',
|
Name: 'ShellUserVerifier',
|
||||||
|
|
||||||
_init: function(client, params) {
|
_init: function(client, params) {
|
||||||
|
@ -158,7 +158,7 @@ function installImporter(extension) {
|
|||||||
imports.searchPath = oldSearchPath;
|
imports.searchPath = oldSearchPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ExtensionFinder = new Lang.Class({
|
var ExtensionFinder = new Lang.Class({
|
||||||
Name: 'ExtensionFinder',
|
Name: 'ExtensionFinder',
|
||||||
|
|
||||||
_loadExtension: function(extensionDir, info, perUserDir) {
|
_loadExtension: function(extensionDir, info, perUserDir) {
|
||||||
|
@ -7,7 +7,7 @@ const Params = imports.misc.params;
|
|||||||
|
|
||||||
const DEFAULT_LIMIT = 512;
|
const DEFAULT_LIMIT = 512;
|
||||||
|
|
||||||
const HistoryManager = new Lang.Class({
|
var HistoryManager = new Lang.Class({
|
||||||
Name: 'HistoryManager',
|
Name: 'HistoryManager',
|
||||||
|
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
|
@ -36,7 +36,7 @@ function getIBusManager() {
|
|||||||
return _ibusManager;
|
return _ibusManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
const IBusManager = new Lang.Class({
|
var IBusManager = new Lang.Class({
|
||||||
Name: 'IBusManager',
|
Name: 'IBusManager',
|
||||||
|
|
||||||
// This is the longest we'll keep the keyboard frozen until an input
|
// This is the longest we'll keep the keyboard frozen until an input
|
||||||
|
@ -38,7 +38,7 @@ function holdKeyboard() {
|
|||||||
global.display.freeze_keyboard(global.get_current_time());
|
global.display.freeze_keyboard(global.get_current_time());
|
||||||
}
|
}
|
||||||
|
|
||||||
const KeyboardManager = new Lang.Class({
|
var KeyboardManager = new Lang.Class({
|
||||||
Name: 'KeyboardManager',
|
Name: 'KeyboardManager',
|
||||||
|
|
||||||
// The XKB protocol doesn't allow for more that 4 layouts in a
|
// The XKB protocol doesn't allow for more that 4 layouts in a
|
||||||
|
@ -102,7 +102,7 @@ function getLoginManager() {
|
|||||||
return _loginManager;
|
return _loginManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
const LoginManagerSystemd = new Lang.Class({
|
var LoginManagerSystemd = new Lang.Class({
|
||||||
Name: 'LoginManagerSystemd',
|
Name: 'LoginManagerSystemd',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -183,7 +183,7 @@ const LoginManagerSystemd = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(LoginManagerSystemd.prototype);
|
Signals.addSignalMethods(LoginManagerSystemd.prototype);
|
||||||
|
|
||||||
const LoginManagerDummy = new Lang.Class({
|
var LoginManagerDummy = new Lang.Class({
|
||||||
Name: 'LoginManagerDummy',
|
Name: 'LoginManagerDummy',
|
||||||
|
|
||||||
getCurrentSessionProxy: function(callback) {
|
getCurrentSessionProxy: function(callback) {
|
||||||
|
@ -130,7 +130,7 @@ const ModemCdmaInterface = '<node> \
|
|||||||
|
|
||||||
const ModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(ModemCdmaInterface);
|
const ModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(ModemCdmaInterface);
|
||||||
|
|
||||||
const ModemGsm = new Lang.Class({
|
var ModemGsm = new Lang.Class({
|
||||||
Name: 'ModemGsm',
|
Name: 'ModemGsm',
|
||||||
|
|
||||||
_init: function(path) {
|
_init: function(path) {
|
||||||
@ -172,7 +172,7 @@ const ModemGsm = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(ModemGsm.prototype);
|
Signals.addSignalMethods(ModemGsm.prototype);
|
||||||
|
|
||||||
const ModemCdma = new Lang.Class({
|
var ModemCdma = new Lang.Class({
|
||||||
Name: 'ModemCdma',
|
Name: 'ModemCdma',
|
||||||
|
|
||||||
_init: function(path) {
|
_init: function(path) {
|
||||||
@ -244,7 +244,7 @@ const BroadbandModemCdmaInterface = '<node> \
|
|||||||
</node>';
|
</node>';
|
||||||
const BroadbandModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModemCdmaInterface);
|
const BroadbandModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModemCdmaInterface);
|
||||||
|
|
||||||
const BroadbandModem = new Lang.Class({
|
var BroadbandModem = new Lang.Class({
|
||||||
Name: 'BroadbandModem',
|
Name: 'BroadbandModem',
|
||||||
|
|
||||||
_init: function(path, capabilities) {
|
_init: function(path, capabilities) {
|
||||||
|
@ -26,7 +26,7 @@ const ObjectManagerIface = '<node> \
|
|||||||
|
|
||||||
const ObjectManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(ObjectManagerIface);
|
const ObjectManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(ObjectManagerIface);
|
||||||
|
|
||||||
const ObjectManager = new Lang.Class({
|
var ObjectManager = new Lang.Class({
|
||||||
Name: 'ObjectManager',
|
Name: 'ObjectManager',
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
params = Params.parse(params, { connection: null,
|
params = Params.parse(params, { connection: null,
|
||||||
|
@ -25,7 +25,7 @@ function getSmartcardManager() {
|
|||||||
return _smartcardManager;
|
return _smartcardManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SmartcardManager = new Lang.Class({
|
var SmartcardManager = new Lang.Class({
|
||||||
Name: 'SmartcardManager',
|
Name: 'SmartcardManager',
|
||||||
_init: function() {
|
_init: function() {
|
||||||
this._objectManager = new ObjectManager.ObjectManager({ connection: Gio.DBus.session,
|
this._objectManager = new ObjectManager.ObjectManager({ connection: Gio.DBus.session,
|
||||||
|
@ -350,7 +350,7 @@ function insertSorted(array, val, cmp) {
|
|||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
const CloseButton = new Lang.Class({
|
var CloseButton = new Lang.Class({
|
||||||
Name: 'CloseButton',
|
Name: 'CloseButton',
|
||||||
Extends: St.Button,
|
Extends: St.Button,
|
||||||
|
|
||||||
@ -439,7 +439,7 @@ function ensureActorVisibleInScrollView(scrollView, actor) {
|
|||||||
transition: 'easeOutQuad' });
|
transition: 'easeOutQuad' });
|
||||||
}
|
}
|
||||||
|
|
||||||
const AppSettingsMonitor = new Lang.Class({
|
var AppSettingsMonitor = new Lang.Class({
|
||||||
Name: 'AppSettingsMonitor',
|
Name: 'AppSettingsMonitor',
|
||||||
|
|
||||||
_init: function(appId, schemaId) {
|
_init: function(appId, schemaId) {
|
||||||
|
@ -13,7 +13,7 @@ const Util = imports.misc.util;
|
|||||||
// Minimum time between updates to show loading indication
|
// Minimum time between updates to show loading indication
|
||||||
const UPDATE_THRESHOLD = 10 * GLib.TIME_SPAN_MINUTE;
|
const UPDATE_THRESHOLD = 10 * GLib.TIME_SPAN_MINUTE;
|
||||||
|
|
||||||
const WeatherClient = new Lang.Class({
|
var WeatherClient = new Lang.Class({
|
||||||
Name: 'WeatherClient',
|
Name: 'WeatherClient',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -50,7 +50,7 @@ const HelperDBusInterface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const PortalHeaderBar = new Lang.Class({
|
var PortalHeaderBar = new Lang.Class({
|
||||||
Name: 'PortalHeaderBar',
|
Name: 'PortalHeaderBar',
|
||||||
Extends: Gtk.HeaderBar,
|
Extends: Gtk.HeaderBar,
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ const PortalHeaderBar = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const PortalWindow = new Lang.Class({
|
var PortalWindow = new Lang.Class({
|
||||||
Name: 'PortalWindow',
|
Name: 'PortalWindow',
|
||||||
Extends: Gtk.ApplicationWindow,
|
Extends: Gtk.ApplicationWindow,
|
||||||
|
|
||||||
@ -282,7 +282,7 @@ const PortalWindow = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const WebPortalHelper = new Lang.Class({
|
var WebPortalHelper = new Lang.Class({
|
||||||
Name: 'WebPortalHelper',
|
Name: 'WebPortalHelper',
|
||||||
Extends: Gtk.Application,
|
Extends: Gtk.Application,
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ const DialogResponse = {
|
|||||||
CLOSED: 2
|
CLOSED: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
const AccessDialog = new Lang.Class({
|
var AccessDialog = new Lang.Class({
|
||||||
Name: 'AccessDialog',
|
Name: 'AccessDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ const AccessDialog = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AccessDialogDBus = new Lang.Class({
|
var AccessDialogDBus = new Lang.Class({
|
||||||
Name: 'AccessDialogDBus',
|
Name: 'AccessDialogDBus',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -58,7 +58,7 @@ function getWindows(workspace) {
|
|||||||
}).filter((w, i, a) => !w.skip_taskbar && a.indexOf(w) == i);
|
}).filter((w, i, a) => !w.skip_taskbar && a.indexOf(w) == i);
|
||||||
}
|
}
|
||||||
|
|
||||||
const AppSwitcherPopup = new Lang.Class({
|
var AppSwitcherPopup = new Lang.Class({
|
||||||
Name: 'AppSwitcherPopup',
|
Name: 'AppSwitcherPopup',
|
||||||
Extends: SwitcherPopup.SwitcherPopup,
|
Extends: SwitcherPopup.SwitcherPopup,
|
||||||
|
|
||||||
@ -366,7 +366,7 @@ const AppSwitcherPopup = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const CyclerHighlight = new Lang.Class({
|
var CyclerHighlight = new Lang.Class({
|
||||||
Name: 'CyclerHighlight',
|
Name: 'CyclerHighlight',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -427,7 +427,7 @@ const CyclerHighlight = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const CyclerPopup = new Lang.Class({
|
var CyclerPopup = new Lang.Class({
|
||||||
Name: 'CyclerPopup',
|
Name: 'CyclerPopup',
|
||||||
Extends: SwitcherPopup.SwitcherPopup,
|
Extends: SwitcherPopup.SwitcherPopup,
|
||||||
Abstract: true,
|
Abstract: true,
|
||||||
@ -488,7 +488,7 @@ const CyclerPopup = new Lang.Class({
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const GroupCyclerPopup = new Lang.Class({
|
var GroupCyclerPopup = new Lang.Class({
|
||||||
Name: 'GroupCyclerPopup',
|
Name: 'GroupCyclerPopup',
|
||||||
Extends: CyclerPopup,
|
Extends: CyclerPopup,
|
||||||
|
|
||||||
@ -509,7 +509,7 @@ const GroupCyclerPopup = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const WindowSwitcherPopup = new Lang.Class({
|
var WindowSwitcherPopup = new Lang.Class({
|
||||||
Name: 'WindowSwitcherPopup',
|
Name: 'WindowSwitcherPopup',
|
||||||
Extends: SwitcherPopup.SwitcherPopup,
|
Extends: SwitcherPopup.SwitcherPopup,
|
||||||
|
|
||||||
@ -556,7 +556,7 @@ const WindowSwitcherPopup = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const WindowCyclerPopup = new Lang.Class({
|
var WindowCyclerPopup = new Lang.Class({
|
||||||
Name: 'WindowCyclerPopup',
|
Name: 'WindowCyclerPopup',
|
||||||
Extends: CyclerPopup,
|
Extends: CyclerPopup,
|
||||||
|
|
||||||
@ -582,7 +582,7 @@ const WindowCyclerPopup = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AppIcon = new Lang.Class({
|
var AppIcon = new Lang.Class({
|
||||||
Name: 'AppIcon',
|
Name: 'AppIcon',
|
||||||
|
|
||||||
_init: function(app) {
|
_init: function(app) {
|
||||||
@ -603,7 +603,7 @@ const AppIcon = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AppSwitcher = new Lang.Class({
|
var AppSwitcher = new Lang.Class({
|
||||||
Name: 'AppSwitcher',
|
Name: 'AppSwitcher',
|
||||||
Extends: SwitcherPopup.SwitcherList,
|
Extends: SwitcherPopup.SwitcherList,
|
||||||
|
|
||||||
@ -777,7 +777,7 @@ const AppSwitcher = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ThumbnailList = new Lang.Class({
|
var ThumbnailList = new Lang.Class({
|
||||||
Name: 'ThumbnailList',
|
Name: 'ThumbnailList',
|
||||||
Extends: SwitcherPopup.SwitcherList,
|
Extends: SwitcherPopup.SwitcherList,
|
||||||
|
|
||||||
@ -845,7 +845,7 @@ const ThumbnailList = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const WindowIcon = new Lang.Class({
|
var WindowIcon = new Lang.Class({
|
||||||
Name: 'WindowIcon',
|
Name: 'WindowIcon',
|
||||||
|
|
||||||
_init: function(window, mode) {
|
_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',
|
Name: 'WindowList',
|
||||||
Extends: SwitcherPopup.SwitcherList,
|
Extends: SwitcherPopup.SwitcherList,
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ const Atk = imports.gi.Atk;
|
|||||||
|
|
||||||
const ANIMATED_ICON_UPDATE_TIMEOUT = 16;
|
const ANIMATED_ICON_UPDATE_TIMEOUT = 16;
|
||||||
|
|
||||||
const Animation = new Lang.Class({
|
var Animation = new Lang.Class({
|
||||||
Name: 'Animation',
|
Name: 'Animation',
|
||||||
|
|
||||||
_init: function(file, width, height, speed) {
|
_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',
|
Name: 'AnimatedIcon',
|
||||||
Extends: Animation,
|
Extends: Animation,
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ function clamp(value, min, max) {
|
|||||||
return Math.max(min, Math.min(max, value));
|
return Math.max(min, Math.min(max, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
const BaseAppView = new Lang.Class({
|
var BaseAppView = new Lang.Class({
|
||||||
Name: 'BaseAppView',
|
Name: 'BaseAppView',
|
||||||
Abstract: true,
|
Abstract: true,
|
||||||
|
|
||||||
@ -256,7 +256,7 @@ const BaseAppView = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(BaseAppView.prototype);
|
Signals.addSignalMethods(BaseAppView.prototype);
|
||||||
|
|
||||||
const PageIndicatorsActor = new Lang.Class({
|
var PageIndicatorsActor = new Lang.Class({
|
||||||
Name:'PageIndicatorsActor',
|
Name:'PageIndicatorsActor',
|
||||||
Extends: St.BoxLayout,
|
Extends: St.BoxLayout,
|
||||||
|
|
||||||
@ -280,7 +280,7 @@ const PageIndicatorsActor = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const PageIndicators = new Lang.Class({
|
var PageIndicators = new Lang.Class({
|
||||||
Name:'PageIndicators',
|
Name:'PageIndicators',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -373,7 +373,7 @@ const PageIndicators = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(PageIndicators.prototype);
|
Signals.addSignalMethods(PageIndicators.prototype);
|
||||||
|
|
||||||
const AllView = new Lang.Class({
|
var AllView = new Lang.Class({
|
||||||
Name: 'AllView',
|
Name: 'AllView',
|
||||||
Extends: BaseAppView,
|
Extends: BaseAppView,
|
||||||
|
|
||||||
@ -799,7 +799,7 @@ const AllView = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(AllView.prototype);
|
Signals.addSignalMethods(AllView.prototype);
|
||||||
|
|
||||||
const FrequentView = new Lang.Class({
|
var FrequentView = new Lang.Class({
|
||||||
Name: 'FrequentView',
|
Name: 'FrequentView',
|
||||||
Extends: BaseAppView,
|
Extends: BaseAppView,
|
||||||
|
|
||||||
@ -878,7 +878,7 @@ const Views = {
|
|||||||
ALL: 1
|
ALL: 1
|
||||||
};
|
};
|
||||||
|
|
||||||
const ControlsBoxLayout = Lang.Class({
|
var ControlsBoxLayout = Lang.Class({
|
||||||
Name: 'ControlsBoxLayout',
|
Name: 'ControlsBoxLayout',
|
||||||
Extends: Clutter.BoxLayout,
|
Extends: Clutter.BoxLayout,
|
||||||
|
|
||||||
@ -903,7 +903,7 @@ const ControlsBoxLayout = Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ViewStackLayout = new Lang.Class({
|
var ViewStackLayout = new Lang.Class({
|
||||||
Name: 'ViewStackLayout',
|
Name: 'ViewStackLayout',
|
||||||
Extends: Clutter.BinLayout,
|
Extends: Clutter.BinLayout,
|
||||||
Signals: { 'allocated-size-changed': { param_types: [GObject.TYPE_INT,
|
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',
|
Name: 'AppDisplay',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -1084,7 +1084,7 @@ const AppDisplay = new Lang.Class({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const AppSearchProvider = new Lang.Class({
|
var AppSearchProvider = new Lang.Class({
|
||||||
Name: 'AppSearchProvider',
|
Name: 'AppSearchProvider',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -1139,7 +1139,7 @@ const AppSearchProvider = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const FolderView = new Lang.Class({
|
var FolderView = new Lang.Class({
|
||||||
Name: 'FolderView',
|
Name: 'FolderView',
|
||||||
Extends: BaseAppView,
|
Extends: BaseAppView,
|
||||||
|
|
||||||
@ -1255,7 +1255,7 @@ const FolderView = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const FolderIcon = new Lang.Class({
|
var FolderIcon = new Lang.Class({
|
||||||
Name: 'FolderIcon',
|
Name: 'FolderIcon',
|
||||||
|
|
||||||
_init: function(id, path, parentView) {
|
_init: function(id, path, parentView) {
|
||||||
@ -1433,7 +1433,7 @@ const FolderIcon = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(FolderIcon.prototype);
|
Signals.addSignalMethods(FolderIcon.prototype);
|
||||||
|
|
||||||
const AppFolderPopup = new Lang.Class({
|
var AppFolderPopup = new Lang.Class({
|
||||||
Name: 'AppFolderPopup',
|
Name: 'AppFolderPopup',
|
||||||
|
|
||||||
_init: function(source, side) {
|
_init: function(source, side) {
|
||||||
@ -1594,7 +1594,7 @@ const AppFolderPopup = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(AppFolderPopup.prototype);
|
Signals.addSignalMethods(AppFolderPopup.prototype);
|
||||||
|
|
||||||
const AppIcon = new Lang.Class({
|
var AppIcon = new Lang.Class({
|
||||||
Name: 'AppIcon',
|
Name: 'AppIcon',
|
||||||
|
|
||||||
_init : function(app, iconParams) {
|
_init : function(app, iconParams) {
|
||||||
@ -1840,7 +1840,7 @@ const AppIcon = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(AppIcon.prototype);
|
Signals.addSignalMethods(AppIcon.prototype);
|
||||||
|
|
||||||
const AppIconMenu = new Lang.Class({
|
var AppIconMenu = new Lang.Class({
|
||||||
Name: 'AppIconMenu',
|
Name: 'AppIconMenu',
|
||||||
Extends: PopupMenu.PopupMenu,
|
Extends: PopupMenu.PopupMenu,
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ const RENAMED_DESKTOP_IDS = {
|
|||||||
'totem.desktop': 'org.gnome.Totem.desktop',
|
'totem.desktop': 'org.gnome.Totem.desktop',
|
||||||
};
|
};
|
||||||
|
|
||||||
const AppFavorites = new Lang.Class({
|
var AppFavorites = new Lang.Class({
|
||||||
Name: 'AppFavorites',
|
Name: 'AppFavorites',
|
||||||
|
|
||||||
FAVORITE_APPS_KEY: 'favorite-apps',
|
FAVORITE_APPS_KEY: 'favorite-apps',
|
||||||
|
@ -28,7 +28,7 @@ const AudioDeviceSelectionIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const AudioDeviceSelectionDialog = new Lang.Class({
|
var AudioDeviceSelectionDialog = new Lang.Class({
|
||||||
Name: 'AudioDeviceSelectionDialog',
|
Name: 'AudioDeviceSelectionDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ const AudioDeviceSelectionDialog = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AudioDeviceSelectionDBus = new Lang.Class({
|
var AudioDeviceSelectionDBus = new Lang.Class({
|
||||||
Name: 'AudioDeviceSelectionDBus',
|
Name: 'AudioDeviceSelectionDBus',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -138,7 +138,7 @@ function _fileEqual0(file1, file2) {
|
|||||||
return file1.equal(file2);
|
return file1.equal(file2);
|
||||||
}
|
}
|
||||||
|
|
||||||
const BackgroundCache = new Lang.Class({
|
var BackgroundCache = new Lang.Class({
|
||||||
Name: 'BackgroundCache',
|
Name: 'BackgroundCache',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -226,7 +226,7 @@ function getBackgroundCache() {
|
|||||||
return _backgroundCache;
|
return _backgroundCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Background = new Lang.Class({
|
var Background = new Lang.Class({
|
||||||
Name: 'Background',
|
Name: 'Background',
|
||||||
|
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
@ -488,7 +488,7 @@ Signals.addSignalMethods(Background.prototype);
|
|||||||
|
|
||||||
let _systemBackground;
|
let _systemBackground;
|
||||||
|
|
||||||
const SystemBackground = new Lang.Class({
|
var SystemBackground = new Lang.Class({
|
||||||
Name: 'SystemBackground',
|
Name: 'SystemBackground',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -525,7 +525,7 @@ const SystemBackground = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(SystemBackground.prototype);
|
Signals.addSignalMethods(SystemBackground.prototype);
|
||||||
|
|
||||||
const BackgroundSource = new Lang.Class({
|
var BackgroundSource = new Lang.Class({
|
||||||
Name: 'BackgroundSource',
|
Name: 'BackgroundSource',
|
||||||
|
|
||||||
_init: function(layoutManager, settingsSchema) {
|
_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',
|
Name: 'Animation',
|
||||||
|
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
@ -661,7 +661,7 @@ const Animation = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Animation.prototype);
|
Signals.addSignalMethods(Animation.prototype);
|
||||||
|
|
||||||
const BackgroundManager = new Lang.Class({
|
var BackgroundManager = new Lang.Class({
|
||||||
Name: 'BackgroundManager',
|
Name: 'BackgroundManager',
|
||||||
|
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
|
@ -9,7 +9,7 @@ const BoxPointer = imports.ui.boxpointer;
|
|||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const PopupMenu = imports.ui.popupMenu;
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
|
|
||||||
const BackgroundMenu = new Lang.Class({
|
var BackgroundMenu = new Lang.Class({
|
||||||
Name: 'BackgroundMenu',
|
Name: 'BackgroundMenu',
|
||||||
Extends: PopupMenu.PopupMenu,
|
Extends: PopupMenu.PopupMenu,
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ const POPUP_ANIMATION_TIME = 0.15;
|
|||||||
* totally inside the monitor if possible.
|
* totally inside the monitor if possible.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
const BoxPointer = new Lang.Class({
|
var BoxPointer = new Lang.Class({
|
||||||
Name: 'BoxPointer',
|
Name: 'BoxPointer',
|
||||||
|
|
||||||
_init: function(arrowSide, binProperties) {
|
_init: function(arrowSide, binProperties) {
|
||||||
|
@ -92,7 +92,7 @@ function _getCalendarDayAbbreviation(dayNumber) {
|
|||||||
|
|
||||||
// Abstraction for an appointment/event in a calendar
|
// Abstraction for an appointment/event in a calendar
|
||||||
|
|
||||||
const CalendarEvent = new Lang.Class({
|
var CalendarEvent = new Lang.Class({
|
||||||
Name: 'CalendarEvent',
|
Name: 'CalendarEvent',
|
||||||
|
|
||||||
_init: function(id, date, end, summary, allDay) {
|
_init: function(id, date, end, summary, allDay) {
|
||||||
@ -108,7 +108,7 @@ const CalendarEvent = new Lang.Class({
|
|||||||
//
|
//
|
||||||
|
|
||||||
// First, an implementation with no events
|
// First, an implementation with no events
|
||||||
const EmptyEventSource = new Lang.Class({
|
var EmptyEventSource = new Lang.Class({
|
||||||
Name: 'EmptyEventSource',
|
Name: 'EmptyEventSource',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -179,7 +179,7 @@ function _dateIntervalsOverlap(a0, a1, b0, b1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// an implementation that reads data from a session bus service
|
// an implementation that reads data from a session bus service
|
||||||
const DBusEventSource = new Lang.Class({
|
var DBusEventSource = new Lang.Class({
|
||||||
Name: 'DBusEventSource',
|
Name: 'DBusEventSource',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -366,7 +366,7 @@ const DBusEventSource = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(DBusEventSource.prototype);
|
Signals.addSignalMethods(DBusEventSource.prototype);
|
||||||
|
|
||||||
const Calendar = new Lang.Class({
|
var Calendar = new Lang.Class({
|
||||||
Name: 'Calendar',
|
Name: 'Calendar',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -697,7 +697,7 @@ const Calendar = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Calendar.prototype);
|
Signals.addSignalMethods(Calendar.prototype);
|
||||||
|
|
||||||
const EventMessage = new Lang.Class({
|
var EventMessage = new Lang.Class({
|
||||||
Name: 'EventMessage',
|
Name: 'EventMessage',
|
||||||
Extends: MessageList.Message,
|
Extends: MessageList.Message,
|
||||||
|
|
||||||
@ -754,7 +754,7 @@ const EventMessage = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const NotificationMessage = new Lang.Class({
|
var NotificationMessage = new Lang.Class({
|
||||||
Name: 'NotificationMessage',
|
Name: 'NotificationMessage',
|
||||||
Extends: MessageList.Message,
|
Extends: MessageList.Message,
|
||||||
|
|
||||||
@ -810,7 +810,7 @@ const NotificationMessage = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const EventsSection = new Lang.Class({
|
var EventsSection = new Lang.Class({
|
||||||
Name: 'EventsSection',
|
Name: 'EventsSection',
|
||||||
Extends: MessageList.MessageListSection,
|
Extends: MessageList.MessageListSection,
|
||||||
|
|
||||||
@ -941,7 +941,7 @@ const EventsSection = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const NotificationSection = new Lang.Class({
|
var NotificationSection = new Lang.Class({
|
||||||
Name: 'NotificationSection',
|
Name: 'NotificationSection',
|
||||||
Extends: MessageList.MessageListSection,
|
Extends: MessageList.MessageListSection,
|
||||||
|
|
||||||
@ -1044,7 +1044,7 @@ const NotificationSection = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const Placeholder = new Lang.Class({
|
var Placeholder = new Lang.Class({
|
||||||
Name: 'Placeholder',
|
Name: 'Placeholder',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -1091,7 +1091,7 @@ const Placeholder = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const CalendarMessageList = new Lang.Class({
|
var CalendarMessageList = new Lang.Class({
|
||||||
Name: 'CalendarMessageList',
|
Name: 'CalendarMessageList',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -4,7 +4,7 @@ const St = imports.gi.St;
|
|||||||
|
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
|
|
||||||
const CheckBox = new Lang.Class({
|
var CheckBox = new Lang.Class({
|
||||||
Name: 'CheckBox',
|
Name: 'CheckBox',
|
||||||
|
|
||||||
_init: function(label) {
|
_init: function(label) {
|
||||||
|
@ -14,7 +14,7 @@ const Tweener = imports.ui.tweener;
|
|||||||
const FROZEN_WINDOW_BRIGHTNESS = -0.3
|
const FROZEN_WINDOW_BRIGHTNESS = -0.3
|
||||||
const DIALOG_TRANSITION_TIME = 0.15
|
const DIALOG_TRANSITION_TIME = 0.15
|
||||||
|
|
||||||
const CloseDialog = new Lang.Class({
|
var CloseDialog = new Lang.Class({
|
||||||
Name: 'CloseDialog',
|
Name: 'CloseDialog',
|
||||||
Extends: GObject.Object,
|
Extends: GObject.Object,
|
||||||
Implements: [ Meta.CloseDialog ],
|
Implements: [ Meta.CloseDialog ],
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
|
|
||||||
const ComponentManager = new Lang.Class({
|
var ComponentManager = new Lang.Class({
|
||||||
Name: 'ComponentManager',
|
Name: 'ComponentManager',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -19,7 +19,7 @@ const SETTING_ENABLE_AUTOMOUNT = 'automount';
|
|||||||
|
|
||||||
const AUTORUN_EXPIRE_TIMEOUT_SECS = 10;
|
const AUTORUN_EXPIRE_TIMEOUT_SECS = 10;
|
||||||
|
|
||||||
const AutomountManager = new Lang.Class({
|
var AutomountManager = new Lang.Class({
|
||||||
Name: 'AutomountManager',
|
Name: 'AutomountManager',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -90,7 +90,7 @@ function HotplugSniffer() {
|
|||||||
'/org/gnome/Shell/HotplugSniffer');
|
'/org/gnome/Shell/HotplugSniffer');
|
||||||
}
|
}
|
||||||
|
|
||||||
const ContentTypeDiscoverer = new Lang.Class({
|
var ContentTypeDiscoverer = new Lang.Class({
|
||||||
Name: 'ContentTypeDiscoverer',
|
Name: 'ContentTypeDiscoverer',
|
||||||
|
|
||||||
_init: function(callback) {
|
_init: function(callback) {
|
||||||
@ -159,7 +159,7 @@ const ContentTypeDiscoverer = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AutorunManager = new Lang.Class({
|
var AutorunManager = new Lang.Class({
|
||||||
Name: 'AutorunManager',
|
Name: 'AutorunManager',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -196,7 +196,7 @@ const AutorunManager = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AutorunDispatcher = new Lang.Class({
|
var AutorunDispatcher = new Lang.Class({
|
||||||
Name: 'AutorunDispatcher',
|
Name: 'AutorunDispatcher',
|
||||||
|
|
||||||
_init: function(manager) {
|
_init: function(manager) {
|
||||||
@ -292,7 +292,7 @@ const AutorunDispatcher = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AutorunSource = new Lang.Class({
|
var AutorunSource = new Lang.Class({
|
||||||
Name: 'AutorunSource',
|
Name: 'AutorunSource',
|
||||||
Extends: MessageTray.Source,
|
Extends: MessageTray.Source,
|
||||||
|
|
||||||
@ -319,7 +319,7 @@ const AutorunSource = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AutorunNotification = new Lang.Class({
|
var AutorunNotification = new Lang.Class({
|
||||||
Name: 'AutorunNotification',
|
Name: 'AutorunNotification',
|
||||||
Extends: MessageTray.Notification,
|
Extends: MessageTray.Notification,
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ const WORK_SPINNER_ICON_SIZE = 16;
|
|||||||
const WORK_SPINNER_ANIMATION_DELAY = 1.0;
|
const WORK_SPINNER_ANIMATION_DELAY = 1.0;
|
||||||
const WORK_SPINNER_ANIMATION_TIME = 0.3;
|
const WORK_SPINNER_ANIMATION_TIME = 0.3;
|
||||||
|
|
||||||
const KeyringDialog = new Lang.Class({
|
var KeyringDialog = new Lang.Class({
|
||||||
Name: 'KeyringDialog',
|
Name: 'KeyringDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ const KeyringDialog = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const KeyringDummyDialog = new Lang.Class({
|
var KeyringDummyDialog = new Lang.Class({
|
||||||
Name: 'KeyringDummyDialog',
|
Name: 'KeyringDummyDialog',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -274,7 +274,7 @@ const KeyringDummyDialog = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const KeyringPrompter = new Lang.Class({
|
var KeyringPrompter = new Lang.Class({
|
||||||
Name: 'KeyringPrompter',
|
Name: 'KeyringPrompter',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -21,7 +21,7 @@ const ShellEntry = imports.ui.shellEntry;
|
|||||||
|
|
||||||
const VPN_UI_GROUP = 'VPN Plugin UI';
|
const VPN_UI_GROUP = 'VPN Plugin UI';
|
||||||
|
|
||||||
const NetworkSecretDialog = new Lang.Class({
|
var NetworkSecretDialog = new Lang.Class({
|
||||||
Name: 'NetworkSecretDialog',
|
Name: 'NetworkSecretDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ const NetworkSecretDialog = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const VPNRequestHandler = new Lang.Class({
|
var VPNRequestHandler = new Lang.Class({
|
||||||
Name: 'VPNRequestHandler',
|
Name: 'VPNRequestHandler',
|
||||||
|
|
||||||
_init: function(agent, requestId, authHelper, serviceType, connection, hints, flags) {
|
_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',
|
Name: 'NetworkAgent',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -27,7 +27,7 @@ const WORK_SPINNER_ICON_SIZE = 16;
|
|||||||
const WORK_SPINNER_ANIMATION_DELAY = 1.0;
|
const WORK_SPINNER_ANIMATION_DELAY = 1.0;
|
||||||
const WORK_SPINNER_ANIMATION_TIME = 0.3;
|
const WORK_SPINNER_ANIMATION_TIME = 0.3;
|
||||||
|
|
||||||
const AuthenticationDialog = new Lang.Class({
|
var AuthenticationDialog = new Lang.Class({
|
||||||
Name: 'AuthenticationDialog',
|
Name: 'AuthenticationDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
@ -339,7 +339,7 @@ const AuthenticationDialog = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(AuthenticationDialog.prototype);
|
Signals.addSignalMethods(AuthenticationDialog.prototype);
|
||||||
|
|
||||||
const AuthenticationAgent = new Lang.Class({
|
var AuthenticationAgent = new Lang.Class({
|
||||||
Name: 'AuthenticationAgent',
|
Name: 'AuthenticationAgent',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -79,7 +79,7 @@ function makeMessageFromTplEvent(event) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const TelepathyComponent = new Lang.Class({
|
var TelepathyComponent = new Lang.Class({
|
||||||
Name: 'TelepathyComponent',
|
Name: 'TelepathyComponent',
|
||||||
|
|
||||||
_init: function() {
|
_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',
|
Name: 'TelepathyClient',
|
||||||
Extends: Tp.BaseClient,
|
Extends: Tp.BaseClient,
|
||||||
|
|
||||||
@ -280,7 +280,7 @@ const TelepathyClient = HAVE_TP ? new Lang.Class({
|
|||||||
},
|
},
|
||||||
}) : null;
|
}) : null;
|
||||||
|
|
||||||
const ChatSource = new Lang.Class({
|
var ChatSource = new Lang.Class({
|
||||||
Name: 'ChatSource',
|
Name: 'ChatSource',
|
||||||
Extends: MessageTray.Source,
|
Extends: MessageTray.Source,
|
||||||
|
|
||||||
@ -647,7 +647,7 @@ const ChatSource = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ChatNotification = new Lang.Class({
|
var ChatNotification = new Lang.Class({
|
||||||
Name: 'ChatNotification',
|
Name: 'ChatNotification',
|
||||||
Extends: MessageTray.Notification,
|
Extends: MessageTray.Notification,
|
||||||
|
|
||||||
@ -806,7 +806,7 @@ const ChatNotification = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ChatLineBox = new Lang.Class({
|
var ChatLineBox = new Lang.Class({
|
||||||
Name: 'ChatLineBox',
|
Name: 'ChatLineBox',
|
||||||
Extends: St.BoxLayout,
|
Extends: St.BoxLayout,
|
||||||
|
|
||||||
@ -816,7 +816,7 @@ const ChatLineBox = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ChatNotificationBanner = new Lang.Class({
|
var ChatNotificationBanner = new Lang.Class({
|
||||||
Name: 'ChatNotificationBanner',
|
Name: 'ChatNotificationBanner',
|
||||||
Extends: MessageTray.NotificationBanner,
|
Extends: MessageTray.NotificationBanner,
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ const SortGroup = {
|
|||||||
BOTTOM: 2
|
BOTTOM: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
const CtrlAltTabManager = new Lang.Class({
|
var CtrlAltTabManager = new Lang.Class({
|
||||||
Name: 'CtrlAltTabManager',
|
Name: 'CtrlAltTabManager',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -136,7 +136,7 @@ const CtrlAltTabManager = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const CtrlAltTabPopup = new Lang.Class({
|
var CtrlAltTabPopup = new Lang.Class({
|
||||||
Name: 'CtrlAltTabPopup',
|
Name: 'CtrlAltTabPopup',
|
||||||
Extends: SwitcherPopup.SwitcherPopup,
|
Extends: SwitcherPopup.SwitcherPopup,
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ const CtrlAltTabPopup = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const CtrlAltTabSwitcher = new Lang.Class({
|
var CtrlAltTabSwitcher = new Lang.Class({
|
||||||
Name: 'CtrlAltTabSwitcher',
|
Name: 'CtrlAltTabSwitcher',
|
||||||
Extends: SwitcherPopup.SwitcherList,
|
Extends: SwitcherPopup.SwitcherList,
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ function getAppFromSource(source) {
|
|||||||
|
|
||||||
// A container like StBin, but taking the child's scale into account
|
// A container like StBin, but taking the child's scale into account
|
||||||
// when requesting a size
|
// when requesting a size
|
||||||
const DashItemContainer = new Lang.Class({
|
var DashItemContainer = new Lang.Class({
|
||||||
Name: 'DashItemContainer',
|
Name: 'DashItemContainer',
|
||||||
Extends: St.Widget,
|
Extends: St.Widget,
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ const DashItemContainer = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ShowAppsIcon = new Lang.Class({
|
var ShowAppsIcon = new Lang.Class({
|
||||||
Name: 'ShowAppsIcon',
|
Name: 'ShowAppsIcon',
|
||||||
Extends: DashItemContainer,
|
Extends: DashItemContainer,
|
||||||
|
|
||||||
@ -315,7 +315,7 @@ const ShowAppsIcon = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const DragPlaceholderItem = new Lang.Class({
|
var DragPlaceholderItem = new Lang.Class({
|
||||||
Name: 'DragPlaceholderItem',
|
Name: 'DragPlaceholderItem',
|
||||||
Extends: DashItemContainer,
|
Extends: DashItemContainer,
|
||||||
|
|
||||||
@ -325,7 +325,7 @@ const DragPlaceholderItem = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const EmptyDropTargetItem = new Lang.Class({
|
var EmptyDropTargetItem = new Lang.Class({
|
||||||
Name: 'EmptyDropTargetItem',
|
Name: 'EmptyDropTargetItem',
|
||||||
Extends: DashItemContainer,
|
Extends: DashItemContainer,
|
||||||
|
|
||||||
@ -335,7 +335,7 @@ const EmptyDropTargetItem = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const DashActor = new Lang.Class({
|
var DashActor = new Lang.Class({
|
||||||
Name: 'DashActor',
|
Name: 'DashActor',
|
||||||
Extends: St.Widget,
|
Extends: St.Widget,
|
||||||
|
|
||||||
@ -387,7 +387,7 @@ const DashActor = new Lang.Class({
|
|||||||
|
|
||||||
const baseIconSizes = [ 16, 22, 24, 32, 48, 64 ];
|
const baseIconSizes = [ 16, 22, 24, 32, 48, 64 ];
|
||||||
|
|
||||||
const Dash = new Lang.Class({
|
var Dash = new Lang.Class({
|
||||||
Name: 'Dash',
|
Name: 'Dash',
|
||||||
|
|
||||||
_init : function() {
|
_init : function() {
|
||||||
|
@ -30,7 +30,7 @@ function _isToday(date) {
|
|||||||
now.getDate() == date.getDate();
|
now.getDate() == date.getDate();
|
||||||
}
|
}
|
||||||
|
|
||||||
const TodayButton = new Lang.Class({
|
var TodayButton = new Lang.Class({
|
||||||
Name: 'TodayButton',
|
Name: 'TodayButton',
|
||||||
|
|
||||||
_init: function(calendar) {
|
_init: function(calendar) {
|
||||||
@ -84,7 +84,7 @@ const TodayButton = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const WorldClocksSection = new Lang.Class({
|
var WorldClocksSection = new Lang.Class({
|
||||||
Name: 'WorldClocksSection',
|
Name: 'WorldClocksSection',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -194,7 +194,7 @@ const WorldClocksSection = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const WeatherSection = new Lang.Class({
|
var WeatherSection = new Lang.Class({
|
||||||
Name: 'WeatherSection',
|
Name: 'WeatherSection',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -324,7 +324,7 @@ const WeatherSection = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const MessagesIndicator = new Lang.Class({
|
var MessagesIndicator = new Lang.Class({
|
||||||
Name: 'MessagesIndicator',
|
Name: 'MessagesIndicator',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -364,7 +364,7 @@ const MessagesIndicator = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const IndicatorPad = new Lang.Class({
|
var IndicatorPad = new Lang.Class({
|
||||||
Name: 'IndicatorPad',
|
Name: 'IndicatorPad',
|
||||||
Extends: St.Widget,
|
Extends: St.Widget,
|
||||||
|
|
||||||
@ -387,7 +387,7 @@ const IndicatorPad = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const FreezableBinLayout = new Lang.Class({
|
var FreezableBinLayout = new Lang.Class({
|
||||||
Name: 'FreezableBinLayout',
|
Name: 'FreezableBinLayout',
|
||||||
Extends: Clutter.BinLayout,
|
Extends: Clutter.BinLayout,
|
||||||
|
|
||||||
@ -429,7 +429,7 @@ const FreezableBinLayout = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const CalendarColumnLayout = new Lang.Class({
|
var CalendarColumnLayout = new Lang.Class({
|
||||||
Name: 'CalendarColumnLayout',
|
Name: 'CalendarColumnLayout',
|
||||||
Extends: Clutter.BoxLayout,
|
Extends: Clutter.BoxLayout,
|
||||||
|
|
||||||
@ -445,7 +445,7 @@ const CalendarColumnLayout = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const DateMenuButton = new Lang.Class({
|
var DateMenuButton = new Lang.Class({
|
||||||
Name: 'DateMenuButton',
|
Name: 'DateMenuButton',
|
||||||
Extends: PanelMenu.Button,
|
Extends: PanelMenu.Button,
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ const Pango = imports.gi.Pango;
|
|||||||
const St = imports.gi.St;
|
const St = imports.gi.St;
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
|
|
||||||
const Dialog = new Lang.Class({
|
var Dialog = new Lang.Class({
|
||||||
Name: 'Dialog',
|
Name: 'Dialog',
|
||||||
Extends: St.Widget,
|
Extends: St.Widget,
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ const Dialog = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const MessageDialogContent = new Lang.Class({
|
var MessageDialogContent = new Lang.Class({
|
||||||
Name: 'MessageDialogContent',
|
Name: 'MessageDialogContent',
|
||||||
Extends: St.BoxLayout,
|
Extends: St.BoxLayout,
|
||||||
Properties: {
|
Properties: {
|
||||||
|
@ -69,7 +69,7 @@ function removeDragMonitor(monitor) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const _Draggable = new Lang.Class({
|
var _Draggable = new Lang.Class({
|
||||||
Name: 'Draggable',
|
Name: 'Draggable',
|
||||||
|
|
||||||
_init : function(actor, params) {
|
_init : function(actor, params) {
|
||||||
|
@ -11,7 +11,7 @@ const Main = imports.ui.main;
|
|||||||
const EDGE_THRESHOLD = 20;
|
const EDGE_THRESHOLD = 20;
|
||||||
const DRAG_DISTANCE = 80;
|
const DRAG_DISTANCE = 80;
|
||||||
|
|
||||||
const EdgeDragAction = new Lang.Class({
|
var EdgeDragAction = new Lang.Class({
|
||||||
Name: 'EdgeDragAction',
|
Name: 'EdgeDragAction',
|
||||||
Extends: Clutter.GestureAction,
|
Extends: Clutter.GestureAction,
|
||||||
Signals: { 'activated': {} },
|
Signals: { 'activated': {} },
|
||||||
|
@ -275,7 +275,7 @@ function init() {
|
|||||||
_endSessionDialog = new EndSessionDialog();
|
_endSessionDialog = new EndSessionDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
const EndSessionDialog = new Lang.Class({
|
var EndSessionDialog = new Lang.Class({
|
||||||
Name: 'EndSessionDialog',
|
Name: 'EndSessionDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ function checkForUpdates() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const InstallExtensionDialog = new Lang.Class({
|
var InstallExtensionDialog = new Lang.Class({
|
||||||
Name: 'InstallExtensionDialog',
|
Name: 'InstallExtensionDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ const Signals = imports.signals;
|
|||||||
const CARETMOVED = 'object:text-caret-moved';
|
const CARETMOVED = 'object:text-caret-moved';
|
||||||
const STATECHANGED = 'object:state-changed';
|
const STATECHANGED = 'object:state-changed';
|
||||||
|
|
||||||
const FocusCaretTracker = new Lang.Class({
|
var FocusCaretTracker = new Lang.Class({
|
||||||
Name: 'FocusCaretTracker',
|
Name: 'FocusCaretTracker',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -46,7 +46,7 @@ function _popGrabHelper(grabHelper) {
|
|||||||
// your code just needs to deal with it; you shouldn't adjust behavior directly
|
// 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
|
// after you call ungrab(), but instead pass an 'onUngrab' callback when you
|
||||||
// call grab().
|
// call grab().
|
||||||
const GrabHelper = new Lang.Class({
|
var GrabHelper = new Lang.Class({
|
||||||
Name: 'GrabHelper',
|
Name: 'GrabHelper',
|
||||||
|
|
||||||
_init: function(owner, params) {
|
_init: function(owner, params) {
|
||||||
|
@ -14,7 +14,7 @@ const MAX_CANDIDATES_PER_PAGE = 16;
|
|||||||
const DEFAULT_INDEX_LABELS = [ '1', '2', '3', '4', '5', '6', '7', '8',
|
const DEFAULT_INDEX_LABELS = [ '1', '2', '3', '4', '5', '6', '7', '8',
|
||||||
'9', '0', 'a', 'b', 'c', 'd', 'e', 'f' ];
|
'9', '0', 'a', 'b', 'c', 'd', 'e', 'f' ];
|
||||||
|
|
||||||
const CandidateArea = new Lang.Class({
|
var CandidateArea = new Lang.Class({
|
||||||
Name: 'CandidateArea',
|
Name: 'CandidateArea',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -128,7 +128,7 @@ const CandidateArea = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(CandidateArea.prototype);
|
Signals.addSignalMethods(CandidateArea.prototype);
|
||||||
|
|
||||||
const CandidatePopup = new Lang.Class({
|
var CandidatePopup = new Lang.Class({
|
||||||
Name: 'CandidatePopup',
|
Name: 'CandidatePopup',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -34,7 +34,7 @@ const AnimationDirection = {
|
|||||||
const APPICON_ANIMATION_OUT_SCALE = 3;
|
const APPICON_ANIMATION_OUT_SCALE = 3;
|
||||||
const APPICON_ANIMATION_OUT_TIME = 0.25;
|
const APPICON_ANIMATION_OUT_TIME = 0.25;
|
||||||
|
|
||||||
const BaseIcon = new Lang.Class({
|
var BaseIcon = new Lang.Class({
|
||||||
Name: 'BaseIcon',
|
Name: 'BaseIcon',
|
||||||
|
|
||||||
_init : function(label, params) {
|
_init : function(label, params) {
|
||||||
@ -240,7 +240,7 @@ function zoomOutActor(actor) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const IconGrid = new Lang.Class({
|
var IconGrid = new Lang.Class({
|
||||||
Name: 'IconGrid',
|
Name: 'IconGrid',
|
||||||
|
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
@ -790,7 +790,7 @@ const IconGrid = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(IconGrid.prototype);
|
Signals.addSignalMethods(IconGrid.prototype);
|
||||||
|
|
||||||
const PaginatedIconGrid = new Lang.Class({
|
var PaginatedIconGrid = new Lang.Class({
|
||||||
Name: 'PaginatedIconGrid',
|
Name: 'PaginatedIconGrid',
|
||||||
Extends: IconGrid,
|
Extends: IconGrid,
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ const KEYBOARD_TYPE = 'keyboard-type';
|
|||||||
const A11Y_APPLICATIONS_SCHEMA = 'org.gnome.desktop.a11y.applications';
|
const A11Y_APPLICATIONS_SCHEMA = 'org.gnome.desktop.a11y.applications';
|
||||||
const SHOW_KEYBOARD = 'screen-keyboard-enabled';
|
const SHOW_KEYBOARD = 'screen-keyboard-enabled';
|
||||||
|
|
||||||
const Key = new Lang.Class({
|
var Key = new Lang.Class({
|
||||||
Name: 'Key',
|
Name: 'Key',
|
||||||
|
|
||||||
_init : function(key) {
|
_init : function(key) {
|
||||||
@ -153,7 +153,7 @@ const Key = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Key.prototype);
|
Signals.addSignalMethods(Key.prototype);
|
||||||
|
|
||||||
const Keyboard = new Lang.Class({
|
var Keyboard = new Lang.Class({
|
||||||
Name: 'Keyboard',
|
Name: 'Keyboard',
|
||||||
|
|
||||||
_init: function () {
|
_init: function () {
|
||||||
@ -731,7 +731,7 @@ const Keyboard = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const KeyboardSource = new Lang.Class({
|
var KeyboardSource = new Lang.Class({
|
||||||
Name: 'KeyboardSource',
|
Name: 'KeyboardSource',
|
||||||
Extends: MessageTray.Source,
|
Extends: MessageTray.Source,
|
||||||
|
|
||||||
@ -752,7 +752,7 @@ const KeyboardSource = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const LocalAdapter = new Lang.Class({
|
var LocalAdapter = new Lang.Class({
|
||||||
Name: 'LocalAdapter',
|
Name: 'LocalAdapter',
|
||||||
Extends: Caribou.XAdapter,
|
Extends: Caribou.XAdapter,
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ function isPopupMetaWindow(actor) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const MonitorConstraint = new Lang.Class({
|
var MonitorConstraint = new Lang.Class({
|
||||||
Name: 'MonitorConstraint',
|
Name: 'MonitorConstraint',
|
||||||
Extends: Clutter.Constraint,
|
Extends: Clutter.Constraint,
|
||||||
Properties: {'primary': GObject.ParamSpec.boolean('primary',
|
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',
|
Name: 'Monitor',
|
||||||
|
|
||||||
_init: function(index, geometry) {
|
_init: function(index, geometry) {
|
||||||
@ -169,7 +169,7 @@ const defaultParams = {
|
|||||||
affectsInputRegion: true
|
affectsInputRegion: true
|
||||||
};
|
};
|
||||||
|
|
||||||
const LayoutManager = new Lang.Class({
|
var LayoutManager = new Lang.Class({
|
||||||
Name: 'LayoutManager',
|
Name: 'LayoutManager',
|
||||||
|
|
||||||
_init: function () {
|
_init: function () {
|
||||||
@ -1045,7 +1045,7 @@ Signals.addSignalMethods(LayoutManager.prototype);
|
|||||||
//
|
//
|
||||||
// This class manages a "hot corner" that can toggle switching to
|
// This class manages a "hot corner" that can toggle switching to
|
||||||
// overview.
|
// overview.
|
||||||
const HotCorner = new Lang.Class({
|
var HotCorner = new Lang.Class({
|
||||||
Name: 'HotCorner',
|
Name: 'HotCorner',
|
||||||
|
|
||||||
_init : function(layoutManager, monitor, x, y) {
|
_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',
|
Name: 'PressureBarrier',
|
||||||
|
|
||||||
_init: function(threshold, timeout, actionMode) {
|
_init: function(threshold, timeout, actionMode) {
|
||||||
|
@ -36,7 +36,7 @@ const TEMP_REVEAL_TIME = 2;
|
|||||||
const BARRIER_THRESHOLD = 70;
|
const BARRIER_THRESHOLD = 70;
|
||||||
const BARRIER_TIMEOUT = 1000;
|
const BARRIER_TIMEOUT = 1000;
|
||||||
|
|
||||||
const LegacyTray = new Lang.Class({
|
var LegacyTray = new Lang.Class({
|
||||||
Name: 'LegacyTray',
|
Name: 'LegacyTray',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -27,7 +27,7 @@ t = clamp(t, 0.0, 1.0);\n\
|
|||||||
float pixel_brightness = mix(1.0, 1.0 - vignette_sharpness, t);\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);';
|
cogl_color_out.a = cogl_color_out.a * (1 - pixel_brightness * brightness);';
|
||||||
|
|
||||||
const RadialShaderQuad = new Lang.Class({
|
var RadialShaderQuad = new Lang.Class({
|
||||||
Name: 'RadialShaderQuad',
|
Name: 'RadialShaderQuad',
|
||||||
Extends: Shell.GLSLQuad,
|
Extends: Shell.GLSLQuad,
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ const RadialShaderQuad = new Lang.Class({
|
|||||||
* @container and will track any changes in its size. You can override
|
* @container and will track any changes in its size. You can override
|
||||||
* this by passing an explicit width and height in @params.
|
* this by passing an explicit width and height in @params.
|
||||||
*/
|
*/
|
||||||
const Lightbox = new Lang.Class({
|
var Lightbox = new Lang.Class({
|
||||||
Name: 'Lightbox',
|
Name: 'Lightbox',
|
||||||
|
|
||||||
_init : function(container, params) {
|
_init : function(container, params) {
|
||||||
|
@ -59,7 +59,7 @@ function _getAutoCompleteGlobalKeywords() {
|
|||||||
return keywords.concat(windowProperties).concat(headerProperties);
|
return keywords.concat(windowProperties).concat(headerProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
const AutoComplete = new Lang.Class({
|
var AutoComplete = new Lang.Class({
|
||||||
Name: 'AutoComplete',
|
Name: 'AutoComplete',
|
||||||
|
|
||||||
_init: function(entry) {
|
_init: function(entry) {
|
||||||
@ -125,7 +125,7 @@ const AutoComplete = new Lang.Class({
|
|||||||
Signals.addSignalMethods(AutoComplete.prototype);
|
Signals.addSignalMethods(AutoComplete.prototype);
|
||||||
|
|
||||||
|
|
||||||
const Notebook = new Lang.Class({
|
var Notebook = new Lang.Class({
|
||||||
Name: 'Notebook',
|
Name: 'Notebook',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -263,7 +263,7 @@ function objectToString(o) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const ObjLink = new Lang.Class({
|
var ObjLink = new Lang.Class({
|
||||||
Name: 'ObjLink',
|
Name: 'ObjLink',
|
||||||
|
|
||||||
_init: function(lookingGlass, o, title) {
|
_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',
|
Name: 'Result',
|
||||||
|
|
||||||
_init: function(lookingGlass, command, o, index) {
|
_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',
|
Name: 'WindowList',
|
||||||
|
|
||||||
_init: function(lookingGlass) {
|
_init: function(lookingGlass) {
|
||||||
@ -361,7 +361,7 @@ const WindowList = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(WindowList.prototype);
|
Signals.addSignalMethods(WindowList.prototype);
|
||||||
|
|
||||||
const ObjInspector = new Lang.Class({
|
var ObjInspector = new Lang.Class({
|
||||||
Name: 'ObjInspector',
|
Name: 'ObjInspector',
|
||||||
|
|
||||||
_init: function(lookingGlass) {
|
_init: function(lookingGlass) {
|
||||||
@ -471,7 +471,7 @@ const ObjInspector = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const RedBorderEffect = new Lang.Class({
|
var RedBorderEffect = new Lang.Class({
|
||||||
Name: 'RedBorderEffect',
|
Name: 'RedBorderEffect',
|
||||||
Extends: Clutter.Effect,
|
Extends: Clutter.Effect,
|
||||||
|
|
||||||
@ -497,7 +497,7 @@ const RedBorderEffect = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const Inspector = new Lang.Class({
|
var Inspector = new Lang.Class({
|
||||||
Name: 'Inspector',
|
Name: 'Inspector',
|
||||||
|
|
||||||
_init: function(lookingGlass) {
|
_init: function(lookingGlass) {
|
||||||
@ -631,7 +631,7 @@ const Inspector = new Lang.Class({
|
|||||||
|
|
||||||
Signals.addSignalMethods(Inspector.prototype);
|
Signals.addSignalMethods(Inspector.prototype);
|
||||||
|
|
||||||
const Extensions = new Lang.Class({
|
var Extensions = new Lang.Class({
|
||||||
Name: 'Extensions',
|
Name: 'Extensions',
|
||||||
|
|
||||||
_init: function(lookingGlass) {
|
_init: function(lookingGlass) {
|
||||||
@ -774,7 +774,7 @@ const Extensions = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const LookingGlass = new Lang.Class({
|
var LookingGlass = new Lang.Class({
|
||||||
Name: 'LookingGlass',
|
Name: 'LookingGlass',
|
||||||
|
|
||||||
_init : function() {
|
_init : function() {
|
||||||
|
@ -54,7 +54,7 @@ const CROSS_HAIRS_CLIP_KEY = 'cross-hairs-clip';
|
|||||||
|
|
||||||
let magDBusService = null;
|
let magDBusService = null;
|
||||||
|
|
||||||
const Magnifier = new Lang.Class({
|
var Magnifier = new Lang.Class({
|
||||||
Name: 'Magnifier',
|
Name: 'Magnifier',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -672,7 +672,7 @@ const Magnifier = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Magnifier.prototype);
|
Signals.addSignalMethods(Magnifier.prototype);
|
||||||
|
|
||||||
const ZoomRegion = new Lang.Class({
|
var ZoomRegion = new Lang.Class({
|
||||||
Name: 'ZoomRegion',
|
Name: 'ZoomRegion',
|
||||||
|
|
||||||
_init: function(magnifier, mouseSourceActor) {
|
_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',
|
Name: 'Crosshairs',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -1781,7 +1781,7 @@ const Crosshairs = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const MagShaderEffects = new Lang.Class({
|
var MagShaderEffects = new Lang.Class({
|
||||||
Name: 'MagShaderEffects',
|
Name: 'MagShaderEffects',
|
||||||
|
|
||||||
_init: function(uiGroupClone) {
|
_init: function(uiGroupClone) {
|
||||||
|
@ -98,7 +98,7 @@ const ZoomRegionIface = '<node> \
|
|||||||
// '/org/gnome/Magnifier/ZoomRegion/zoomer1', etc.
|
// '/org/gnome/Magnifier/ZoomRegion/zoomer1', etc.
|
||||||
let _zoomRegionInstanceCount = 0;
|
let _zoomRegionInstanceCount = 0;
|
||||||
|
|
||||||
const ShellMagnifier = new Lang.Class({
|
var ShellMagnifier = new Lang.Class({
|
||||||
Name: 'ShellMagnifier',
|
Name: 'ShellMagnifier',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -334,7 +334,7 @@ const ShellMagnifier = new Lang.Class({
|
|||||||
* @zoomerObjectPath: String that is the path to a DBus ZoomRegion.
|
* @zoomerObjectPath: String that is the path to a DBus ZoomRegion.
|
||||||
* @zoomRegion: The actual zoom region associated with the object path.
|
* @zoomRegion: The actual zoom region associated with the object path.
|
||||||
*/
|
*/
|
||||||
const ShellMagnifierZoomRegion = new Lang.Class({
|
var ShellMagnifierZoomRegion = new Lang.Class({
|
||||||
Name: 'ShellMagnifierZoomRegion',
|
Name: 'ShellMagnifierZoomRegion',
|
||||||
|
|
||||||
_init: function(zoomerObjectPath, zoomRegion) {
|
_init: function(zoomerObjectPath, zoomRegion) {
|
||||||
|
@ -669,7 +669,7 @@ function queueDeferredWork(workId) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const RestartMessage = new Lang.Class({
|
var RestartMessage = new Lang.Class({
|
||||||
Name: 'RestartMessage',
|
Name: 'RestartMessage',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ function _fixMarkup(text, allowMarkup) {
|
|||||||
return GLib.markup_escape_text(text, -1);
|
return GLib.markup_escape_text(text, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const URLHighlighter = new Lang.Class({
|
var URLHighlighter = new Lang.Class({
|
||||||
Name: 'URLHighlighter',
|
Name: 'URLHighlighter',
|
||||||
|
|
||||||
_init: function(text, lineWrap, allowMarkup) {
|
_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',
|
Name: 'ScaleLayout',
|
||||||
Extends: Clutter.BinLayout,
|
Extends: Clutter.BinLayout,
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ const ScaleLayout = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const LabelExpanderLayout = new Lang.Class({
|
var LabelExpanderLayout = new Lang.Class({
|
||||||
Name: 'LabelExpanderLayout',
|
Name: 'LabelExpanderLayout',
|
||||||
Extends: Clutter.LayoutManager,
|
Extends: Clutter.LayoutManager,
|
||||||
Properties: { 'expansion': GObject.ParamSpec.double('expansion',
|
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',
|
Name: 'Message',
|
||||||
|
|
||||||
_init: function(title, body) {
|
_init: function(title, body) {
|
||||||
@ -524,7 +524,7 @@ const Message = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Message.prototype);
|
Signals.addSignalMethods(Message.prototype);
|
||||||
|
|
||||||
const MessageListSection = new Lang.Class({
|
var MessageListSection = new Lang.Class({
|
||||||
Name: 'MessageListSection',
|
Name: 'MessageListSection',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -69,7 +69,7 @@ const Urgency = {
|
|||||||
CRITICAL: 3
|
CRITICAL: 3
|
||||||
};
|
};
|
||||||
|
|
||||||
const FocusGrabber = new Lang.Class({
|
var FocusGrabber = new Lang.Class({
|
||||||
Name: 'FocusGrabber',
|
Name: 'FocusGrabber',
|
||||||
|
|
||||||
_init: function(actor) {
|
_init: function(actor) {
|
||||||
@ -132,7 +132,7 @@ const FocusGrabber = new Lang.Class({
|
|||||||
// source, such as whether to play sound or honour the critical bit.
|
// source, such as whether to play sound or honour the critical bit.
|
||||||
//
|
//
|
||||||
// A notification without a policy object will inherit the default one.
|
// A notification without a policy object will inherit the default one.
|
||||||
const NotificationPolicy = new Lang.Class({
|
var NotificationPolicy = new Lang.Class({
|
||||||
Name: 'NotificationPolicy',
|
Name: 'NotificationPolicy',
|
||||||
|
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
@ -153,7 +153,7 @@ const NotificationPolicy = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(NotificationPolicy.prototype);
|
Signals.addSignalMethods(NotificationPolicy.prototype);
|
||||||
|
|
||||||
const NotificationGenericPolicy = new Lang.Class({
|
var NotificationGenericPolicy = new Lang.Class({
|
||||||
Name: 'NotificationGenericPolicy',
|
Name: 'NotificationGenericPolicy',
|
||||||
Extends: NotificationPolicy,
|
Extends: NotificationPolicy,
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ const NotificationGenericPolicy = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const NotificationApplicationPolicy = new Lang.Class({
|
var NotificationApplicationPolicy = new Lang.Class({
|
||||||
Name: 'NotificationApplicationPolicy',
|
Name: 'NotificationApplicationPolicy',
|
||||||
Extends: NotificationPolicy,
|
Extends: NotificationPolicy,
|
||||||
|
|
||||||
@ -328,7 +328,7 @@ const NotificationApplicationPolicy = new Lang.Class({
|
|||||||
// If @params contains 'soundName' or 'soundFile', the corresponding
|
// If @params contains 'soundName' or 'soundFile', the corresponding
|
||||||
// event sound is played when the notification is shown (if the policy for
|
// event sound is played when the notification is shown (if the policy for
|
||||||
// @source allows playing sounds).
|
// @source allows playing sounds).
|
||||||
const Notification = new Lang.Class({
|
var Notification = new Lang.Class({
|
||||||
Name: 'Notification',
|
Name: 'Notification',
|
||||||
|
|
||||||
_init: function(source, title, banner, params) {
|
_init: function(source, title, banner, params) {
|
||||||
@ -489,7 +489,7 @@ const Notification = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Notification.prototype);
|
Signals.addSignalMethods(Notification.prototype);
|
||||||
|
|
||||||
const NotificationBanner = new Lang.Class({
|
var NotificationBanner = new Lang.Class({
|
||||||
Name: 'NotificationBanner',
|
Name: 'NotificationBanner',
|
||||||
Extends: Calendar.NotificationMessage,
|
Extends: Calendar.NotificationMessage,
|
||||||
|
|
||||||
@ -585,7 +585,7 @@ const NotificationBanner = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const SourceActor = new Lang.Class({
|
var SourceActor = new Lang.Class({
|
||||||
Name: 'SourceActor',
|
Name: 'SourceActor',
|
||||||
|
|
||||||
_init: function(source, size) {
|
_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',
|
Name: 'SourceActorWithLabel',
|
||||||
Extends: SourceActor,
|
Extends: SourceActor,
|
||||||
|
|
||||||
@ -715,7 +715,7 @@ const SourceActorWithLabel = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const Source = new Lang.Class({
|
var Source = new Lang.Class({
|
||||||
Name: 'MessageTraySource',
|
Name: 'MessageTraySource',
|
||||||
|
|
||||||
SOURCE_ICON_SIZE: 48,
|
SOURCE_ICON_SIZE: 48,
|
||||||
@ -840,7 +840,7 @@ const Source = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(Source.prototype);
|
Signals.addSignalMethods(Source.prototype);
|
||||||
|
|
||||||
const MessageTray = new Lang.Class({
|
var MessageTray = new Lang.Class({
|
||||||
Name: 'MessageTray',
|
Name: 'MessageTray',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -1485,7 +1485,7 @@ const MessageTray = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(MessageTray.prototype);
|
Signals.addSignalMethods(MessageTray.prototype);
|
||||||
|
|
||||||
const SystemNotificationSource = new Lang.Class({
|
var SystemNotificationSource = new Lang.Class({
|
||||||
Name: 'SystemNotificationSource',
|
Name: 'SystemNotificationSource',
|
||||||
Extends: Source,
|
Extends: Source,
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ const State = {
|
|||||||
FADED_OUT: 4
|
FADED_OUT: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
const ModalDialog = new Lang.Class({
|
var ModalDialog = new Lang.Class({
|
||||||
Name: 'ModalDialog',
|
Name: 'ModalDialog',
|
||||||
|
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
|
@ -47,7 +47,7 @@ const MprisPlayerProxy = Gio.DBusProxy.makeProxyWrapper(MprisPlayerIface);
|
|||||||
|
|
||||||
const MPRIS_PLAYER_PREFIX = 'org.mpris.MediaPlayer2.';
|
const MPRIS_PLAYER_PREFIX = 'org.mpris.MediaPlayer2.';
|
||||||
|
|
||||||
const MediaMessage = new Lang.Class({
|
var MediaMessage = new Lang.Class({
|
||||||
Name: 'MediaMessage',
|
Name: 'MediaMessage',
|
||||||
Extends: MessageList.Message,
|
Extends: MessageList.Message,
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ const MediaMessage = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const MprisPlayer = new Lang.Class({
|
var MprisPlayer = new Lang.Class({
|
||||||
Name: 'MprisPlayer',
|
Name: 'MprisPlayer',
|
||||||
|
|
||||||
_init: function(busName) {
|
_init: function(busName) {
|
||||||
@ -226,7 +226,7 @@ const MprisPlayer = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(MprisPlayer.prototype);
|
Signals.addSignalMethods(MprisPlayer.prototype);
|
||||||
|
|
||||||
const MediaSection = new Lang.Class({
|
var MediaSection = new Lang.Class({
|
||||||
Name: 'MediaSection',
|
Name: 'MediaSection',
|
||||||
Extends: MessageList.MessageListSection,
|
Extends: MessageList.MessageListSection,
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ const rewriteRules = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
const FdoNotificationDaemon = new Lang.Class({
|
var FdoNotificationDaemon = new Lang.Class({
|
||||||
Name: 'FdoNotificationDaemon',
|
Name: 'FdoNotificationDaemon',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -459,7 +459,7 @@ const FdoNotificationDaemon = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const FdoNotificationDaemonSource = new Lang.Class({
|
var FdoNotificationDaemonSource = new Lang.Class({
|
||||||
Name: 'FdoNotificationDaemonSource',
|
Name: 'FdoNotificationDaemonSource',
|
||||||
Extends: MessageTray.Source,
|
Extends: MessageTray.Source,
|
||||||
|
|
||||||
@ -586,7 +586,7 @@ const PRIORITY_URGENCY_MAP = {
|
|||||||
urgent: MessageTray.Urgency.CRITICAL
|
urgent: MessageTray.Urgency.CRITICAL
|
||||||
};
|
};
|
||||||
|
|
||||||
const GtkNotificationDaemonNotification = new Lang.Class({
|
var GtkNotificationDaemonNotification = new Lang.Class({
|
||||||
Name: 'GtkNotificationDaemonNotification',
|
Name: 'GtkNotificationDaemonNotification',
|
||||||
Extends: MessageTray.Notification,
|
Extends: MessageTray.Notification,
|
||||||
|
|
||||||
@ -680,7 +680,7 @@ function getPlatformData() {
|
|||||||
|
|
||||||
function InvalidAppError() {}
|
function InvalidAppError() {}
|
||||||
|
|
||||||
const GtkNotificationDaemonAppSource = new Lang.Class({
|
var GtkNotificationDaemonAppSource = new Lang.Class({
|
||||||
Name: 'GtkNotificationDaemonAppSource',
|
Name: 'GtkNotificationDaemonAppSource',
|
||||||
Extends: MessageTray.Source,
|
Extends: MessageTray.Source,
|
||||||
|
|
||||||
@ -787,7 +787,7 @@ const GtkNotificationsIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const GtkNotificationDaemon = new Lang.Class({
|
var GtkNotificationDaemon = new Lang.Class({
|
||||||
Name: 'GtkNotificationDaemon',
|
Name: 'GtkNotificationDaemon',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -885,7 +885,7 @@ const GtkNotificationDaemon = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const NotificationDaemon = new Lang.Class({
|
var NotificationDaemon = new Lang.Class({
|
||||||
Name: 'NotificationDaemon',
|
Name: 'NotificationDaemon',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -11,7 +11,7 @@ const Meta = imports.gi.Meta;
|
|||||||
|
|
||||||
const FADE_TIME = 0.1;
|
const FADE_TIME = 0.1;
|
||||||
|
|
||||||
const OsdMonitorLabel = new Lang.Class({
|
var OsdMonitorLabel = new Lang.Class({
|
||||||
Name: 'OsdMonitorLabel',
|
Name: 'OsdMonitorLabel',
|
||||||
|
|
||||||
_init: function(monitor, label) {
|
_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',
|
Name: 'OsdMonitorLabeler',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -15,7 +15,7 @@ const HIDE_TIMEOUT = 1500;
|
|||||||
const FADE_TIME = 0.1;
|
const FADE_TIME = 0.1;
|
||||||
const LEVEL_ANIMATION_TIME = 0.1;
|
const LEVEL_ANIMATION_TIME = 0.1;
|
||||||
|
|
||||||
const LevelBar = new Lang.Class({
|
var LevelBar = new Lang.Class({
|
||||||
Name: 'LevelBar',
|
Name: 'LevelBar',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -45,7 +45,7 @@ const LevelBar = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const OsdWindowConstraint = new Lang.Class({
|
var OsdWindowConstraint = new Lang.Class({
|
||||||
Name: 'OsdWindowConstraint',
|
Name: 'OsdWindowConstraint',
|
||||||
Extends: Clutter.Constraint,
|
Extends: Clutter.Constraint,
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ const OsdWindowConstraint = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const OsdWindow = new Lang.Class({
|
var OsdWindow = new Lang.Class({
|
||||||
Name: 'OsdWindow',
|
Name: 'OsdWindow',
|
||||||
|
|
||||||
_init: function(monitorIndex) {
|
_init: function(monitorIndex) {
|
||||||
@ -209,7 +209,7 @@ const OsdWindow = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const OsdWindowManager = new Lang.Class({
|
var OsdWindowManager = new Lang.Class({
|
||||||
Name: 'OsdWindowManager',
|
Name: 'OsdWindowManager',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -35,7 +35,7 @@ const DND_WINDOW_SWITCH_TIMEOUT = 750;
|
|||||||
|
|
||||||
const OVERVIEW_ACTIVATION_TIMEOUT = 0.5;
|
const OVERVIEW_ACTIVATION_TIMEOUT = 0.5;
|
||||||
|
|
||||||
const ShellInfo = new Lang.Class({
|
var ShellInfo = new Lang.Class({
|
||||||
Name: 'ShellInfo',
|
Name: 'ShellInfo',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -87,7 +87,7 @@ const ShellInfo = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const Overview = new Lang.Class({
|
var Overview = new Lang.Class({
|
||||||
Name: 'Overview',
|
Name: 'Overview',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -30,7 +30,7 @@ const SlideDirection = {
|
|||||||
RIGHT: 1
|
RIGHT: 1
|
||||||
};
|
};
|
||||||
|
|
||||||
const SlideLayout = new Lang.Class({
|
var SlideLayout = new Lang.Class({
|
||||||
Name: 'SlideLayout',
|
Name: 'SlideLayout',
|
||||||
Extends: Clutter.FixedLayout,
|
Extends: Clutter.FixedLayout,
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ const SlideLayout = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const SlidingControl = new Lang.Class({
|
var SlidingControl = new Lang.Class({
|
||||||
Name: 'SlidingControl',
|
Name: 'SlidingControl',
|
||||||
|
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
@ -238,7 +238,7 @@ const SlidingControl = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ThumbnailsSlider = new Lang.Class({
|
var ThumbnailsSlider = new Lang.Class({
|
||||||
Name: 'ThumbnailsSlider',
|
Name: 'ThumbnailsSlider',
|
||||||
Extends: SlidingControl,
|
Extends: SlidingControl,
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ const ThumbnailsSlider = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const DashSlider = new Lang.Class({
|
var DashSlider = new Lang.Class({
|
||||||
Name: 'DashSlider',
|
Name: 'DashSlider',
|
||||||
Extends: SlidingControl,
|
Extends: SlidingControl,
|
||||||
|
|
||||||
@ -353,7 +353,7 @@ const DashSlider = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const DashSpacer = new Lang.Class({
|
var DashSpacer = new Lang.Class({
|
||||||
Name: 'DashSpacer',
|
Name: 'DashSpacer',
|
||||||
Extends: St.Widget,
|
Extends: St.Widget,
|
||||||
|
|
||||||
@ -391,7 +391,7 @@ const DashSpacer = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ControlsLayout = new Lang.Class({
|
var ControlsLayout = new Lang.Class({
|
||||||
Name: 'ControlsLayout',
|
Name: 'ControlsLayout',
|
||||||
Extends: Clutter.BinLayout,
|
Extends: Clutter.BinLayout,
|
||||||
Signals: { 'allocation-changed': { flags: GObject.SignalFlags.RUN_LAST } },
|
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',
|
Name: 'ControlsManager',
|
||||||
|
|
||||||
_init: function(searchEntry) {
|
_init: function(searchEntry) {
|
||||||
|
@ -30,7 +30,7 @@ const CCW = 1;
|
|||||||
const UP = 0;
|
const UP = 0;
|
||||||
const DOWN = 1;
|
const DOWN = 1;
|
||||||
|
|
||||||
const PadChooser = new Lang.Class({
|
var PadChooser = new Lang.Class({
|
||||||
Name: 'PadChooser',
|
Name: 'PadChooser',
|
||||||
|
|
||||||
_init: function (device, groupDevices) {
|
_init: function (device, groupDevices) {
|
||||||
@ -96,7 +96,7 @@ const PadChooser = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(PadChooser.prototype);
|
Signals.addSignalMethods(PadChooser.prototype);
|
||||||
|
|
||||||
const KeybindingEntry = new Lang.Class({
|
var KeybindingEntry = new Lang.Class({
|
||||||
Name: 'KeybindingEntry',
|
Name: 'KeybindingEntry',
|
||||||
|
|
||||||
_init: function () {
|
_init: function () {
|
||||||
@ -120,7 +120,7 @@ const KeybindingEntry = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(KeybindingEntry.prototype);
|
Signals.addSignalMethods(KeybindingEntry.prototype);
|
||||||
|
|
||||||
const ActionComboBox = new Lang.Class({
|
var ActionComboBox = new Lang.Class({
|
||||||
Name: 'ActionComboBox',
|
Name: 'ActionComboBox',
|
||||||
|
|
||||||
_init: function () {
|
_init: function () {
|
||||||
@ -200,7 +200,7 @@ const ActionComboBox = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(ActionComboBox.prototype);
|
Signals.addSignalMethods(ActionComboBox.prototype);
|
||||||
|
|
||||||
const ActionEditor = new Lang.Class({
|
var ActionEditor = new Lang.Class({
|
||||||
Name: 'ActionEditor',
|
Name: 'ActionEditor',
|
||||||
|
|
||||||
_init: function () {
|
_init: function () {
|
||||||
@ -285,7 +285,7 @@ const ActionEditor = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(ActionEditor.prototype);
|
Signals.addSignalMethods(ActionEditor.prototype);
|
||||||
|
|
||||||
const PadDiagram = new Lang.Class({
|
var PadDiagram = new Lang.Class({
|
||||||
Name: 'PadDiagram',
|
Name: 'PadDiagram',
|
||||||
Extends: St.DrawingArea,
|
Extends: St.DrawingArea,
|
||||||
Properties: { 'left-handed': GObject.ParamSpec.boolean('left-handed',
|
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',
|
Name: 'PadOsd',
|
||||||
|
|
||||||
_init: function (padDevice, settings, imagePath, editionMode, monitorIndex) {
|
_init: function (padDevice, settings, imagePath, editionMode, monitorIndex) {
|
||||||
@ -961,7 +961,7 @@ const PadOsdIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const PadOsdService = new Lang.Class({
|
var PadOsdService = new Lang.Class({
|
||||||
Name: 'PadOsdService',
|
Name: 'PadOsdService',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -83,7 +83,7 @@ function _unpremultiply(color) {
|
|||||||
* this menu also handles startup notification for it. So when we
|
* this menu also handles startup notification for it. So when we
|
||||||
* have an active startup notification, we switch modes to display that.
|
* have an active startup notification, we switch modes to display that.
|
||||||
*/
|
*/
|
||||||
const AppMenuButton = new Lang.Class({
|
var AppMenuButton = new Lang.Class({
|
||||||
Name: 'AppMenuButton',
|
Name: 'AppMenuButton',
|
||||||
Extends: PanelMenu.Button,
|
Extends: PanelMenu.Button,
|
||||||
|
|
||||||
@ -399,7 +399,7 @@ const AppMenuButton = new Lang.Class({
|
|||||||
|
|
||||||
Signals.addSignalMethods(AppMenuButton.prototype);
|
Signals.addSignalMethods(AppMenuButton.prototype);
|
||||||
|
|
||||||
const ActivitiesButton = new Lang.Class({
|
var ActivitiesButton = new Lang.Class({
|
||||||
Name: 'ActivitiesButton',
|
Name: 'ActivitiesButton',
|
||||||
Extends: PanelMenu.Button,
|
Extends: PanelMenu.Button,
|
||||||
|
|
||||||
@ -487,7 +487,7 @@ const ActivitiesButton = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const PanelCorner = new Lang.Class({
|
var PanelCorner = new Lang.Class({
|
||||||
Name: 'PanelCorner',
|
Name: 'PanelCorner',
|
||||||
|
|
||||||
_init: function(side) {
|
_init: function(side) {
|
||||||
@ -654,7 +654,7 @@ const PanelCorner = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AggregateLayout = new Lang.Class({
|
var AggregateLayout = new Lang.Class({
|
||||||
Name: 'AggregateLayout',
|
Name: 'AggregateLayout',
|
||||||
Extends: Clutter.BoxLayout,
|
Extends: Clutter.BoxLayout,
|
||||||
|
|
||||||
@ -687,7 +687,7 @@ const AggregateLayout = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const AggregateMenu = new Lang.Class({
|
var AggregateMenu = new Lang.Class({
|
||||||
Name: 'AggregateMenu',
|
Name: 'AggregateMenu',
|
||||||
Extends: PanelMenu.Button,
|
Extends: PanelMenu.Button,
|
||||||
|
|
||||||
@ -767,7 +767,7 @@ const PANEL_ITEM_IMPLEMENTATIONS = {
|
|||||||
'keyboard': imports.ui.status.keyboard.InputSourceIndicator,
|
'keyboard': imports.ui.status.keyboard.InputSourceIndicator,
|
||||||
};
|
};
|
||||||
|
|
||||||
const Panel = new Lang.Class({
|
var Panel = new Lang.Class({
|
||||||
Name: 'Panel',
|
Name: 'Panel',
|
||||||
|
|
||||||
_init : function() {
|
_init : function() {
|
||||||
|
@ -13,7 +13,7 @@ const Main = imports.ui.main;
|
|||||||
const Params = imports.misc.params;
|
const Params = imports.misc.params;
|
||||||
const PopupMenu = imports.ui.popupMenu;
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
|
|
||||||
const ButtonBox = new Lang.Class({
|
var ButtonBox = new Lang.Class({
|
||||||
Name: 'ButtonBox',
|
Name: 'ButtonBox',
|
||||||
|
|
||||||
_init: function(params) {
|
_init: function(params) {
|
||||||
@ -89,7 +89,7 @@ const ButtonBox = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const Button = new Lang.Class({
|
var Button = new Lang.Class({
|
||||||
Name: 'PanelMenuButton',
|
Name: 'PanelMenuButton',
|
||||||
Extends: ButtonBox,
|
Extends: ButtonBox,
|
||||||
|
|
||||||
@ -203,7 +203,7 @@ Signals.addSignalMethods(Button.prototype);
|
|||||||
* of an icon and a menu section, which will be composed into the
|
* of an icon and a menu section, which will be composed into the
|
||||||
* aggregate menu.
|
* aggregate menu.
|
||||||
*/
|
*/
|
||||||
const SystemIndicator = new Lang.Class({
|
var SystemIndicator = new Lang.Class({
|
||||||
Name: 'SystemIndicator',
|
Name: 'SystemIndicator',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -22,7 +22,7 @@ function getPointerWatcher() {
|
|||||||
return _pointerWatcher;
|
return _pointerWatcher;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PointerWatch = new Lang.Class({
|
var PointerWatch = new Lang.Class({
|
||||||
Name: 'PointerWatch',
|
Name: 'PointerWatch',
|
||||||
|
|
||||||
_init: function(watcher, interval, callback) {
|
_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',
|
Name: 'PointerWatcher',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -58,7 +58,7 @@ function arrowIcon(side) {
|
|||||||
return arrow;
|
return arrow;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PopupBaseMenuItem = new Lang.Class({
|
var PopupBaseMenuItem = new Lang.Class({
|
||||||
Name: 'PopupBaseMenuItem',
|
Name: 'PopupBaseMenuItem',
|
||||||
|
|
||||||
_init: function (params) {
|
_init: function (params) {
|
||||||
@ -236,7 +236,7 @@ const PopupBaseMenuItem = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(PopupBaseMenuItem.prototype);
|
Signals.addSignalMethods(PopupBaseMenuItem.prototype);
|
||||||
|
|
||||||
const PopupMenuItem = new Lang.Class({
|
var PopupMenuItem = new Lang.Class({
|
||||||
Name: 'PopupMenuItem',
|
Name: 'PopupMenuItem',
|
||||||
Extends: PopupBaseMenuItem,
|
Extends: PopupBaseMenuItem,
|
||||||
|
|
||||||
@ -249,7 +249,7 @@ const PopupMenuItem = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const PopupSeparatorMenuItem = new Lang.Class({
|
var PopupSeparatorMenuItem = new Lang.Class({
|
||||||
Name: 'PopupSeparatorMenuItem',
|
Name: 'PopupSeparatorMenuItem',
|
||||||
Extends: PopupBaseMenuItem,
|
Extends: PopupBaseMenuItem,
|
||||||
|
|
||||||
@ -276,7 +276,7 @@ const PopupSeparatorMenuItem = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const Switch = new Lang.Class({
|
var Switch = new Lang.Class({
|
||||||
Name: 'Switch',
|
Name: 'Switch',
|
||||||
|
|
||||||
_init: function(state) {
|
_init: function(state) {
|
||||||
@ -305,7 +305,7 @@ const Switch = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const PopupSwitchMenuItem = new Lang.Class({
|
var PopupSwitchMenuItem = new Lang.Class({
|
||||||
Name: 'PopupSwitchMenuItem',
|
Name: 'PopupSwitchMenuItem',
|
||||||
Extends: PopupBaseMenuItem,
|
Extends: PopupBaseMenuItem,
|
||||||
|
|
||||||
@ -387,7 +387,7 @@ const PopupSwitchMenuItem = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const PopupImageMenuItem = new Lang.Class({
|
var PopupImageMenuItem = new Lang.Class({
|
||||||
Name: 'PopupImageMenuItem',
|
Name: 'PopupImageMenuItem',
|
||||||
Extends: PopupBaseMenuItem,
|
Extends: PopupBaseMenuItem,
|
||||||
|
|
||||||
@ -412,7 +412,7 @@ const PopupImageMenuItem = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const PopupMenuBase = new Lang.Class({
|
var PopupMenuBase = new Lang.Class({
|
||||||
Name: 'PopupMenuBase',
|
Name: 'PopupMenuBase',
|
||||||
Abstract: true,
|
Abstract: true,
|
||||||
|
|
||||||
@ -757,7 +757,7 @@ const PopupMenuBase = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(PopupMenuBase.prototype);
|
Signals.addSignalMethods(PopupMenuBase.prototype);
|
||||||
|
|
||||||
const PopupMenu = new Lang.Class({
|
var PopupMenu = new Lang.Class({
|
||||||
Name: 'PopupMenu',
|
Name: 'PopupMenu',
|
||||||
Extends: PopupMenuBase,
|
Extends: PopupMenuBase,
|
||||||
|
|
||||||
@ -893,7 +893,7 @@ const PopupMenu = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const PopupDummyMenu = new Lang.Class({
|
var PopupDummyMenu = new Lang.Class({
|
||||||
Name: 'PopupDummyMenu',
|
Name: 'PopupDummyMenu',
|
||||||
|
|
||||||
_init: function(sourceActor) {
|
_init: function(sourceActor) {
|
||||||
@ -915,7 +915,7 @@ const PopupDummyMenu = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(PopupDummyMenu.prototype);
|
Signals.addSignalMethods(PopupDummyMenu.prototype);
|
||||||
|
|
||||||
const PopupSubMenu = new Lang.Class({
|
var PopupSubMenu = new Lang.Class({
|
||||||
Name: 'PopupSubMenu',
|
Name: 'PopupSubMenu',
|
||||||
Extends: PopupMenuBase,
|
Extends: PopupMenuBase,
|
||||||
|
|
||||||
@ -1063,7 +1063,7 @@ const PopupSubMenu = new Lang.Class({
|
|||||||
* can add it to another menu), but is completely transparent
|
* can add it to another menu), but is completely transparent
|
||||||
* to the user
|
* to the user
|
||||||
*/
|
*/
|
||||||
const PopupMenuSection = new Lang.Class({
|
var PopupMenuSection = new Lang.Class({
|
||||||
Name: 'PopupMenuSection',
|
Name: 'PopupMenuSection',
|
||||||
Extends: PopupMenuBase,
|
Extends: PopupMenuBase,
|
||||||
|
|
||||||
@ -1081,7 +1081,7 @@ const PopupMenuSection = new Lang.Class({
|
|||||||
close: function() { this.emit('open-state-changed', false); },
|
close: function() { this.emit('open-state-changed', false); },
|
||||||
});
|
});
|
||||||
|
|
||||||
const PopupSubMenuMenuItem = new Lang.Class({
|
var PopupSubMenuMenuItem = new Lang.Class({
|
||||||
Name: 'PopupSubMenuMenuItem',
|
Name: 'PopupSubMenuMenuItem',
|
||||||
Extends: PopupBaseMenuItem,
|
Extends: PopupBaseMenuItem,
|
||||||
|
|
||||||
@ -1206,7 +1206,7 @@ const PopupSubMenuMenuItem = new Lang.Class({
|
|||||||
/* Basic implementation of a menu manager.
|
/* Basic implementation of a menu manager.
|
||||||
* Call addMenu to add menus
|
* Call addMenu to add menus
|
||||||
*/
|
*/
|
||||||
const PopupMenuManager = new Lang.Class({
|
var PopupMenuManager = new Lang.Class({
|
||||||
Name: 'PopupMenuManager',
|
Name: 'PopupMenuManager',
|
||||||
|
|
||||||
_init: function(owner, grabParams) {
|
_init: function(owner, grabParams) {
|
||||||
|
@ -38,7 +38,7 @@ function _removeItem(menu, position) {
|
|||||||
items[position].destroy();
|
items[position].destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
const RemoteMenuSeparatorItemMapper = new Lang.Class({
|
var RemoteMenuSeparatorItemMapper = new Lang.Class({
|
||||||
Name: 'RemoteMenuSeparatorItemMapper',
|
Name: 'RemoteMenuSeparatorItemMapper',
|
||||||
|
|
||||||
_init: function(trackerItem) {
|
_init: function(trackerItem) {
|
||||||
@ -57,7 +57,7 @@ const RemoteMenuSeparatorItemMapper = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const RequestSubMenu = new Lang.Class({
|
var RequestSubMenu = new Lang.Class({
|
||||||
Name: 'RequestSubMenu',
|
Name: 'RequestSubMenu',
|
||||||
Extends: PopupMenu.PopupSubMenuMenuItem,
|
Extends: PopupMenu.PopupSubMenuMenuItem,
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ const RequestSubMenu = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const RemoteMenuSubmenuItemMapper = new Lang.Class({
|
var RemoteMenuSubmenuItemMapper = new Lang.Class({
|
||||||
Name: 'RemoteMenuSubmenuItemMapper',
|
Name: 'RemoteMenuSubmenuItemMapper',
|
||||||
|
|
||||||
_init: function(trackerItem) {
|
_init: function(trackerItem) {
|
||||||
@ -112,7 +112,7 @@ const RemoteMenuSubmenuItemMapper = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const RemoteMenuItemMapper = new Lang.Class({
|
var RemoteMenuItemMapper = new Lang.Class({
|
||||||
Name: 'RemoteMenuItemMapper',
|
Name: 'RemoteMenuItemMapper',
|
||||||
|
|
||||||
_init: function(trackerItem) {
|
_init: function(trackerItem) {
|
||||||
@ -176,7 +176,7 @@ const RemoteMenuItemMapper = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const RemoteMenu = new Lang.Class({
|
var RemoteMenu = new Lang.Class({
|
||||||
Name: 'RemoteMenu',
|
Name: 'RemoteMenu',
|
||||||
Extends: PopupMenu.PopupMenu,
|
Extends: PopupMenu.PopupMenu,
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ function loadRemoteSearchProviders(searchSettings, callback) {
|
|||||||
callback(loadedProviders);
|
callback(loadedProviders);
|
||||||
}
|
}
|
||||||
|
|
||||||
const RemoteSearchProvider = new Lang.Class({
|
var RemoteSearchProvider = new Lang.Class({
|
||||||
Name: 'RemoteSearchProvider',
|
Name: 'RemoteSearchProvider',
|
||||||
|
|
||||||
_init: function(appInfo, dbusName, dbusPath, proxyInfo) {
|
_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',
|
Name: 'RemoteSearchProvider2',
|
||||||
Extends: RemoteSearchProvider,
|
Extends: RemoteSearchProvider,
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ const EXEC_ARG_KEY = 'exec-arg';
|
|||||||
|
|
||||||
const DIALOG_GROW_TIME = 0.1;
|
const DIALOG_GROW_TIME = 0.1;
|
||||||
|
|
||||||
const RunDialog = new Lang.Class({
|
var RunDialog = new Lang.Class({
|
||||||
Name: 'RunDialog',
|
Name: 'RunDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ const MANUAL_FADE_TIME = 0.3;
|
|||||||
const BACKGROUND_FADE_TIME = 1.0;
|
const BACKGROUND_FADE_TIME = 1.0;
|
||||||
const CURTAIN_SLIDE_TIME = 0.3;
|
const CURTAIN_SLIDE_TIME = 0.3;
|
||||||
|
|
||||||
const Clock = new Lang.Class({
|
var Clock = new Lang.Class({
|
||||||
Name: 'ScreenShieldClock',
|
Name: 'ScreenShieldClock',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -95,7 +95,7 @@ const Clock = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const NotificationsBox = new Lang.Class({
|
var NotificationsBox = new Lang.Class({
|
||||||
Name: 'NotificationsBox',
|
Name: 'NotificationsBox',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -345,7 +345,7 @@ const NotificationsBox = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(NotificationsBox.prototype);
|
Signals.addSignalMethods(NotificationsBox.prototype);
|
||||||
|
|
||||||
const Arrow = new Lang.Class({
|
var Arrow = new Lang.Class({
|
||||||
Name: 'Arrow',
|
Name: 'Arrow',
|
||||||
Extends: St.Bin,
|
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.
|
* 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.
|
* https://bugzilla.gnome.org/show_bug.cgi?id=668703 explains the dependency.
|
||||||
*/
|
*/
|
||||||
const ScreenShield = new Lang.Class({
|
var ScreenShield = new Lang.Class({
|
||||||
Name: 'ScreenShield',
|
Name: 'ScreenShield',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -32,7 +32,7 @@ const ScreencastIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const ScreencastService = new Lang.Class({
|
var ScreencastService = new Lang.Class({
|
||||||
Name: 'ScreencastService',
|
Name: 'ScreencastService',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -58,7 +58,7 @@ const ScreenshotIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const ScreenshotService = new Lang.Class({
|
var ScreenshotService = new Lang.Class({
|
||||||
Name: 'ScreenshotService',
|
Name: 'ScreenshotService',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -213,7 +213,7 @@ const ScreenshotService = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const SelectArea = new Lang.Class({
|
var SelectArea = new Lang.Class({
|
||||||
Name: 'SelectArea',
|
Name: 'SelectArea',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -340,7 +340,7 @@ Signals.addSignalMethods(SelectArea.prototype);
|
|||||||
|
|
||||||
const FLASHSPOT_ANIMATION_OUT_TIME = 0.5; // seconds
|
const FLASHSPOT_ANIMATION_OUT_TIME = 0.5; // seconds
|
||||||
|
|
||||||
const Flashspot = new Lang.Class({
|
var Flashspot = new Lang.Class({
|
||||||
Name: 'Flashspot',
|
Name: 'Flashspot',
|
||||||
Extends: Lightbox.Lightbox,
|
Extends: Lightbox.Lightbox,
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ const SEARCH_PROVIDERS_SCHEMA = 'org.gnome.desktop.search-providers';
|
|||||||
const MAX_LIST_SEARCH_RESULTS_ROWS = 5;
|
const MAX_LIST_SEARCH_RESULTS_ROWS = 5;
|
||||||
const MAX_GRID_SEARCH_RESULTS_ROWS = 1;
|
const MAX_GRID_SEARCH_RESULTS_ROWS = 1;
|
||||||
|
|
||||||
const MaxWidthBin = new Lang.Class({
|
var MaxWidthBin = new Lang.Class({
|
||||||
Name: 'MaxWidthBin',
|
Name: 'MaxWidthBin',
|
||||||
Extends: St.Bin,
|
Extends: St.Bin,
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ const MaxWidthBin = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const SearchResult = new Lang.Class({
|
var SearchResult = new Lang.Class({
|
||||||
Name: 'SearchResult',
|
Name: 'SearchResult',
|
||||||
|
|
||||||
_init: function(provider, metaInfo, resultsView) {
|
_init: function(provider, metaInfo, resultsView) {
|
||||||
@ -68,7 +68,7 @@ const SearchResult = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(SearchResult.prototype);
|
Signals.addSignalMethods(SearchResult.prototype);
|
||||||
|
|
||||||
const ListSearchResult = new Lang.Class({
|
var ListSearchResult = new Lang.Class({
|
||||||
Name: 'ListSearchResult',
|
Name: 'ListSearchResult',
|
||||||
Extends: SearchResult,
|
Extends: SearchResult,
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ const ListSearchResult = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const GridSearchResult = new Lang.Class({
|
var GridSearchResult = new Lang.Class({
|
||||||
Name: 'GridSearchResult',
|
Name: 'GridSearchResult',
|
||||||
Extends: SearchResult,
|
Extends: SearchResult,
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ const GridSearchResult = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const SearchResultsBase = new Lang.Class({
|
var SearchResultsBase = new Lang.Class({
|
||||||
Name: 'SearchResultsBase',
|
Name: 'SearchResultsBase',
|
||||||
|
|
||||||
_init: function(provider, resultsView) {
|
_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',
|
Name: 'ListSearchResults',
|
||||||
Extends: SearchResultsBase,
|
Extends: SearchResultsBase,
|
||||||
|
|
||||||
@ -344,7 +344,7 @@ const ListSearchResults = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(ListSearchResults.prototype);
|
Signals.addSignalMethods(ListSearchResults.prototype);
|
||||||
|
|
||||||
const GridSearchResults = new Lang.Class({
|
var GridSearchResults = new Lang.Class({
|
||||||
Name: 'GridSearchResults',
|
Name: 'GridSearchResults',
|
||||||
Extends: SearchResultsBase,
|
Extends: SearchResultsBase,
|
||||||
|
|
||||||
@ -393,7 +393,7 @@ const GridSearchResults = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(GridSearchResults.prototype);
|
Signals.addSignalMethods(GridSearchResults.prototype);
|
||||||
|
|
||||||
const SearchResults = new Lang.Class({
|
var SearchResults = new Lang.Class({
|
||||||
Name: 'SearchResults',
|
Name: 'SearchResults',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -719,7 +719,7 @@ const SearchResults = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(SearchResults.prototype);
|
Signals.addSignalMethods(SearchResults.prototype);
|
||||||
|
|
||||||
const ProviderInfo = new Lang.Class({
|
var ProviderInfo = new Lang.Class({
|
||||||
Name: 'ProviderInfo',
|
Name: 'ProviderInfo',
|
||||||
Extends: St.Button,
|
Extends: St.Button,
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ function listModes() {
|
|||||||
Mainloop.run('listModes');
|
Mainloop.run('listModes');
|
||||||
}
|
}
|
||||||
|
|
||||||
const SessionMode = new Lang.Class({
|
var SessionMode = new Lang.Class({
|
||||||
Name: 'SessionMode',
|
Name: 'SessionMode',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -79,7 +79,7 @@ const ScreenSaverIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const GnomeShell = new Lang.Class({
|
var GnomeShell = new Lang.Class({
|
||||||
Name: 'GnomeShellDBus',
|
Name: 'GnomeShellDBus',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -326,7 +326,7 @@ const GnomeShellExtensionsIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const GnomeShellExtensions = new Lang.Class({
|
var GnomeShellExtensions = new Lang.Class({
|
||||||
Name: 'GnomeShellExtensionsDBus',
|
Name: 'GnomeShellExtensionsDBus',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -432,7 +432,7 @@ const GnomeShellExtensions = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ScreenSaverDBus = new Lang.Class({
|
var ScreenSaverDBus = new Lang.Class({
|
||||||
Name: 'ScreenSaverDBus',
|
Name: 'ScreenSaverDBus',
|
||||||
|
|
||||||
_init: function(screenShield) {
|
_init: function(screenShield) {
|
||||||
|
@ -10,7 +10,7 @@ const Main = imports.ui.main;
|
|||||||
const Params = imports.misc.params;
|
const Params = imports.misc.params;
|
||||||
const PopupMenu = imports.ui.popupMenu;
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
|
|
||||||
const EntryMenu = new Lang.Class({
|
var EntryMenu = new Lang.Class({
|
||||||
Name: 'ShellEntryMenu',
|
Name: 'ShellEntryMenu',
|
||||||
Extends: PopupMenu.PopupMenu,
|
Extends: PopupMenu.PopupMenu,
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ function _createIcon(gicon) {
|
|||||||
|
|
||||||
/* -------------------------------------------------------- */
|
/* -------------------------------------------------------- */
|
||||||
|
|
||||||
const ListItem = new Lang.Class({
|
var ListItem = new Lang.Class({
|
||||||
Name: 'ListItem',
|
Name: 'ListItem',
|
||||||
|
|
||||||
_init: function(app) {
|
_init: function(app) {
|
||||||
@ -98,7 +98,7 @@ const ListItem = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(ListItem.prototype);
|
Signals.addSignalMethods(ListItem.prototype);
|
||||||
|
|
||||||
const ShellMountOperation = new Lang.Class({
|
var ShellMountOperation = new Lang.Class({
|
||||||
Name: 'ShellMountOperation',
|
Name: 'ShellMountOperation',
|
||||||
|
|
||||||
_init: function(source, params) {
|
_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',
|
Name: 'ShellUnmountNotifier',
|
||||||
Extends: MessageTray.Source,
|
Extends: MessageTray.Source,
|
||||||
|
|
||||||
@ -277,7 +277,7 @@ const ShellUnmountNotifier = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ShellMountQuestionDialog = new Lang.Class({
|
var ShellMountQuestionDialog = new Lang.Class({
|
||||||
Name: 'ShellMountQuestionDialog',
|
Name: 'ShellMountQuestionDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
@ -295,7 +295,7 @@ const ShellMountQuestionDialog = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(ShellMountQuestionDialog.prototype);
|
Signals.addSignalMethods(ShellMountQuestionDialog.prototype);
|
||||||
|
|
||||||
const ShellMountPasswordDialog = new Lang.Class({
|
var ShellMountPasswordDialog = new Lang.Class({
|
||||||
Name: 'ShellMountPasswordDialog',
|
Name: 'ShellMountPasswordDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
@ -376,7 +376,7 @@ const ShellMountPasswordDialog = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ShellProcessesDialog = new Lang.Class({
|
var ShellProcessesDialog = new Lang.Class({
|
||||||
Name: 'ShellProcessesDialog',
|
Name: 'ShellProcessesDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
@ -480,7 +480,7 @@ const ShellMountOperationType = {
|
|||||||
SHOW_PROCESSES: 3
|
SHOW_PROCESSES: 3
|
||||||
};
|
};
|
||||||
|
|
||||||
const GnomeShellMountOpHandler = new Lang.Class({
|
var GnomeShellMountOpHandler = new Lang.Class({
|
||||||
Name: 'GnomeShellMountOpHandler',
|
Name: 'GnomeShellMountOpHandler',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
|
@ -9,7 +9,7 @@ const Signals = imports.signals;
|
|||||||
|
|
||||||
const SLIDER_SCROLL_STEP = 0.02; /* Slider scrolling step in % */
|
const SLIDER_SCROLL_STEP = 0.02; /* Slider scrolling step in % */
|
||||||
|
|
||||||
const Slider = new Lang.Class({
|
var Slider = new Lang.Class({
|
||||||
Name: "Slider",
|
Name: "Slider",
|
||||||
|
|
||||||
_init: function(value) {
|
_init: function(value) {
|
||||||
|
@ -34,7 +34,7 @@ const KEY_TEXT_SCALING_FACTOR = 'text-scaling-factor';
|
|||||||
|
|
||||||
const HIGH_CONTRAST_THEME = 'HighContrast';
|
const HIGH_CONTRAST_THEME = 'HighContrast';
|
||||||
|
|
||||||
const ATIndicator = new Lang.Class({
|
var ATIndicator = new Lang.Class({
|
||||||
Name: 'ATIndicator',
|
Name: 'ATIndicator',
|
||||||
Extends: PanelMenu.Button,
|
Extends: PanelMenu.Button,
|
||||||
|
|
||||||
@ -213,7 +213,7 @@ const ATIndicator = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ATGreeterIndicator = new Lang.Class({
|
var ATGreeterIndicator = new Lang.Class({
|
||||||
Name: 'ATGreeterIndicator',
|
Name: 'ATGreeterIndicator',
|
||||||
Extends: ATIndicator,
|
Extends: ATIndicator,
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ const RfkillManagerProxy = Gio.DBusProxy.makeProxyWrapper(RfkillManagerInterface
|
|||||||
|
|
||||||
const HAD_BLUETOOTH_DEVICES_SETUP = 'had-bluetooth-devices-setup';
|
const HAD_BLUETOOTH_DEVICES_SETUP = 'had-bluetooth-devices-setup';
|
||||||
|
|
||||||
const Indicator = new Lang.Class({
|
var Indicator = new Lang.Class({
|
||||||
Name: 'BTIndicator',
|
Name: 'BTIndicator',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ const BrightnessInterface = '<node> \
|
|||||||
|
|
||||||
const BrightnessProxy = Gio.DBusProxy.makeProxyWrapper(BrightnessInterface);
|
const BrightnessProxy = Gio.DBusProxy.makeProxyWrapper(BrightnessInterface);
|
||||||
|
|
||||||
const Indicator = new Lang.Class({
|
var Indicator = new Lang.Class({
|
||||||
Name: 'BrightnessIndicator',
|
Name: 'BrightnessIndicator',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ const Util = imports.misc.util;
|
|||||||
const INPUT_SOURCE_TYPE_XKB = 'xkb';
|
const INPUT_SOURCE_TYPE_XKB = 'xkb';
|
||||||
const INPUT_SOURCE_TYPE_IBUS = 'ibus';
|
const INPUT_SOURCE_TYPE_IBUS = 'ibus';
|
||||||
|
|
||||||
const LayoutMenuItem = new Lang.Class({
|
var LayoutMenuItem = new Lang.Class({
|
||||||
Name: 'LayoutMenuItem',
|
Name: 'LayoutMenuItem',
|
||||||
Extends: PopupMenu.PopupBaseMenuItem,
|
Extends: PopupMenu.PopupBaseMenuItem,
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ const LayoutMenuItem = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const InputSource = new Lang.Class({
|
var InputSource = new Lang.Class({
|
||||||
Name: 'InputSource',
|
Name: 'InputSource',
|
||||||
|
|
||||||
_init: function(type, id, displayName, shortName, index) {
|
_init: function(type, id, displayName, shortName, index) {
|
||||||
@ -78,7 +78,7 @@ const InputSource = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(InputSource.prototype);
|
Signals.addSignalMethods(InputSource.prototype);
|
||||||
|
|
||||||
const InputSourcePopup = new Lang.Class({
|
var InputSourcePopup = new Lang.Class({
|
||||||
Name: 'InputSourcePopup',
|
Name: 'InputSourcePopup',
|
||||||
Extends: SwitcherPopup.SwitcherPopup,
|
Extends: SwitcherPopup.SwitcherPopup,
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ const InputSourcePopup = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const InputSourceSwitcher = new Lang.Class({
|
var InputSourceSwitcher = new Lang.Class({
|
||||||
Name: 'InputSourceSwitcher',
|
Name: 'InputSourceSwitcher',
|
||||||
Extends: SwitcherPopup.SwitcherList,
|
Extends: SwitcherPopup.SwitcherList,
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ const InputSourceSwitcher = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const InputSourceSettings = new Lang.Class({
|
var InputSourceSettings = new Lang.Class({
|
||||||
Name: 'InputSourceSettings',
|
Name: 'InputSourceSettings',
|
||||||
Abstract: true,
|
Abstract: true,
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ const InputSourceSettings = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(InputSourceSettings.prototype);
|
Signals.addSignalMethods(InputSourceSettings.prototype);
|
||||||
|
|
||||||
const InputSourceSystemSettings = new Lang.Class({
|
var InputSourceSystemSettings = new Lang.Class({
|
||||||
Name: 'InputSourceSystemSettings',
|
Name: 'InputSourceSystemSettings',
|
||||||
Extends: InputSourceSettings,
|
Extends: InputSourceSettings,
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ const InputSourceSystemSettings = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const InputSourceSessionSettings = new Lang.Class({
|
var InputSourceSessionSettings = new Lang.Class({
|
||||||
Name: 'InputSourceSessionSettings',
|
Name: 'InputSourceSessionSettings',
|
||||||
Extends: InputSourceSettings,
|
Extends: InputSourceSettings,
|
||||||
|
|
||||||
@ -304,7 +304,7 @@ const InputSourceSessionSettings = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const InputSourceManager = new Lang.Class({
|
var InputSourceManager = new Lang.Class({
|
||||||
Name: 'InputSourceManager',
|
Name: 'InputSourceManager',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -774,7 +774,7 @@ function getInputSourceManager() {
|
|||||||
return _inputSourceManager;
|
return _inputSourceManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
const InputSourceIndicator = new Lang.Class({
|
var InputSourceIndicator = new Lang.Class({
|
||||||
Name: 'InputSourceIndicator',
|
Name: 'InputSourceIndicator',
|
||||||
Extends: PanelMenu.Button,
|
Extends: PanelMenu.Button,
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ var AgentIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const Indicator = new Lang.Class({
|
var Indicator = new Lang.Class({
|
||||||
Name: 'LocationIndicator',
|
Name: 'LocationIndicator',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ function clamp(value, min, max) {
|
|||||||
return Math.max(min, Math.min(max, value));
|
return Math.max(min, Math.min(max, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
const AppAuthorizer = new Lang.Class({
|
var AppAuthorizer = new Lang.Class({
|
||||||
Name: 'LocationAppAuthorizer',
|
Name: 'LocationAppAuthorizer',
|
||||||
|
|
||||||
_init: function(desktopId,
|
_init: function(desktopId,
|
||||||
@ -374,7 +374,7 @@ const AppAuthorizer = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const GeolocationDialog = new Lang.Class({
|
var GeolocationDialog = new Lang.Class({
|
||||||
Name: 'GeolocationDialog',
|
Name: 'GeolocationDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ function createSettingsAction(label, device) {
|
|||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
const NMConnectionItem = new Lang.Class({
|
var NMConnectionItem = new Lang.Class({
|
||||||
Name: 'NMConnectionItem',
|
Name: 'NMConnectionItem',
|
||||||
|
|
||||||
_init: function(section, connection) {
|
_init: function(section, connection) {
|
||||||
@ -220,7 +220,7 @@ const NMConnectionItem = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(NMConnectionItem.prototype);
|
Signals.addSignalMethods(NMConnectionItem.prototype);
|
||||||
|
|
||||||
const NMConnectionSection = new Lang.Class({
|
var NMConnectionSection = new Lang.Class({
|
||||||
Name: 'NMConnectionSection',
|
Name: 'NMConnectionSection',
|
||||||
Abstract: true,
|
Abstract: true,
|
||||||
|
|
||||||
@ -352,7 +352,7 @@ const NMConnectionSection = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(NMConnectionSection.prototype);
|
Signals.addSignalMethods(NMConnectionSection.prototype);
|
||||||
|
|
||||||
const NMConnectionDevice = new Lang.Class({
|
var NMConnectionDevice = new Lang.Class({
|
||||||
Name: 'NMConnectionDevice',
|
Name: 'NMConnectionDevice',
|
||||||
Extends: NMConnectionSection,
|
Extends: NMConnectionSection,
|
||||||
Abstract: true,
|
Abstract: true,
|
||||||
@ -506,7 +506,7 @@ const NMConnectionDevice = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const NMDeviceWired = new Lang.Class({
|
var NMDeviceWired = new Lang.Class({
|
||||||
Name: 'NMDeviceWired',
|
Name: 'NMDeviceWired',
|
||||||
Extends: NMConnectionDevice,
|
Extends: NMConnectionDevice,
|
||||||
category: NMConnectionCategory.WIRED,
|
category: NMConnectionCategory.WIRED,
|
||||||
@ -548,7 +548,7 @@ const NMDeviceWired = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const NMDeviceModem = new Lang.Class({
|
var NMDeviceModem = new Lang.Class({
|
||||||
Name: 'NMDeviceModem',
|
Name: 'NMDeviceModem',
|
||||||
Extends: NMConnectionDevice,
|
Extends: NMConnectionDevice,
|
||||||
category: NMConnectionCategory.WWAN,
|
category: NMConnectionCategory.WWAN,
|
||||||
@ -627,7 +627,7 @@ const NMDeviceModem = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const NMDeviceBluetooth = new Lang.Class({
|
var NMDeviceBluetooth = new Lang.Class({
|
||||||
Name: 'NMDeviceBluetooth',
|
Name: 'NMDeviceBluetooth',
|
||||||
Extends: NMConnectionDevice,
|
Extends: NMConnectionDevice,
|
||||||
category: NMConnectionCategory.WWAN,
|
category: NMConnectionCategory.WWAN,
|
||||||
@ -661,7 +661,7 @@ const NMDeviceBluetooth = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const NMWirelessDialogItem = new Lang.Class({
|
var NMWirelessDialogItem = new Lang.Class({
|
||||||
Name: 'NMWirelessDialogItem',
|
Name: 'NMWirelessDialogItem',
|
||||||
|
|
||||||
_init: function(network) {
|
_init: function(network) {
|
||||||
@ -726,7 +726,7 @@ const NMWirelessDialogItem = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(NMWirelessDialogItem.prototype);
|
Signals.addSignalMethods(NMWirelessDialogItem.prototype);
|
||||||
|
|
||||||
const NMWirelessDialog = new Lang.Class({
|
var NMWirelessDialog = new Lang.Class({
|
||||||
Name: 'NMWirelessDialog',
|
Name: 'NMWirelessDialog',
|
||||||
Extends: ModalDialog.ModalDialog,
|
Extends: ModalDialog.ModalDialog,
|
||||||
|
|
||||||
@ -1187,7 +1187,7 @@ const NMWirelessDialog = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const NMDeviceWireless = new Lang.Class({
|
var NMDeviceWireless = new Lang.Class({
|
||||||
Name: 'NMDeviceWireless',
|
Name: 'NMDeviceWireless',
|
||||||
category: NMConnectionCategory.WIRELESS,
|
category: NMConnectionCategory.WIRELESS,
|
||||||
|
|
||||||
@ -1405,7 +1405,7 @@ const NMDeviceWireless = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(NMDeviceWireless.prototype);
|
Signals.addSignalMethods(NMDeviceWireless.prototype);
|
||||||
|
|
||||||
const NMVPNConnectionItem = new Lang.Class({
|
var NMVPNConnectionItem = new Lang.Class({
|
||||||
Name: 'NMVPNConnectionItem',
|
Name: 'NMVPNConnectionItem',
|
||||||
Extends: NMConnectionItem,
|
Extends: NMConnectionItem,
|
||||||
|
|
||||||
@ -1494,7 +1494,7 @@ const NMVPNConnectionItem = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const NMVPNSection = new Lang.Class({
|
var NMVPNSection = new Lang.Class({
|
||||||
Name: 'NMVPNSection',
|
Name: 'NMVPNSection',
|
||||||
Extends: NMConnectionSection,
|
Extends: NMConnectionSection,
|
||||||
category: NMConnectionCategory.VPN,
|
category: NMConnectionCategory.VPN,
|
||||||
@ -1589,7 +1589,7 @@ const NMVPNSection = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(NMVPNSection.prototype);
|
Signals.addSignalMethods(NMVPNSection.prototype);
|
||||||
|
|
||||||
const DeviceCategory = new Lang.Class({
|
var DeviceCategory = new Lang.Class({
|
||||||
Name: 'DeviceCategory',
|
Name: 'DeviceCategory',
|
||||||
Extends: PopupMenu.PopupMenuSection,
|
Extends: PopupMenu.PopupMenuSection,
|
||||||
|
|
||||||
@ -1656,7 +1656,7 @@ const DeviceCategory = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const NMApplet = new Lang.Class({
|
var NMApplet = new Lang.Class({
|
||||||
Name: 'NMApplet',
|
Name: 'NMApplet',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ const ColorInterface = '<node> \
|
|||||||
|
|
||||||
const ColorProxy = Gio.DBusProxy.makeProxyWrapper(ColorInterface);
|
const ColorProxy = Gio.DBusProxy.makeProxyWrapper(ColorInterface);
|
||||||
|
|
||||||
const Indicator = new Lang.Class({
|
var Indicator = new Lang.Class({
|
||||||
Name: 'NightLightIndicator',
|
Name: 'NightLightIndicator',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ const PowerManagerProxy = Gio.DBusProxy.makeProxyWrapper(DisplayDeviceInterface)
|
|||||||
|
|
||||||
const SHOW_BATTERY_PERCENTAGE = 'show-battery-percentage';
|
const SHOW_BATTERY_PERCENTAGE = 'show-battery-percentage';
|
||||||
|
|
||||||
const Indicator = new Lang.Class({
|
var Indicator = new Lang.Class({
|
||||||
Name: 'PowerIndicator',
|
Name: 'PowerIndicator',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ const RfkillManagerInterface = '<node> \
|
|||||||
|
|
||||||
const RfkillManagerProxy = Gio.DBusProxy.makeProxyWrapper(RfkillManagerInterface);
|
const RfkillManagerProxy = Gio.DBusProxy.makeProxyWrapper(RfkillManagerInterface);
|
||||||
|
|
||||||
const RfkillManager = new Lang.Class({
|
var RfkillManager = new Lang.Class({
|
||||||
Name: 'RfkillManager',
|
Name: 'RfkillManager',
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
@ -68,7 +68,7 @@ function getRfkillManager() {
|
|||||||
return _manager;
|
return _manager;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Indicator = new Lang.Class({
|
var Indicator = new Lang.Class({
|
||||||
Name: 'RfkillIndicator',
|
Name: 'RfkillIndicator',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ const Lang = imports.lang;
|
|||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const PanelMenu = imports.ui.panelMenu;
|
const PanelMenu = imports.ui.panelMenu;
|
||||||
|
|
||||||
const Indicator = new Lang.Class({
|
var Indicator = new Lang.Class({
|
||||||
Name: 'ScreencastIndicator',
|
Name: 'ScreencastIndicator',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ const SensorProxyInterface = '<node> \
|
|||||||
|
|
||||||
const SensorProxy = Gio.DBusProxy.makeProxyWrapper(SensorProxyInterface);
|
const SensorProxy = Gio.DBusProxy.makeProxyWrapper(SensorProxyInterface);
|
||||||
|
|
||||||
const AltSwitcher = new Lang.Class({
|
var AltSwitcher = new Lang.Class({
|
||||||
Name: 'AltSwitcher',
|
Name: 'AltSwitcher',
|
||||||
|
|
||||||
_init: function(standard, alternate) {
|
_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',
|
Name: 'SystemIndicator',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ function getMixerControl() {
|
|||||||
return _mixerControl;
|
return _mixerControl;
|
||||||
}
|
}
|
||||||
|
|
||||||
const StreamSlider = new Lang.Class({
|
var StreamSlider = new Lang.Class({
|
||||||
Name: 'StreamSlider',
|
Name: 'StreamSlider',
|
||||||
|
|
||||||
_init: function(control) {
|
_init: function(control) {
|
||||||
@ -161,7 +161,7 @@ const StreamSlider = new Lang.Class({
|
|||||||
});
|
});
|
||||||
Signals.addSignalMethods(StreamSlider.prototype);
|
Signals.addSignalMethods(StreamSlider.prototype);
|
||||||
|
|
||||||
const OutputStreamSlider = new Lang.Class({
|
var OutputStreamSlider = new Lang.Class({
|
||||||
Name: 'OutputStreamSlider',
|
Name: 'OutputStreamSlider',
|
||||||
Extends: StreamSlider,
|
Extends: StreamSlider,
|
||||||
|
|
||||||
@ -212,7 +212,7 @@ const OutputStreamSlider = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const InputStreamSlider = new Lang.Class({
|
var InputStreamSlider = new Lang.Class({
|
||||||
Name: 'InputStreamSlider',
|
Name: 'InputStreamSlider',
|
||||||
Extends: StreamSlider,
|
Extends: StreamSlider,
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ const InputStreamSlider = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const VolumeMenu = new Lang.Class({
|
var VolumeMenu = new Lang.Class({
|
||||||
Name: 'VolumeMenu',
|
Name: 'VolumeMenu',
|
||||||
Extends: PopupMenu.PopupMenuSection,
|
Extends: PopupMenu.PopupMenuSection,
|
||||||
|
|
||||||
@ -313,7 +313,7 @@ const VolumeMenu = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const Indicator = new Lang.Class({
|
var Indicator = new Lang.Class({
|
||||||
Name: 'VolumeIndicator',
|
Name: 'VolumeIndicator',
|
||||||
Extends: PanelMenu.SystemIndicator,
|
Extends: PanelMenu.SystemIndicator,
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ function primaryModifier(mask) {
|
|||||||
return primary;
|
return primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SwitcherPopup = new Lang.Class({
|
var SwitcherPopup = new Lang.Class({
|
||||||
Name: 'SwitcherPopup',
|
Name: 'SwitcherPopup',
|
||||||
Abstract: true,
|
Abstract: true,
|
||||||
|
|
||||||
@ -295,7 +295,7 @@ const SwitcherPopup = new Lang.Class({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const SwitcherList = new Lang.Class({
|
var SwitcherList = new Lang.Class({
|
||||||
Name: 'SwitcherList',
|
Name: 'SwitcherList',
|
||||||
|
|
||||||
_init : function(squareItems) {
|
_init : function(squareItems) {
|
||||||
|
@ -162,7 +162,7 @@ function registerSpecialPropertySplitter(name, splitFunction, parameters) {
|
|||||||
// time updates; even better is to pay attention to the vertical
|
// time updates; even better is to pay attention to the vertical
|
||||||
// vblank and sync to that when possible.)
|
// vblank and sync to that when possible.)
|
||||||
//
|
//
|
||||||
const ClutterFrameTicker = new Lang.Class({
|
var ClutterFrameTicker = new Lang.Class({
|
||||||
Name: 'ClutterFrameTicker',
|
Name: 'ClutterFrameTicker',
|
||||||
|
|
||||||
FRAME_RATE : 60,
|
FRAME_RATE : 60,
|
||||||
|
@ -28,7 +28,7 @@ const LoginDialog = imports.gdm.loginDialog;
|
|||||||
// The timeout before going back automatically to the lock screen (in seconds)
|
// The timeout before going back automatically to the lock screen (in seconds)
|
||||||
const IDLE_TIMEOUT = 2 * 60;
|
const IDLE_TIMEOUT = 2 * 60;
|
||||||
|
|
||||||
const UnlockDialog = new Lang.Class({
|
var UnlockDialog = new Lang.Class({
|
||||||
Name: 'UnlockDialog',
|
Name: 'UnlockDialog',
|
||||||
|
|
||||||
_init: function(parentActor) {
|
_init: function(parentActor) {
|
||||||
|
@ -19,7 +19,7 @@ const AVATAR_ICON_SIZE = 64;
|
|||||||
// Copyright (C) 2004-2005 James M. Cape <jcape@ignore-your.tv>.
|
// Copyright (C) 2004-2005 James M. Cape <jcape@ignore-your.tv>.
|
||||||
// Copyright (C) 2008,2009 Red Hat, Inc.
|
// Copyright (C) 2008,2009 Red Hat, Inc.
|
||||||
|
|
||||||
const Avatar = new Lang.Class({
|
var Avatar = new Lang.Class({
|
||||||
Name: 'Avatar',
|
Name: 'Avatar',
|
||||||
|
|
||||||
_init: function(user, params) {
|
_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',
|
Name: 'UserWidgetLabel',
|
||||||
Extends: St.Widget,
|
Extends: St.Widget,
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ const UserWidgetLabel = new Lang.Class({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const UserWidget = new Lang.Class({
|
var UserWidget = new Lang.Class({
|
||||||
Name: 'UserWidget',
|
Name: 'UserWidget',
|
||||||
|
|
||||||
_init: function(user) {
|
_init: function(user) {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user