[Sugar-devel] Dbus signal when ebook switch is activated
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
> > 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.
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Sugar-devel