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
This commit is contained in:
parent
69fc7e9fdc
commit
4700b6f61e
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue