Changing row selection in GtkCList?



I've got some code that adds a row to a GtkCList using gtk_clist_prepend
and then I'd like to change the selection to the new row.  The clist is
set to browse selection and I set the selection with
gtk_clist_select_row
but what happens is the focus rectangle stays on the old row.  I tried a
few things and if I changed clist->focus_row manually before the call to
gtk_clist_select_row, then it works out.  Is this how I'm supposed to do
this?  Shouldn't changing the row in a clist in browse mode also change
the focus rectangle?

-- 
Brad Pepers
Linux Canada Inc.            Home of Linux products in Canada!
http://www.linuxcanada.com   Proud supporter of Cyclades, Red
brad@linuxcanada.com         Hat, and Caldera.



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