messageTray: Allow settings gobject properties of Source on creation
This also makes the `icon` property of `Source` writable so that it can be set during creation instead of overriding the getter of the icon property. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>
This commit is contained in:

committed by
Marge Bot

parent
c63d67c9af
commit
932ccac1c2
@ -830,11 +830,10 @@ class ExtensionUpdateSource extends MessageTray.Source {
|
||||
if (!this._app)
|
||||
this._app = appSys.lookup_app('com.mattjakeman.ExtensionManager.desktop');
|
||||
|
||||
super._init(this._app.get_name());
|
||||
}
|
||||
|
||||
get icon() {
|
||||
return this._app.app_info.get_icon();
|
||||
super._init({
|
||||
title: this._app.get_name(),
|
||||
icon: this._app.get_icon(),
|
||||
});
|
||||
}
|
||||
|
||||
_createPolicy() {
|
||||
|
Reference in New Issue
Block a user