On 9/24/07, Tomeu Vizoso <[EMAIL PROTECTED]> wrote:
> Hi,
>
> 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:
>         self.set_title(self._browser.props.title)

I'd rather expose a nice method to handle this if it's going to be
used frequently.

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

set_title also "conflicts" with the gtk.Window method which sort of
suck. Do we need to expose a method which forces a title change at
all?

Marco
_______________________________________________
Sugar mailing list
[email protected]
http://lists.laptop.org/listinfo/sugar

Reply via email to