diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-01-08 17:48:07 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-01-08 17:55:19 -0500 |
| commit | 8c9fb63baaf7d6245cccc584359bf09359663bea (patch) | |
| tree | 796abec056fdf426edbab93126e4a15b24b95e3e /obrender/imagecache.h | |
| parent | fc120a75308855b738a42b1fde9d6e0d276f3bf9 (diff) | |
Rework the code provided by Kadlcik Libor for loading/showing icons in Openbox menus.
This changes how the imagecache works, you can load an image into it directly,
or you can load it by name (then it will load it from a file on disk).
NOTE: The name part is incomplete, as it needs to use the freedesktop.org icon
spec to search for the right file. Also to resize it should look for another
icon on disk with the same name but different size (icon themes).
Diffstat (limited to 'obrender/imagecache.h')
| -rw-r--r-- | obrender/imagecache.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/obrender/imagecache.h b/obrender/imagecache.h index a61fae67..9baf34bb 100644 --- a/obrender/imagecache.h +++ b/obrender/imagecache.h @@ -45,11 +45,14 @@ struct _RrImageCache { */ gint max_resized_saved; - GHashTable *table; - - /* Used to find out if an image file has already been loaded. - Quick file_name -> RrImage lookup. */ - GHashTable *file_name_table; + /*! A hash table of images in the cache that don't have a file name + attached to them, with their key being a hash of the contents of the + image. */ + GHashTable *pic_table; + + /*! Used to find out if an image file has already been loaded. + Provides a quick file_name -> RrImage lookup. */ + GHashTable *name_table; }; #endif |
