forked from AuroraMiddleware/gtk
Add a separate --ignore-theme-index option to avoid overloading --force.
2005-08-26 Matthias Clasen <mclasen@redhat.com> * gtk/updateiconcache.c: Add a separate --ignore-theme-index option to avoid overloading --force. (JP Rosevaar)
This commit is contained in:
parent
67d685f2e8
commit
f906e82a93
@ -1,3 +1,8 @@
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Add a separate --ignore-theme-index option
|
||||
to avoid overloading --force. (JP Rosevaar)
|
||||
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version to 2.9.0
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Add a separate --ignore-theme-index option
|
||||
to avoid overloading --force. (JP Rosevaar)
|
||||
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version to 2.9.0
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtk-update-icon-cache.xml:
|
||||
* gtk/gtk-update-icon-cache.1: Updates.
|
||||
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk-pixbuf/gdk-pixbuf.sgml:
|
||||
|
@ -2,7 +2,7 @@
|
||||
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
|
||||
.\" Instead of manually editing it, you probably should edit the DocBook XML
|
||||
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
|
||||
.TH "GTK\-UPDATE\-ICON\-CACH" "1" "08/23/2005" "" ""
|
||||
.TH "GTK\-UPDATE\-ICON\-CACH" "1" "08/26/2005" "" ""
|
||||
.\" disable hyphenation
|
||||
.nh
|
||||
.\" disable justification (adjust text to left margin only)
|
||||
@ -11,7 +11,7 @@
|
||||
gtk\-update\-icon\-cache \- Icon theme caching utility
|
||||
.SH "SYNOPSIS"
|
||||
.HP 22
|
||||
\fBgtk\-update\-icon\-cache\fR [\-\-force] [\-\-index\-only] [\-\-quiet] {iconpath}
|
||||
\fBgtk\-update\-icon\-cache\fR [\-\-force] [\-\-index\-only] [\-\-ignore\-theme\-index] [\-\-quiet] {iconpath}
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBgtk\-update\-icon\-cache\fR
|
||||
@ -31,6 +31,11 @@ to avoid a lot of system call and disk seek overhead when the application starts
|
||||
\-\-force, \-f
|
||||
Overwrite an existing cache file even if it appears to be uptodate.
|
||||
.TP
|
||||
\-\-ignore\-theme\-index, \-t
|
||||
Don't check for the existence of 'index.theme' in the icon theme directory. Without this option,
|
||||
\fBgtk\-update\-icon\-cache\fR
|
||||
refuses to create an icon cache in a directory which does not appear to be the toplevel directory of an icon theme.
|
||||
.TP
|
||||
\-\-index\-only, \-i
|
||||
Don't include image data in the cache.
|
||||
.TP
|
||||
|
@ -15,6 +15,7 @@
|
||||
<command>gtk-update-icon-cache</command>
|
||||
<arg choice="opt">--force</arg>
|
||||
<arg choice="opt">--index-only</arg>
|
||||
<arg choice="opt">--ignore-theme-index</arg>
|
||||
<arg choice="opt">--quiet</arg>
|
||||
<arg choice="req">iconpath</arg>
|
||||
</cmdsynopsis>
|
||||
@ -47,6 +48,16 @@ multiple applications, the overall memory consumption is reduced as well.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>--ignore-theme-index</term>
|
||||
<term>-t</term>
|
||||
<listitem><para>Don't check for the existence of 'index.theme' in the icon theme
|
||||
directory. Without this option, <command>gtk-update-icon-cache</command> refuses
|
||||
to create an icon cache in a directory which does not appear to be the toplevel
|
||||
directory of an icon theme.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>--index-only</term>
|
||||
<term>-i</term>
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include <gdk-pixbuf/gdk-pixdata.h>
|
||||
|
||||
static gboolean force_update = FALSE;
|
||||
static gboolean ignore_theme_index = FALSE;
|
||||
static gboolean quiet = FALSE;
|
||||
static gboolean index_only = FALSE;
|
||||
|
||||
@ -1208,6 +1209,7 @@ build_cache (const gchar *path)
|
||||
|
||||
static GOptionEntry args[] = {
|
||||
{ "force", 'f', 0, G_OPTION_ARG_NONE, &force_update, "Overwrite an existing cache, even if uptodate", NULL },
|
||||
{ "ignore-theme-index", 't', 0, G_OPTION_ARG_NONE, &ignore_theme_index, "Don't check for the existence of index.theme", NULL },
|
||||
{ "index-only", 'i', 0, G_OPTION_ARG_NONE, &index_only, "Don't include image data in the cache", NULL },
|
||||
{ "quiet", 'q', 0, G_OPTION_ARG_NONE, &quiet, "Turn off verbose output", NULL },
|
||||
{ NULL }
|
||||
@ -1232,10 +1234,10 @@ main (int argc, char **argv)
|
||||
path = g_locale_to_utf8 (path, -1, NULL, NULL, NULL);
|
||||
#endif
|
||||
|
||||
if (!force_update && !has_theme_index (path))
|
||||
if (!ignore_theme_index && !has_theme_index (path))
|
||||
{
|
||||
g_printerr ("No theme index file in '%s'.\n"
|
||||
"If you really want to create an icon cache here, use --force.\n", path);
|
||||
"If you really want to create an icon cache here, use --ignore-theme-index.\n", path);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user