updates for gnome-shell 3.14

master
Jens Lody 10 years ago
parent fc4b3820b5
commit 927f3036b6
  1. 2
      data/metadata.json.in
  2. 25
      src/extension.js

@ -2,7 +2,7 @@
"uuid": "@uuid@",
"name": "Panel OSD",
"description": "Configuring where on the (main) screen notifications will appear, instead of just above the message tray",
"shell-version": [ "3.6", "3.8", "3.10", "3.12" ],
"shell-version": [ "3.6", "3.8", "3.10", "3.12", "3.14" ],
"localedir": "@LOCALEDIR@",
"url": "@url@"
}

@ -186,6 +186,9 @@ let extensionShowNotification = function() {
// the mouse is moving towards it or within it.
this._lastSeenMouseX = x;
this._lastSeenMouseY = y;
if (ExtensionUtils.versionCheck(['3.14'], Config.PACKAGE_VERSION)) {
this._resetNotificationLeftTimeout();
}
};
@ -298,6 +301,11 @@ let extensionHideNotification = function(animate) {
}
}
else
{
if (ExtensionUtils.versionCheck(['3.14'], Config.PACKAGE_VERSION)) {
this._resetNotificationLeftTimeout();
}
else
{
if (this._notificationLeftTimeoutId) {
Mainloop.source_remove(this._notificationLeftTimeoutId);
@ -305,6 +313,7 @@ let extensionHideNotification = function(animate) {
this._notificationLeftMouseX = -1;
this._notificationLeftMouseY = -1;
}
}
if (animate) {
this._tween(this._notificationWidget, '_notificationState', State.HIDDEN,
@ -458,6 +467,21 @@ let extensiononNotificationExpanded = function() {
} else if (this._notification.y != expandedY) {
// Tween also opacity here, to override a possible tween that's
// currently hiding the notification.
if (ExtensionUtils.versionCheck(['3.14'], Config.PACKAGE_VERSION)) {
Tweener.addTween(this._notificationWidget,
{ y: expandedY,
opacity: 255,
time: ANIMATION_TIME,
transition: 'easeOutQuad',
// HACK: Drive the state machine here better,
// instead of overwriting tweens
onComplete: Lang.bind(this, function() {
this._notificationState = State.SHOWN;
}),
});
}
else
{
this._tween(this._notificationWidget, '_notificationState', State.SHOWN,
{ y: expandedY,
opacity: 255,
@ -465,6 +489,7 @@ let extensiononNotificationExpanded = function() {
transition: 'easeOutQuad'
});
}
}
};
/*

Loading…
Cancel
Save