[Sugar-devel] Proposed solution to OLPC #10930

Walter Bender walter.bender at gmail.com
Fri Jul 8 13:54:22 EDT 2011


On Fri, Jul 8, 2011 at 1:20 PM, Gonzalo Odiard <gonzalo at laptop.org> wrote:
> Thanks Walter.
> Rafael also pointed my to try copy and paste images from Paint to Write
> and I could reproduce the issue.
>
> I have found solution :)

Hurrah!! But I suppose I need to keep my work-around in TA until the
patch lands more generally.

-walter

>
> If I apply 0001-Pack-page-in-ToolbarButton-when-is-conected-to-the-w.patch
> all works. I can remove the workaround in TuirtleArt and continue working.
> My other patch does not work, and looking at the code in TurtleArt have
> sense,
> because the buttons and toolbars are created in different order.
> This patch does not depends of the programmer create the toolbars in a
> specific order.
>
> Gonzalo
>
>
> On Fri, Jul 8, 2011 at 9:21 AM, Simon Schampijer <simon at schampijer.de>
> wrote:
>>
>> On 07/08/2011 01:08 PM, Walter Bender wrote:
>>>
>>> On Fri, Jul 8, 2011 at 4:10 AM, Simon Schampijer<simon at schampijer.de>
>>>  wrote:
>>>>
>>>> On 06/23/2011 03:53 PM, Gonzalo Odiard wrote:
>>>>>
>>>>> I was working in the solution of OLPC #10930 "copy/paste does not work
>>>>> in
>>>>> if
>>>>> one has not revealed the edit toolbar once"
>>>>> The problem can be reproduced in activities with the new toolbars, like
>>>>> Terminal or Browse.
>>>>> For example, in Terminal, if you open the activity, select a text and
>>>>> press
>>>>> "Shift-Ctrl-C", nothing is copied,
>>>>> if you show the Edit toolbar and try pressing "Sift-Ctrl-C" again, the
>>>>> text
>>>>> is copied.
>>>>> The same happen in Browse with "Ctrl-C"
>>>>
>>>> The problem seem to 'only' exist in Terminal, other Activities with the
>>>> new
>>>> toolbars like Browse and Write do work fine. This is because Terminal
>>>> does
>>>> override the shortcut to "Sift-Ctrl-C". Maybe this changes the approach
>>>> of
>>>> fixing the issue.
>>>
>>> The problem is not only in Terminal. I have the same problem with
>>> Turtle Art, where I don'[t try to override the shortcut. My workaround
>>> had been to open and then close the edit toolbar on startup, but that
>>> only seems to work intermittently these days.
>>>
>>> See http://bugs.sugarlabs.org/ticket/2050
>>> See http://bugs.sugarlabs.org/ticket/2751
>>>
>>> regards.
>>>
>>> -walter
>>
>> Ohh, I see - thanks Walter for the update on this.
>>
>> Regards,
>>   Simon
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list