[gnome-shell] [genericDisplay] Fix selection not being set correctly



commit 21f15246a6cba287d1d1769607352eec5ef6d938
Author: Colin Walters <walters verbum org>
Date:   Fri Nov 13 14:27:25 2009 -0500

    [genericDisplay] Fix selection not being set correctly
    
    We need to check if the display actor is an instance of Shell.OverflowList
    or St.BoxLayout to use the appropriate function for getting its child
    with a given index.

 js/ui/genericDisplay.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/genericDisplay.js b/js/ui/genericDisplay.js
index 8ee0334..d5c3e3f 100644
--- a/js/ui/genericDisplay.js
+++ b/js/ui/genericDisplay.js
@@ -734,7 +734,11 @@ GenericDisplay.prototype = {
     // Returns a display item based on its index in the ordering of the
     // display children.
     _findDisplayedByIndex: function(index) {
-        let actor = this._list.get_children()[index];
+        let actor;
+        if (this.actor instanceof Shell.OverflowList)
+            actor = this.actor.get_displayed_actor(index);
+        else
+            actor = this._list.get_children()[index];
         return this._findDisplayedByActor(actor);
     },
 



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