diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-10-19 18:45:41 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-10-19 18:45:41 +0000 |
commit | 6fc2b8118a77a4d3f6d237d573805302db5e54b7 (patch) | |
tree | 3705cce0a4866838f8230b0e369e1c080c27cfc2 /gtk/gtkmain.c | |
parent | b087f7655108019d797ca6096077443761915431 (diff) | |
download | gtk+-6fc2b8118a77a4d3f6d237d573805302db5e54b7.tar.gz |
Implement icon theme caching. (#154034, Martijn Vernooij, caching schema
2004-10-19 Matthias Clasen <mclasen@redhat.com>
Implement icon theme caching. (#154034, Martijn Vernooij,
caching schema proposed by Owen Taylor, initial implementation
by Anders Carlsson)
* gtk/gtkdebug.h:
* gtk/gtkmain.c: Add a "icontheme" debug flag.
* gtk/Makefile.am (gtk_c_sources): Add gtkiconcache.c
(gtk_private_h_sources): Add gtkiconcache.h
(bin_PROGRAMS): Add gtk-update-icon-cache
* gtk/gtkicontheme.c: Use icon caches if they are available.
Currently, GTK+ uses the cache to get information about the
available sizes, image file formats and .icon files. The
actual image data, and the .icon file contents are not
cached yet.
* gtk/updateiconcache.c: A cmdline utility for generating
icon cache files.
* gtk/gtkiconcache.h:
* gtk/gtkiconcache.c: The glue code to mmap an icon cache
file and manage the information it contains.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index a078645912..40acba8fd6 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -158,7 +158,8 @@ static const GDebugKey gtk_debug_keys[] = { {"keybindings", GTK_DEBUG_KEYBINDINGS}, {"multihead", GTK_DEBUG_MULTIHEAD}, {"modules", GTK_DEBUG_MODULES}, - {"geometry", GTK_DEBUG_GEOMETRY} + {"geometry", GTK_DEBUG_GEOMETRY}, + {"icontheme", GTK_DEBUG_ICONTHEME} }; static const guint gtk_ndebug_keys = sizeof (gtk_debug_keys) / sizeof (GDebugKey); |