Re: Problem: focus not holding on intermediate items

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);
                            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));


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

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]