Commit 2ea2f146 authored by Martin Wehner's avatar Martin Wehner Committed by Martin Wehner

New svg icon from Corey Woodworth <CoreyWoodworth@gmail.com>

2005-03-31  Martin Wehner  <martin.wehner@gmail.com>

	* icons/audio.svg:
	New svg icon from Corey Woodworth <CoreyWoodworth@gmail.com>

	* icons/audio.png:
	Remove old file.

	* icons/Makefile.am:
	Install new icon.

	* libnautilus-private/nautilus-icon-canvas-item.c:
	(real_map_pixbuf):
	Use svg instead of bitmap audio preview emblem.

	Patch from Jaap Haitsma <jaap@haitsma.org>
parent 729df361
2005-03-31 Martin Wehner <martin.wehner@gmail.com>
* icons/audio.svg:
New svg icon from Corey Woodworth <CoreyWoodworth@gmail.com>
* icons/audio.png:
Remove old file.
* icons/Makefile.am:
Install new icon.
* libnautilus-private/nautilus-icon-canvas-item.c:
(real_map_pixbuf):
Use svg instead of bitmap audio preview emblem.
Patch from Jaap Haitsma <jaap@haitsma.org>
2005-03-30 Martin Wehner <martin.wehner@gmail.com>
* src/nautilus-spatial-window.c: (get_dnd_icon_size),
......
......@@ -13,7 +13,7 @@ icondir = $(datadir)/pixmaps/nautilus
icon_DATA =\
Search.png \
audio.png \
audio.svg \
backgrounds.png \
chit_frame.png \
colors.png \
......
<?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" />
</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>
......@@ -49,6 +49,7 @@
#include <libart_lgpl/art_rgb_affine.h>
#include <libart_lgpl/art_rgb_rgba_affine.h>
#include <libart_lgpl/art_svp_vpath.h>
#include <librsvg/rsvg.h>
#include <libgnome/gnome-i18n.h>
#include <eel/eel-canvas-util.h>
#include <atk/atkimage.h>
......@@ -1345,6 +1346,7 @@ real_map_pixbuf (NautilusIconCanvasItem *icon_item)
EelCanvas *canvas;
char *audio_filename;
GdkPixbuf *temp_pixbuf, *old_pixbuf, *audio_pixbuf;
double zoom;
temp_pixbuf = icon_item->details->pixbuf;
canvas = EEL_CANVAS_ITEM(icon_item)->canvas;
......@@ -1365,10 +1367,14 @@ real_map_pixbuf (NautilusIconCanvasItem *icon_item)
/* if the icon is currently being previewed, superimpose an image to indicate that */
/* audio is the only kind of previewing right now, so this code isn't as general as it could be */
if (icon_item->details->is_active) {
zoom = (double) gdk_pixbuf_get_width (temp_pixbuf) / NAUTILUS_ICON_SIZE_STANDARD;
/* Load the audio symbol. */
audio_filename = nautilus_pixmap_file ("audio.png");
audio_filename = nautilus_pixmap_file ("audio.svg");
if (audio_filename != NULL) {
audio_pixbuf = gdk_pixbuf_new_from_file (audio_filename, NULL);
audio_pixbuf = rsvg_pixbuf_from_file_at_zoom_with_max (audio_filename, zoom, zoom,
NAUTILUS_ICON_MAXIMUM_SIZE,
NAUTILUS_ICON_MAXIMUM_SIZE,
NULL);
} else {
audio_pixbuf = NULL;
}
......@@ -1382,8 +1388,7 @@ real_map_pixbuf (NautilusIconCanvasItem *icon_item)
gdk_pixbuf_get_width (temp_pixbuf),
gdk_pixbuf_get_height(temp_pixbuf),
0, 0,
canvas->pixels_per_unit,
canvas->pixels_per_unit,
1.0, 1.0,
GDK_INTERP_BILINEAR, 0xFF);
g_object_unref (audio_pixbuf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment