js: Use Gjs GTypeName computation for all classes
As per previous commit we can remove the explicit GTypeName definitions and use gjs auto computation for all the GObject registered classes. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/790
This commit is contained in:

committed by
Florian Müllner

parent
91707f4f82
commit
39e6fc9e9d
@ -14,9 +14,8 @@ var AVATAR_ICON_SIZE = 64;
|
||||
// Copyright (C) 2004-2005 James M. Cape <jcape@ignore-your.tv>.
|
||||
// Copyright (C) 2008,2009 Red Hat, Inc.
|
||||
|
||||
var Avatar = GObject.registerClass({
|
||||
GTypeName: 'UserWidget_Avatar'
|
||||
}, class Avatar extends St.Bin {
|
||||
var Avatar = GObject.registerClass(
|
||||
class Avatar extends St.Bin {
|
||||
_init(user, params) {
|
||||
let themeContext = St.ThemeContext.get_for_stage(global.stage);
|
||||
params = Params.parse(params, { reactive: false,
|
||||
|
Reference in New Issue
Block a user