[sugar] not use set_tile() in python activities anymore

Tomeu Vizoso tomeu
Mon Sep 24 12:45:51 EDT 2007


the Journal and the activity toolbar already set the metadata property
'title_set_by_user' of the datastore object to '1' when the user sets
the title.

Perhaps activities can do something like this in the cases when they
need to set the title depending on the context:

if self._jobject.metadata['title_set_by_user'] != '1':
    if self._browser.props.title:

I'm not sure if Activity.set_title updates the datastore object's title
property, but it should.

Any issues with this?


On Mon, 2007-09-24 at 18:15 +0200, Simon Schamijer wrote:
> Hi,
> After the nearly finished work for trial-3 we like to ask the python 
> based activities to not use the self.set_title() method anymore since 
> this overwrites the title of the activity window.
> The title is set by the base activity class. This allows setting the 
> title from the datastore object when resuming from the journal for 
> example. The title can be set by the user (in the journal or in the 
> activity toolbar).
> This change would display the title consistent in the journal, the 
> activity toolbar and the palette of the activity in the donut.
> More about this issue: https://dev.laptop.org/ticket/3061
> We need this to work for FRS.
> Best,
>    Simon
> _______________________________________________
> Sugar mailing list
> Sugar at lists.laptop.org
> http://lists.laptop.org/listinfo/sugar

More information about the Sugar-devel mailing list