I just received this bug report and from the description it seems that the problem is more a backward compatibility issue than anything my code is doing. The complaint is that the stop button on the Activity toolbar does not shut down the Activity. I have tested this both on Fedora 10 and Fedora 12 and it works fine. The complaint seems to be that when you click Stop the Activity tries to do something with the title and cannot find it. However, I have suppressed the title (plus the ability to create a Journal entry automatically) using the method I have documented in "Make Your Own Sugar Activities!" as follows:<br>
<h2>NOT Adding A Journal Entry</h2>
<p>Sugar Activities by default create a Journal entry using the <em>write_file()</em> method. There will be Activities that don't need to do this. For instance, <strong>Get Internet Archive Books</strong> downloads e-books to the Journal, but has no need for a Journal entry of its own. The same thing is true of <strong>Sugar Commander</strong>.
You might make a game that keeps track of high scores. You could keep
those scores in a Journal entry, but that would require players to
resume the game from the Journal rather than just starting it up from
the Activity Ring. For that reason you might prefer to store the high
scores in a file in the <strong>data</strong> directory rather than the Journal, and not leave a Journal entry behind at all.</p>
<p>Sugar gives you a way to do that. First you need to specify an extra argument in your Activity's <em>__init__()</em> method like this:</p>
<pre>class SugarCommander(activity.Activity):
def __init__(self, handle, create_jobject=True):
"The entry point to the Activity"
activity.Activity.__init__(self, handle, False)
</pre>
<p>Second, you need to override the <em>close()</em> method like this:<br></p>
<pre> def close(self, skip_save=False):
"Override the close method so we don't try to
create a Journal entry."
activity.Activity.close(self, True)
</pre>
<p>That's all there is to it.</p><br>So it looks like this behavior, which is quite useful to my Activities, is broken in the version of Sugar that Tony is using.<br><br>James Simmons<br><br><div class="gmail_quote">
---------- Forwarded message ----------<br>From: <b class="gmail_sendername">James Simmons</b> <span dir="ltr"><<a href="mailto:ja.simmons@sbcglobal.net">ja.simmons@sbcglobal.net</a>></span><br>Date: Wed, Aug 3, 2011 at 9:36 AM<br>
Subject: Fw: #3013 UNSP: toolbar error<br>To: <a href="mailto:nicestep@gmail.com">nicestep@gmail.com</a><br><br><br><br>
<br>
--- On Wed, 8/3/11, Sugar Labs Bugs <<a href="mailto:bugtracker-noreply@sugarlabs.org">bugtracker-noreply@sugarlabs.org</a>> wrote:<br>
<br>
> From: Sugar Labs Bugs <<a href="mailto:bugtracker-noreply@sugarlabs.org">bugtracker-noreply@sugarlabs.org</a>><br>
> Subject: #3013 UNSP: toolbar error<br>
> To:<br>
> Cc: <a href="mailto:bugs@lists.sugarlabs.org">bugs@lists.sugarlabs.org</a><br>
> Date: Wednesday, August 3, 2011, 12:18 AM<br>
> #3013: toolbar error<br>
> ------------------------------------------+---------------------------------<br>
> Reporter: tonyforster <br>
> | <br>
> Owner: jdsimmons <br>
> <br>
> Type: defect <br>
> <br>
> | <br>
> Status: new <br>
> <br>
> <br>
> Priority: Unspecified by<br>
> Maintainer | Milestone: <br>
> Unspecified by Release Team<br>
> Component: SugarCommander <br>
> | <br>
> Version: Unspecified <br>
> <br>
> Severity: Unspecified <br>
> | <br>
> Keywords: <br>
> <br>
> <br>
> Distribution: Unspecified <br>
> <br>
> | Status_field: Unconfirmed <br>
> <br>
> ------------------------------------------+---------------------------------<br>
> os868au Sugar 0.84.31 XO1.5<br>
><br>
> Stop on toolbar does not work<br>
><br>
> line 183<br>
> Activitytoolbar has no attribute title<br>
><br>
> --<br>
> Ticket URL: <<a href="http://bugs.sugarlabs.org/ticket/3013" target="_blank">http://bugs.sugarlabs.org/ticket/3013</a>><br>
> Sugar Labs <<a href="http://sugarlabs.org/" target="_blank">http://sugarlabs.org/</a>><br>
> Sugar Labs bug tracking system<br>
><br>
</div><br>