Pushed and published<div><br></div><div>Gonzalo<br><br><div class="gmail_quote">On Fri, Aug 24, 2012 at 11:27 AM, Manuel Kaufmann <span dir="ltr"><<a href="mailto:humitos@gmail.com" target="_blank">humitos@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ComboBox doesn't work properly and this have a bad impact on touch<br>
screen. We decided to use RadioMenuButton instead of ComboBox because<br>
it make easier changing the board size.<br>
<br>
Signed-off-by: Manuel Kaufmann <<a href="mailto:humitos@gmail.com">humitos@gmail.com</a>><br>
---<br>
 icons/4 X 4.svg       | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++<br>
 icons/5 X 5.svg       | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++<br>
 icons/6 X 6.svg       | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++<br>
 icons/change_size.svg | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++<br>
 memorizetoolbar.py    | 16 ++++++----<br>
 5 files changed, 361 insertions(+), 7 deletions(-)<br>
 create mode 100644 icons/4 X 4.svg<br>
 create mode 100644 icons/5 X 5.svg<br>
 create mode 100644 icons/6 X 6.svg<br>
 create mode 100644 icons/change_size.svg<br>
<br>
diff --git a/icons/4 X 4.svg b/icons/4 X 4.svg<br>
new file mode 100644<br>
index 0000000..68c8551<br>
--- /dev/null<br>
+++ b/icons/4 X 4.svg<br>
@@ -0,0 +1,88 @@<br>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
+<svg<br>
+   xmlns:dc="<a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/elements/1.1/</a>"<br>
+   xmlns:cc="<a href="http://creativecommons.org/ns#" target="_blank">http://creativecommons.org/ns#</a>"<br>
+   xmlns:rdf="<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#" target="_blank">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>"<br>
+   xmlns:svg="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>"<br>
+   xmlns="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>"<br>
+   xmlns:sodipodi="<a href="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" target="_blank">http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd</a>"<br>
+   xmlns:inkscape="<a href="http://www.inkscape.org/namespaces/inkscape" target="_blank">http://www.inkscape.org/namespaces/inkscape</a>"<br>
+   width="42"<br>
+   height="42"<br>
+   id="svg2"<br>
+   sodipodi:version="0.32"<br>
+   inkscape:version="0.48.2 r9819"<br>
+   version="1.0"<br>
+   sodipodi:docname="4 X 4.svg"<br>
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"><br>
+  <defs<br>
+     id="defs4" /><br>
+  <sodipodi:namedview<br>
+     id="base"<br>
+     pagecolor="#ffffff"<br>
+     bordercolor="#666666"<br>
+     borderopacity="1.0"<br>
+     gridtolerance="10000"<br>
+     guidetolerance="10"<br>
+     objecttolerance="10"<br>
+     inkscape:pageopacity="0.0"<br>
+     inkscape:pageshadow="2"<br>
+     inkscape:zoom="8.65364"<br>
+     inkscape:cx="1.7881141"<br>
+     inkscape:cy="16.282349"<br>
+     inkscape:document-units="px"<br>
+     inkscape:current-layer="layer1"<br>
+     width="42px"<br>
+     height="42px"<br>
+     inkscape:window-width="1152"<br>
+     inkscape:window-height="740"<br>
+     inkscape:window-x="151"<br>
+     inkscape:window-y="307"<br>
+     showgrid="false"<br>
+     inkscape:window-maximized="0" /><br>
+  <metadata<br>
+     id="metadata7"><br>
+    <rdf:RDF><br>
+      <cc:Work<br>
+         rdf:about=""><br>
+        <dc:format>image/svg+xml</dc:format><br>
+        <dc:type<br>
+           rdf:resource="<a href="http://purl.org/dc/dcmitype/StillImage" target="_blank">http://purl.org/dc/dcmitype/StillImage</a>" /><br>
+        <dc:title></dc:title><br>
+      </cc:Work><br>
+    </rdf:RDF><br>
+  </metadata><br>
+  <g<br>
+     inkscape:label="Layer 1"<br>
+     inkscape:groupmode="layer"<br>
+     id="layer1"><br>
+    <rect<br>
+       style="fill:#4c4d4f;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"<br>
+       id="rect7017"<br>
+       width="30.046175"<br>
+       height="30.046175"<br>
+       x="9.9769115"<br>
+       y="1.9769124"<br>
+       ry="4.5299301" /><br>
+    <rect<br>
+       style="fill:#4c4d4f;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"<br>
+       id="rect3133"<br>
+       width="30.046175"<br>
+       height="30.046175"<br>
+       x="1.9769125"<br>
+       y="9.9769125"<br>
+       ry="4.5299301" /><br>
+    <text<br>
+       xml:space="preserve"<br>
+       style="font-size:28.78175545px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans"<br>
+       x="7.9494867"<br>
+       y="35.491005"<br>
+       id="text3009"<br>
+       sodipodi:linespacing="125%"><tspan<br>
+         sodipodi:role="line"<br>
+         id="tspan3011"<br>
+         x="7.9494867"<br>
+         y="35.491005"<br>
+         style="fill:#ffffff;stroke:none">4</tspan></text><br>
+  </g><br>
+</svg><br>
diff --git a/icons/5 X 5.svg b/icons/5 X 5.svg<br>
new file mode 100644<br>
index 0000000..b5cff16<br>
--- /dev/null<br>
+++ b/icons/5 X 5.svg<br>
@@ -0,0 +1,88 @@<br>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
+<svg<br>
+   xmlns:dc="<a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/elements/1.1/</a>"<br>
+   xmlns:cc="<a href="http://creativecommons.org/ns#" target="_blank">http://creativecommons.org/ns#</a>"<br>
+   xmlns:rdf="<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#" target="_blank">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>"<br>
+   xmlns:svg="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>"<br>
+   xmlns="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>"<br>
+   xmlns:sodipodi="<a href="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" target="_blank">http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd</a>"<br>
+   xmlns:inkscape="<a href="http://www.inkscape.org/namespaces/inkscape" target="_blank">http://www.inkscape.org/namespaces/inkscape</a>"<br>
+   width="42"<br>
+   height="42"<br>
+   id="svg2"<br>
+   sodipodi:version="0.32"<br>
+   inkscape:version="0.48.2 r9819"<br>
+   version="1.0"<br>
+   sodipodi:docname="4 X 4.svg"<br>
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"><br>
+  <defs<br>
+     id="defs4" /><br>
+  <sodipodi:namedview<br>
+     id="base"<br>
+     pagecolor="#ffffff"<br>
+     bordercolor="#666666"<br>
+     borderopacity="1.0"<br>
+     gridtolerance="10000"<br>
+     guidetolerance="10"<br>
+     objecttolerance="10"<br>
+     inkscape:pageopacity="0.0"<br>
+     inkscape:pageshadow="2"<br>
+     inkscape:zoom="8.65364"<br>
+     inkscape:cx="1.7881141"<br>
+     inkscape:cy="16.282349"<br>
+     inkscape:document-units="px"<br>
+     inkscape:current-layer="layer1"<br>
+     width="42px"<br>
+     height="42px"<br>
+     inkscape:window-width="1152"<br>
+     inkscape:window-height="740"<br>
+     inkscape:window-x="151"<br>
+     inkscape:window-y="307"<br>
+     showgrid="false"<br>
+     inkscape:window-maximized="0" /><br>
+  <metadata<br>
+     id="metadata7"><br>
+    <rdf:RDF><br>
+      <cc:Work<br>
+         rdf:about=""><br>
+        <dc:format>image/svg+xml</dc:format><br>
+        <dc:type<br>
+           rdf:resource="<a href="http://purl.org/dc/dcmitype/StillImage" target="_blank">http://purl.org/dc/dcmitype/StillImage</a>" /><br>
+        <dc:title></dc:title><br>
+      </cc:Work><br>
+    </rdf:RDF><br>
+  </metadata><br>
+  <g<br>
+     inkscape:label="Layer 1"<br>
+     inkscape:groupmode="layer"<br>
+     id="layer1"><br>
+    <rect<br>
+       style="fill:#4c4d4f;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"<br>
+       id="rect7017"<br>
+       width="30.046175"<br>
+       height="30.046175"<br>
+       x="9.9769115"<br>
+       y="1.9769124"<br>
+       ry="4.5299301" /><br>
+    <rect<br>
+       style="fill:#4c4d4f;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"<br>
+       id="rect3133"<br>
+       width="30.046175"<br>
+       height="30.046175"<br>
+       x="1.9769125"<br>
+       y="9.9769125"<br>
+       ry="4.5299301" /><br>
+    <text<br>
+       xml:space="preserve"<br>
+       style="font-size:28.78175545px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans"<br>
+       x="7.9494867"<br>
+       y="35.491005"<br>
+       id="text3009"<br>
+       sodipodi:linespacing="125%"><tspan<br>
+         sodipodi:role="line"<br>
+         id="tspan3011"<br>
+         x="7.9494867"<br>
+         y="35.491005"<br>
+         style="fill:#ffffff;stroke:none">5</tspan></text><br>
+  </g><br>
+</svg><br>
diff --git a/icons/6 X 6.svg b/icons/6 X 6.svg<br>
new file mode 100644<br>
index 0000000..cda5de9<br>
--- /dev/null<br>
+++ b/icons/6 X 6.svg<br>
@@ -0,0 +1,88 @@<br>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
+<svg<br>
+   xmlns:dc="<a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/elements/1.1/</a>"<br>
+   xmlns:cc="<a href="http://creativecommons.org/ns#" target="_blank">http://creativecommons.org/ns#</a>"<br>
+   xmlns:rdf="<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#" target="_blank">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>"<br>
+   xmlns:svg="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>"<br>
+   xmlns="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>"<br>
+   xmlns:sodipodi="<a href="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" target="_blank">http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd</a>"<br>
+   xmlns:inkscape="<a href="http://www.inkscape.org/namespaces/inkscape" target="_blank">http://www.inkscape.org/namespaces/inkscape</a>"<br>
+   width="42"<br>
+   height="42"<br>
+   id="svg2"<br>
+   sodipodi:version="0.32"<br>
+   inkscape:version="0.48.2 r9819"<br>
+   version="1.0"<br>
+   sodipodi:docname="5 X 5.svg"<br>
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"><br>
+  <defs<br>
+     id="defs4" /><br>
+  <sodipodi:namedview<br>
+     id="base"<br>
+     pagecolor="#ffffff"<br>
+     bordercolor="#666666"<br>
+     borderopacity="1.0"<br>
+     gridtolerance="10000"<br>
+     guidetolerance="10"<br>
+     objecttolerance="10"<br>
+     inkscape:pageopacity="0.0"<br>
+     inkscape:pageshadow="2"<br>
+     inkscape:zoom="8.65364"<br>
+     inkscape:cx="1.7881141"<br>
+     inkscape:cy="16.282349"<br>
+     inkscape:document-units="px"<br>
+     inkscape:current-layer="layer1"<br>
+     width="42px"<br>
+     height="42px"<br>
+     inkscape:window-width="1152"<br>
+     inkscape:window-height="740"<br>
+     inkscape:window-x="151"<br>
+     inkscape:window-y="307"<br>
+     showgrid="false"<br>
+     inkscape:window-maximized="0" /><br>
+  <metadata<br>
+     id="metadata7"><br>
+    <rdf:RDF><br>
+      <cc:Work<br>
+         rdf:about=""><br>
+        <dc:format>image/svg+xml</dc:format><br>
+        <dc:type<br>
+           rdf:resource="<a href="http://purl.org/dc/dcmitype/StillImage" target="_blank">http://purl.org/dc/dcmitype/StillImage</a>" /><br>
+        <dc:title></dc:title><br>
+      </cc:Work><br>
+    </rdf:RDF><br>
+  </metadata><br>
+  <g<br>
+     inkscape:label="Layer 1"<br>
+     inkscape:groupmode="layer"<br>
+     id="layer1"><br>
+    <rect<br>
+       style="fill:#4c4d4f;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"<br>
+       id="rect7017"<br>
+       width="30.046175"<br>
+       height="30.046175"<br>
+       x="9.9769115"<br>
+       y="1.9769124"<br>
+       ry="4.5299301" /><br>
+    <rect<br>
+       style="fill:#4c4d4f;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"<br>
+       id="rect3133"<br>
+       width="30.046175"<br>
+       height="30.046175"<br>
+       x="1.9769125"<br>
+       y="9.9769125"<br>
+       ry="4.5299301" /><br>
+    <text<br>
+       xml:space="preserve"<br>
+       style="font-size:28.78175545px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans"<br>
+       x="7.9494867"<br>
+       y="35.491005"<br>
+       id="text3009"<br>
+       sodipodi:linespacing="125%"><tspan<br>
+         sodipodi:role="line"<br>
+         id="tspan3011"<br>
+         x="7.9494867"<br>
+         y="35.491005"<br>
+         style="fill:#ffffff;stroke:none">6</tspan></text><br>
+  </g><br>
+</svg><br>
diff --git a/icons/change_size.svg b/icons/change_size.svg<br>
new file mode 100644<br>
index 0000000..0336d4b<br>
--- /dev/null<br>
+++ b/icons/change_size.svg<br>
@@ -0,0 +1,88 @@<br>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
+<svg<br>
+   xmlns:dc="<a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/elements/1.1/</a>"<br>
+   xmlns:cc="<a href="http://creativecommons.org/ns#" target="_blank">http://creativecommons.org/ns#</a>"<br>
+   xmlns:rdf="<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#" target="_blank">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>"<br>
+   xmlns:svg="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>"<br>
+   xmlns="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>"<br>
+   xmlns:sodipodi="<a href="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" target="_blank">http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd</a>"<br>
+   xmlns:inkscape="<a href="http://www.inkscape.org/namespaces/inkscape" target="_blank">http://www.inkscape.org/namespaces/inkscape</a>"<br>
+   width="42"<br>
+   height="42"<br>
+   id="svg2"<br>
+   sodipodi:version="0.32"<br>
+   inkscape:version="0.48.2 r9819"<br>
+   version="1.0"<br>
+   sodipodi:docname="change_size.svg"<br>
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"><br>
+  <defs<br>
+     id="defs4" /><br>
+  <sodipodi:namedview<br>
+     id="base"<br>
+     pagecolor="#ffffff"<br>
+     bordercolor="#666666"<br>
+     borderopacity="1.0"<br>
+     gridtolerance="10000"<br>
+     guidetolerance="10"<br>
+     objecttolerance="10"<br>
+     inkscape:pageopacity="0.0"<br>
+     inkscape:pageshadow="2"<br>
+     inkscape:zoom="8.65364"<br>
+     inkscape:cx="2.1138261"<br>
+     inkscape:cy="16.282349"<br>
+     inkscape:document-units="px"<br>
+     inkscape:current-layer="layer1"<br>
+     width="42px"<br>
+     height="42px"<br>
+     inkscape:window-width="1152"<br>
+     inkscape:window-height="740"<br>
+     inkscape:window-x="151"<br>
+     inkscape:window-y="307"<br>
+     showgrid="false"<br>
+     inkscape:window-maximized="0" /><br>
+  <metadata<br>
+     id="metadata7"><br>
+    <rdf:RDF><br>
+      <cc:Work<br>
+         rdf:about=""><br>
+        <dc:format>image/svg+xml</dc:format><br>
+        <dc:type<br>
+           rdf:resource="<a href="http://purl.org/dc/dcmitype/StillImage" target="_blank">http://purl.org/dc/dcmitype/StillImage</a>" /><br>
+        <dc:title></dc:title><br>
+      </cc:Work><br>
+    </rdf:RDF><br>
+  </metadata><br>
+  <g<br>
+     inkscape:label="Layer 1"<br>
+     inkscape:groupmode="layer"<br>
+     id="layer1"><br>
+    <rect<br>
+       style="fill:#4c4d4f;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"<br>
+       id="rect7017"<br>
+       width="30.046175"<br>
+       height="30.046175"<br>
+       x="9.9769115"<br>
+       y="1.9769124"<br>
+       ry="4.5299301" /><br>
+    <rect<br>
+       style="fill:#4c4d4f;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"<br>
+       id="rect3133"<br>
+       width="30.046175"<br>
+       height="30.046175"<br>
+       x="1.9769125"<br>
+       y="9.9769125"<br>
+       ry="4.5299301" /><br>
+    <text<br>
+       xml:space="preserve"<br>
+       style="font-size:28.78175545px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans"<br>
+       x="9.333766"<br>
+       y="35.680729"<br>
+       id="text3009"<br>
+       sodipodi:linespacing="125%"><tspan<br>
+         sodipodi:role="line"<br>
+         id="tspan3011"<br>
+         x="9.333766"<br>
+         y="35.680729"<br>
+         style="fill:#ffffff;stroke:none">?</tspan></text><br>
+  </g><br>
+</svg><br>
diff --git a/memorizetoolbar.py b/memorizetoolbar.py<br>
index c7e4366..916c0d4 100644<br>
--- a/memorizetoolbar.py<br>
+++ b/memorizetoolbar.py<br>
@@ -67,14 +67,16 @@ class MemorizeToolbarBuilder(gobject.GObject):<br>
         self.toolbar.insert(self._demo_games, -1)<br>
