Thanks James!<br>Trying again...<br><br>From dd88a9833d7bf0a4de3dd64bf306c713db84711e Mon Sep 17 00:00:00 2001<br>From: Gonzalo Odiard &lt;gonzalo@aronax.(none)&gt;<br>Date: Mon, 17 May 2010 20:43:05 -0300<br>Subject: [PATCH] fix #1015<br>
<br>---<br> icons/icon-fill.svg   |   11 +++--<br> icons/icon-stroke.svg |   30 ++++----------<br> toolbox.py            |  109 +++++++++----------------------------------------<br> 3 files changed, 34 insertions(+), 116 deletions(-)<br>
<br>diff --git a/icons/icon-fill.svg b/icons/icon-fill.svg<br>index bf1925a..d424356 100644<br>--- a/icons/icon-fill.svg<br>+++ b/icons/icon-fill.svg<br>@@ -1,5 +1,7 @@<br>-&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>
-&lt;!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948)  --&gt;<br>+&lt;?xml version=&quot;1.0&quot; ?&gt;&lt;!DOCTYPE svg  PUBLIC &#39;-//W3C//DTD SVG 1.1//EN&#39;  &#39;<a href="http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd</a>&#39; [<br>
+    &lt;!ENTITY stroke_color &quot;#010101&quot;&gt;<br>+    &lt;!ENTITY fill_color &quot;#FFFFFF&quot;&gt;<br>+]&gt;<br> &lt;svg<br>    xmlns:dc=&quot;<a href="http://purl.org/dc/elements/1.1/">http://purl.org/dc/elements/1.1/</a>&quot;<br>
    xmlns:cc=&quot;<a href="http://web.resource.org/cc/">http://web.resource.org/cc/</a>&quot;<br>@@ -48,9 +50,10 @@<br>    inkscape:current-layer=&quot;svg2&quot; /&gt;<br> <br> &lt;path<br>-   style=&quot;fill:#ffffff;display:inline&quot;<br>
+   style=&quot;fill:&amp;fill_color;;display:inline;stroke-opacity:1&quot; stroke-width=&quot;3&quot;<br>    d=&quot;M 48.897307,33.594988 C 48.897307,44.525692 24.353188,48.898307 15.889502,42.513082 C 7.1635122,35.929969 8.1442163,21.098901 17.129718,14.87467 C 22.64423,11.054784 34.272782,10.165018 36.496363,19.452618 C 39.041402,30.082908 48.897307,22.664284 48.897307,33.594988 z &quot;<br>
    id=&quot;circle5&quot;<br>    sodipodi:nodetypes=&quot;csssc&quot; /&gt;<br> <br>-&lt;/svg&gt;<br>\ No newline at end of file<br>+&lt;/svg&gt;<br>+<br>diff --git a/icons/icon-stroke.svg b/icons/icon-stroke.svg<br>index 71545c8..cb6f5b4 100644<br>
--- a/icons/icon-stroke.svg<br>+++ b/icons/icon-stroke.svg<br>@@ -1,5 +1,7 @@<br>-&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>-&lt;!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948)  --&gt;<br>
+&lt;?xml version=&quot;1.0&quot; ?&gt;&lt;!DOCTYPE svg  PUBLIC &#39;-//W3C//DTD SVG 1.1//EN&#39;  &#39;<a href="http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd</a>&#39; [<br>
+    &lt;!ENTITY stroke_color &quot;#010101&quot;&gt;<br>+    &lt;!ENTITY fill_color &quot;#FFFFFF&quot;&gt;<br>+]&gt;<br> &lt;svg<br>    xmlns:dc=&quot;<a href="http://purl.org/dc/elements/1.1/">http://purl.org/dc/elements/1.1/</a>&quot;<br>
    xmlns:cc=&quot;<a href="http://web.resource.org/cc/">http://web.resource.org/cc/</a>&quot;<br>@@ -28,29 +30,13 @@<br>          rdf:resource=&quot;<a href="http://purl.org/dc/dcmitype/StillImage">http://purl.org/dc/dcmitype/StillImage</a>&quot; /&gt;&lt;/cc:Work&gt;&lt;/rdf:RDF&gt;&lt;/metadata&gt;&lt;defs<br>
    id=&quot;defs8&quot;&gt;<br>     <br>-&lt;/defs&gt;&lt;sodipodi:namedview<br>-   inkscape:window-height=&quot;941&quot;<br>-   inkscape:window-width=&quot;1269&quot;<br>-   inkscape:pageshadow=&quot;2&quot;<br>-   inkscape:pageopacity=&quot;0.0&quot;<br>
