cursor keys in clist
- From: bruno diez <danilo tau tau org ar>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: cursor keys in clist
- Date: Mon, 25 Mar 2002 06:21:37 -0300
Hi,
I need to catch the cursor keys to change the focus in clist ( and then
use select_row ). I have looking for this topic in the list archives,
but I can't understand the answers.
In the next example , the problem that I have is similar but I don't
undesrtand the solution. Can someone help me with a little example
Hi!
After filling up CList with items and setting focus to the first row I
discover that there is 'secondary' focus on the item which I put in
the list first. I don't want it. How to get rid of that secondary
focus? (it looks like a thin rectangle around the item). It is
desirable
to have the two focuses to point at the same item. .........
.......................................................
You are confusing the current selection (blue) and the focus row
(outlined). Here is a little function to set the focus row of a
GtkCList
void
gtk_clist_set_focus_row(GtkCList *list, guint row)
{
g_return_if_fail(list != NULL);
g_return_if_fail(row >= 0);
g_return_if_fail(row < list->rows);
list->focus_row = row;
}
Thanks !
danilo
Rosario
Argentina
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]