[gnome-documents] all: disable interactive search entries for list views



commit d9863219009c65ef9293fe29a22a9790c1d9421b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Oct 25 18:29:02 2011 -0400

    all: disable interactive search entries for list views
    
    We always want to use the global search entry, not the one built-in
    within the various treeviews we use.

 src/listView.js |    3 ++-
 src/sidebar.js  |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/listView.js b/src/listView.js
index f291ad6..c1a314b 100644
--- a/src/listView.js
+++ b/src/listView.js
@@ -36,7 +36,8 @@ ListView.prototype = {
     __proto__: View.View.prototype,
 
     _init: function() {
-        this.widget = new Gtk.TreeView({ hexpand: true,
+        this.widget = new Gtk.TreeView({ enable_search: false,
+                                         hexpand: true,
                                          vexpand: true,
                                          headers_visible: false });
 
diff --git a/src/sidebar.js b/src/sidebar.js
index fc66df9..94cbd04 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -184,7 +184,8 @@ SidebarView.prototype = {
         this._model = new SidebarModel();
         this._treeModel = this._model.model;
 
-        this._treeView = new Gtk.TreeView({ headers_visible: false,
+        this._treeView = new Gtk.TreeView({ enable_search: false,
+                                            headers_visible: false,
                                             vexpand: true });
         Gd.gtk_tree_view_set_activate_on_single_click(this._treeView, true);
         this._treeView.set_model(this._treeModel);



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