GtkTreeView problem



I am writing an application that uses a GtkTreeView widget to display a list 
of database records, along with a GtkEntry edit box into which the user types 
a search image.  

The callback function for the GtkEntry widget searches the GtkTreeModel 
associated with the GtkTreeView widget as each character of the search image 
is typed, and if a match is found, selects the row matching the search image.

My problem is this:  The GtkTreeView widget does NOT display the visible 
selection cursor bar on the selected row unless it has focus.  I have 
confirmed this by calling gtk_widget_grab_focus() prior to calling 
gtk_tree_view_set_cursor() function.  When the focus grab is done prior to 
setting the cursor, the visible cursor appears in the GtkTreeView widget, but 
then the GtkEntry widget has to be clicked into again for the continuation of 
entry of the search image.. a rather unwieldy procedure at best.

Here's my question:  Is there some setup function that must be called, or a 
property that must be set that will enable the GtkTreeView widget to display 
the visible selection cursor when it does NOT have focus?

Best regards,
Bob Caryl





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]