diff options
author | Agustin Zubiaga <aguzubiaga97@gmail.com> | 2011-12-07 20:28:45 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguzubiaga97@gmail.com> | 2011-12-07 20:28:45 (GMT) |
commit | 8de926b6b42b93a1776a954c54b556cebf8e00ff (patch) | |
tree | 51d861f3427932add1d65485f6d1d936d7c5988f | |
parent | 0b556ca8cbad629b568fd871ebacba0b5cc9c30d (diff) |
Show the insert datetime icon button
Signed-off-by: Agustin Zubiaga <aguzubiaga97@gmail.com>
-rw-r--r-- | activity.py | 3 | ||||
-rw-r--r-- | icons/insert-datetime.svg | 109 |
2 files changed, 91 insertions, 21 deletions
diff --git a/activity.py b/activity.py index 8ec3c1c..18924d6 100644 --- a/activity.py +++ b/activity.py @@ -134,9 +134,10 @@ class JAMEdit(activity.Activity): separator.set_expand(True) edit_toolbar.insert(separator, -1) - insert_datetime = gtk.ToolButton("insert-datetime") + insert_datetime = ToolButton("insert-datetime") insert_datetime.connect("clicked", self.editor._insert_date_time) edit_toolbar.insert(insert_datetime, -1) + insert_datetime.show_all() edit_toolbar.pep8_btn = ToolButton('pep8') edit_toolbar.pep8_btn.connect("clicked", self.pep8_check) diff --git a/icons/insert-datetime.svg b/icons/insert-datetime.svg index 091b2dd..3174008 100644 --- a/icons/insert-datetime.svg +++ b/icons/insert-datetime.svg @@ -1,25 +1,94 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg width="100" height="150" xmlns="http://www.w3.org/2000/svg"> - <g> - <defs> - <radialGradient id="radial"> - <stop offset="0%" stop-color="#FFFFFF;"/> - - <stop offset="100%" stop-color="#000000;"/> +<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="100" + height="150" + id="svg2" + version="1.1" + inkscape:version="0.48.2 r9819" + sodipodi:docname="insert-datetime.svg"> + <metadata + id="metadata23"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <defs + id="defs21" /> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="640" + inkscape:window-height="480" + id="namedview19" + showgrid="false" + inkscape:zoom="1.5733333" + inkscape:cx="50" + inkscape:cy="75" + inkscape:window-x="0" + inkscape:window-y="26" + inkscape:window-maximized="0" + inkscape:current-layer="svg2" /> + <g + id="g4" + transform="matrix(0.94745631,0,0,1.1470139,0.78815531,-0.44104157)"> + <defs + id="defs6"> + <radialGradient + id="radial" + cx="50" + cy="38" + fx="50" + fy="38" + r="37.5" + gradientUnits="userSpaceOnUse"> + <stop + offset="0%" + stop-color="#FFFFFF;" + id="stop9" /> + <stop + offset="100%" + stop-color="#000000;" + id="stop11" /> </radialGradient> </defs> - <circle cx="50" cy="38" r="35" style="fill:url(#radial);stroke:#FFFFFF;stroke-width:5"/> - <path d="M50,35 - L50,13 - M47,38 - L65,38" - style="stroke:#FFFFFF; fill:none; stroke-width:5"/> - <path d="M30,50 - L30,98 - M20,83 - L30,100 - L40,83 - L17,83" - style="stroke:#FFFFFF; fill:#FFFFFF; stroke-width:5"/> + <circle + cx="50" + cy="38" + r="35" + style="fill:url(#radial);stroke:#ffffff;stroke-width:5" + id="circle13" + d="M 85,38 C 85,57.329966 69.329966,73 50,73 30.670034,73 15,57.329966 15,38 15,18.670034 30.670034,3 50,3 69.329966,3 85,18.670034 85,38 z" + sodipodi:cx="50" + sodipodi:cy="38" + sodipodi:rx="35" + sodipodi:ry="35" /> + <path + d="m 50,35 0,-22 m -3,25 18,0" + style="fill:none;stroke:#ffffff;stroke-width:5" + id="path15" + inkscape:connector-curvature="0" /> + <path + d="m 30,50 0,48 M 20,83 30,100 40,83 17,83" + style="fill:#ffffff;stroke:#ffffff;stroke-width:5" + id="path17" + inkscape:connector-curvature="0" /> </g> </svg> |