[Sugar-devel] Dbus signal when ebook switch is activated

Gonzalo Odiard gonzalo at laptop.org
Thu Oct 14 16:09:09 EDT 2010


On Thu, Oct 14, 2010 at 4:43 PM, Sascha Silbe <
sascha-ml-reply-to-2010-3 at silbe.org> wrote:

> Excerpts from Gonzalo Odiard's message of Thu Oct 14 20:29:30 +0200 2010:
>
> [ebook switch]
> > It's a very specific XO thing ...
>
> It isn't, but at least until recently it was rather unusual for devices
> capable of running Gnome.
>
> > I probably don't are explaining well what I need.
>
> Looks like it. What I am missing is some background information:
> What do you want to achieve?
>

It's simple and it's explained in http://dev.laptop.org/ticket/10396
If you use the Read activity and put your XO in ebook position, if the focus
is in any other widget than the viewer, you can't navigate using the dpad.
One first approach suggested by Simon was put the focus in the viewer when
the activity start.
The another change I am proposing is catch the ebook switch event and put
the focus in the viewer.
 The proposed patch works, but I need to read the switch state after the
event is catched.
I don't know if there are a better way.


> Which components do you intend to modify?
>

The Read activity.


> Which systems (distro version etc.) do you target?
>
>
Sugar 0.84 and 0.90 in XO-1.5



> > I am reading the event with dbus, it's working. I think it's the wright
> way
> > to do this today.
>
> As you have shown yourself, it isn't working as you're getting incorrect
> values. Whether trying to fix an obsolete piece of software is really
> the right thing to do will depend on the answers to the questions above.
>
>
Yes. I agree.

Gonzalo



Sascha
>
> --
> http://sascha.silbe.org/
> http://www.infra-silbe.de/
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101014/a6dd351f/attachment-0001.html>


More information about the Sugar-devel mailing list