Port everything to class framework

The last patch in the sequence. Every place that was previously
setting prototype has been ported to Lang.Class, to make code more
concise and allow for better toString().

https://bugzilla.gnome.org/show_bug.cgi?id=664436
This commit is contained in:
Giovanni Campagna 2011-11-20 18:56:27 +01:00
parent 0996174b3d
commit 17c46c2452
48 changed files with 295 additions and 489 deletions

View File

@ -140,11 +140,9 @@ function _smoothlyResizeActor(actor, width, height) {
return hold; return hold;
} }
function UserListItem(user, reason) { const UserListItem = new Lang.Class({
this._init(user, reason); Name: 'UserListItem',
}
UserListItem.prototype = {
_init: function(user) { _init: function(user) {
this.user = user; this.user = user;
this._userChangedId = this.user.connect('changed', this._userChangedId = this.user.connect('changed',
@ -273,15 +271,12 @@ UserListItem.prototype = {
}); });
return hold; return hold;
} }
});
};
Signals.addSignalMethods(UserListItem.prototype); Signals.addSignalMethods(UserListItem.prototype);
function UserList() { const UserList = new Lang.Class({
this._init.apply(this, arguments); Name: 'UserList',
}
UserList.prototype = {
_init: function() { _init: function() {
this.actor = new St.ScrollView({ style_class: 'login-dialog-user-list-view'}); this.actor = new St.ScrollView({ style_class: 'login-dialog-user-list-view'});
this.actor.set_policy(Gtk.PolicyType.NEVER, this.actor.set_policy(Gtk.PolicyType.NEVER,
@ -537,14 +532,12 @@ UserList.prototype = {
item.actor.destroy(); item.actor.destroy();
delete this._items[userName]; delete this._items[userName];
} }
}; });
Signals.addSignalMethods(UserList.prototype); Signals.addSignalMethods(UserList.prototype);
function SessionListItem(id, name) { const SessionListItem = new Lang.Class({
this._init(id, name); Name: 'SessionListItem',
}
SessionListItem.prototype = {
_init: function(id, name) { _init: function(id, name) {
this.id = id; this.id = id;
@ -599,14 +592,12 @@ SessionListItem.prototype = {
_onClicked: function() { _onClicked: function() {
this.emit('activate'); this.emit('activate');
} }
}; });
Signals.addSignalMethods(SessionListItem.prototype); Signals.addSignalMethods(SessionListItem.prototype);
function SessionList() { const SessionList = new Lang.Class({
this._init(); Name: 'SessionList',
}
SessionList.prototype = {
_init: function() { _init: function() {
this.actor = new St.Bin(); this.actor = new St.Bin();
@ -737,18 +728,9 @@ SessionList.prototype = {
})); }));
} }
} }
}; });
Signals.addSignalMethods(SessionList.prototype); Signals.addSignalMethods(SessionList.prototype);
function LoginDialog() {
if (_loginDialog == null) {
this._init();
_loginDialog = this;
}
return _loginDialog;
}
const LoginDialog = new Lang.Class({ const LoginDialog = new Lang.Class({
Name: 'LoginDialog', Name: 'LoginDialog',
Extends: ModalDialog.ModalDialog, Extends: ModalDialog.ModalDialog,

View File

@ -8,11 +8,9 @@ const Search = imports.ui.search;
const THUMBNAIL_ICON_MARGIN = 2; const THUMBNAIL_ICON_MARGIN = 2;
function DocInfo(recentInfo) { const DocInfo = new Lang.Class({
this._init(recentInfo); Name: 'DocInfo',
}
DocInfo.prototype = {
_init : function(recentInfo) { _init : function(recentInfo) {
this.recentInfo = recentInfo; this.recentInfo = recentInfo;
// We actually used get_modified() instead of get_visited() // We actually used get_modified() instead of get_visited()
@ -49,7 +47,7 @@ DocInfo.prototype = {
} }
return mtype; return mtype;
} }
}; });
var docManagerInstance = null; var docManagerInstance = null;
@ -62,11 +60,9 @@ function getDocManager() {
/** /**
* DocManager wraps the DocSystem, primarily to expose DocInfo objects. * DocManager wraps the DocSystem, primarily to expose DocInfo objects.
*/ */
function DocManager() { const DocManager = new Lang.Class({
this._init(); Name: 'DocManager',
}
DocManager.prototype = {
_init: function() { _init: function() {
this._docSystem = Shell.DocSystem.get_default(); this._docSystem = Shell.DocSystem.get_default();
this._infosByTimestamp = []; this._infosByTimestamp = [];
@ -135,6 +131,6 @@ DocManager.prototype = {
return this._infosByUri[url]; return this._infosByUri[url];
})), terms); })), terms);
} }
}; });
Signals.addSignalMethods(DocManager.prototype); Signals.addSignalMethods(DocManager.prototype);

View File

