Re: Setting focus on a row in GtkCList



Am 16 Aug 2001 07:55:36 +0100 schrieb Andy Filbert:
> 
> How dow I set focus to a particular row in a GtkCList
> ?
> 
> I can moveto the row OK, but then if the user types an
> up or down arrow, they are at the start of the list.
> 
> What is the secret ?

void gtk_clist_focus_row (GtkCList *clist, gint row)
{
    clist->focus_row = row;
    if (clist->freeze_count == 0)
        gtk_widget_draw (GTK_WIDGET (clist), NULL);
}

Cheers,
Daniel





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