[gnome-documents] searchbar: show/hide the entire widget when toggling visibility



commit ce27b85dadbf45b4125868cc2d14271fdd96c36a
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Jan 16 13:53:31 2013 -0500

    searchbar: show/hide the entire widget when toggling visibility

 src/searchbar.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index 54bd96e..9e1b54d 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -199,7 +199,7 @@ const Searchbar = new Lang.Class({
 
     show: function() {
         let eventDevice = Gtk.get_current_event_device();
-        this._searchEntry.show();
+        this.widget.show_all();
 
         Tweener.addTween(this.actor, { height: this.widget.get_preferred_height()[1],
                                        time: 0.20,
@@ -217,7 +217,7 @@ const Searchbar = new Lang.Class({
                                        time: 0.20,
                                        transition: 'easeOutQuad',
                                        onComplete: function() {
-                                           this._searchEntry.hide();
+                                           this.widget.hide();
                                            this._in = false;
 
                                            // clear all the search properties when hiding the entry



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