gtk3/docs/reference/gtk/html/gtk-update-icon-cache.html
2020-02-29 14:17:40 +00:00

110 lines
4.8 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gtk-update-icon-cache: GTK+ 3 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
<link rel="up" href="pt06.html" title="Part VI. GTK+ Tools">
<link rel="prev" href="gtk-query-immodules-3.0.html" title="gtk-query-immodules-3.0">
<link rel="next" href="gtk-encode-symbolic-svg.html" title="gtk-encode-symbolic-svg">
<meta name="generator" content="GTK-Doc V1.32.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="pt06.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gtk-query-immodules-3.0.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="gtk-encode-symbolic-svg.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="gtk-update-icon-cache"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle">gtk-update-icon-cache</span></h2>
<p>gtk-update-icon-cache — Icon theme caching utility</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<div class="cmdsynopsis"><p><code class="command">gtk-update-icon-cache</code> [--force] [--ignore-theme-index] [ --index-only | --include-image-data ] [--source <em class="replaceable"><code>NAME</code></em> ] [--quiet] [--validate] <em class="replaceable"><code>PATH</code></em> </p></div>
</div>
<div class="refsect1">
<a name="id-1.7.7.5"></a><h2>Description</h2>
<p>
<span class="command"><strong>gtk-update-icon-cache</strong></span> creates mmapable cache
files for icon themes.
</p>
<p>
It expects to be given the <em class="replaceable"><code>PATH</code></em> to a icon theme
directory containing an <code class="filename">index.theme</code>, e.g.
<code class="filename">/usr/share/icons/hicolor</code>, and writes a
<code class="filename">icon-theme.cache</code> containing cached information about
the icons in the directory tree below the given directory.
</p>
<p>
GTK+ can use the cache files created by <span class="command"><strong>gtk-update-icon-cache</strong></span>
to avoid a lot of system call and disk seek overhead when the application
starts. Since the format of the cache files allows them to be mmaped
shared between multiple applications, the overall memory consumption is
reduced as well.
</p>
</div>
<div class="refsect1">
<a name="id-1.7.7.6"></a><h2>Options</h2>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">--force, </span><span class="term">-f</span></p></td>
<td><p>Overwrite an existing cache file even if it appears to be
uptodate.</p></td>
</tr>
<tr>
<td><p><span class="term">--ignore-theme-index, </span><span class="term">-t</span></p></td>
<td><p>Don't check for the existence of <code class="filename">index.theme</code>
in the icon theme directory. Without this option, <span class="command"><strong>gtk-update-icon-cache</strong></span>
refuses to create an icon cache in a directory which does not appear to
be the toplevel directory of an icon theme.
</p></td>
</tr>
<tr>
<td><p><span class="term">--index-only, </span><span class="term">-i</span></p></td>
<td><p>Don't include image data in the cache.
</p></td>
</tr>
<tr>
<td><p><span class="term">--include-image-data</span></p></td>
<td><p>Include image data in the cache.
</p></td>
</tr>
<tr>
<td><p><span class="term">--source, </span><span class="term">-c</span></p></td>
<td><p>Output a C header file declaring a constant
<em class="replaceable"><code>NAME</code></em> with the contents of the icon
cache.</p></td>
</tr>
<tr>
<td><p><span class="term">--quiet, </span><span class="term">-q</span></p></td>
<td><p>Turn off verbose output.
</p></td>
</tr>
<tr>
<td><p><span class="term">--validate, </span><span class="term">-v</span></p></td>
<td><p>Validate existing icon cache.
</p></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32.1</div>
</body>
</html>