[gnome-shell] When removing all items from the display, ensure selection state is reset too



commit 61b6fd2f9c2e5c4c348f578572eadbce586c6c3b
Author: Colin Walters <walters verbum org>
Date:   Mon Apr 20 15:58:31 2009 -0400

    When removing all items from the display, ensure selection state is reset too
    
    This avoids a problem where after a state change, we'd still think
    something was selected.
---
 js/ui/genericDisplay.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/js/ui/genericDisplay.js b/js/ui/genericDisplay.js
index 79215de..d34b4d3 100644
--- a/js/ui/genericDisplay.js
+++ b/js/ui/genericDisplay.js
@@ -710,6 +710,7 @@ GenericDisplay.prototype = {
 
     // Removes all displayed items.
     _removeAllDisplayItems: function() {
+        this.unsetSelected();
         for (itemId in this._displayedItems)
             this._removeDisplayItem(itemId);
      },



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