Re: Problem: focus not holding on intermediate items
- From: leena chourey <leenagour gmail com>
- To: Andre Klapper <ak-47 gmx net>
- Cc: nautilus-list gnome org
- Subject: Re: Problem: focus not holding on intermediate items
- Date: Thu, 19 May 2011 17:10:24 +0530
Hello Andre,
I have added following code in key_press_event() of nautilus-2.30.1/libnautilus-private/nautilus-icon-container.c
code snippet:
------------------------------------------------------------------------------------------------------------
case GDK_x:
if ((event->state & GDK_MOD1_MASK) == 0){
GList *l=NULL ;
int i=0, noi=0;
l= container->details->icons;
noi= g_list_length(l);
event->keyval=GDK_Home;
key_press_event(container, event); //to reach to home and then start traversing
// to traverse from first item on desktop to last item
for (i=0; i < noi; i++) {
event->keyval = GDK_Down;
key_press_event(container, event);
//printf("i=%d, icon= %s\n", i,nautilus_icon_canvas_item_get_editable_text (icon->item));
continue;
}
}
handled=TRUE;
break;
---------------------------------------------------------------------------------------------------------
To ensure that this reaches to every element, I tried to print icon label in icon_toggle_selected() in same file
No other changes.
best regards
Leena
On Mon, May 16, 2011 at 5:59 PM, Andre Klapper
<ak-47 gmx net> wrote:
On Mon, 2011-05-16 at 17:48 +0530, leena chourey wrote:
> Test case 1: See attached pic1
I refered to code, like a patch. :)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]