Tomeu Vizoso | 1 Jun 2010 10:18
Favicon
Gravatar

Re: Paint: how can use keys?

On Tue, Jun 1, 2010 at 09:23, James Cameron <quozl <at> laptop.org> wrote:
> On Tue, Jun 01, 2010 at 12:47:10AM -0300, Gonzalo Odiard wrote:
>> I am trying to use the keys with the circles with diferent sizes to
>> change the size of the tool, but didn't see any event.
>> Can anybody help me?
>
> I've tried what you tried, and found that there were no events logged
> until focus was switched to the drawing area widget.
>
> For example, start Paint, focus is on "Stroke Color".  Press right-arrow
> key and focus moves to Pencil icon.  Press Tab once and focus will be on
> the toolbar tabs.  Again, and focus will move to the Area
> (gtk.DrawingArea) widget.
>
> Only with focus there are events seen by key_press.
>
> If you need activity global events, consider accelerators.

What about listening for those events on the top level window
(Activity class) instead of the canvas? I think the journal is doing
that, and I guess other activities as well.

Regards,

Tomeu

> --
> James Cameron
> http://quozl.linux.org.au/
> _______________________________________________
(Continue reading)

Sascha Silbe | 1 Jun 2010 10:41

Re: Paint: how can use keys?

Excerpts from Tomeu Vizoso's message of Tue Jun 01 08:18:52 +0000 2010:
> On Tue, Jun 1, 2010 at 09:23, James Cameron <quozl <at> laptop.org> wrote:
> > If you need activity global events, consider accelerators.
> What about listening for those events on the top level window
> (Activity class) instead of the canvas? I think the journal is doing
> that, and I guess other activities as well.

Whatever you end up doing, please report back to the list. Terminal
has a similary issue (shortcuts not working while the VTE widget has
the focus).

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
Sascha Silbe | 1 Jun 2010 10:41

Re: Paint: how can use keys?

Excerpts from Tomeu Vizoso's message of Tue Jun 01 08:18:52 +0000 2010:
> On Tue, Jun 1, 2010 at 09:23, James Cameron <quozl <at> laptop.org> wrote:
> > If you need activity global events, consider accelerators.
> What about listening for those events on the top level window
> (Activity class) instead of the canvas? I think the journal is doing
> that, and I guess other activities as well.

Whatever you end up doing, please report back to the list. Terminal
has a similary issue (shortcuts not working while the VTE widget has
the focus).

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

Gmane