@ -7,11 +7,9 @@ const Params = imports.misc.params;
const DEFAULT_LIMIT = 512; const DEFAULT_LIMIT = 512;
function HistoryManager(params) { const HistoryManager = new Lang.Class({
this._init(params); Name: 'HistoryManager',
}
HistoryManager.prototype = {
_init: function(params) { _init: function(params) {
params = Params.parse(params, { gsettingsKey: null, params = Params.parse(params, { gsettingsKey: null,
limit: DEFAULT_LIMIT, limit: DEFAULT_LIMIT,
@ -111,5 +109,5 @@ HistoryManager.prototype = {
if (this._key) if (this._key)
global.settings.set_strv(this._key, this._history); global.settings.set_strv(this._key, this._history);
} }
}; });
Signals.addSignalMethods(HistoryManager.prototype); Signals.addSignalMethods(HistoryManager.prototype);

View File

@ -54,11 +54,9 @@ function _getProvidersTable() {
return _providersTable = providers; return _providersTable = providers;
} }
function ModemGsm() { const ModemGsm = new Lang.Class({
this._init.apply(this, arguments); Name: 'ModemGsm',
}
ModemGsm.prototype = {
_init: function(path) { _init: function(path) {
this._proxy = new ModemGsmNetworkProxy(Gio.DBus.system, 'org.freedesktop.ModemManager', path); this._proxy = new ModemGsmNetworkProxy(Gio.DBus.system, 'org.freedesktop.ModemManager', path);
@ -156,14 +154,12 @@ ModemGsm.prototype = {
return name3 || name2 || null; return name3 || name2 || null;
} }
} });
Signals.addSignalMethods(ModemGsm.prototype); Signals.addSignalMethods(ModemGsm.prototype);
function ModemCdma() { const ModemCdma = new Lang.Class({
this._init.apply(this, arguments); Name: 'ModemCdma',
}
ModemCdma.prototype = {
_init: function(path) { _init: function(path) {
this._proxy = new ModemCdmaProxy(Gio.DBus.system, 'org.freedesktop.ModemManager', path); this._proxy = new ModemCdmaProxy(Gio.DBus.system, 'org.freedesktop.ModemManager', path);
@ -231,5 +227,5 @@ ModemCdma.prototype = {
return null; return null;
} }
}; });
Signals.addSignalMethods(ModemCdma.prototype); Signals.addSignalMethods(ModemCdma.prototype);

View File

@ -43,11 +43,9 @@ function primaryModifier(mask) {
return primary; return primary;
} }
function AltTabPopup() { const AltTabPopup = new Lang.Class({
this._init(); Name: 'AltTabPopup',
}
AltTabPopup.prototype = {
_init : function() { _init : function() {
this.actor = new Shell.GenericContainer({ name: 'altTabPopup', this.actor = new Shell.GenericContainer({ name: 'altTabPopup',
reactive: true, reactive: true,
@ -540,7 +538,7 @@ AltTabPopup.prototype = {
onComplete: Lang.bind(this, function () { this.thumbnailsVisible = true; }) onComplete: Lang.bind(this, function () { this.thumbnailsVisible = true; })
}); });
} }
}; });
const SwitcherList = new Lang.Class({ const SwitcherList = new Lang.Class({
Name: 'SwitcherList', Name: 'SwitcherList',
@ -853,11 +851,9 @@ const SwitcherList = new Lang.Class({
Signals.addSignalMethods(SwitcherList.prototype); Signals.addSignalMethods(SwitcherList.prototype);
function AppIcon(app) { const AppIcon = new Lang.Class({
this._init(app); Name: 'AppIcon',
}
AppIcon.prototype = {
_init: function(app) { _init: function(app) {
this.app = app; this.app = app;
this.actor = new St.BoxLayout({ style_class: 'alt-tab-app', this.actor = new St.BoxLayout({ style_class: 'alt-tab-app',
@ -875,7 +871,7 @@ AppIcon.prototype = {
this._iconBin.set_size(size, size); this._iconBin.set_size(size, size);
this._iconBin.child = this.icon; this._iconBin.child = this.icon;
} }
}; });
const AppSwitcher = new Lang.Class({ const AppSwitcher = new Lang.Class({
Name: 'AppSwitcher', Name: 'AppSwitcher',

View File

@ -26,11 +26,9 @@ const MAX_APPLICATION_WORK_MILLIS = 75;
const MENU_POPUP_TIMEOUT = 600; const MENU_POPUP_TIMEOUT = 600;
const SCROLL_TIME = 0.1; const SCROLL_TIME = 0.1;
function AlphabeticalView() { const AlphabeticalView = new Lang.Class({
this._init(); Name: 'AlphabeticalView',
}
AlphabeticalView.prototype = {
_init: function() { _init: function() {
this._grid = new IconGrid.IconGrid({ xAlign: St.Align.START }); this._grid = new IconGrid.IconGrid({ xAlign: St.Align.START });
this._appSystem = Shell.AppSystem.get_default(); this._appSystem = Shell.AppSystem.get_default();
@ -130,13 +128,11 @@ AlphabeticalView.prototype = {
this._addApp(app); this._addApp(app);
} }
} }
}; });
function ViewByCategories() { const ViewByCategories = new Lang.Class({
this._init(); Name: 'ViewByCategories',
}
ViewByCategories.prototype = {
_init: function() { _init: function() {
this._appSystem = Shell.AppSystem.get_default(); this._appSystem = Shell.AppSystem.get_default();
this.actor = new St.BoxLayout({ style_class: 'all-app' }); this.actor = new St.BoxLayout({ style_class: 'all-app' });
@ -281,16 +277,14 @@ ViewByCategories.prototype = {
this.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false); this.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
} }
} }
}; });
/* This class represents a display containing a collection of application items. /* This class represents a display containing a collection of application items.
* The applications are sorted based on their name. * The applications are sorted based on their name.
*/ */
function AllAppDisplay() { const AllAppDisplay = new Lang.Class({
this._init(); Name: 'AllAppDisplay',
}
AllAppDisplay.prototype = {
_init: function() { _init: function() {
this._appSystem = Shell.AppSystem.get_default(); this._appSystem = Shell.AppSystem.get_default();
this._appSystem.connect('installed-changed', Lang.bind(this, function() { this._appSystem.connect('installed-changed', Lang.bind(this, function() {
@ -306,7 +300,7 @@ AllAppDisplay.prototype = {
_redisplay: function() { _redisplay: function() {
this._appView.refresh(); this._appView.refresh();
} }
}; });
const AppSearchProvider = new Lang.Class({ const AppSearchProvider = new Lang.Class({
Name: 'AppSearchProvider', Name: 'AppSearchProvider',
@ -427,11 +421,9 @@ const AppIcon = new Lang.Class({
} }
}); });
function AppWellIcon(app, iconParams, onActivateOverride) { const AppWellIcon = new Lang.Class({
this._init(app, iconParams, onActivateOverride); Name: 'AppWellIcon',
}
AppWellIcon.prototype = {
_init : function(app, iconParams, onActivateOverride) { _init : function(app, iconParams, onActivateOverride) {
this.app = app; this.app = app;
this.actor = new St.Button({ style_class: 'app-well-app', this.actor = new St.Button({ style_class: 'app-well-app',
@ -611,7 +603,7 @@ AppWellIcon.prototype = {
getDragActorSource: function() { getDragActorSource: function() {
return this.icon.icon; return this.icon.icon;
} }
}; });
Signals.addSignalMethods(AppWellIcon.prototype); Signals.addSignalMethods(AppWellIcon.prototype);
const AppIconMenu = new Lang.Class({ const AppIconMenu = new Lang.Class({

View File

@ -6,11 +6,9 @@ const Signals = imports.signals;
const Main = imports.ui.main; const Main = imports.ui.main;
function AppFavorites() { const AppFavorites = new Lang.Class({
this._init(); Name: 'AppFavorites',
}
AppFavorites.prototype = {
FAVORITE_APPS_KEY: 'favorite-apps', FAVORITE_APPS_KEY: 'favorite-apps',
_init: function() { _init: function() {
@ -122,7 +120,7 @@ AppFavorites.prototype = {
this._addFavorite(appId, pos); this._addFavorite(appId, pos);
})); }));
} }
}; });
Signals.addSignalMethods(AppFavorites.prototype); Signals.addSignalMethods(AppFavorites.prototype);
var appFavoritesInstance = null; var appFavoritesInstance = null;

View File

@ -64,11 +64,9 @@ function ConsoleKitManager() {
return self; return self;
} }
function AutomountManager() { const AutomountManager = new Lang.Class({
this._init(); Name: 'AutomountManager',
}
AutomountManager.prototype = {
_init: function() { _init: function() {
this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA }); this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
this._volumeQueue = []; this._volumeQueue = [];
@ -268,4 +266,4 @@ AutomountManager.prototype = {
return false; return false;
}); });
} }
} });

View File

@ -75,11 +75,9 @@ function HotplugSniffer() {
'/org/gnome/Shell/HotplugSniffer'); '/org/gnome/Shell/HotplugSniffer');
} }
function ContentTypeDiscoverer(callback) { const ContentTypeDiscoverer = new Lang.Class({
this._init(callback); Name: 'ContentTypeDiscoverer',
}
ContentTypeDiscoverer.prototype = {
_init: function(callback) { _init: function(callback) {
this._callback = callback; this._callback = callback;
}, },
@ -136,13 +134,11 @@ ContentTypeDiscoverer.prototype = {
this._callback(mount, apps, contentTypes); this._callback(mount, apps, contentTypes);
} }
} });
function AutorunManager() { const AutorunManager = new Lang.Class({
this._init(); Name: 'AutorunManager',
}
AutorunManager.prototype = {
_init: function() { _init: function() {
this._volumeMonitor = Gio.VolumeMonitor.get(); this._volumeMonitor = Gio.VolumeMonitor.get();
@ -259,7 +255,7 @@ AutorunManager.prototype = {
+ ': ' + e.toString()); + ': ' + e.toString());
} }
}, },
} });
const AutorunResidentSource = new Lang.Class({ const AutorunResidentSource = new Lang.Class({
Name: 'AutorunResidentSource', Name: 'AutorunResidentSource',
@ -404,11 +400,9 @@ const AutorunResidentNotification = new Lang.Class({
}, },
}); });
function AutorunTransientDispatcher() { const AutorunTransientDispatcher = new Lang.Class({
this._init(); Name: 'AutorunTransientDispatcher',
}
AutorunTransientDispatcher.prototype = {
_init: function() { _init: function() {
this._sources = []; this._sources = [];
this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA }); this._settings = new Gio.Settings({ schema: SETTINGS_SCHEMA });
@ -499,7 +493,7 @@ AutorunTransientDispatcher.prototype = {
// destroy the notification source // destroy the notification source
source.destroy(); source.destroy();
} }
} });
const AutorunTransientSource = new Lang.Class({ const AutorunTransientSource = new Lang.Class({
Name: 'AutorunTransientSource', Name: 'AutorunTransientSource',

View File

@ -21,11 +21,9 @@ const POPUP_ANIMATION_TIME = 0.15;
* placed. The arrow position may be controlled via setArrowOrigin(). * placed. The arrow position may be controlled via setArrowOrigin().
* *
*/ */
function BoxPointer(side, binProperties) { const BoxPointer = new Lang.Class({
this._init(side, binProperties); Name: 'BoxPointer',
}
BoxPointer.prototype = {
_init: function(arrowSide, binProperties) { _init: function(arrowSide, binProperties) {
this._arrowSide = arrowSide; this._arrowSide = arrowSide;
this._arrowOrigin = 0; this._arrowOrigin = 0;
@ -452,4 +450,4 @@ BoxPointer.prototype = {
get opacity() { get opacity() {
return this.actor.opacity; return this.actor.opacity;
} }
}; });

View File

@ -155,28 +155,24 @@ function _getEventDayAbbreviation(dayNumber) {
// Abstraction for an appointment/event in a calendar // Abstraction for an appointment/event in a calendar
function CalendarEvent(date, end, summary, allDay) { const CalendarEvent = new Lang.Class({
this._init(date, end, summary, allDay); Name: 'CalendarEvent',
}
CalendarEvent.prototype = {
_init: function(date, end, summary, allDay) { _init: function(date, end, summary, allDay) {
this.date = date; this.date = date;
this.end = end; this.end = end;
this.summary = summary; this.summary = summary;
this.allDay = allDay; this.allDay = allDay;
} }
}; });
// Interface for appointments/events - e.g. the contents of a calendar // Interface for appointments/events - e.g. the contents of a calendar
// //
// First, an implementation with no events // First, an implementation with no events
function EmptyEventSource() { const EmptyEventSource = new Lang.Class({
this._init(); Name: 'EmptyEventSource',
}
EmptyEventSource.prototype = {
_init: function() { _init: function() {
}, },
@ -191,7 +187,7 @@ EmptyEventSource.prototype = {
hasEvents: function(day) { hasEvents: function(day) {
return false; return false;
} }
}; });
Signals.addSignalMethods(EmptyEventSource.prototype); Signals.addSignalMethods(EmptyEventSource.prototype);
const CalendarServerIface = <interface name="org.gnome.Shell.CalendarServer"> const CalendarServerIface = <interface name="org.gnome.Shell.CalendarServer">
@ -219,11 +215,6 @@ function CalendarServer() {
return self; return self;
} }
// an implementation that reads data from a session bus service
function DBusEventSource() {
this._init();
}
function _datesEqual(a, b) { function _datesEqual(a, b) {
if (a < b) if (a < b)
return false; return false;
@ -242,8 +233,10 @@ function _dateIntervalsOverlap(a0, a1, b0, b1)
return true; return true;
} }
// an implementation that reads data from a session bus service
const DBusEventSource = new Lang.Class({
Name: 'DBusEventSource',
DBusEventSource.prototype = {
_init: function() { _init: function() {
this._resetCache(); this._resetCache();
@ -344,17 +337,15 @@ DBusEventSource.prototype = {
return true; return true;
} }
}; });
Signals.addSignalMethods(DBusEventSource.prototype); Signals.addSignalMethods(DBusEventSource.prototype);
// Calendar: // Calendar:
// @eventSource: is an object implementing the EventSource API, e.g. the // @eventSource: is an object implementing the EventSource API, e.g. the
// requestRange(), getEvents(), hasEvents() methods and the ::changed signal. // requestRange(), getEvents(), hasEvents() methods and the ::changed signal.
function Calendar(eventSource) { const Calendar = new Lang.Class({
this._init(eventSource); Name: 'Calendar',
}
Calendar.prototype = {
_init: function(eventSource) { _init: function(eventSource) {
if (eventSource) { if (eventSource) {
this._eventSource = eventSource; this._eventSource = eventSource;
@ -620,15 +611,13 @@ Calendar.prototype = {
if (this._eventSource) if (this._eventSource)
this._eventSource.requestRange(beginDate, iter, forceReload); this._eventSource.requestRange(beginDate, iter, forceReload);
} }
}; });
Signals.addSignalMethods(Calendar.prototype); Signals.addSignalMethods(Calendar.prototype);
function EventsList(eventSource) { const EventsList = new Lang.Class({
this._init(eventSource); Name: 'EventsList',
}
EventsList.prototype = {
_init: function(eventSource) { _init: function(eventSource) {
this.actor = new St.BoxLayout({ vertical: true, style_class: 'events-header-vbox'}); this.actor = new St.BoxLayout({ vertical: true, style_class: 'events-header-vbox'});
this._date = new Date(); this._date = new Date();
@ -759,4 +748,4 @@ EventsList.prototype = {
this._showOtherDay(this._date); this._showOtherDay(this._date);
} }
} }
}; });

View File

@ -20,11 +20,9 @@ function launchContact(id) {
/* This class represents a shown contact search result in the overview */ /* This class represents a shown contact search result in the overview */
function Contact(id) { const Contact = new Lang.Class({
this._init(id); Name: 'Contact',
}
Contact.prototype = {
_init: function(id) { _init: function(id) {
this._contactSys = Shell.ContactSystem.get_default(); this._contactSys = Shell.ContactSystem.get_default();
this.individual = this._contactSys.get_individual(id); this.individual = this._contactSys.get_individual(id);
@ -131,7 +129,7 @@ Contact.prototype = {
return tc.load_icon_name(null, 'avatar-default', St.IconType.FULLCOLOR, size); return tc.load_icon_name(null, 'avatar-default', St.IconType.FULLCOLOR, size);
} }
}, },
}; });
/* Searches for and returns contacts */ /* Searches for and returns contacts */

View File

@ -22,11 +22,9 @@ const SortGroup = {
BOTTOM: 2 BOTTOM: 2
}; };
function CtrlAltTabManager() { const CtrlAltTabManager = new Lang.Class({
this._init(); Name: 'CtrlAltTabManager',
}
CtrlAltTabManager.prototype = {
_init: function() { _init: function() {
this._items = []; this._items = [];
this._focusManager = St.FocusManager.get_for_stage(global.stage); this._focusManager = St.FocusManager.get_for_stage(global.stage);
@ -134,17 +132,15 @@ CtrlAltTabManager.prototype = {
})); }));
} }
} }
}; });
function mod(a, b) { function mod(a, b) {
return (a + b) % b; return (a + b) % b;
} }
function CtrlAltTabPopup() { const CtrlAltTabPopup = new Lang.Class({
this._init(); Name: 'CtrlAltTabPopup',
}
CtrlAltTabPopup.prototype = {
_init : function() { _init : function() {
this.actor = new Shell.GenericContainer({ name: 'ctrlAltTabPopup', this.actor = new Shell.GenericContainer({ name: 'ctrlAltTabPopup',
reactive: true }); reactive: true });
@ -303,7 +299,7 @@ CtrlAltTabPopup.prototype = {
this._selection = num; this._selection = num;
this._switcher.highlight(num); this._switcher.highlight(num);
} }
}; });
const CtrlAltTabSwitcher = new Lang.Class({ const CtrlAltTabSwitcher = new Lang.Class({
Name: 'CtrlAltTabSwitcher', Name: 'CtrlAltTabSwitcher',

View File

@ -226,11 +226,9 @@ const DragPlaceholderItem = new Lang.Class({
} }
}); });
function Dash() { const Dash = new Lang.Class({
this._init(); Name: 'Dash',
}
Dash.prototype = {
_init : function() { _init : function() {
this._maxHeight = -1; this._maxHeight = -1;
this.iconSize = 64; this.iconSize = 64;
@ -752,6 +750,6 @@ Dash.prototype = {
return true; return true;
} }
}; });
Signals.addSignalMethods(Dash.prototype); Signals.addSignalMethods(Dash.prototype);

View File

@ -69,11 +69,9 @@ function removeDragMonitor(monitor) {
} }
} }
function _Draggable(actor, params) { const _Draggable = new Lang.Class({
this._init(actor, params); Name: 'Draggable',
}
_Draggable.prototype = {
_init : function(actor, params) { _init : function(actor, params) {
params = Params.parse(params, { manualMode: false, params = Params.parse(params, { manualMode: false,
restoreOnSuccess: false, restoreOnSuccess: false,
@ -596,7 +594,7 @@ _Draggable.prototype = {
this._dragActor = undefined; this._dragActor = undefined;
currentDraggable = null; currentDraggable = null;
} }
}; });
Signals.addSignalMethods(_Draggable.prototype); Signals.addSignalMethods(_Draggable.prototype);

View File

@ -142,11 +142,9 @@ function findAppFromInhibitor(inhibitor) {
return app; return app;
} }
function ListItem(app, reason) { const ListItem = new Lang.Class({
this._init(app, reason); Name: 'ListItem',
}
ListItem.prototype = {
_init: function(app, reason) { _init: function(app, reason) {
this._app = app; this._app = app;
this._reason = reason; this._reason = reason;
@ -192,7 +190,7 @@ ListItem.prototype = {
this.emit('activate'); this.emit('activate');
this._app.activate(); this._app.activate();
} }
}; });
Signals.addSignalMethods(ListItem.prototype); Signals.addSignalMethods(ListItem.prototype);
// The logout timer only shows updates every 10 seconds // The logout timer only shows updates every 10 seconds

View File

@ -149,11 +149,9 @@ const BaseIcon = new Lang.Class({
} }
}); });
function IconGrid(params) { const IconGrid = new Lang.Class({
this._init(params); Name: 'IconGrid',
}
IconGrid.prototype = {
_init: function(params) { _init: function(params) {
params = Params.parse(params, { rowLimit: null, params = Params.parse(params, { rowLimit: null,
columnLimit: null, columnLimit: null,
@ -322,4 +320,4 @@ IconGrid.prototype = {
visibleItemsCount: function() { visibleItemsCount: function() {
return this._grid.get_children().length - this._grid.get_n_skip_paint(); return this._grid.get_children().length - this._grid.get_n_skip_paint();
} }
}; });

View File

@ -61,11 +61,9 @@ const CaribouKeyboardIface = <interface name='org.gnome.Caribou.Keyboard'>
<property name='Name' access='read' type='s' /> <property name='Name' access='read' type='s' />
</interface>; </interface>;
function Key() { const Key = new Lang.Class({
this._init.apply(this, arguments); Name: 'Key',
}
Key.prototype = {
_init : function(key) { _init : function(key) {
this._key = key; this._key = key;
@ -191,13 +189,12 @@ Key.prototype = {
this._boxPointer.hide(true); this._boxPointer.hide(true);
} }
} }
}; });
function Keyboard() { const Keyboard = new Lang.Class({
this._init.apply(this, arguments); // HACK: we can't set Name, because it collides with Name dbus property
} // Name: 'Keyboard',
Keyboard.prototype = {
_init: function () { _init: function () {
this._impl = Gio.DBusExportedObject.wrapJSObject(CaribouKeyboardIface, this); this._impl = Gio.DBusExportedObject.wrapJSObject(CaribouKeyboardIface, this);
this._impl.export(Gio.DBus.session, '/org/gnome/Caribou/Keyboard'); this._impl.export(Gio.DBus.session, '/org/gnome/Caribou/Keyboard');
@ -532,7 +529,7 @@ Keyboard.prototype = {
get Name() { get Name() {
return 'gnome-shell'; return 'gnome-shell';
} }
}; });
const KeyboardSource = new Lang.Class({ const KeyboardSource = new Lang.Class({
Name: 'KeyboardSource', Name: 'KeyboardSource',

View File

@ -17,11 +17,9 @@ const HOT_CORNER_ACTIVATION_TIMEOUT = 0.5;
const STARTUP_ANIMATION_TIME = 0.2; const STARTUP_ANIMATION_TIME = 0.2;
const KEYBOARD_ANIMATION_TIME = 0.5; const KEYBOARD_ANIMATION_TIME = 0.5;
function LayoutManager() { const LayoutManager = new Lang.Class({
this._init.apply(this, arguments); Name: 'LayoutManager',
}
LayoutManager.prototype = {
_init: function () { _init: function () {
this._rtl = (St.Widget.get_default_direction() == St.TextDirection.RTL); this._rtl = (St.Widget.get_default_direction() == St.TextDirection.RTL);
this.monitors = []; this.monitors = [];
@ -374,7 +372,7 @@ LayoutManager.prototype = {
findMonitorForActor: function(actor) { findMonitorForActor: function(actor) {
return this._chrome.findMonitorForActor(actor); return this._chrome.findMonitorForActor(actor);
} }
}; });
Signals.addSignalMethods(LayoutManager.prototype); Signals.addSignalMethods(LayoutManager.prototype);
@ -382,11 +380,9 @@ 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.
function HotCorner() { const HotCorner = new Lang.Class({
this._init(); Name: 'HotCorner',
}
HotCorner.prototype = {
_init : function() { _init : function() {
// We use this flag to mark the case where the user has entered the // We use this flag to mark the case where the user has entered the
// hot corner and has not left both the hot corner and a surrounding // hot corner and has not left both the hot corner and a surrounding
@ -548,7 +544,7 @@ HotCorner.prototype = {
return true; return true;
return false; return false;
} }
}; });
// This manages the shell "chrome"; the UI that's visible in the // This manages the shell "chrome"; the UI that's visible in the
@ -561,11 +557,9 @@ const defaultParams = {
affectsInputRegion: true affectsInputRegion: true
}; };
function Chrome() { const Chrome = new Lang.Class({
this._init.apply(this, arguments); Name: 'Chrome',
}
Chrome.prototype = {
_init: function(layoutManager) { _init: function(layoutManager) {
this._layoutManager = layoutManager; this._layoutManager = layoutManager;
@ -981,4 +975,4 @@ Chrome.prototype = {
return false; return false;
} }
}; });

View File

@ -30,11 +30,9 @@ const Tweener = imports.ui.tweener;
* @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.
*/ */
function Lightbox(container, params) { const Lightbox = new Lang.Class({
this._init(container, params); Name: 'Lightbox',
}
Lightbox.prototype = {
_init : function(container, params) { _init : function(container, params) {
params = Params.parse(params, { inhibitEvents: false, params = Params.parse(params, { inhibitEvents: false,
width: null, width: null,
@ -196,4 +194,4 @@ Lightbox.prototype = {
this.highlight(null); this.highlight(null);
} }
}; });

View File

@ -55,11 +55,9 @@ function _getAutoCompleteGlobalKeywords() {
return keywords.concat(windowProperties).concat(headerProperties); return keywords.concat(windowProperties).concat(headerProperties);
} }
function AutoComplete(entry) { const AutoComplete = new Lang.Class({
this._init(entry); Name: 'AutoComplete',
}
AutoComplete.prototype = {
_init: function(entry) { _init: function(entry) {
this._entry = entry; this._entry = entry;
this._entry.connect('key-press-event', Lang.bind(this, this._entryKeyPressEvent)); this._entry.connect('key-press-event', Lang.bind(this, this._entryKeyPressEvent));
@ -118,15 +116,13 @@ AutoComplete.prototype = {
this._entry.clutter_text.insert_text(additionalCompletionText, cursorPos); this._entry.clutter_text.insert_text(additionalCompletionText, cursorPos);
} }
}; });
Signals.addSignalMethods(AutoComplete.prototype); Signals.addSignalMethods(AutoComplete.prototype);
function Notebook() { const Notebook = new Lang.Class({
this._init(); Name: 'Notebook',
}
Notebook.prototype = {
_init: function() { _init: function() {
this.actor = new St.BoxLayout({ vertical: true }); this.actor = new St.BoxLayout({ vertical: true });
@ -250,7 +246,7 @@ Notebook.prototype = {
this.selectIndex(prevIndex); this.selectIndex(prevIndex);
} }
}; });
Signals.addSignalMethods(Notebook.prototype); Signals.addSignalMethods(Notebook.prototype);
function objectToString(o) { function objectToString(o) {
@ -285,11 +281,9 @@ const ObjLink = new Lang.Class({
} }
}); });
function Result(command, o, index) { const Result = new Lang.Class({
this._init(command, o, index); Name: 'Result',
}
Result.prototype = {
_init : function(command, o, index) { _init : function(command, o, index) {
this.index = index; this.index = index;
this.o = o; this.o = o;
@ -311,13 +305,11 @@ Result.prototype = {
padBin.add_actor(line); padBin.add_actor(line);
this.actor.add(padBin); this.actor.add(padBin);
} }
}; });
function WindowList() { const WindowList = new Lang.Class({
this._init(); Name: 'WindowList',
}
WindowList.prototype = {
_init : function () { _init : function () {
this.actor = new St.BoxLayout({ name: 'Windows', vertical: true, style: 'spacing: 8px' }); this.actor = new St.BoxLayout({ name: 'Windows', vertical: true, style: 'spacing: 8px' });
let tracker = Shell.WindowTracker.get_default(); let tracker = Shell.WindowTracker.get_default();
@ -358,14 +350,12 @@ WindowList.prototype = {
} }
} }
} }
}; });
Signals.addSignalMethods(WindowList.prototype); Signals.addSignalMethods(WindowList.prototype);
function ObjInspector() { const ObjInspector = new Lang.Class({
this._init(); Name: 'ObjInspector',
}
ObjInspector.prototype = {
_init : function () { _init : function () {
this._obj = null; this._obj = null;
this._previousObj = null; this._previousObj = null;
@ -465,7 +455,7 @@ ObjInspector.prototype = {
_onBack: function() { _onBack: function() {
this.selectObject(this._previousObj, true); this.selectObject(this._previousObj, true);
} }
}; });
function addBorderPaintHook(actor) { function addBorderPaintHook(actor) {
let signalId = actor.connect_after('paint', let signalId = actor.connect_after('paint',
@ -491,11 +481,9 @@ function addBorderPaintHook(actor) {
return signalId; return signalId;
} }
function Inspector() { const Inspector = new Lang.Class({
this._init(); Name: 'Inspector',
}
Inspector.prototype = {
_init: function() { _init: function() {
let container = new Shell.GenericContainer({ width: 0, let container = new Shell.GenericContainer({ width: 0,
height: 0 }); height: 0 });
@ -634,15 +622,13 @@ Inspector.prototype = {
this._borderPaintId = addBorderPaintHook(this._target); this._borderPaintId = addBorderPaintHook(this._target);
} }
} }
}; });
Signals.addSignalMethods(Inspector.prototype); Signals.addSignalMethods(Inspector.prototype);
function ErrorLog() { const ErrorLog = new Lang.Class({
this._init(); Name: 'ErrorLog',
}
ErrorLog.prototype = {
_init: function() { _init: function() {
this.actor = new St.BoxLayout(); this.actor = new St.BoxLayout();
this.text = new St.Label(); this.text = new St.Label();
@ -677,13 +663,11 @@ ErrorLog.prototype = {
} }
this.text.text = text; this.text.text = text;
} }
}; });
function Memory() { const Memory = new Lang.Class({
this._init(); Name: 'Memory',
}
Memory.prototype = {
_init: function() { _init: function() {
this.actor = new St.BoxLayout({ vertical: true }); this.actor = new St.BoxLayout({ vertical: true });
this._glibc_uordblks = new St.Label(); this._glibc_uordblks = new St.Label();
@ -728,13 +712,11 @@ Memory.prototype = {
this._gjs_closure.text = 'gjs_closure: ' + memInfo.gjs_closure; this._gjs_closure.text = 'gjs_closure: ' + memInfo.gjs_closure;
this._last_gc_seconds_ago.text = 'last_gc_seconds_ago: ' + memInfo.last_gc_seconds_ago; this._last_gc_seconds_ago.text = 'last_gc_seconds_ago: ' + memInfo.last_gc_seconds_ago;
} }
}; });
function Extensions() { const Extensions = new Lang.Class({
this._init(); Name: 'Extensions',
}
Extensions.prototype = {
_init: function() { _init: function() {
this.actor = new St.BoxLayout({ vertical: true, this.actor = new St.BoxLayout({ vertical: true,
name: 'lookingGlassExtensions' }); name: 'lookingGlassExtensions' });
@ -864,13 +846,11 @@ Extensions.prototype = {
return box; return box;
} }
}; });
function LookingGlass() { const LookingGlass = new Lang.Class({
this._init(); Name: 'LookingGlass',
}
LookingGlass.prototype = {
_init : function() { _init : function() {
this._borderPaintTarget = null; this._borderPaintTarget = null;
this._borderPaintId = 0; this._borderPaintId = 0;
@ -1227,5 +1207,5 @@ LookingGlass.prototype = {
}) })
}); });
} }
}; });
Signals.addSignalMethods(LookingGlass.prototype); Signals.addSignalMethods(LookingGlass.prototype);

View File

@ -36,11 +36,9 @@ const CROSS_HAIRS_CLIP_KEY = 'cross-hairs-clip';
let magDBusService = null; let magDBusService = null;
function Magnifier() { const Magnifier = new Lang.Class({
this._init(); Name: 'Magnifier',
}
Magnifier.prototype = {
_init: function() { _init: function() {
// Magnifier is a manager of ZoomRegions. // Magnifier is a manager of ZoomRegions.
this._zoomRegions = []; this._zoomRegions = [];
@ -543,14 +541,12 @@ Magnifier.prototype = {
); );
} }
} }
}; });
Signals.addSignalMethods(Magnifier.prototype); Signals.addSignalMethods(Magnifier.prototype);
function ZoomRegion(magnifier, mouseSourceActor) { const ZoomRegion = new Lang.Class({
this._init(magnifier, mouseSourceActor); Name: 'ZoomRegion',
}
ZoomRegion.prototype = {
_init: function(magnifier, mouseSourceActor) { _init: function(magnifier, mouseSourceActor) {
this._magnifier = magnifier; this._magnifier = magnifier;
@ -1150,13 +1146,11 @@ ZoomRegion.prototype = {
yMagMouse - groupHeight / 2); yMagMouse - groupHeight / 2);
} }
} }
}; });
function Crosshairs() { const Crosshairs = new Lang.Class({
this._init(); Name: 'Crosshairs',
}
Crosshairs.prototype = {
_init: function() { _init: function() {
// Set the group containing the crosshairs to three times the desktop // Set the group containing the crosshairs to three times the desktop
@ -1412,4 +1406,4 @@ Crosshairs.prototype = {
this._vertTopHair.set_position((groupWidth - thickness) / 2, top); this._vertTopHair.set_position((groupWidth - thickness) / 2, top);
this._vertBottomHair.set_position((groupWidth - thickness) / 2, bottom); this._vertBottomHair.set_position((groupWidth - thickness) / 2, bottom);
} }
}; });

View File

@ -1,6 +1,7 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Gio = imports.gi.Gio; const Gio = imports.gi.Gio;
const Lang = imports.lang;
const Main = imports.ui.main; const Main = imports.ui.main;
const MAG_SERVICE_NAME = 'org.gnome.Magnifier'; const MAG_SERVICE_NAME = 'org.gnome.Magnifier';
@ -95,11 +96,9 @@ const ZoomRegionIface = <interface name={ZOOM_SERVICE_NAME}>
// '/org/gnome/Magnifier/ZoomRegion/zoomer1', etc. // '/org/gnome/Magnifier/ZoomRegion/zoomer1', etc.
let _zoomRegionInstanceCount = 0; let _zoomRegionInstanceCount = 0;
function ShellMagnifier() { const ShellMagnifier = new Lang.Class({
this._init(); Name: 'ShellMagnifier',
}
ShellMagnifier.prototype = {
_init: function() { _init: function() {
this._zoomers = {}; this._zoomers = {};
@ -325,7 +324,7 @@ ShellMagnifier.prototype = {
// Drop the leading '#'. // Drop the leading '#'.
return parseInt(colorString.slice(1), 16); return parseInt(colorString.slice(1), 16);
} }
}; });
/** /**
* ShellMagnifierZoomRegion: * ShellMagnifierZoomRegion:
@ -333,11 +332,9 @@ ShellMagnifier.prototype = {
* @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.
*/ */
function ShellMagnifierZoomRegion(zoomerObjectPath, zoomRegion) { const ShellMagnifierZoomRegion = new Lang.Class({
this._init(zoomerObjectPath, zoomRegion); Name: 'ShellMagnifierZoomRegion',
}
ShellMagnifierZoomRegion.prototype = {
_init: function(zoomerObjectPath, zoomRegion) { _init: function(zoomerObjectPath, zoomRegion) {
this._zoomRegion = zoomRegion; this._zoomRegion = zoomRegion;
@ -422,4 +419,4 @@ ShellMagnifierZoomRegion.prototype = {
destroy: function() { destroy: function() {
this._dbusImpl.unexport(); this._dbusImpl.unexport();
} }
}; });

View File

@ -83,11 +83,9 @@ function _fixMarkup(text, allowMarkup) {
return GLib.markup_escape_text(text, -1); return GLib.markup_escape_text(text, -1);
} }
function URLHighlighter(text, lineWrap, allowMarkup) { const URLHighlighter = new Lang.Class({
this._init(text, lineWrap, allowMarkup); Name: 'URLHighlighter',
}
URLHighlighter.prototype = {
_init: function(text, lineWrap, allowMarkup) { _init: function(text, lineWrap, allowMarkup) {
if (!text) if (!text)
text = ''; text = '';
@ -211,13 +209,11 @@ URLHighlighter.prototype = {
} }
return -1; return -1;
} }
}; });
function FocusGrabber() { const FocusGrabber = new Lang.Class({
this._init(); Name: 'FocusGrabber',
}
FocusGrabber.prototype = {
_init: function() { _init: function() {
this.actor = null; this.actor = null;
@ -351,7 +347,7 @@ FocusGrabber.prototype = {
this._togglingFocusGrabMode = false; this._togglingFocusGrabMode = false;
} }
} }
} });
Signals.addSignalMethods(FocusGrabber.prototype); Signals.addSignalMethods(FocusGrabber.prototype);
// Notification: // Notification:
@ -1141,11 +1137,9 @@ const Source = new Lang.Class({
}); });
Signals.addSignalMethods(Source.prototype); Signals.addSignalMethods(Source.prototype);
function SummaryItem(source) { const SummaryItem = new Lang.Class({
this._init(source); Name: 'SummaryItem',
}
SummaryItem.prototype = {
_init: function(source) { _init: function(source) {
this.source = source; this.source = source;
this.source.connect('notification-added', Lang.bind(this, this._notificationAddedToSource)); this.source.connect('notification-added', Lang.bind(this, this._notificationAddedToSource));
@ -1336,14 +1330,12 @@ SummaryItem.prototype = {
if (this.notificationStack.get_children().length > 0) if (this.notificationStack.get_children().length > 0)
this.notificationStack.get_children()[0]._delegate.setIconVisible(true); this.notificationStack.get_children()[0]._delegate.setIconVisible(true);
} }
}; });
Signals.addSignalMethods(SummaryItem.prototype); Signals.addSignalMethods(SummaryItem.prototype);
function MessageTray() { const MessageTray = new Lang.Class({
this._init(); Name: 'MessageTray',
}
MessageTray.prototype = {
_init: function() { _init: function() {
this._presence = new GnomeSession.Presence(Lang.bind(this, function(proxy, error) { this._presence = new GnomeSession.Presence(Lang.bind(this, function(proxy, error) {
this._onStatusChanged(proxy.status); this._onStatusChanged(proxy.status);
@ -2422,7 +2414,7 @@ MessageTray.prototype = {
if (this._clickedSummaryItem) if (this._clickedSummaryItem)
this._updateState(); this._updateState();
} }
}; });
const SystemNotificationSource = new Lang.Class({ const SystemNotificationSource = new Lang.Class({
Name: 'SystemNotificationSource', Name: 'SystemNotificationSource',

View File

@ -357,11 +357,9 @@ const NetworkSecretDialog = new Lang.Class({
} }
}); });
function NetworkAgent() { const NetworkAgent = new Lang.Class({
this._init.apply(this, arguments); Name: 'NetworkAgent',
}
NetworkAgent.prototype = {
_init: function() { _init: function() {
this._native = new Shell.NetworkAgent({ auto_register: true, this._native = new Shell.NetworkAgent({ auto_register: true,
identifier: 'org.gnome.Shell.NetworkAgent' }); identifier: 'org.gnome.Shell.NetworkAgent' });
@ -384,4 +382,4 @@ NetworkAgent.prototype = {
this._dialogs[requestId].close(global.get_current_time()); this._dialogs[requestId].close(global.get_current_time());
this._dialogs[requestId].destroy(); this._dialogs[requestId].destroy();
} }
}; });

View File

@ -87,11 +87,9 @@ const rewriteRules = {
] ]
}; };
function NotificationDaemon() { const NotificationDaemon = new Lang.Class({
this._init(); Name: 'NotificationDaemon',
}
NotificationDaemon.prototype = {
_init: function() { _init: function() {
this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(NotificationDaemonIface, this); this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(NotificationDaemonIface, this);
this._dbusImpl.export(Gio.DBus.session, '/org/freedesktop/Notifications'); this._dbusImpl.export(Gio.DBus.session, '/org/freedesktop/Notifications');
@ -474,7 +472,7 @@ NotificationDaemon.prototype = {
if (source) if (source)
source.destroy(); source.destroy();
} }
}; });
const Source = new Lang.Class({ const Source = new Lang.Class({
Name: 'NotificationDaemonSource', Name: 'NotificationDaemonSource',

View File

@ -46,11 +46,9 @@ const SwipeScrollResult = {
CLICK: 2 CLICK: 2
}; };
function ShellInfo() { const ShellInfo = new Lang.Class({
this._init(); Name: 'ShellInfo',
}
ShellInfo.prototype = {
_init: function() { _init: function() {
this._source = null; this._source = null;
this._undoCallback = null; this._undoCallback = null;
@ -95,13 +93,11 @@ ShellInfo.prototype = {
this._source.notify(notification); this._source.notify(notification);
} }
}; });
function Overview() { const Overview = new Lang.Class({
this._init.apply(this, arguments); Name: 'Overview',
}
Overview.prototype = {
_init : function(params) { _init : function(params) {
params = Params.parse(params, { isDummy: false }); params = Params.parse(params, { isDummy: false });
@ -811,5 +807,5 @@ Overview.prototype = {
this._needsFakePointerEvent = false; this._needsFakePointerEvent = false;
} }
} }
}; });
Signals.addSignalMethods(Overview.prototype); Signals.addSignalMethods(Overview.prototype);

View File

@ -98,11 +98,9 @@ function _unpremultiply(color) {
}; };
function AnimatedIcon(name, size) { const AnimatedIcon = new Lang.Class({
this._init(name, size); Name: 'AnimatedIcon',
}
AnimatedIcon.prototype = {
_init: function(name, size) { _init: function(name, size) {
this.actor = new St.Bin({ visible: false }); this.actor = new St.Bin({ visible: false });
this.actor.connect('destroy', Lang.bind(this, this._onDestroy)); this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
@ -139,13 +137,11 @@ AnimatedIcon.prototype = {
if (this._timeoutId) if (this._timeoutId)
Mainloop.source_remove(this._timeoutId); Mainloop.source_remove(this._timeoutId);
} }
}; });
function TextShadower() { const TextShadower = new Lang.Class({
this._init(); Name: 'TextShadower',
}
TextShadower.prototype = {
_init: function() { _init: function() {
this.actor = new Shell.GenericContainer(); this.actor = new Shell.GenericContainer();
this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth)); this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth));
@ -225,7 +221,7 @@ TextShadower.prototype = {
child.allocate(childBox, flags); child.allocate(childBox, flags);
} }
} }
}; });
/** /**
* AppMenuButton: * AppMenuButton:
@ -692,13 +688,11 @@ const ActivitiesButton = new Lang.Class({
Mainloop.source_remove(this._xdndTimeOut); Mainloop.source_remove(this._xdndTimeOut);
this._xdndTimeOut = 0; this._xdndTimeOut = 0;
} }
}) });
function PanelCorner(panel, side) { const PanelCorner = new Lang.Class({
this._init(panel, side); Name: 'PanelCorner',
}
PanelCorner.prototype = {
_init: function(box, side) { _init: function(box, side) {
this._side = side; this._side = side;
@ -874,14 +868,12 @@ PanelCorner.prototype = {
this.actor.set_size(cornerRadius, innerBorderWidth + cornerRadius); this.actor.set_size(cornerRadius, innerBorderWidth + cornerRadius);
this.actor.set_anchor_point(0, innerBorderWidth); this.actor.set_anchor_point(0, innerBorderWidth);
} }
}; });
function Panel() { const Panel = new Lang.Class({
this._init(); Name: 'Panel',
}
Panel.prototype = {
_init : function() { _init : function() {
this.actor = new Shell.GenericContainer({ name: 'panel', this.actor = new Shell.GenericContainer({ name: 'panel',
reactive: true }); reactive: true });
@ -1108,5 +1100,4 @@ Panel.prototype = {
if (box && box._delegate instanceof PanelMenu.ButtonBox) if (box && box._delegate instanceof PanelMenu.ButtonBox)
box.destroy(); box.destroy();
}, },
});
};

View File

@ -120,11 +120,9 @@ const PlaceDeviceInfo = new Lang.Class({
} }
}); });
function PlacesManager() { const PlacesManager = new Lang.Class({
this._init(); Name: 'PlacesManager',
}
PlacesManager.prototype = {
_init: function() { _init: function() {
this._defaultPlaces = []; this._defaultPlaces = [];
this._mounts = []; this._mounts = [];
@ -355,7 +353,7 @@ PlacesManager.prototype = {
_removeById: function(sourceArray, id) { _removeById: function(sourceArray, id) {
sourceArray.splice(this._lookupIndexById(sourceArray, id), 1); sourceArray.splice(this._lookupIndexById(sourceArray, id), 1);
} }
}; });
Signals.addSignalMethods(PlacesManager.prototype); Signals.addSignalMethods(PlacesManager.prototype);
const PlaceSearchProvider = new Lang.Class({ const PlaceSearchProvider = new Lang.Class({

View File

@ -335,11 +335,9 @@ const AuthenticationDialog = new Lang.Class({
}); });
Signals.addSignalMethods(AuthenticationDialog.prototype); Signals.addSignalMethods(AuthenticationDialog.prototype);
function AuthenticationAgent() { const AuthenticationAgent = new Lang.Class({
this._init(); Name: 'AuthenticationAgent',
}
AuthenticationAgent.prototype = {
_init: function() { _init: function() {
this._native = new Shell.PolkitAuthenticationAgent(); this._native = new Shell.PolkitAuthenticationAgent();
this._native.connect('initiate', Lang.bind(this, this._onInitiate)); this._native.connect('initiate', Lang.bind(this, this._onInitiate));
@ -400,7 +398,7 @@ AuthenticationAgent.prototype = {
this._reallyCompleteRequest(wasDismissed); this._reallyCompleteRequest(wasDismissed);
} }
} }
} });
function init() { function init() {
let agent = new AuthenticationAgent(); let agent = new AuthenticationAgent();

View File

@ -771,7 +771,7 @@ const PopupSwitchMenuItem = new Lang.Class({
this.toggle(); this.toggle();
} }
PopupBaseMenuItem.prototype.activate.call(this, event); this.parent(event);
}, },
toggle: function() { toggle: function() {

View File

@ -30,11 +30,9 @@ const EXEC_ARG_KEY = 'exec-arg';
const DIALOG_GROW_TIME = 0.1; const DIALOG_GROW_TIME = 0.1;
function CommandCompleter() { const CommandCompleter = new Lang.Class({
this._init(); Name: 'CommandCompleter',
}
CommandCompleter.prototype = {
_init : function() { _init : function() {
this._changedCount = 0; this._changedCount = 0;
this._paths = GLib.getenv('PATH').split(':'); this._paths = GLib.getenv('PATH').split(':');
@ -162,7 +160,7 @@ CommandCompleter.prototype = {
return common.substr(text.length); return common.substr(text.length);
return common; return common;
} }
}; });
const RunDialog = new Lang.Class({ const RunDialog = new Lang.Class({
Name: 'RunDialog', Name: 'RunDialog',

View File

@ -242,11 +242,9 @@ const SearchProvider = new Lang.Class({
}); });
Signals.addSignalMethods(SearchProvider.prototype); Signals.addSignalMethods(SearchProvider.prototype);
function OpenSearchSystem() { const OpenSearchSystem = new Lang.Class({
this._init(); Name: 'OpenSearchSystem',
}
OpenSearchSystem.prototype = {
_init: function() { _init: function() {
this._providers = []; this._providers = [];
global.settings.connect('changed::' + DISABLED_OPEN_SEARCH_PROVIDERS_KEY, Lang.bind(this, this._refresh)); global.settings.connect('changed::' + DISABLED_OPEN_SEARCH_PROVIDERS_KEY, Lang.bind(this, this._refresh));
@ -334,14 +332,12 @@ OpenSearchSystem.prototype = {
} }
})); }));
} }
} });
Signals.addSignalMethods(OpenSearchSystem.prototype); Signals.addSignalMethods(OpenSearchSystem.prototype);
function SearchSystem() { const SearchSystem = new Lang.Class({
this._init(); Name: 'SearchSystem',
}
SearchSystem.prototype = {
_init: function() { _init: function() {
this._providers = []; this._providers = [];
this.reset(); this.reset();
@ -429,5 +425,5 @@ SearchSystem.prototype = {
this._previousResults = results; this._previousResults = results;
this.emit('search-completed', results); this.emit('search-completed', results);
}, },
}; });
Signals.addSignalMethods(SearchSystem.prototype); Signals.addSignalMethods(SearchSystem.prototype);

View File

@ -15,11 +15,9 @@ const Search = imports.ui.search;
const MAX_SEARCH_RESULTS_ROWS = 1; const MAX_SEARCH_RESULTS_ROWS = 1;
function SearchResult(provider, metaInfo, terms) { const SearchResult = new Lang.Class({
this._init(provider, metaInfo, terms); Name: 'SearchResult',
}
SearchResult.prototype = {
_init: function(provider, metaInfo, terms) { _init: function(provider, metaInfo, terms) {
this.provider = provider; this.provider = provider;
this.metaInfo = metaInfo; this.metaInfo = metaInfo;
@ -97,7 +95,7 @@ SearchResult.prototype = {
else else
this.provider.activateResult(this.metaInfo.id, params); this.provider.activateResult(this.metaInfo.id, params);
} }
}; });
const GridSearchResults = new Lang.Class({ const GridSearchResults = new Lang.Class({
@ -179,11 +177,9 @@ const GridSearchResults = new Lang.Class({
} }
}); });
function SearchResults(searchSystem, openSearchSystem) { const SearchResults = new Lang.Class({
this._init(searchSystem, openSearchSystem); Name: 'SearchResults',
}
SearchResults.prototype = {
_init: function(searchSystem, openSearchSystem) { _init: function(searchSystem, openSearchSystem) {
this._searchSystem = searchSystem; this._searchSystem = searchSystem;
this._searchSystem.connect('search-updated', Lang.bind(this, this._updateCurrentResults)); this._searchSystem.connect('search-updated', Lang.bind(this, this._updateCurrentResults));
@ -483,4 +479,4 @@ SearchResults.prototype = {
resultDisplay.activateSelected(); resultDisplay.activateSelected();
Main.overview.hide(); Main.overview.hide();
} }
}; });

View File

@ -66,11 +66,9 @@ const GnomeShellIface = <interface name="org.gnome.Shell">
</signal> </signal>
</interface>; </interface>;
function GnomeShell() { const GnomeShell = new Lang.Class({
this._init(); Name: 'GnomeShellDBus',
}
GnomeShell.prototype = {
_init: function() { _init: function() {
this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(GnomeShellIface, this); this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(GnomeShellIface, this);
this._dbusImpl.export(Gio.DBus.session, '/org/gnome/Shell'); this._dbusImpl.export(Gio.DBus.session, '/org/gnome/Shell');
@ -230,4 +228,4 @@ GnomeShell.prototype = {
this._dbusImpl.emit_signal('ExtensionStatusChanged', this._dbusImpl.emit_signal('ExtensionStatusChanged',
GLib.Variant.new('(sis)', [newState.uuid, newState.state, newState.error])); GLib.Variant.new('(sis)', [newState.uuid, newState.state, newState.error]));
} }
}; });

View File

@ -50,11 +50,9 @@ function _setLabelsForMessage(dialog, message) {
/* -------------------------------------------------------- */ /* -------------------------------------------------------- */
function ListItem(app) { const ListItem = new Lang.Class({
this._init(app); Name: 'ListItem',
}
ListItem.prototype = {
_init: function(app) { _init: function(app) {
this._app = app; this._app = app;
@ -86,14 +84,12 @@ ListItem.prototype = {
this.emit('activate'); this.emit('activate');
this._app.activate(); this._app.activate();
} }
}; });
Signals.addSignalMethods(ListItem.prototype); Signals.addSignalMethods(ListItem.prototype);
function ShellMountOperation(source, params) { const ShellMountOperation = new Lang.Class({
this._init(source, params); Name: 'ShellMountOperation',
}
ShellMountOperation.prototype = {
_init: function(source, params) { _init: function(source, params) {
params = Params.parse(params, { reaskPassword: false }); params = Params.parse(params, { reaskPassword: false });
@ -190,7 +186,7 @@ ShellMountOperation.prototype = {
this._processesDialog.update(message, processes, choices); this._processesDialog.update(message, processes, choices);
}, },
} });
const ShellMountQuestionDialog = new Lang.Class({ const ShellMountQuestionDialog = new Lang.Class({
Name: 'ShellMountQuestionDialog', Name: 'ShellMountQuestionDialog',

View File

@ -353,7 +353,7 @@ const Source = new Lang.Class({
} }
})); }));
MessageTray.Source.prototype.notify.call(this, notification); this.parent(notification);
}, },
createNotificationIcon: function() { createNotificationIcon: function() {
@ -485,7 +485,7 @@ const PinNotification = new Lang.Class({
}, },
grabFocus: function(lockTray) { grabFocus: function(lockTray) {
MessageTray.Notification.prototype.grabFocus.call(this, lockTray); this.parent(lockTray);
global.stage.set_key_focus(this._entry); global.stage.set_key_focus(this._entry);
} }
}); });

View File

@ -23,11 +23,9 @@ const STANDARD_TRAY_ICON_IMPLEMENTATIONS = {
'ibus-ui-gtk': 'input-method' 'ibus-ui-gtk': 'input-method'
}; };
function StatusIconDispatcher() { const StatusIconDispatcher = new Lang.Class({
this._init(); Name: 'StatusIconDispatcher',
}
StatusIconDispatcher.prototype = {
_init: function() { _init: function() {
this._traymanager = new Shell.TrayManager(); this._traymanager = new Shell.TrayManager();
this._traymanager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded)); this._traymanager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded));
@ -61,5 +59,5 @@ StatusIconDispatcher.prototype = {
else else
this.emit('message-icon-removed', icon); this.emit('message-icon-removed', icon);
} }
}; });
Signals.addSignalMethods(StatusIconDispatcher.prototype); Signals.addSignalMethods(StatusIconDispatcher.prototype);

View File

@ -72,11 +72,9 @@ function makeMessageFromTplEvent(event) {
}; };
} }
function Client() { const Client = new Lang.Class({
this._init(); Name: 'Client',
};
Client.prototype = {
_init : function() { _init : function() {
// channel path -> ChatSource // channel path -> ChatSource
this._chatSources = {}; this._chatSources = {};
@ -479,7 +477,7 @@ Client.prototype = {
return this._accountSource; return this._accountSource;
} }
}; });
const ChatSource = new Lang.Class({ const ChatSource = new Lang.Class({
Name: 'ChatSource', Name: 'ChatSource',
@ -694,7 +692,7 @@ const ChatSource = new Lang.Class({
}, },
notify: function() { notify: function() {
MessageTray.Source.prototype.notify.call(this, this._notification); this.parent(this._notification);
}, },
respond: function(text) { respond: function(text) {
@ -1113,7 +1111,7 @@ const ApproverSource = new Lang.Class({
this._invalidId = 0; this._invalidId = 0;
} }
MessageTray.Source.prototype.destroy.call(this); this.parent();
}, },
createNotificationIcon: function() { createNotificationIcon: function() {

View File

@ -202,11 +202,9 @@ 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.)
// //
function ClutterFrameTicker() { const ClutterFrameTicker = new Lang.Class({
this._init(); Name: 'ClutterFrameTicker',
}
ClutterFrameTicker.prototype = {
FRAME_RATE : 60, FRAME_RATE : 60,
_init : function() { _init : function() {
@ -261,6 +259,6 @@ ClutterFrameTicker.prototype = {
this._startTime = -1; this._startTime = -1;
global.end_work(); global.end_work();
} }
}; });
Signals.addSignalMethods(ClutterFrameTicker.prototype); Signals.addSignalMethods(ClutterFrameTicker.prototype);

View File

@ -301,11 +301,9 @@ const SearchTab = new Lang.Class({
}); });
function ViewSelector() { const ViewSelector = new Lang.Class({
this._init(); Name: 'ViewSelector',
}
ViewSelector.prototype = {
_init : function() { _init : function() {
this.actor = new St.BoxLayout({ name: 'viewSelector', this.actor = new St.BoxLayout({ name: 'viewSelector',
vertical: true }); vertical: true });
@ -565,5 +563,5 @@ ViewSelector.prototype = {
removeSearchProvider: function(provider) { removeSearchProvider: function(provider) {
this._searchTab.removeSearchProvider(provider); this._searchTab.removeSearchProvider(provider);
} }
}; });
Signals.addSignalMethods(ViewSelector.prototype); Signals.addSignalMethods(ViewSelector.prototype);

View File

@ -6,11 +6,9 @@ const Shell = imports.gi.Shell;
const Main = imports.ui.main; const Main = imports.ui.main;
const MessageTray = imports.ui.messageTray; const MessageTray = imports.ui.messageTray;
function WindowAttentionHandler() { const WindowAttentionHandler = new Lang.Class({
this._init(); Name: 'WindowAttentionHandler',
}
WindowAttentionHandler.prototype = {
_init : function() { _init : function() {
this._tracker = Shell.WindowTracker.get_default(); this._tracker = Shell.WindowTracker.get_default();
global.display.connect('window-demands-attention', Lang.bind(this, this._onWindowDemandsAttention)); global.display.connect('window-demands-attention', Lang.bind(this, this._onWindowDemandsAttention));
@ -43,7 +41,7 @@ WindowAttentionHandler.prototype = {
notification.update(title, banner); notification.update(title, banner);
}))); })));
} }
}; });
const Source = new Lang.Class({ const Source = new Lang.Class({
Name: 'WindowAttentionSource', Name: 'WindowAttentionSource',

View File

@ -31,11 +31,9 @@ function getTopInvisibleBorder(metaWindow) {
return outerRect.y - inputRect.y; return outerRect.y - inputRect.y;
} }
function WindowDimmer(actor) { const WindowDimmer = new Lang.Class({
this._init(actor); Name: 'WindowDimmer',
}
WindowDimmer.prototype = {
_init: function(actor) { _init: function(actor) {
if (Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL)) { if (Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL)) {
this._effect = new Clutter.ShaderEffect({ shader_type: Clutter.ShaderType.FRAGMENT_SHADER }); this._effect = new Clutter.ShaderEffect({ shader_type: Clutter.ShaderType.FRAGMENT_SHADER });
@ -75,7 +73,7 @@ WindowDimmer.prototype = {
}, },
_dimFraction: 0.0 _dimFraction: 0.0
}; });
function getWindowDimmer(actor) { function getWindowDimmer(actor) {
if (!actor._windowDimmer) if (!actor._windowDimmer)
@ -84,11 +82,9 @@ function getWindowDimmer(actor) {
return actor._windowDimmer; return actor._windowDimmer;
} }
function WindowManager() { const WindowManager = new Lang.Class({
this._init(); Name: 'WindowManager',
}
WindowManager.prototype = {
_init : function() { _init : function() {
this._shellwm = global.window_manager; this._shellwm = global.window_manager;
@ -627,4 +623,4 @@ WindowManager.prototype = {
if (!Main.overview.visible) if (!Main.overview.visible)
this._workspaceSwitcherPopup.display(WorkspaceSwitcherPopup.DOWN, indexToActivate); this._workspaceSwitcherPopup.display(WorkspaceSwitcherPopup.DOWN, indexToActivate);
} }
}; });

View File

@ -56,11 +56,13 @@ function _clamp(value, min, max) {
} }
function ScaledPoint(x, y, scaleX, scaleY) { const ScaledPoint = new Lang.Class({
[this.x, this.y, this.scaleX, this.scaleY] = arguments; Name: 'ScaledPoint',
}
_init: function(x, y, scaleX, scaleY) {
[this.x, this.y, this.scaleX, this.scaleY] = arguments;
},
ScaledPoint.prototype = {
getPosition : function() { getPosition : function() {
return [this.x, this.y]; return [this.x, this.y];
}, },
@ -86,14 +88,12 @@ ScaledPoint.prototype = {
return [_interpolate(this.scaleX, other.scaleX, step), return [_interpolate(this.scaleX, other.scaleX, step),
_interpolate(this.scaleY, other.scaleY, step)]; _interpolate(this.scaleY, other.scaleY, step)];
} }
}; });
function WindowClone(realWindow) { const WindowClone = new Lang.Class({
this._init(realWindow); Name: 'WindowClone',
}
WindowClone.prototype = {
_init : function(realWindow) { _init : function(realWindow) {
this.realWindow = realWindow; this.realWindow = realWindow;
this.metaWindow = realWindow.meta_window; this.metaWindow = realWindow.meta_window;
@ -418,7 +418,7 @@ WindowClone.prototype = {
this.emit('drag-end'); this.emit('drag-end');
} }
}; });
Signals.addSignalMethods(WindowClone.prototype); Signals.addSignalMethods(WindowClone.prototype);
@ -427,11 +427,9 @@ Signals.addSignalMethods(WindowClone.prototype);
* @parentActor: The actor which will be the parent of all overlay items * @parentActor: The actor which will be the parent of all overlay items
* such as app icon and window caption * such as app icon and window caption
*/ */
function WindowOverlay(windowClone, parentActor) { const WindowOverlay = new Lang.Class({
this._init(windowClone, parentActor); Name: 'WindowOverlay',
}
WindowOverlay.prototype = {
_init : function(windowClone, parentActor) { _init : function(windowClone, parentActor) {
let metaWindow = windowClone.metaWindow; let metaWindow = windowClone.metaWindow;
@ -642,7 +640,7 @@ WindowOverlay.prototype = {
this._parentActor.queue_relayout(); this._parentActor.queue_relayout();
} }
}; });
Signals.addSignalMethods(WindowOverlay.prototype); Signals.addSignalMethods(WindowOverlay.prototype);
const WindowPositionFlags = { const WindowPositionFlags = {
@ -653,11 +651,9 @@ const WindowPositionFlags = {
/** /**
* @metaWorkspace: a #Meta.Workspace, or null * @metaWorkspace: a #Meta.Workspace, or null
*/ */
function Workspace(metaWorkspace, monitorIndex) { const Workspace = new Lang.Class({
this._init(metaWorkspace, monitorIndex); Name: 'Workspace',
}
Workspace.prototype = {
_init : function(metaWorkspace, monitorIndex) { _init : function(metaWorkspace, monitorIndex) {
// When dragging a window, we use this slot for reserve space. // When dragging a window, we use this slot for reserve space.
this._reservedSlot = null; this._reservedSlot = null;
@ -1518,6 +1514,6 @@ Workspace.prototype = {
return false; return false;
} }
}; });
Signals.addSignalMethods(Workspace.prototype); Signals.addSignalMethods(Workspace.prototype);

View File

@ -15,11 +15,9 @@ const DISPLAY_TIMEOUT = 600;
const UP = -1; const UP = -1;
const DOWN = 1; const DOWN = 1;
function WorkspaceSwitcherPopup() { const WorkspaceSwitcherPopup = new Lang.Class({
this._init(); Name: 'WorkspaceSwitcherPopup',
}
WorkspaceSwitcherPopup.prototype = {
_init : function() { _init : function() {
this.actor = new St.Group({ reactive: true, this.actor = new St.Group({ reactive: true,
x: 0, x: 0,
@ -158,4 +156,4 @@ WorkspaceSwitcherPopup.prototype = {
onCompleteScope: this onCompleteScope: this
}); });
} }
}; });

View File

@ -25,11 +25,9 @@ const SLIDE_ANIMATION_TIME = 0.2;
// placeholder exactly. // placeholder exactly.
const WORKSPACE_CUT_SIZE = 10; const WORKSPACE_CUT_SIZE = 10;
function WindowClone(realWindow) { const WindowClone = new Lang.Class({
this._init(realWindow); Name: 'WindowClone',
}
WindowClone.prototype = {
_init : function(realWindow) { _init : function(realWindow) {
this.actor = new Clutter.Clone({ source: realWindow.get_texture(), this.actor = new Clutter.Clone({ source: realWindow.get_texture(),
reactive: true }); reactive: true });
@ -126,7 +124,7 @@ WindowClone.prototype = {
this.emit('drag-end'); this.emit('drag-end');
} }
}; });
Signals.addSignalMethods(WindowClone.prototype); Signals.addSignalMethods(WindowClone.prototype);
@ -144,11 +142,9 @@ const ThumbnailState = {
/** /**
* @metaWorkspace: a #Meta.Workspace * @metaWorkspace: a #Meta.Workspace
*/ */
function WorkspaceThumbnail(metaWorkspace) { const WorkspaceThumbnail = new Lang.Class({
this._init(metaWorkspace); Name: 'WorkspaceThumbnail',
}
WorkspaceThumbnail.prototype = {
_init : function(metaWorkspace) { _init : function(metaWorkspace) {
this.metaWorkspace = metaWorkspace; this.metaWorkspace = metaWorkspace;
this.monitorIndex = Main.layoutManager.primaryIndex; this.monitorIndex = Main.layoutManager.primaryIndex;
@ -469,16 +465,14 @@ WorkspaceThumbnail.prototype = {
return false; return false;
} }
}; });
Signals.addSignalMethods(WorkspaceThumbnail.prototype); Signals.addSignalMethods(WorkspaceThumbnail.prototype);
function ThumbnailsBox() { const ThumbnailsBox = new Lang.Class({
this._init(); Name: 'ThumbnailsBox',
}
ThumbnailsBox.prototype = {
_init: function() { _init: function() {
this.actor = new Shell.GenericContainer({ style_class: 'workspace-thumbnails', this.actor = new Shell.GenericContainer({ style_class: 'workspace-thumbnails',
request_mode: Clutter.RequestMode.WIDTH_FOR_HEIGHT }); request_mode: Clutter.RequestMode.WIDTH_FOR_HEIGHT });
@ -1028,4 +1022,4 @@ ThumbnailsBox.prototype = {
onCompleteScope: this onCompleteScope: this
}); });
} }
}; });

View File

@ -23,11 +23,9 @@ const MAX_WORKSPACES = 16;
const CONTROLS_POP_IN_TIME = 0.1; const CONTROLS_POP_IN_TIME = 0.1;
function WorkspacesView(workspaces) { const WorkspacesView = new Lang.Class({
this._init(workspaces); Name: 'WorkspacesView',
}
WorkspacesView.prototype = {
_init: function(workspaces) { _init: function(workspaces) {
this.actor = new St.Group({ style_class: 'workspaces-view' }); this.actor = new St.Group({ style_class: 'workspaces-view' });
@ -452,15 +450,13 @@ WorkspacesView.prototype = {
_getWorkspaceIndexToRemove: function() { _getWorkspaceIndexToRemove: function() {
return global.screen.get_active_workspace_index(); return global.screen.get_active_workspace_index();
} }
}; });
Signals.addSignalMethods(WorkspacesView.prototype); Signals.addSignalMethods(WorkspacesView.prototype);
function WorkspacesDisplay() { const WorkspacesDisplay = new Lang.Class({
this._init(); Name: 'WorkspacesDisplay',
}
WorkspacesDisplay.prototype = {
_init: function() { _init: function() {
this.actor = new Shell.GenericContainer(); this.actor = new Shell.GenericContainer();
this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth)); this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth));
@ -852,5 +848,5 @@ WorkspacesDisplay.prototype = {
break; break;
} }
} }
}; });
Signals.addSignalMethods(WorkspacesDisplay.prototype); Signals.addSignalMethods(WorkspacesDisplay.prototype);

View File

@ -6,11 +6,9 @@ const Shell = imports.gi.Shell;
const Signals = imports.signals; const Signals = imports.signals;
const DND = imports.ui.dnd; const DND = imports.ui.dnd;
function XdndHandler() { const XdndHandler = new Lang.Class({
this._init(); Name: 'XdndHandler',
}
XdndHandler.prototype = {
_init: function() { _init: function() {
// Used to display a clone of the cursor window when the // Used to display a clone of the cursor window when the
// window group is hidden (like it happens in the overview) // window group is hidden (like it happens in the overview)
@ -125,6 +123,6 @@ XdndHandler.prototype = {
pickedActor = pickedActor.get_parent(); pickedActor = pickedActor.get_parent();
} }
} }
} });
Signals.addSignalMethods(XdndHandler.prototype); Signals.addSignalMethods(XdndHandler.prototype);