Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-08-28 22:53:36 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-08-28 22:53:36 (GMT)
commit87458b0aea14739324c822aaa4cea11722b347df (patch)
treed9b44a4a369051c967d257d6e55c0abbc620bb6e
parent74b64a7616ef57a2b81dfe77159b67456ee7a76a (diff)
Load provisory icon
-rw-r--r--data/evaluate.svg192
-rwxr-xr-xevaluate.py3
2 files changed, 194 insertions, 1 deletions
diff --git a/data/evaluate.svg b/data/evaluate.svg
new file mode 100644
index 0000000..29b266f
--- /dev/null
+++ b/data/evaluate.svg
@@ -0,0 +1,192 @@
+<?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"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="48px"
+ height="48px"
+ id="svg2985"
+ version="1.1"
+ inkscape:version="0.48.2 r9819"
+ sodipodi:docname="evaluate.svg">
+ <defs
+ id="defs2987" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="7"
+ inkscape:cx="22.367011"
+ inkscape:cy="36.986049"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ inkscape:grid-bbox="true"
+ inkscape:document-units="px"
+ inkscape:window-width="1366"
+ inkscape:window-height="706"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata2990">
+ <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"
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer">
+ <path
+ sodipodi:type="arc"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.93099999;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="path3785"
+ sodipodi:cx="40.42857"
+ sodipodi:cy="9.5"
+ sodipodi:rx="4.5714288"
+ sodipodi:ry="5.2142859"
+ d="m 40.718631,4.2962212 a 4.5714288,5.2142859 0 0 0 -0.113444,-0.00661"
+ sodipodi:start="4.7758826"
+ sodipodi:end="4.7510337"
+ sodipodi:open="true" />
+ <rect
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.93099999;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3787"
+ width="32"
+ height="2.8571429"
+ x="2"
+ y="5.7142859" />
+ <rect
+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.93099999000000000;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3789"
+ width="16.714285"
+ height="14.428572"
+ x="2.1428571"
+ y="11.285714" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.51636136;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3791"
+ width="11.77133"
+ height="1.3427573"
+ x="22.542906"
+ y="12.828621" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.6599071;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800"
+ width="23.125889"
+ height="1.5544633"
+ x="22.365627"
+ y="17.365629" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.71175671;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-27"
+ width="43.813625"
+ height="1.6122955"
+ x="2.0763655"
+ y="-29.613859"
+ transform="scale(1,-1)" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.51636136;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3791-0"
+ width="11.77133"
+ height="1.3427573"
+ x="22.542906"
+ y="15.042907" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.6599071;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-5"
+ width="23.125889"
+ height="1.5544633"
+ x="22.294199"
+ y="19.937054" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.6599071;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-8"
+ width="23.125889"
+ height="1.5544633"
+ x="22.294199"
+ y="22.794197" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.6599071;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-56"
+ width="23.125889"
+ height="1.5544633"
+ x="22.151342"
+ y="25.079912" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.71175671;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-27-38"
+ width="43.813625"
+ height="1.6122955"
+ x="1.9503301"
+ y="-31.949003"
+ transform="scale(1,-1)" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.71175671;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-27-9"
+ width="43.813625"
+ height="1.6122955"
+ x="1.9503307"
+ y="-34.520435"
+ transform="scale(1,-1)" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.71175671;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-27-30"
+ width="43.813625"
+ height="1.6122955"
+ x="1.9503303"
+ y="-36.949005"
+ transform="scale(1,-1)" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.71175671;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-27-4"
+ width="43.813625"
+ height="1.6122955"
+ x="1.9503301"
+ y="-39.520435"
+ transform="scale(1,-1)" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.71175671;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-27-2"
+ width="43.813625"
+ height="1.6122955"
+ x="2.0931873"
+ y="-42.091858"
+ transform="scale(1,-1)" />
+ <rect
+ style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.71175671;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3800-27-92"
+ width="43.813625"
+ height="1.6122955"
+ x="2.0931873"
+ y="-44.377575"
+ transform="scale(1,-1)" />
+ <text
+ xml:space="preserve"
+ style="font-size:8.86945343px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
+ x="32.70092"
+ y="14.715704"
+ id="text4016"
+ sodipodi:linespacing="125%"
+ transform="scale(1.1574149,0.86399443)"><tspan
+ sodipodi:role="line"
+ id="tspan4018"
+ x="32.70092"
+ y="14.715704">?</tspan></text>
+ </g>
+</svg>
diff --git a/evaluate.py b/evaluate.py
index ad92521..b000d4e 100755
--- a/evaluate.py
+++ b/evaluate.py
@@ -108,7 +108,8 @@ class Application(gtk.Window):
self.accel_group = gtk.AccelGroup()
self.add_accel_group(self.accel_group)
self.set_title(appname)
-# self.set_icon_name('application-icon')
+ self.set_icon(gtk.gdk.pixbuf_new_from_file(os.path.join(datadir,
+ '%s.svg' % info.lower_name)))
self.connect('delete-event', lambda w, e: self.stop())
self.maximize()
self._vbox = gtk.VBox()