Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-08-31 14:19:34 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-09-25 12:11:07 (GMT)
commit546e8baf1757b86a4c39b56167ae8e75164313b4 (patch)
treea7114d9f93fb865d2105238249dc216676df0b04
parent69b9e20d446097e6e8b8370acb322cbace96904a (diff)
Add icons in the examples menu
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--icons/addition.svg57
-rw-r--r--icons/letters.svg57
-rw-r--r--icons/sounds.svg64
-rw-r--r--memorizetoolbar.py2
4 files changed, 179 insertions, 1 deletions
diff --git a/icons/addition.svg b/icons/addition.svg
new file mode 100644
index 0000000..473c978
--- /dev/null
+++ b/icons/addition.svg
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.0"
+ width="42"
+ height="42"
+ id="svg2">
+ <defs
+ id="defs4" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer1">
+ <rect
+ width="30.046175"
+ height="30.046175"
+ ry="4.5299301"
+ x="9.9769115"
+ y="1.9769124"
+ id="rect7017"
+ 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" />
+ <rect
+ width="30.046175"
+ height="30.046175"
+ ry="4.5299301"
+ x="1.9769125"
+ y="9.9769125"
+ id="rect3133"
+ 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" />
+ <text
+ x="4.9420185"
+ y="34.022408"
+ id="text3009"
+ xml:space="preserve"
+ style="font-size:28.78175545px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"><tspan
+ x="4.9420185"
+ y="34.022408"
+ id="tspan3011"
+ style="font-size:28.78175545px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold">+</tspan></text>
+ </g>
+</svg>
diff --git a/icons/letters.svg b/icons/letters.svg
new file mode 100644
index 0000000..d9f5a81
--- /dev/null
+++ b/icons/letters.svg
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.0"
+ width="42"
+ height="42"
+ id="svg2">
+ <defs
+ id="defs4" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer1">
+ <rect
+ width="30.046175"
+ height="30.046175"
+ ry="4.5299301"
+ x="9.9769115"
+ y="1.9769124"
+ id="rect7017"
+ 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" />
+ <rect
+ width="30.046175"
+ height="30.046175"
+ ry="4.5299301"
+ x="1.9769125"
+ y="9.9769125"
+ id="rect3133"
+ 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" />
+ <text
+ x="7.7128906"
+ y="33.748047"
+ id="text3009"
+ xml:space="preserve"
+ style="font-size:28.78175545px;font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Italic"><tspan
+ x="7.7128906"
+ y="33.748047"
+ id="tspan3011"
+ style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold">A</tspan></text>
+ </g>
+</svg>
diff --git a/icons/sounds.svg b/icons/sounds.svg
new file mode 100644
index 0000000..8b07a45
--- /dev/null
+++ b/icons/sounds.svg
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.0"
+ width="42"
+ height="42"
+ id="svg2">
+ <defs
+ id="defs4" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer1">
+ <rect
+ width="30.046175"
+ height="30.046175"
+ ry="4.5299301"
+ x="9.9769115"
+ y="1.9769124"
+ id="rect7017"
+ 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" />
+ <rect
+ width="30.046175"
+ height="30.046175"
+ ry="4.5299301"
+ x="1.9769125"
+ y="9.9769125"
+ id="rect3133"
+ 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" />
+ <g
+ transform="matrix(1.1228087,0,0,1.1228087,1.4955034,0.28097405)"
+ id="g3902"
+ style="opacity:0.86000001">
+ <path
+ d="m 8.8075905,18.920153 c 1.9412645,2.392566 1.6059935,3.888711 0.097893,6.190394"
+ id="path3095"
+ style="fill:none;stroke:#ffffff;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ <path
+ d="m 12.88411,17.564115 c 2.220402,3.440774 2.014076,5.592395 0.140777,8.902469"
+ id="path3095-3"
+ style="fill:none;stroke:#ffffff;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ <path
+ d="m 17.013014,16.06748 c 1.908132,3.343764 2.761178,6.686002 0.18811,11.895739"
+ id="path3095-1"
+ style="fill:none;stroke:#ffffff;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ </g>
+ </g>
+</svg>
diff --git a/memorizetoolbar.py b/memorizetoolbar.py
index 916c0d4..dc6bc98 100644
--- a/memorizetoolbar.py
+++ b/memorizetoolbar.py
@@ -60,7 +60,7 @@ class MemorizeToolbarBuilder(gobject.GObject):
self._demo_games.props.tooltip = _('Load demo games')
for i, game in enumerate(self.translated_game_names):
- menu_item = MenuItem(game)
+ menu_item = MenuItem(game, icon_name=self.standard_game_names[i])
menu_item.connect('activate', self.__activate_game_cb, i)
self._demo_games.props.palette.menu.append(menu_item)
menu_item.show()