Commits

Peer Sommerlund  committed ac097e8

icons: Add icon for "ignore" dialog

  • Participants
  • Parent commits bb37ae3

Comments (0)

Files changed (4)

File hggtk/hgignore.py

     def __init__(self, root='', fileglob=''):
         'Initialize the Dialog'
         gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
-        set_tortoise_icon(self, 'general.ico')
+        set_tortoise_icon(self, 'ignore.ico')
 
         self.root = root
         self.set_title('Ignore filter for ' + os.path.basename(root))

File icons/tortoise/ignore.ico

Added
New image

File icons/tortoise/svg/ignore.svg

+<?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:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="32"
+   height="32"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   version="1.0"
+   sodipodi:docname="ignore.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape">
+  <defs
+     id="defs4">
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient3178">
+      <stop
+         style="stop-color:#eeeeec;stop-opacity:1;"
+         offset="0"
+         id="stop3180" />
+      <stop
+         style="stop-color:#eeeeec;stop-opacity:0;"
+         offset="1"
+         id="stop3182" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3162">
+      <stop
+         style="stop-color:#0c7704;stop-opacity:1;"
+         offset="0"
+         id="stop3164" />
+      <stop
+         style="stop-color:#152a01;stop-opacity:1;"
+         offset="1"
+         id="stop3166" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective10" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3162"
+       id="radialGradient3168"
+       cx="7.9865141"
+       cy="16.43379"
+       fx="7.9865141"
+       fy="16.43379"
+       r="7.8457492"
+       gradientTransform="matrix(1.1057099,9.443177e-2,-6.3894102e-2,0.7481418,0.1186391,3.6821519)"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3178"
+       id="radialGradient3184"
+       cx="4.9979715"
+       cy="15.967546"
+       fx="4.9979715"
+       fy="15.967546"
+       r="0.45436105"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3178"
+       id="radialGradient3188"
+       gradientUnits="userSpaceOnUse"
+       cx="4.9979715"
+       cy="15.967546"
+       fx="4.9979715"
+       fy="15.967546"
+       r="0.45436105" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="21.787728"
+     inkscape:cx="4.8790666"
+     inkscape:cy="14.860554"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:window-width="981"
+     inkscape:window-height="705"
+     inkscape:window-x="44"
+     inkscape:window-y="44">
+    <inkscape:grid
+       type="xygrid"
+       id="grid3174"
+       visible="true"
+       enabled="true"
+       empspacing="2" />
+    <inkscape:grid
+       type="xygrid"
+       id="grid3176"
+       visible="true"
+       enabled="true"
+       spacingx="0.5px"
+       spacingy="0.5px"
+       empspacing="4"
+       color="#ff00fd"
+       opacity="0.1254902" />
+  </sodipodi:namedview>
+  <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" />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/publicdomain/" />
+        <dc:title>Ignore</dc:title>
+        <dc:date>2009-02-28</dc:date>
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>Peer Sommerlund</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:description>&quot;Ignore&quot; icon for TortoiseHg</dc:description>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/publicdomain/">
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <path
+       id="path2383"
+       style="fill:url(#radialGradient3168);fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 21.117339,21.514948 C 21,23.5 16,24 13,23.5 C 12,23 12,19.5 10.499085,18.999107 C 8.5425067,18.346148 9,22.5 8,22.5 C 3.2527158,21.253198 2.7985053,19.264251 2.5,17 L 2.6600506,13.167993 C 4.7790548,14.833072 8.3875147,16.418618 10.086337,16.784157 C 12.059285,17.291451 15.314308,17.65767 20.658797,17.7369 C 20.633274,18.82332 21.13767,20.889095 21.117339,21.514948 z"
+       sodipodi:nodetypes="cczcccccc" />
+    <path
+       style="fill:#555753;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 20.5,18 C 23.046256,15.743183 25.653269,13.270899 27,10.5 L 27.5,13.5 L 27,15.5 L 27,11 C 25.512309,13.63386 22.761853,16.848887 20.765091,18.973676"
+       id="path2389"
+       sodipodi:nodetypes="cccccc" />
+    <path
+       style="fill:#555753;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 2.4924745,13.821903 C 4.0994869,10.206606 6,8 8,6.5 L 9,8.5 L 8.5,9 L 7.2847922,7.1626742 C 5.0995989,8.7858042 3.8040756,10.696083 2.47639,12.833717"
+       id="path2391"
+       sodipodi:nodetypes="cccccc" />
+    <path
+       sodipodi:type="arc"
+       style="opacity:1;fill:url(#radialGradient3184);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       id="path3170"
+       sodipodi:cx="4.9979715"
+       sodipodi:cy="15.967546"
+       sodipodi:rx="0.45436105"
+       sodipodi:ry="0.45436105"
+       d="M 5.4523326,15.967546 A 0.45436105,0.45436105 0 1 1 4.5436105,15.967546 A 0.45436105,0.45436105 0 1 1 5.4523326,15.967546 z"
+       transform="matrix(1.6506697,0,0,1.6004464,-3.7500002,-9.2823828)" />
+    <path
+       transform="matrix(1.65067,0,0,1.6506691,4.9999983,-7.6071358)"
+       d="M 5.4523326,15.967546 A 0.45436105,0.45436105 0 1 1 4.5436105,15.967546 A 0.45436105,0.45436105 0 1 1 5.4523326,15.967546 z"
+       sodipodi:ry="0.45436105"
+       sodipodi:rx="0.45436105"
+       sodipodi:cy="15.967546"
+       sodipodi:cx="4.9979715"
+       id="path3186"
+       style="opacity:1;fill:url(#radialGradient3188);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       sodipodi:type="arc" />
+  </g>
+</svg>

File tortoise/contextmenu.py

                 if f.endswith('.hgignore'):
                     result.append(TortoiseMenu(_("Edit Ignore Filter"),
                            _("Edit repository ignore filter"),
-                           self._hgignore, icon="general.ico")) # needs ico
+                           self._hgignore, icon="ignore.ico"))
                     break
 
             result.append(TortoiseMenu(_("View File Status"),