[Sugar-devel] [Sugar-Devel] Toolkit version in the activity info
Manuel Quiñones
manuq at laptop.org
Thu Feb 13 11:15:45 EST 2014
2014-01-31 23:14 GMT-03:00 Daniel Narvaez <dwnarvaez at gmail.com>:
> On 1 February 2014 03:00, Sam Parkinson <sam.parkinson3 at gmail.com> wrote:
>>
>>
>> Hi,
>>
>> Dnarvaez and I were discussing this on the irc; we really need to do
>> distinction between the tool kit version in activity.info.
>>
>> This would be needed to for:
>>
>> view source
>> because now changes to sugar-toolkit-gtk3 can break the gtk2 toolkit (!)
>>
>> Basically we were thinking to make a new thing: sugar-activity3 to launch
>> gtk3 activities.
>
> It should probably just be a symlink.
>>
>> It would probably be the same at first, but in the future could be used to
>> stop breakage to gtk2 activities.
>
> I think it was a mistake to not make a sugar-activity3 when we ported.
> Though I'm not sure we can undo that now. It would be an API breakage (gtk3
> activities would stop to work unless they changed to sugar-activity3).
>
> If ever make another parallel installable gtk toolkit it should definately
> be sugar-toolkit4 though :)
>>
>> So yeah, is this going to break everything? Could you think of a better
>> way?
>
> It should not break much actually. Activities that have not switched to
> sugar-activity3 will just not get the right sugar toolkit in view source.
>
> The main issue is probably that activities that change to sugar-activity3
> won't run on old sugar versions. Sigh... wish we had done this when porting
> really :/
>
> The alternative, as we discussed, is a new "toolkit" property in the info.
> That should not break stuff, it's one more thing to remember for activity
> authors though. Maybe we can have bundlebuilder warn about it.
So, do we agree to have toolkit type and version in the activity.info?
We have a pull request on this:
https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/104
I'm fine with this. I think we need two versions: minimum and maximum.
This is the same activities.sugarlabs.org has.
Also see Android manifest as reference:
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
--
.. manuq ..
More information about the Sugar-devel
mailing list