Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

_really_ disable GtkTreeView searching

How do I really disable gtk treeview interactive search? The docs say to set_enable_search(False), but if I do this, CTRL+F still causes an annoying search pop-up to appear. Connecting to start-interactive-search and returning True doesn't work either.

like image 341
Claudiu Avatar asked Aug 26 '10 16:08

Claudiu


1 Answers

The pygtk docs don't state this, but the C docs do:

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 

Passing -1 for the column really disables searching.

like image 179
Claudiu Avatar answered Sep 27 '22 21:09

Claudiu