This patch is needed by Paint port to Gtk3, but can be tested applying the following patch to HelloWorld activity:
<div><br></div><div><div>diff --git a/activity.py b/activity.py</div><div>index 2252983..96ee5d3 100644</div><div>--- a/activity.py</div><div>+++ b/activity.py</div><div>@@ -28,6 +28,8 @@ from sugar3.activity.widgets import TitleEntry</div>
<div> from sugar3.activity.widgets import StopButton</div><div> from sugar3.activity.widgets import ShareButton</div><div> from sugar3.activity.widgets import DescriptionItem</div><div>+from sugar3.graphics.colorbutton import ColorToolButton</div>
<div> </div><div> class HelloWorldActivity(activity.Activity):</div><div> """HelloWorldActivity class as specified in <a href="http://activity.info">activity.info</a>"""</div><div>@@ -58,7 +60,14 @@ class HelloWorldActivity(activity.Activity):</div>
<div> share_button = ShareButton(self)</div><div> toolbar_box.toolbar.insert(share_button, -1)</div><div> share_button.show()</div><div>+</div><div>+ color = ColorToolButton()</div><div>+ tool_item = Gtk.ToolItem()</div>
<div>+ tool_item.add(color)</div><div>+ color.show()</div><div>+ tool_item.show()</div><div>+ toolbar_box.toolbar.insert(tool_item, -1)</div><div>+</div><div> separator = Gtk.SeparatorToolItem()</div>
<div> separator.props.draw = False</div><div> separator.set_expand(True)</div></div><div><br></div>