<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 26, 2012 at 9:03 AM,  <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

From: Gonzalo Odiard <<a href="mailto:godiard@gmail.com">godiard@gmail.com</a>><br>
<br>
The activity have a custom toolbar, then need add the DescriptionItem<br>
to implement the feature "Write to Journal Anytime"<br>
<br>
<a href="http://wiki.sugarlabs.org/go/Features/Write_to_journal_anytime" target="_blank">http://wiki.sugarlabs.org/go/Features/Write_to_journal_anytime</a><br>
<br>
Signed-off-by: Gonzalo Odiard <<a href="mailto:gonzalo@laptop.org">gonzalo@laptop.org</a>><br>
---<br>
 TamTamMini.py |   11 +++++++++++<br>
 1 file changed, 11 insertions(+)<br>
<br>
diff --git a/TamTamMini.py b/TamTamMini.py<br>
index 02d614d..5d94cc3 100644<br>
--- a/TamTamMini.py<br>
+++ b/TamTamMini.py<br>
@@ -76,6 +76,17 @@ class TamTamMini(activity.Activity):<br>
             self.toolbox = ToolbarBox()<br>
             self.toolbox.toolbar.insert(widgets.ActivityButton(self), -1)<br>
             self.toolbox.toolbar.insert(widgets.TitleEntry(self), -1)<br>
+<br>
+            try:<br>
+                from sugar.activity.widgets import DescriptionItem<br>
+            except ImportError:<br>
+               logging.debug('DescriptionItem button is not available,' +<br>
+                    'toolkit version < 0.96')<br>
+            else:<br>
+                description_item = DescriptionItem(self)<br>
+                self.toolbox.toolbar.insert(description_item, -1)<br>
+                description_item.show()<br>
+<br>
             self.toolbox.toolbar.insert(widgets.ShareButton(self), -1)<br>
         else:<br>
             self.toolbox = activity.ActivityToolbox(self)<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10<br>
<br>
</font></span></blockquote><div><br></div><div>Pushed as:</div><div><a href="http://git.sugarlabs.org/tamtam/tamtam/commit/ecef93e50fba96dc95daedd9fc5e3858df4c6609">http://git.sugarlabs.org/tamtam/tamtam/commit/ecef93e50fba96dc95daedd9fc5e3858df4c6609</a></div>

<div><br></div><div>Should be in next version.</div><div><br></div><div><br></div><div>Thanks.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<span class="HOEnZb"><font color="#888888">_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</font></span></blockquote></div><br></div>