_really_ disable GtkTreeView searching
Asked Answered
W

1

8

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.

Withrow answered 26/8, 2010 at 16:27 Comment(0)
W
9

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.

Withrow answered 26/8, 2010 at 16:28 Comment(1)
Link is rotten. I think you mean gtk_tree_view_set_search_column(-1), as this seems to work.Ferule

© 2022 - 2024 — McMap. All rights reserved.