1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
--- gtk+-2.6.4/gtk/gtkicontheme.c 2005-03-01 17:24:48.000000000 +0200
+++ gtk+-2.6.4/gtk/gtkicontheme.c 2005-04-06 16:19:36.807942704 +0300
@@ -64,7 +64,8 @@
ICON_SUFFIX_XPM = 1 << 0,
ICON_SUFFIX_SVG = 1 << 1,
ICON_SUFFIX_PNG = 1 << 2,
- HAS_ICON_FILE = 1 << 3
+ HAS_ICON_FILE = 1 << 3,
+ ICON_SUFFIX_ANI = 1 << 4
} IconSuffix;
@@ -1743,6 +1744,8 @@
return ".svg";
case ICON_SUFFIX_PNG:
return ".png";
+ case ICON_SUFFIX_ANI:
+ return ".ani";
default:
g_assert_not_reached();
}
@@ -1760,6 +1763,8 @@
retval = ICON_SUFFIX_SVG;
else if (g_str_has_suffix (name, ".xpm"))
retval = ICON_SUFFIX_XPM;
+ else if (g_str_has_suffix (name, ".ani"))
+ retval = ICON_SUFFIX_ANI;
else
retval = ICON_SUFFIX_NONE;
@@ -1776,6 +1781,8 @@
return ICON_SUFFIX_SVG;
else if ((suffix & ICON_SUFFIX_XPM) != 0)
return ICON_SUFFIX_XPM;
+ else if ((suffix & ICON_SUFFIX_ANI) != 0)
+ return ICON_SUFFIX_ANI;
else
return ICON_SUFFIX_NONE;
}
@@ -2558,7 +2565,7 @@
icon_info->pixbuf = gdk_pixbuf_scale_simple (source_pixbuf,
0.5 + image_width * icon_info->scale,
0.5 + image_height * icon_info->scale,
- GDK_INTERP_BILINEAR);
+ GDK_INTERP_NEAREST);
g_object_unref (source_pixbuf);
}
|