[gnome-control-center] shell: Disable type-ahead in search window
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Disable type-ahead in search window
- Date: Thu, 16 Jan 2014 12:33:54 +0000 (UTC)
commit 4700b6f61e9edcc3ec98a785d37fcfd8550efa04
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jan 16 12:08:08 2014 +0100
shell: Disable type-ahead in search window
And force Ctrl+F to be disabled as well, by unsetting the
search column after setting the model.
https://bugzilla.gnome.org/show_bug.cgi?id=722296
shell/cc-window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 8467d78..29b28e6 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -763,8 +763,12 @@ setup_search (CcWindow *shell)
/* set up the search view */
priv->search_view = search_view = gtk_tree_view_new ();
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (search_view), FALSE);
+ gtk_tree_view_set_enable_search (GTK_TREE_VIEW (search_view), FALSE);
gtk_tree_view_set_model (GTK_TREE_VIEW (search_view),
GTK_TREE_MODEL (priv->search_filter));
+ /* This needs to happen after setting the model, otherwise
+ * the search column will be the first string column */
+ gtk_tree_view_set_search_column (GTK_TREE_VIEW (search_view), -1);
renderer = gtk_cell_renderer_pixbuf_new ();
g_object_set (renderer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]