[gnome-shell/eos3.8: 145/255] fixup! Add new class for the desktop search entry widget: OverviewEntry



commit 449d64769546174cec35bb1c59e75de7810e48f5
Author: Andre Moreira Magalhaes <andre endlessm com>
Date:   Fri Mar 27 16:38:38 2020 -0300

    fixup! Add new class for the desktop search entry widget: OverviewEntry
    
    Replace deprecated/removed Clutter symbols with correct ones.
    
    https://phabricator.endlessm.com/T28780

 js/ui/shellEntry.js | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
index 4472ff7411..11009a8622 100644
--- a/js/ui/shellEntry.js
+++ b/js/ui/shellEntry.js
@@ -237,7 +237,7 @@ var OverviewEntry = GObject.registerClass({
 
     _onKeyPress(entry, event) {
         let symbol = event.get_key_symbol();
-        if (symbol === Clutter.Escape && this._isActivated()) {
+        if (symbol === Clutter.KEY_Escape && this._isActivated()) {
             this.resetSearch();
             return true;
         }
@@ -247,21 +247,21 @@ var OverviewEntry = GObject.registerClass({
 
         let arrowNext, nextDirection;
         if (entry.get_text_direction() === Clutter.TextDirection.RTL) {
-            arrowNext = Clutter.Left;
+            arrowNext = Clutter.KEY_Left;
             nextDirection = Gtk.DirectionType.LEFT;
         } else {
-            arrowNext = Clutter.Right;
+            arrowNext = Clutter.KEY_Right;
             nextDirection = Gtk.DirectionType.RIGHT;
         }
 
-        if (symbol === Clutter.Down)
+        if (symbol === Clutter.KEY_Down)
             nextDirection = Gtk.DirectionType.DOWN;
 
         if ((symbol === arrowNext && this.clutter_text.position === -1) ||
-            (symbol === Clutter.Down)) {
+            (symbol === Clutter.KEY_Down)) {
             this.emit('search-navigate-focus', nextDirection);
             return true;
-        } else if (symbol === Clutter.Return || symbol === Clutter.KP_Enter) {
+        } else if (symbol === Clutter.KEY_Return || symbol === Clutter.KEY_KP_Enter) {
             this._activateSearch();
             return true;
         }
@@ -350,7 +350,7 @@ var OverviewEntry = GObject.registerClass({
     handleStageEvent(event) {
         let symbol = event.get_key_symbol();
 
-        if (symbol === Clutter.Escape && this.active) {
+        if (symbol === Clutter.KEY_Escape && this.active) {
             this.resetSearch();
             return true;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]