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