wanda: fix a refactor fallout
load_sliced_image() would need an additional parameter, but fold the notify::mapped callback into the load callback while we're at it.
This commit is contained in:
parent
b7b60d103e
commit
056cfc9dc6
@ -53,8 +53,9 @@ const WandaIcon = new Lang.Class({
|
||||
icon_size: iconSize });
|
||||
}
|
||||
|
||||
this._animations = St.TextureCache.get_default().load_sliced_image(this._imageFile, this._imgWidth, this._imgHeight);
|
||||
this._animations.connect('notify::mapped', Lang.bind(this, function() {
|
||||
this._animations = St.TextureCache.get_default().load_sliced_image(this._imageFile,
|
||||
this._imgWidth, this._imgHeight, Lang.bind(this,
|
||||
function() {
|
||||
if (this._animations.mapped && !this._timeoutId) {
|
||||
this._timeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, FISH_SPEED, Lang.bind(this, this._update));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user