diff options
author | Raushan Kumar Pandey <raushan.kumar478@gmail.com> | 2020-09-02 01:30:42 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 01:30:42 +0530 |
commit | 927af22d406211886d0a50c3e7ef878e1dcc4b0b (patch) | |
tree | f4875ae60a8dace3dbcb87a27efe959d5c4005bc | |
parent | e08796ef24ad303c103cb2939decc81d63066abb (diff) |
Update ui.js
Tweener has been removed from gnome-shell. This changes fixes the issue in gnome 3.38
-rw-r--r-- | ui.js | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -18,7 +18,6 @@ const Clutter = imports.gi.Clutter; const GObject = imports.gi.GObject; const St = imports.gi.St; -const Tweener = imports.ui.tweener; const PopupMenu = imports.ui.popupMenu; const Config = imports.misc.config; @@ -79,21 +78,19 @@ var PopupBluetoothDeviceMenuItem = GObject.registerClass( }); button.connect("enter-event", (widget) => { - Tweener.addTween( - widget.child, { + widget.child.ease( { opacity: 255, time: 0.05, - transition: 'linear' + transition: Clutter.AnimationMode.LINEAR } ); }); button.connect("leave-event", (widget) => { - Tweener.addTween( - widget.child, { + widget.child.ease( { opacity: 155, time: 0.05, - transition: 'linear' + transition: Clutter.AnimationMode.LINEAR } ); }); |