4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>Icon Utilities (Legacy)</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
7
<link rel="home" href="index.html" title="Evolution Shell Reference Manual">
8
8
<link rel="up" href="ch02.html" title="Basic Utility Functions">
9
9
<link rel="prev" href="eshell-Text-to-HTML-Conversion.html" title="Text to HTML Conversion">
10
10
<link rel="next" href="eshell-EPoolv.html" title="EPoolv">
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
37
37
</tr></table></div>
38
38
<div class="refsynopsisdiv">
39
39
<a name="eshell-Icon-Utilities-(Legacy).synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis"><span class="returnvalue">gchar</span> * <a class="link" href="eshell-Icon-Utilities-(Legacy).html#e-icon-factory-get-icon-filename" title="e_icon_factory_get_icon_filename ()">e_icon_factory_get_icon_filename</a> (<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
41
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>);
42
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="eshell-Icon-Utilities-(Legacy).html#e-icon-factory-get-icon" title="e_icon_factory_get_icon ()">e_icon_factory_get_icon</a> (<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
43
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>);
44
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="eshell-Icon-Utilities-(Legacy).html#e-icon-factory-pixbuf-scale" title="e_icon_factory_pixbuf_scale ()">e_icon_factory_pixbuf_scale</a> (<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
45
<em class="parameter"><code><span class="type">gint</span> width</code></em>,
46
<em class="parameter"><code><span class="type">gint</span> height</code></em>);
47
<span class="returnvalue">gchar</span> * <a class="link" href="eshell-Icon-Utilities-(Legacy).html#e-icon-factory-create-thumbnail" title="e_icon_factory_create_thumbnail ()">e_icon_factory_create_thumbnail</a> (<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>);
40
<pre class="synopsis"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="eshell-Icon-Utilities-(Legacy).html#e-icon-factory-get-icon-filename" title="e_icon_factory_get_icon_filename ()">e_icon_factory_get_icon_filename</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>,
41
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>);
42
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="eshell-Icon-Utilities-(Legacy).html#e-icon-factory-get-icon" title="e_icon_factory_get_icon ()">e_icon_factory_get_icon</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>,
43
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>);
44
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="eshell-Icon-Utilities-(Legacy).html#e-icon-factory-pixbuf-scale" title="e_icon_factory_pixbuf_scale ()">e_icon_factory_pixbuf_scale</a> (<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
45
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
46
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
47
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="eshell-Icon-Utilities-(Legacy).html#e-icon-factory-create-thumbnail" title="e_icon_factory_create_thumbnail ()">e_icon_factory_create_thumbnail</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>);
50
50
<div class="refsect1">
56
56
<a name="eshell-Icon-Utilities-(Legacy).details"></a><h2>Details</h2>
57
57
<div class="refsect2">
58
58
<a name="e-icon-factory-get-icon-filename"></a><h3>e_icon_factory_get_icon_filename ()</h3>
59
<pre class="programlisting"><span class="returnvalue">gchar</span> * e_icon_factory_get_icon_filename (<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
59
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * e_icon_factory_get_icon_filename (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>,
60
60
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>);</pre>
62
62
Returns the filename of the requested icon in the default icon theme.
83
83
<div class="refsect2">
84
84
<a name="e-icon-factory-get-icon"></a><h3>e_icon_factory_get_icon ()</h3>
85
<pre class="programlisting"><span class="returnvalue">GdkPixbuf</span> * e_icon_factory_get_icon (<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
85
<pre class="programlisting"><span class="returnvalue">GdkPixbuf</span> * e_icon_factory_get_icon (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>,
86
86
<em class="parameter"><code><span class="type">GtkIconSize</span> icon_size</code></em>);</pre>
88
88
Loads the requested icon from the default icon theme and renders it
110
110
<div class="refsect2">
111
111
<a name="e-icon-factory-pixbuf-scale"></a><h3>e_icon_factory_pixbuf_scale ()</h3>
112
<pre class="programlisting"><span class="returnvalue">GdkPixbuf</span> * e_icon_factory_pixbuf_scale (<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
113
<em class="parameter"><code><span class="type">gint</span> width</code></em>,
114
<em class="parameter"><code><span class="type">gint</span> height</code></em>);</pre>
112
<pre class="programlisting"><span class="returnvalue">GdkPixbuf</span> * e_icon_factory_pixbuf_scale (<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
113
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
114
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
116
116
Scales <em class="parameter"><code>pixbuf</code></em> to desired size.
143
143
<div class="refsect2">
144
144
<a name="e-icon-factory-create-thumbnail"></a><h3>e_icon_factory_create_thumbnail ()</h3>
145
<pre class="programlisting"><span class="returnvalue">gchar</span> * e_icon_factory_create_thumbnail (<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>);</pre>
145
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * e_icon_factory_create_thumbnail (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>);</pre>
147
147
Creates system thumbnail for <em class="parameter"><code>filename</code></em>.
157
157
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
158
<td>Path to system thumbnail of the file; <a href="/home/chen/opt-unstable/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if couldn't
159
create it. Free it with <code class="function">g_free()</code>.</td>
158
<td>Path to system thumbnail of the file; <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if couldn't
159
create it. Free it with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>