[gnome-shell] shellEntry: Remove close method



commit 07053c3df79fc387d246192c4a18c8503e96fc83
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Apr 8 16:04:25 2013 +0200

    shellEntry: Remove close method
    
    GrabHelper already takes care of putting the key focus back on the
    widget that had it when the grab was established.
    
    ShellEntry's close() has recently become harmful since it's now called
    from the menu's destroy() method and that is called in the entry's
    destroy handler which means that this._entry might no longer be valid
    at close() time.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697560

 js/ui/shellEntry.js |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
index 2256af0..e9a94a6 100644
--- a/js/ui/shellEntry.js
+++ b/js/ui/shellEntry.js
@@ -82,11 +82,6 @@ const EntryMenu = new Lang.Class({
             this.actor.grab_key_focus();
     },
 
-    close: function(animate) {
-        this._entry.grab_key_focus();
-        this.parent(animate);
-    },
-
     _updateCopyItem: function() {
         let selection = this._entry.clutter_text.get_selection();
         this._copyItem.setSensitive(!this._entry.clutter_text.password_char &&


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