[nautilus] Use a new icon for audio preview (#614907).



commit 47ad2649dc83faf1b3931d93d5060729344de955
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Apr 27 15:55:22 2010 +0200

    Use a new icon for audio preview (#614907).
    
    Thanks to Hylke Bons for the icon.

 icons/audio.svg                                 |  100 +++++++++--------------
 libnautilus-private/nautilus-icon-canvas-item.c |    4 +-
 2 files changed, 40 insertions(+), 64 deletions(-)
---
diff --git a/icons/audio.svg b/icons/audio.svg
index 9f57f22..4c25d4b 100644
--- a/icons/audio.svg
+++ b/icons/audio.svg
@@ -1,67 +1,43 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
-"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>
 <!-- Created with Inkscape (http://www.inkscape.org/) -->
-<svg
-   inkscape:export-ydpi="72.000000"
-   inkscape:export-xdpi="72.000000"
-   inkscape:export-filename="/home/corey/Desktop/audio.png"
-   sodipodi:docbase="/home/corey/Desktop"
-   sodipodi:docname="rightAudio.svg"
-   inkscape:version="0.40"
-   sodipodi:version="0.32"
-   id="svg1"
-   height="26.000000px"
-   width="28.000000px"
-   y="0.0000000"
-   x="0.0000000"
-   version="1.0"
-   xmlns="http://www.w3.org/2000/svg";
-   xmlns:cc="http://web.resource.org/cc/";
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
-   xmlns:dc="http://purl.org/dc/elements/1.1/";
-   xmlns:xlink="http://www.w3.org/1999/xlink";>
-  <metadata
-     id="metadata1212">
-    <rdf:RDF
-       id="RDF1213">
-      <cc:Work
-         id="Work1214"
-         rdf:about="">
-        <dc:format
-           id="format1215">image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage";
-           id="type1217" />
+<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="28" height="28" id="svg2" version="1.1" inkscape:version="0.47 r22583" sodipodi:docname="New document 1">
+  <defs id="defs4">
+    <linearGradient inkscape:collect="always" id="linearGradient3793">
+      <stop style="stop-color: rgb(85, 87, 83); stop-opacity: 1;" offset="0" id="stop3795"/>
+      <stop style="stop-color: rgb(0, 0, 0); stop-opacity: 1;" offset="1" id="stop3797"/>
+    </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"/>
+    <inkscape:perspective id="perspective2824" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective2838" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective2852" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective2866" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective2880" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective2894" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective2908" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective2922" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective2936" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective2950" inkscape:persp3d-origin="14 : 8.6666667 : 1" inkscape:vp_z="28 : 13 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 13 : 1" sodipodi:type="inkscape:persp3d"/>
+    <inkscape:perspective id="perspective3856" inkscape:persp3d-origin="14 : 8.6666667 : 1" inkscape:vp_z="28 : 13 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 13 : 1" sodipodi:type="inkscape:persp3d"/>
+    <radialGradient inkscape:collect="always" xlink:href="#linearGradient3793" id="radialGradient3871" gradientUnits="userSpaceOnUse" gradientTransform="matrix(2.0512, 0, 0, 2.0512, -473.079, -629.301)" cx="488.83804" cy="543.78619" fx="488.83804" fy="543.78619" r="8.875"/>
+    <radialGradient inkscape:collect="always" xlink:href="#linearGradient3793" id="radialGradient3894" gradientUnits="userSpaceOnUse" gradientTransform="matrix(2.0512, 0, 0, 2.0512, -473.079, -629.301)" cx="488.83804" cy="543.78619" fx="488.83804" fy="543.78619" r="8.875"/>
+  </defs>
+  <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1" inkscape:cx="25.110625" inkscape:cy="8.8072819" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" inkscape:snap-nodes="true" inkscape:snap-bbox="false" inkscape:snap-global="false" inkscape:window-width="1280" inkscape:window-height="742" inkscape:window-x="0" inkscape:window-y="26" inkscape:window-maximized="1">
+    <inkscape:grid type="xygrid" id="grid2942" empspacing="5" visible="true" enabled="true" snapvisiblegridlinesonly="true"/>
+  </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"/>
+        <dc:title/>
       </cc:Work>
     </rdf:RDF>
   </metadata>
-  <sodipodi:namedview
-     inkscape:document-units="px"
-     inkscape:current-layer="svg1"
-     inkscape:window-y="26"
-     inkscape:window-x="0"
-     inkscape:window-height="693"
-     inkscape:window-width="1024"
-     inkscape:cy="12.312242"
-     inkscape:cx="12.995787"
-     inkscape:zoom="15.125000"
-     inkscape:pageshadow="2"
-     inkscape:pageopacity="0.0"
-     borderopacity="1.0000000"
-     bordercolor="#666666"
-     pagecolor="#ffffff"
-     id="base" />
-  <defs
-     id="defs3" />
-  <path
-     id="path1062"
-     style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.86013991;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;marker-start:none"
-     d="M 14.000814,2.4302772 C 19.835583,2.4302772 24.571561,6.3905718 24.571561,11.270297 C 24.571561,13.559616 23.519974,15.639059 21.810885,17.209657 C 21.808866,17.371411 21.774154,21.857983 24.487739,22.369960 C 24.487739,22.369958 19.296124,23.671858 17.663494,19.631916 C 17.653651,19.607560 17.647290,19.585903 17.637982,19.561953 C 16.502409,19.910875 15.280507,20.110317 14.000814,20.110317 C 8.1660470,20.110317 3.4300700,16.150023 3.4300700,11.270297 C 3.4300700,6.3905718 8.1660470,2.4302784 14.000814,2.4302772 z " />
-  <path
-     id="path2644"
-     style="fill:#7fa3ff;fill-opacity:1.0000000;stroke-width:11.285112;stroke-miterlimit:4.0000000"
-     d="M 14.066968,4.3928532 C 14.066968,7.5729914 14.066968,10.753129 14.066968,13.933266 C 12.921393,13.193410 11.404971,13.153922 10.187582,13.730092 C 9.5320086,14.041441 8.8917465,14.703078 9.0155089,15.512793 C 9.1770570,16.399447 10.028496,16.908023 10.805407,17.127736 C 11.988648,17.442194 13.370531,17.304129 14.336562,16.476326 C 14.728968,16.136668 14.958839,15.623974 14.912341,15.102747 C 14.912341,12.535362 14.912341,9.9679794 14.912341,7.4005938 C 15.856730,7.9428908 16.693450,8.7469944 17.190774,9.7486444 C 17.594439,10.546730 17.596198,11.548109 17.148904,12.328250 C 17.060543,12.450598 17.573540,12.115072 17.667502,12.000150 C 18.493258,11.280970 18.772940,10.066097 18.527088,9.0030534 C 18.432126,8.4249670 18.171902,7.9016536 17.833155,7.4369875 C 17.097880,6.3843344 16.256980,5.3844444 15.236678,4.6186333 C 14.999530,4.4953978 14.905904,4.3433927 14.635553,4.3928532 C 14.446025,4.3928532 14.256497,4.3928532 14.066968,4.3928532 z " />
-</svg>
+  <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0, -1024.36)">
+    <g transform="matrix(1, 0, 0, 0.997177, -518.988, 548.313)" id="g3863">
+      <path id="path3865" d="m 532,480.375 c -6.07513,0 -11,4.92487 -11,11 0,6.07513 4.92487,11 11,11 2.25341,0 4.34949,-0.71247 6.09375,-1.875 0,0 2.08361,1.9375 6.90625,1.9375 0,0 0,0 0,0 0,0 0,0 0,0 -4.5,-3.25 -3.90625,-4.875 -3.90625,-4.875 1.2099,-1.7668 1.90625,-3.88444 1.90625,-6.1875 0,-6.07513 -4.92487,-11 -11,-11 z" style="color: rgb(0, 0, 0); fill: url(&quot;#radialGradient3894&quot;) rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; stroke: rgb(255, 255, 255); stroke-width: 4.00566; stroke-linecap: round; stroke-linejoin: round; stroke-miterlimit: 4; stroke-opacity: 1; stroke-dasharray: none; marker: none; visibility: visible; display: inline; overflow: visible;" sodipodi:nodetypes="cssccsscsc"/>
+      <path sodipodi:nodetypes="csscccsc" style="color: rgb(0, 0, 0); fill: rgb(16, 16, 16); fill-opacity: 1; fill-rule: nonzero; stroke: none; stroke-width: 1; marker: none; visibility: visible; display: inline; overflow: visible;" d="m 532,480.375 c -6.07513,0 -11,4.92487 -11,11 0,6.07513 4.92487,11 11,11 2.25341,0 4.34949,-0.71247 6.09375,-1.875 0,0 2.08361,1.9375 6.90625,1.9375 -4.5,-3.25 -3.90625,-4.875 -3.90625,-4.875 1.2099,-1.7668 1.90625,-3.88444 1.90625,-6.1875 0,-6.07513 -4.92487,-11 -11,-11 z" id="path3867"/>
+      <path style="color: rgb(0, 0, 0); fill: rgb(255, 255, 255); fill-opacity: 1; fill-rule: nonzero; stroke: none; stroke-width: 1; marker: none; visibility: visible; display: inline; overflow: visible;" d="m 530.28181,487.375 c -0.29406,10e-4 -0.28174,0.28275 -0.28174,0.28275 l 0,8.45479 c 0,0 -0.004,0.24964 0.25,0.24964 l 0.23437,0 4.51556,-4.50919 -4.47058,-4.47894 c 0,0 -0.24761,9.5e-4 -0.24761,9.5e-4 z" id="path3869" sodipodi:nodetypes="cccccccs" inkscape:export-filename="/home/hbons/Dropbox/Public/play.png" inkscape:export-xdpi="90" inkscape:export-ydpi="90"/>
+    </g>
+  </g>
+</svg>
\ No newline at end of file
diff --git a/libnautilus-private/nautilus-icon-canvas-item.c b/libnautilus-private/nautilus-icon-canvas-item.c
index 8c8de44..8587e7d 100644
--- a/libnautilus-private/nautilus-icon-canvas-item.c
+++ b/libnautilus-private/nautilus-icon-canvas-item.c
@@ -1864,8 +1864,8 @@ real_map_pixbuf (NautilusIconCanvasItem *icon_item)
 					(audio_pixbuf,
 					 temp_pixbuf,
 					 0, 0,
-					 gdk_pixbuf_get_width (temp_pixbuf),
-					 gdk_pixbuf_get_height(temp_pixbuf),
+					 gdk_pixbuf_get_width (audio_pixbuf),
+					 gdk_pixbuf_get_height (audio_pixbuf),
 					 0, 0,
 					 1.0, 1.0,
 					 GDK_INTERP_BILINEAR, 0xFF);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]