Fix some code for gnome-shell > 3.16 .

master
Jens Lody 9 years ago
parent 17c849d93b
commit 0205d6810c
  1. 35
      src/extension.js

@ -328,16 +328,31 @@ let extensionHideNotification = function(animate) {
if (animate) { if (animate) {
// JRL changes begin if (versionAtLeast('3.16', Config.PACKAGE_VERSION)) {
this._tween(theNotification, '_notificationState', State.HIDDEN, // JRL changes begin
{ y: yPos, this._tween(theNotification, '_notificationState', State.HIDDEN,
// JRL changes end { y: yPos,
opacity: 0, // JRL changes end
time: ANIMATION_TIME, _opacity: 0,
transition: 'easeOutQuad', time: ANIMATION_TIME,
onComplete: this._hideNotificationCompleted, transition: 'easeOutBack',
onCompleteScope: this onUpdate: this._clampOpacity,
}); onUpdateScope: this,
onComplete: this._hideNotificationCompleted,
onCompleteScope: this
});
} else {
// JRL changes begin
this._tween(theNotification, '_notificationState', State.HIDDEN,
{ y: yPos,
// JRL changes end
opacity: 0,
time: ANIMATION_TIME,
transition: 'easeOutQuad',
onComplete: this._hideNotificationCompleted,
onCompleteScope: this
});
}
} else { } else {
// JRL changes begin // JRL changes begin
Tweener.removeTweens(theNotification); Tweener.removeTweens(theNotification);

Loading…
Cancel
Save