Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit 412c143fb1732bb5a640c7b1063d53d8785007e4

Add description item to the toolbar if available - SL# 3525

The activity have a custom toolbar, then need add the DescriptionItem
to implement the feature "Write to Journal Anytime"

http://wiki.sugarlabs.org/go/Features/Write_to_journal_anytime

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Signed-off-by: Rafael Ortiz <rafael@activitycentral.com>
  
7979 toolbar_box.toolbar.insert(title_entry, -1)
8080 title_entry.show()
8181
82 try:
83 from sugar.activity.widgets import DescriptionItem
84 except ImportError:
85 logging.debug('DescriptionItem button is not available,' +
86 'toolkit version < 0.96')
87 else:
88 description_item = DescriptionItem(self)
89 toolbar_box.toolbar.insert(description_item, -1)
90 description_item.show()
91
8292 share_button = ShareButton(self)
8393 toolbar_box.toolbar.insert(share_button, -1)
8494 share_button.show()