-   guidetolerance=&quot;10.0&quot;<br>-   gridtolerance=&quot;10.0&quot;<br>-   objecttolerance=&quot;10.0&quot;<br>-   borderopacity=&quot;1.0&quot;<br>-   bordercolor=&quot;#666666&quot;<br>-   pagecolor=&quot;#ffffff&quot;<br>
-   id=&quot;base&quot;<br>-   inkscape:zoom=&quot;6.8909091&quot;<br>-   inkscape:cx=&quot;27.5&quot;<br>-   inkscape:cy=&quot;15.890501&quot;<br>-   inkscape:window-x=&quot;0&quot;<br>-   inkscape:window-y=&quot;27&quot;<br>
-   inkscape:current-layer=&quot;svg2&quot; /&gt;<br>+&lt;/defs&gt;<br> <br> &lt;path<br>-   style=&quot;fill:none;display:inline;stroke:#ffffff;stroke-opacity:1&quot;<br>+   style=&quot;fill:none;display:inline;stroke:&amp;fill_color;;stroke-opacity:1&quot; stroke-width=&quot;3&quot;<br>
    d=&quot;M 48.897307,33.594988 C 48.897307,44.525692 24.353188,48.898307 15.889502,42.513082 C 7.1635122,35.929969 8.1442163,21.098901 17.129718,14.87467 C 22.64423,11.054784 34.272782,10.165018 36.496363,19.452618 C 39.041402,30.082908 48.897307,22.664284 48.897307,33.594988 z &quot;<br>
    id=&quot;circle5&quot;<br>    sodipodi:nodetypes=&quot;csssc&quot; /&gt;<br> <br>-&lt;/svg&gt;<br>\ No newline at end of file<br>+&lt;/svg&gt;<br>+<br>diff --git a/toolbox.py b/toolbox.py<br>index 9bed17b..3962b90 100644<br>
