how to shift focus on item to item when key event is executed in loop?

Leena Chourey <[email protected]>
Newsgroups gmane.comp.gnome.nautilus
Message-ID <CAD-S5bP=31e4xZjXgJBk-E5O7mbUekkt23RLkTc+JRWMuVijzg@mail.gmail.com>
Hello,

The objective is to execute the keyboard_down event in loop, focus should
move one by one on each loop item and notify the assistive technology about
item. For example, if it is on desktop icon view,  focus should move one by
one on each icon (in loop).

I have executed the loop successfully but the focus does not come one by
one it directly comes on last item. Even with some time delay (using
sleep(2) g_usleep(200000)) on each item too, focus does not stay on
intermediate item for time delay.

   - Is it problem in signal passing?
   - Do I have to use thread to remain the focus on intermediate icon?
   - Is it problem of selection switching?
   - Do the event should be generated explicitly? Then how to generate
   key_press event explicitly?

nautilus version: 2.30.0

If have idea, please help to resolve the issue. The concern function
key_press_event() is attached here and the changed code is highlight.

With regards

Leena

-- 
nautilus-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/nautilus-list
key_press_event(12apr12).doc (application/msword, 25.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.