[Sugar-devel] Activity title update
Simon Schampijer
simon at schampijer.de
Wed Sep 1 11:19:13 EDT 2010
On 07/19/2010 03:17 AM, Gonzalo Odiard wrote:
> On Sun, Jul 18, 2010 at 9:57 PM, James Cameron<quozl at laptop.org> wrote:
>
>> On Sun, Jul 18, 2010 at 05:41:08PM -0300, Gonzalo Odiard wrote:
>>> Can this resolve the problem?
>>>
>>> [root at aronax graphics]# diff -u toolbutton.py.ori toolbutton.py
>>> --- toolbutton.py.ori 2010-07-18 17:39:27.374544801 -0300
>>> +++ toolbutton.py 2010-07-18 17:39:58.198297844 -0300
>>> @@ -160,3 +160,5 @@
>>> def do_clicked(self):
>>> if self.palette:
>>> self.palette.popdown(True)
>>> + else:
>>> + gtk.ToolButton(self)
From my testing the focus-out event is propagated when we hit the stop
button. focus-out is emitted, though we do save first. I have added now
a line that just saves the title when hitting stop. Furthermore the
focus-out-event handler is disconnected to not receive events when the
activity is deconstructed (can be seen in current code).
http://bugs.sugarlabs.org/attachment/ticket/1948/0001-Save-title-when-closing-1948.patch
I think that is an ok solution (at least for 0.84).
Regards,
Simon
More information about the Sugar-devel
mailing list