--- a/toolbox.py<br>+++ b/toolbox.py<br>@@ -72,6 +72,7 @@ from sugar.graphics.toggletoolbutton import ToggleToolButton<br> from sugar.graphics.combobox import ComboBox<br> from sugar.graphics.palette import Palette<br> from sugar.graphics.menuitem import MenuItem<br>
+from sugar.graphics.colorbutton import ColorToolButton<br> from sugar.graphics.objectchooser import ObjectChooser<br> <br> ##Create toolbars for the activity<br>@@ -84,27 +85,27 @@ class Toolbox(ActivityToolbox):<br>         <br>
         self._edit_toolbar = DrawEditToolbar(activity)<br>         self.add_toolbar(_(&#39;Edit&#39;), self._edit_toolbar)<br>-        self._edit_toolbar.show()<br>+        self._edit_toolbar.show_all()<br>         <br>         self._tools_toolbar = ToolsToolbar(activity)<br>
         self.add_toolbar(_(&#39;Tools&#39;), self._tools_toolbar)<br>-        self._tools_toolbar.show()<br>+        self._tools_toolbar.show_all()<br> <br>         self._shapes_toolbar = ShapesToolbar(activity)<br>         self.add_toolbar(_(&#39;Shapes&#39;), self._shapes_toolbar)<br>
-        self._shapes_toolbar.show()<br>+        self._shapes_toolbar.show_all()<br> <br>         self._text_toolbar = TextToolbar(activity)<br>         self.add_toolbar(_(&#39;Text&#39;), self._text_toolbar)<br>-        self._text_toolbar.show()   <br>
+        self._text_toolbar.show_all()   <br> <br>         self._image_toolbar = ImageToolbar(activity)<br>         self.add_toolbar(_(&#39;Image&#39;), self._image_toolbar)<br>-        self._image_toolbar.show()<br>+        self._image_toolbar.show_all()<br>
 <br>         self._effects_toolbar = EffectsToolbar(activity)<br>         self.add_toolbar(_(&#39;Effects&#39;), self._effects_toolbar)<br>-        self._effects_toolbar.show()<br>+        self._effects_toolbar.show_all()<br>
 <br>         #self._view_toolbar = ViewToolbar(activity)<br>         #self.add_toolbar(_(&#39;View&#39;), self._view_toolbar)<br>@@ -129,11 +130,9 @@ class DrawEditToolbar(EditToolbar):<br>         separator = gtk.SeparatorToolItem()<br>
         separator.set_draw(True)<br>         self.insert(separator, -1)<br>-        separator.show()<br>         <br>         self._clear_all = ToolButton(&#39;edit-clear&#39;)<br>         self.insert(self._clear_all, -1)<br>
-        self._clear_all.show()<br>         self._clear_all.set_tooltip(_(&#39;Clear&#39;))<br>         <br>         self.undo.connect(&#39;clicked&#39;, self._undo_cb)<br>@@ -285,27 +284,19 @@ class ToolsToolbar(gtk.Toolbar):<br>
          <br>         self._activity = activity<br> <br>-        self._icon_stroke = ToolButton(&#39;icon-stroke&#39;)<br>-        self.insert(self._icon_stroke, -1)<br>-        self._icon_stroke.show()<br>-        self._icon_stroke.set_tooltip(_(&#39;Tool Color&#39;))<br>
-        <br>         self._stroke_color = ButtonStrokeColor(activity)<br>-        self._stroke_color.show()<br>-#         self._stroke_color.set_tooltip(_(&#39;Stroke Color&#39;))<br>+        self._stroke_color.set_icon_name(&#39;icon-stroke&#39;)<br>
+        self._stroke_color.set_title(_(&#39;Stroke Color&#39;))<br>         item = gtk.ToolItem()<br>         item.add(self._stroke_color)<br>         self.insert(item, -1)<br>-        item.show()<br>         <br>         separator = gtk.SeparatorToolItem()<br>
         separator.set_draw(True)<br>         self.insert(separator, -1)<br>-        separator.show()<br> <br>         self._tool_pencil = ToolButton(&#39;tool-pencil&#39;)<br>         self.insert(self._tool_pencil, -1)<br>
-        self._tool_pencil.show()<br>         self._tool_pencil.set_tooltip(_(&#39;Pencil&#39;))<br>         try:<br>             self._configure_palette(self._tool_pencil, self._TOOL_PENCIL)<br>@@ -314,7 +305,6 @@ class ToolsToolbar(gtk.Toolbar):<br>
         <br>         self._tool_brush = ToolButton(&#39;tool-brush&#39;)<br>         self.insert(self._tool_brush, -1)<br>-        self._tool_brush.show()<br>         self._tool_brush.set_tooltip(_(&#39;Brush&#39;))<br>         try:<br>
             self._configure_palette(self._tool_brush, self._TOOL_BRUSH)<br>@@ -323,7 +313,6 @@ class ToolsToolbar(gtk.Toolbar):<br>         <br>         self._tool_eraser = ToolButton(&#39;tool-eraser&#39;)<br>         self.insert(self._tool_eraser, -1)<br>
-        self._tool_eraser.show()<br>         self._tool_eraser.set_tooltip(_(&#39;Eraser&#39;))<br>         try:<br>             self._configure_palette(self._tool_eraser, self._TOOL_ERASER)<br>@@ -332,7 +321,6 @@ class ToolsToolbar(gtk.Toolbar):<br>
         <br>         self._tool_polygon = ToolButton(&#39;tool-polygon&#39;)<br>         self.insert(self._tool_polygon, -1)<br>-        self._tool_polygon.show()<br>         self._tool_polygon.set_tooltip(_(&#39;Polygon&#39;))<br>
         try:<br>             self._configure_palette(self._tool_polygon, self._TOOL_POLYGON)<br>@@ -341,13 +329,11 @@ class ToolsToolbar(gtk.Toolbar):<br>         <br>         self._tool_bucket = ToolButton(&#39;tool-bucket&#39;)<br>
         self.insert(self._tool_bucket, -1)<br>-        self._tool_bucket.show()<br>         self._tool_bucket.set_tooltip(_(&#39;Bucket&#39;))<br>         <br>         separator = gtk.SeparatorToolItem()<br>         separator.set_draw(True)<br>
         self.insert(separator, -1)<br>-        separator.show()<br>         <br>         &quot;&quot;&quot;<br> <br>@@ -370,11 +356,8 @@ class ToolsToolbar(gtk.Toolbar):<br>         <br>         self._tool_marquee_rectangular = ToolButton(&#39;tool-marquee-rectangular&#39;)<br>
         self.insert(self._tool_marquee_rectangular, -1)<br>-        self._tool_marquee_rectangular.show()<br>         self._tool_marquee_rectangular.set_tooltip(_(&#39;Rectangular Marquee&#39;))<br>-        <br>-        self._icon_stroke.connect(&#39;clicked&#39;, self._on_icon_stroke_clicked)<br>
-        <br>+                <br>         # New connect method<br>         # Using dictionnaries to control tool&#39;s properties<br>         self._tool_polygon.connect(&#39;clicked&#39;, self.set_tool, self._TOOL_POLYGON)<br>
@@ -544,8 +527,6 @@ class ToolsToolbar(gtk.Toolbar):<br>         <br>         #setting cursor: Moved to Area<br>         <br>-    def _on_icon_stroke_clicked(self, widget, data=None):<br>-        self._stroke_color.clicked()<br>
         <br>     def _on_fill_checkbutton_toggled(self, checkbutton, button=None, tool=None):<br>         logging.debug(&#39;Checkbutton is Active: %s&#39;, checkbutton.get_active() )<br>@@ -584,10 +565,10 @@ class ToolsToolbar(gtk.Toolbar):<br>
 <br> <br> ##Class to manage the Fill Color of a Button<br>-class ButtonFillColor(gtk.ColorButton):<br>+class ButtonFillColor(ColorToolButton):<br>     ##The Constructor<br>     def __init__(self, activity):<br>-        gtk.ColorButton.__init__(self)<br>
+        ColorToolButton.__init__(self)<br>         self._activity = activity<br>         <br>         self.connect(&#39;color-set&#39;, self._color_button_cb)<br>@@ -605,10 +586,10 @@ class ButtonFillColor(gtk.ColorButton):<br>
         self._activity.area.set_fill_color(new_color)<br> <br> ##Class to manage the Stroke Color of a Button<br>-class ButtonStrokeColor(gtk.ColorButton):<br>+class ButtonStrokeColor(ColorToolButton):<br>     ##The Constructor<br>
     def __init__(self, activity):<br>-        gtk.ColorButton.__init__(self)<br>+        ColorToolButton.__init__(self)<br>         self._activity = activity<br>         <br>         self.connect(&#39;color-set&#39;, self._color_button_cb)<br>
@@ -743,39 +724,26 @@ class ShapesToolbar(gtk.Toolbar):<br> <br>         self._activity = activity<br>         <br>-        self._icon_fill = ToolButton(&#39;icon-fill&#39;)<br>-        self.insert(self._icon_fill, -1)<br>
-        self._icon_fill.show()<br>-        self._icon_fill.set_tooltip(_(&#39;Fill Color&#39;))<br>-        <br>         self._fill_color = ButtonFillColor(activity)<br>-        self._fill_color.show()<br>+        self._fill_color.set_icon_name(&#39;icon-fill&#39;)<br>
+        self._fill_color.set_title(_(&#39;Fill Color&#39;))<br>         item = gtk.ToolItem()<br>         item.add(self._fill_color)<br>         self.insert(item, -1)<br>-        item.show()<br>-        <br>-        self._icon_stroke = ToolButton(&#39;icon-stroke&#39;)<br>
-        self.insert(self._icon_stroke, -1)<br>-        self._icon_stroke.show()<br>-        self._icon_stroke.set_tooltip(_(&#39;Stroke Color&#39;))<br>-        <br>         <br>         self._stroke_color = ButtonStrokeColor(activity)<br>
-        self._stroke_color.show()<br>+        self._stroke_color.set_icon_name(&#39;icon-stroke&#39;)<br>+        self._stroke_color.set_title(_(&#39;Stroke Color&#39;))<br>         item = gtk.ToolItem()<br>         item.add(self._stroke_color)<br>
         self.insert(item, -1)<br>-        item.show()<br>         <br>         separator = gtk.SeparatorToolItem()<br>         separator.set_draw(True)<br>         self.insert(separator, -1)<br>-        separator.show()<br>
 <br>         self._shape_ellipse = ToolButton(&#39;tool-shape-ellipse&#39;)<br>         self.insert(self._shape_ellipse, -1)<br>-        self._shape_ellipse.show()<br>         self._shape_ellipse.set_tooltip(_(&#39;Ellipse&#39;))<br>
         try:<br>             self._configure_palette_shape_ellipse()<br>@@ -784,7 +752,6 @@ class ShapesToolbar(gtk.Toolbar):<br> <br>         self._shape_rectangle = ToolButton(&#39;tool-shape-rectangle&#39;)<br>         self.insert(self._shape_rectangle, -1)<br>
-        self._shape_rectangle.show()<br>         self._shape_rectangle.set_tooltip(_(&#39;Rectangle&#39;))<br>         try:<br>             self._configure_palette_shape_rectangle()<br>@@ -793,7 +760,6 @@ class ShapesToolbar(gtk.Toolbar):<br>
         <br>         self._shape_line = ToolButton(&#39;tool-shape-line&#39;)<br>         self.insert(self._shape_line, -1)<br>-        self._shape_line.show()<br>         self._shape_line.set_tooltip(_(&#39;Line&#39;))<br>
         try:<br>             self._configure_palette_shape_line()<br>@@ -802,7 +768,6 @@ class ShapesToolbar(gtk.Toolbar):<br>         <br>         self._shape_polygon = ToolButton(&#39;tool-shape-polygon&#39;)<br>         self.insert(self._shape_polygon, -1)<br>
-        self._shape_polygon.show()<br>         self._shape_polygon.set_tooltip(_(&#39;Polygon&#39;))<br>         try:<br>             self._configure_palette_shape_polygon()<br>@@ -820,7 +785,6 @@ class ShapesToolbar(gtk.Toolbar):<br>
 <br>         self._shape_heart = ToolButton(&#39;tool-shape-heart&#39;)<br>         self.insert(self._shape_heart, -1)<br>-        self._shape_heart.show()<br>         self._shape_heart.set_tooltip(_(&#39;Heart&#39;))<br>
         try:<br>             self._configure_palette_shape_heart()<br>@@ -830,7 +794,6 @@ class ShapesToolbar(gtk.Toolbar):<br> <br>         self._shape_parallelogram = ToolButton(&#39;tool-shape-parallelogram&#39;)<br>         self.insert(self._shape_parallelogram, -1)<br>
-        self._shape_parallelogram.show()<br>         self._shape_parallelogram.set_tooltip(_(&#39;Parallelogram&#39;))<br>         try:<br>             self._configure_palette_shape_parallelogram()<br>@@ -839,7 +802,6 @@ class ShapesToolbar(gtk.Toolbar):<br>
 <br>         self._shape_arrow = ToolButton(&#39;tool-shape-arrow&#39;)<br>         self.insert(self._shape_arrow, -1)<br>-        self._shape_arrow.show()<br>         self._shape_arrow.set_tooltip(_(&#39;Arrow&#39;))<br>
         try:<br>             self._configure_palette_shape_arrow()<br>@@ -848,7 +810,6 @@ class ShapesToolbar(gtk.Toolbar):<br> <br>         self._shape_star = ToolButton(&#39;tool-shape-star&#39;)<br>         self.insert(self._shape_star, -1)<br>
-        self._shape_star.show()<br>         self._shape_star.set_tooltip(_(&#39;Star&#39;))<br>         try:<br>             self._configure_palette_shape_star()<br>@@ -857,7 +818,6 @@ class ShapesToolbar(gtk.Toolbar):<br>
 <br>         self._shape_trapezoid = ToolButton(&#39;tool-shape-trapezoid&#39;)<br>         self.insert(self._shape_trapezoid, -1)<br>-        self._shape_trapezoid.show()<br>         self._shape_trapezoid.set_tooltip(_(&#39;Trapezoid&#39;))<br>
         try:<br>             self._configure_palette_shape_trapezoid()<br>@@ -866,7 +826,6 @@ class ShapesToolbar(gtk.Toolbar):<br> <br>         self._shape_triangle = ToolButton(&#39;tool-shape-triangle&#39;)<br>         self.insert(self._shape_triangle, -1)<br>
-        self._shape_triangle.show()<br>         self._shape_triangle.set_tooltip(_(&#39;Triangle&#39;))<br>         try:<br>             self._configure_palette_shape_triangle()<br>@@ -874,9 +833,6 @@ class ShapesToolbar(gtk.Toolbar):<br>
             logging.debug(&#39;Could not create palette for Shape Triangle&#39;)<br>         <br>         <br>-        self._icon_stroke.connect(&#39;clicked&#39;, self._on_icon_stroke_clicked)<br>-        self._icon_fill.connect(&#39;clicked&#39;, self._on_icon_fill_clicked)<br>
-<br>         self._shape_arrow.connect(&#39;clicked&#39;, self.set_tool, self._SHAPE_ARROW)<br>         self._shape_ellipse.connect(&#39;clicked&#39;, self.set_tool, self._SHAPE_ELLIPSE)<br>         #self._shape_freeform.connect(&#39;clicked&#39;, self.set_tool, self._SHAPE_FREEFORM)<br>
@@ -902,15 +858,7 @@ class ShapesToolbar(gtk.Toolbar):<br>         self._activity.area.set_tool(tool)<br>         <br>         #setting cursor: moved to Area<br>-        <br>-        <br>-    def _on_icon_stroke_clicked(self, widget, data=None):<br>
-        self._stroke_color.clicked()<br>-        <br>-    def _on_icon_fill_clicked(self, widget, data=None):<br>-        self._fill_color.clicked()<br>-        <br>-            <br>+                    <br>     def _on_vertices_value_changed(self, spinbutton, tool):<br>
         #self._activity.area.polygon_sides = spinbutton.get_value_as_int()<br>         tool[&#39;vertices&#39;] = spinbutton.get_value_as_int()<br>@@ -1100,21 +1048,17 @@ class TextToolbar(gtk.Toolbar):<br> <br>         self._text = ToolButton(&#39;text&#39;)<br>
         self.insert(self._text, -1)<br>-        self._text.show()<br>         self._text.set_tooltip(_(&#39;Type&#39;))<br>         self._text.connect(&#39;clicked&#39;, self.set_tool, self._ACTION_TEXT)<br>         <br>
         self._text_color = ButtonFillColor(activity)<br>-        self._text_color.show()<br>         item = gtk.ToolItem()<br>         item.add(self._text_color)<br>         self.insert(item, -1)<br>-        item.show()<br>
         <br>         separator = gtk.SeparatorToolItem()<br>         separator.set_draw(True)<br>         self.insert(separator, -1)<br>-        separator.show()<br>         <br>         <br>         &quot;&quot;&quot;<br>
@@ -1171,32 +1115,27 @@ class ImageToolbar(gtk.Toolbar):<br>         <br>         self._object_insert = ToolButton(&#39;object-insert&#39;)<br>         self.insert(self._object_insert, -1)<br>-        self._object_insert.show()<br>
         self._object_insert.set_tooltip(_(&#39;Insert Image&#39;))<br>         <br>         separator = gtk.SeparatorToolItem()<br>         separator.set_draw(True)<br>         self.insert(separator, -1)<br>-        separator.show()<br>
         <br>         self.width_percent = 1.<br>         self.height_percent = 1.<br>         <br>         self._object_rotate_left = ToolButton(&#39;object-rotate-left&#39;)<br>         self.insert(self._object_rotate_left, -1)<br>
-        self._object_rotate_left.show()<br>         self._object_rotate_left.set_tooltip(_(&#39;Rotate Left&#39;))<br>         self._object_rotate_left.set_sensitive( self._activity.area.is_selected() )<br>         <br>         self._object_rotate_right = ToolButton(&#39;object-rotate-right&#39;)<br>
         self.insert(self._object_rotate_right, -1)<br>-        self._object_rotate_right.show()<br>         self._object_rotate_right.set_tooltip(_(&#39;Rotate Right&#39;))<br>         self._object_rotate_right.set_sensitive( self._activity.area.is_selected() )<br>
         <br>         self._object_height = ToolButton(&#39;object-height&#39;)<br>         self.insert(self._object_height, -1)<br>-        self._object_height.show()<br>         self._object_height.set_tooltip(_(&#39;Height&#39;))           <br>
 <br>         height_spinButton = self._create_spinButton(self._object_height, &#39;object-height&#39;, activity)<br>@@ -1204,11 +1143,9 @@ class ImageToolbar(gtk.Toolbar):<br>         item = gtk.ToolItem()<br>         item.add(height_spinButton)<br>
         self.insert(item, -1)<br>-        item.show()<br> <br>         self._object_width = ToolButton(&#39;object-width&#39;)<br>         self.insert(self._object_width, -1)<br>-        self._object_width.show()<br>         self._object_width.set_tooltip(_(&#39;Width&#39;))<br>
 <br>         width_spinButton = self._create_spinButton(self._object_width, &#39;object-width&#39;, activity)<br>@@ -1216,7 +1153,6 @@ class ImageToolbar(gtk.Toolbar):<br>         item = gtk.ToolItem()<br>         item.add(width_spinButton)<br>
         self.insert(item, -1)<br>-        item.show()<br> <br>         self._object_insert.connect(&#39;clicked&#39;, self.insertImage, activity)<br>         self._object_rotate_left.connect(&#39;clicked&#39;, self.rotate_left, activity)<br>
@@ -1350,18 +1286,15 @@ class EffectsToolbar(gtk.Toolbar):<br> <br>         self._effect_grayscale = ToolButton(&#39;effect-grayscale&#39;)<br>         self.insert(self._effect_grayscale, -1)<br>-        self._effect_grayscale.show()<br>
         self._effect_grayscale.set_tooltip(_(&#39;Grayscale&#39;))<br>         <br>         self._effect_rainbow = ToolButton(&#39;effect-rainbow&#39;)<br>         self.insert(self._effect_rainbow, -1)<br>-        self._effect_rainbow.show()<br>
         self._effect_rainbow.set_tooltip(_(&#39;Rainbow&#39;))<br>         self._configure_palette(self._effect_rainbow, self._EFFECT_RAINBOW)<br>     <br>         separator = gtk.SeparatorToolItem()<br>         self.insert(separator, -1)<br>
-        separator.show()<br>         <br>         &quot;&quot;&quot;<br>         #FIXME: Must be implemented<br>@@ -1504,20 +1437,16 @@ class ViewToolbar(gtk.Toolbar):<br>         self._view_percent.set_active(0)<br>         self._view_percent.connect(&#39;changed&#39;, self._combo_changed_cb)<br>
         self.insert(tool_item, -1)<br>-        tool_item.show()<br>         <br>         separator = gtk.SeparatorToolItem()<br>         self.insert(separator, -1)<br>-        separator.show()<br> <br>         self._zoom_plus = ToolButton(&#39;zoom-plus&#39;)<br>
         self.insert(self._zoom_plus, -1)<br>-        self._zoom_plus.show()<br>         self._zoom_plus.set_tooltip(_(&#39;ZOOM +&#39;))<br> <br>         self._zoom_minus = ToolButton(&#39;zoom-minus&#39;)<br>         self.insert(self._zoom_minus, -1)<br>
-        self._zoom_minus.show()<br>         self._zoom_minus.set_tooltip(_(&#39;ZOOM -&#39;))<br> <br>         &#39;&#39;&#39;<br>-- <br>1.6.6.1<br><br><br><br><div class="gmail_quote">On Mon, May 17, 2010 at 7:43 PM, James Cameron <span dir="ltr">&lt;<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Mon, May 17, 2010 at 11:32:13AM -0300, Gonzalo Odiard wrote:<br>
&gt; Sorry, i have did &quot;diff -ur&quot; comparing directories. I must use git to<br>
&gt; do the patch?<br>
<br>
</div>There are several ways to do the patch, using git makes it easiest for<br>
those other people who must read your patch.  You don&#39;t have to make it<br>
easy, but it helps.  It is like writing neatly.<br>
<br>
Here&#39;s how to make a patch using git ...<br>
<br>
$ git clone git://<a href="http://git.sugarlabs.org/paint/mainline.git" target="_blank">git.sugarlabs.org/paint/mainline.git</a> paint.git<br>
$ cd paint.git<br>
$ ... change the files you want to change ...<br>
$ git commit -a -m &#39;fix #1015&#39;<br>
$ git format-patch -1<br>
0001-fix-1015.patch<br>
<br>
Then include that patch file in your e-mail, or use the file as the<br>
basis for an e-mail.  Avoid &quot;attach&quot;.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
</div></div></blockquote></div><br><br>