<br>
         # Change size combobox<br>
-        self._size_combo = ToolComboBox()<br>
+        self._size_combo = RadioMenuButton(icon_name='change_size')<br>
+        self._size_combo.props.tooltip = _('Change size')<br>
         self._sizes = ['4 X 4', '5 X 5', '6 X 6']<br>
+<br>
         for i, f in enumerate(self._sizes):<br>
-            self._size_combo.combo.append_item(i, f)<br>
-        self.size_handle_id = self._size_combo.combo.connect( \<br>
-                'changed', self._game_size_cb)<br>
+            menu_item = MenuItem(f, icon_name=self._sizes[i])<br>
+            menu_item.connect('activate', self._game_size_cb, i)<br>
+            self._size_combo.props.palette.menu.append(menu_item)<br>
+            menu_item.show()<br>
         self.toolbar.insert(self._size_combo, -1)<br>
-        self._size_combo.combo.set_active(0)<br>
<br>
         # Reset Button<br>
         self._restart_button = ToolButton('game-new')<br>
@@ -92,8 +94,8 @@ class MemorizeToolbarBuilder(gobject.GObject):<br>
         self._demo_games.set_sensitive(active)<br>
         self._restart_button.set_sensitive(active)<br>
<br>
-    def _game_size_cb(self, widget):<br>
-        game_size = int(self._sizes[self._size_combo.combo.get_active()][0])<br>
+    def _game_size_cb(self, widget, i):<br>
+        game_size = int(self._sizes[i][0])<br>
         self.emit('game_changed', None, game_size, 'size', None, None)<br>
<br>
     def __activate_game_cb(self, menu, i):<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.11.4<br>
<br>
</font></span></blockquote></div><br></div>