Check if a GtkEntryCompletion is currently visible

Posted by Joe on Stack Overflow See other posts from Stack Overflow or by Joe
Published on 2010-06-12T22:50:32Z Indexed on 2010/06/12 22:52 UTC
Read the original article Hit count: 193

Filed under:
|
|
|

I have a GtkEntry with a GtkEntryCompletion attached to it. The Entry does something fairly expensive if the user hasn't changed the text in it for a second (to preview search results). However it's very common for the user to stop typing in order to select the correct autocompletion. So I'd like to delay the preview until the user has stopped typing and the GtkEntryCompletion is not currently suggesting anything.

GtkEntryCompletion is not a real widget however, and doesn't seem to have any way to get to whatever widget does own the CellRenderers it uses. Is there a way I can detect if it's visible or not?

© Stack Overflow or respective owner

Related posts about ui

Related posts about autocomplete