1. 15 Mar, 2005 1 commit
    • Anders Carlsson's avatar
      Update spec. · 3fc42d7a
      Anders Carlsson authored
      2005-03-15  Anders Carlsson  <andersca@imendio.com>
      
      	* docs/iconcache.txt:
      	Update spec.
      
      	* gtk/gtkiconcache.c: (find_image_offset),
      	(_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
      	(_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
      	* gtk/gtkiconcache.h:
      	Update to be able to fetch pixbuf data and icon metadata.
      
      	* gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
      	(icon_info_ensure_scale_and_pixbuf):
      	Use new cache functions.
      
      	* gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
      	(maybe_cache_image_data), (scan_directory), (write_pixdata),
      	(get_image_meta_data_size), (get_image_pixel_data_size),
      	(get_image_data_size), (get_single_node_size), (get_bucket_size),
      	(write_bucket), (main):
      	Update to write pixbuf data as well as information from .icon
      	files.
      3fc42d7a
  2. 21 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Implement for cached themes. · a34d841d
      Matthias Clasen authored
      2004-10-21  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Implement for
      	cached themes.
      
      	* gtk/gtkiconcache.h:
      	* gtk/gtkiconcache.c (_gtk_icon_cache_has_icon): New function.
      
      	* gtk/updateiconcache.c (scan_directory): Don't skip .icon
      	files which are listed before their images.
      	(foreach_remove_func): Instead filter lonely .icon files out
      	here.
      
      	* gtk/gtkicontheme.c (theme_dir_get_icon_suffix): Filter out
      	the HAS_ICON_FILE flag.
      a34d841d
  3. 19 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Implement icon theme caching. (#154034, Martijn Vernooij, caching schema · 6fc2b811
      Matthias Clasen authored
      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.
      6fc2b811