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
This commit is contained in:
Georges Basile Stavracas Neto 2018-08-21 06:21:26 -03:00
parent efb3025d8c
commit 034a723677
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385
2 changed files with 6 additions and 6 deletions

View File

@ -126,8 +126,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;
@ -136,7 +136,7 @@ var BaseAppView = new Lang.Class({
this._allItems = [];
},
_keyFocusIn(actor) {
_childFocused(actor) {
// Nothing by default
},
@ -717,7 +717,7 @@ var AllView = new Lang.Class({
});
},
_keyFocusIn(icon) {
_childFocused(icon) {
let itemPage = this._grid.getItemPage(icon);
this.goToPage(itemPage);
},
@ -1154,7 +1154,7 @@ var FolderView = new Lang.Class({
this.actor.add_action(action);
},
_keyFocusIn(actor) {
_childFocused(actor) {
Util.ensureActorVisibleInScrollView(this.actor, actor);
},

View File

@ -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) {