[Sugar-devel] Removal of Activity Keep button

Rafael Ortiz rafael at activitycentral.com
Sun Jul 31 00:15:16 EDT 2011


On Sat, Jul 30, 2011 at 10:17 PM, Gonzalo Odiard <gonzalo at laptop.org> wrote:

>
>
> On Sat, Jul 30, 2011 at 7:30 PM, Rafael Ortiz <rafael at activitycentral.com>wrote:
>
>> On Fri, Jul 29, 2011 at 6:34 PM, Gonzalo Odiard <gonzalo at laptop.org>wrote:
>>
>>> Hi James,
>>> There are no problem, the KeepButton class is not removed, but is not
>>> added by default in the toolbar.
>>> The activities will work ok.
>>>
>>>
>> James, +1.
>>
>> You can remove the code w/o problem, if you don't remove it, the activity
>> won't work but only for sugar >=0.94 (as I understand it from Simon) , this
>> is only for activities that have the keepbutton ''hardcoded'' in the
>> activity toolbar code.
>>
>
>
> Rafael:
> This is not correct.
> The activity will continue working, because the class KeepButton was not
> removed (there are two proposed patches, look at the second)
> In most of the activities, the default Activity Tolbar is used, and in
> sugar 0.94, the KeepButton will not be displayed.
> In a few activities, the developer hidden the button, or used a custom
> toolbar, and we provided patches to resolve them.
> Of course, we did not checked the hundred of activities in ASLO, but only
> the activities included by default in OLPC image,
> then if another activity use the button (or the user is using a old version
> of the activity) the only difference will be
> the KeepButton will be present, but the activity will works ok.
>
> ok, so no need to set the compatibility flag on ASLO.


Thanks.



> Gonzalo
>
>
>
>>
>>
>>
>>> Gonzalo
>>>
>>>  On Fri, Jul 29, 2011 at 12:39 PM, James Simmons <nicestep at gmail.com>wrote:
>>>
>>>> Rafael,
>>>>
>>>> One of my concerns is that the Keep button is useless or misleading for
>>>> all of my Activities.  That's why I hide it.  I also show how to hide it in
>>>> my book "Make Your Own Sugar Activities!"  That is why I'd prefer that the
>>>> Keep button be hidden by default.  Hiding it a second time won't hurt
>>>> anything, and if someone actually has a use for it they can show it.  Just
>>>> removing it breaks backward compatibility.  I go to a fair amount of effort
>>>> to make Activities that support any version of Sugar, including using the
>>>> new toolbars when they are available.  I don't want students to have to
>>>> wonder if one of my Activities will work for them.  I know that full
>>>> backwards compatibility is not possible for every Activity, but if you do
>>>> Python without components other than GTK it should still be possible.
>>>>
>>>> James Simmons
>>>>
>>>>
>>>> On Fri, Jul 29, 2011 at 9:57 AM, Rafael Ortiz <
>>>> rafael at activitycentral.com> wrote:
>>>>
>>>>> Simon, James
>>>>>
>>>>> Thanks for pointing out the cases where the activities can fail.
>>>>>
>>>>> I think it's all clear for activity devs to follow.
>>>>>
>>>>> Recommendation: Remove keep button of all your activities if you have
>>>>> it on the toolbars code. In order to have compatibility for sugar >=0.94.
>>>>>
>>>>> Thanks and cheers.
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Jul 29, 2011 at 8:15 AM, Simon Schampijer <simon at schampijer.de
>>>>> > wrote:
>>>>>
>>>>>> On 07/29/2011 02:54 PM, James Simmons wrote:
>>>>>>
>>>>>>> Simon and Rafael,
>>>>>>>
>>>>>>> My Activities don't have any use for the Keep button, so they hide
>>>>>>> it.  As a
>>>>>>> result, if you just remove the Keep button they'll stop working.
>>>>>>>  Maybe for
>>>>>>> backward compatibility keep the button but hide it by default?
>>>>>>>
>>>>>>> James Simmons
>>>>>>>
>>>>>>> Just to be clear if we remove the keep button from an activity it
>>>>>>> wont open
>>>>>>>
>>>>>>>> in previous sugar versions than 0.94
>>>>>>>>
>>>>>>>
>>>>>> The use of the Keep button will be deprecated for a development cycle,
>>>>>> only, see [1]. But I would still recommend you to remove the hide the keep
>>>>>> button from your activity.
>>>>>>
>>>>>> Regards,
>>>>>>   Simon
>>>>>>
>>>>>> [1] http://lists.sugarlabs.org/**archive/sugar-devel/2011-July/**
>>>>>> 032438.html<http://lists.sugarlabs.org/archive/sugar-devel/2011-July/032438.html>
>>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Sugar-devel mailing list
>>>> Sugar-devel at lists.sugarlabs.org
>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> 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/20110730/d29e0bf1/attachment.html>


More information about the Sugar-devel mailing list