[Gtk-sharp-list] Treeview - what is this popup box?

Michael Hutchinson m.j.hutchinson at gmail.com
Fri Aug 15 14:12:17 EDT 2008

On Fri, Aug 15, 2008 at 10:16 AM, colbec <colbec at start.ca> wrote:
> Working in a treeview, when I have a column and a row selected at the same
> time and make keystrokes a text box pops up in the bottom right hand corner
> of the window with the contents of the keystrokes. What is this box and how
> can I access the contents of the typing buffer here?

It's the interactive search box. IIRC, when you have EnableSearch =
true, the TreeView automatically implements search for you.

> Basically I am trying to filter a model in a cellrenderercombo based on
> chars typed at the keyboard but I'm having a problem getting a handler to
> deal with this situation. Key press events from the tree and parent window
> seem to be ignored while in editing mode in the combo.

How are you subscribing to key events?

FWIW, if you want searching rather than filtering, just set
EnableSearch = true, then either set SearchColumn to the column to be
used for searching and/or set SearchEqualFunc to a custom comparison

The main GTK docs have a bit more info on the way this works:

Michael Hutchinson

More information about the Gtk-sharp-list mailing list