[gnome-shell/gbsneto/remove-generic-container: 18/38] iconGrid: Rename ::key-focus-in signal



commit 4ec615a47856f3f8d00909160b4889af1889e005
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Aug 21 06:21:26 2018 -0300

    iconGrid: Rename ::key-focus-in signal
    
    As part of our quest to obsolete Shell.GenericContainer, IconGrid will
    become a Clutter.Actor subclass. As the ::key-focus-in signal would
    clash with Clutter.Actor::key-focus-in, rename it to ::child-focused.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/153

 js/ui/appDisplay.js | 10 +++++-----
 js/ui/iconGrid.js   |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 5b530e91e..5041e99af 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -130,8 +130,8 @@ var BaseAppView = new Lang.Class({
         else
             this._grid = new IconGrid.IconGrid(gridParams);
 
-        this._grid.connect('key-focus-in', (grid, actor) => {
-            this._keyFocusIn(actor);
+        this._grid.connect('child-focused', (grid, actor) => {
+            this._childFocused(actor);
         });
         // Standard hack for ClutterBinLayout
         this._grid.actor.x_expand = true;
@@ -140,7 +140,7 @@ var BaseAppView = new Lang.Class({
         this._allItems = [];
     },
 
-    _keyFocusIn(actor) {
+    _childFocused(actor) {
         // Nothing by default
     },
 
@@ -721,7 +721,7 @@ var AllView = new Lang.Class({
         });
     },
 
-    _keyFocusIn(icon) {
+    _childFocused(icon) {
         let itemPage = this._grid.getItemPage(icon);
         this.goToPage(itemPage);
     },
@@ -1158,7 +1158,7 @@ var FolderView = new Lang.Class({
         this.actor.add_action(action);
     },
 
-    _keyFocusIn(actor) {
+    _childFocused(actor) {
         Util.ensureActorVisibleInScrollView(this.actor, actor);
     },
 
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index bf8e081e5..a0d008386 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -238,7 +238,7 @@ var IconGrid = new Lang.Class({
     },
 
     _keyFocusIn(actor) {
-        this.emit('key-focus-in', actor);
+        this.emit('child-focused', actor);
     },
 
     _childAdded(grid, child) {


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