mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
0996174b3d
commit
17c46c2452
48 changed files with 295 additions and 489 deletions
|
|
@ -6,11 +6,9 @@ const Signals = imports.signals;
|
|||
|
||||
const Main = imports.ui.main;
|
||||
|
||||
function AppFavorites() {
|
||||
this._init();
|
||||
}
|
||||
const AppFavorites = new Lang.Class({
|
||||
Name: 'AppFavorites',
|
||||
|
||||
AppFavorites.prototype = {
|
||||
FAVORITE_APPS_KEY: 'favorite-apps',
|
||||
|
||||
_init: function() {
|
||||
|
|
@ -122,7 +120,7 @@ AppFavorites.prototype = {
|
|||
this._addFavorite(appId, pos);
|
||||
}));
|
||||
}
|
||||
};
|
||||
});
|
||||
Signals.addSignalMethods(AppFavorites.prototype);
|
||||
|
||||
var appFavoritesInstance = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue