Re: Setting focus on a row in GtkCList
- From: Daniel Elstner <daniel elstner gmx net>
- To: Andy Filbert <a_filbert2001 yahoo co uk>
- Cc: gtk-list gnome org
- Subject: Re: Setting focus on a row in GtkCList
- Date: 16 Aug 2001 19:07:12 +0200
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]