Re: [gtk-list] Changing row selection in GtkCList?




On Sat, 28 Aug 1999, Brad Pepers wrote:
> 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?
> 

I think there's no official way to do what you want; I don't know the
rationale for the focus rectangle behavior though.

Havoc




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