2010-08-26 12 views
5

¿Cómo realmente deshabilito la búsqueda interactiva gtk treeview? El docs dice a set_enable_search(False), pero si hago esto, CTRL + F sigue causando que aparezca una molesta ventana emergente de búsqueda. Conectar a start-interactive-search y devolver True tampoco funciona._really_ deshabilitar GtkTreeView buscando

Respuesta

5

Los documentos PyGTK no dicen esto, pero la C docs hacer:

gtk_tree_view_set_search_column (GtkTreeView *tree_view, gint column) 

column : 
    the column of the model to search in, or -1 to disable searching 

Pasando -1 para la columna realmente desactiva la búsqueda.

+1

El enlace está podrido. Creo que te refieres a gtk_tree_view_set_search_column (-1), ya que parece funcionar. – ergosys