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/image.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/image.h')
| -rw-r--r-- | obrender/image.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/obrender/image.h b/obrender/image.h index b478daf9..6e4a50e0 100644 --- a/obrender/image.h +++ b/obrender/image.h @@ -23,7 +23,8 @@ #include "geom.h" /*! Initialize an RrImagePicture to the specified dimensions and pixel data */ -void RrImagePicInit(RrImagePic *pic, gint w, gint h, RrPixel32 *data); +void RrImagePicInit(RrImagePic *pic, const gchar *path, + gint w, gint h, RrPixel32 *data); void RrImageDrawImage(RrPixel32 *target, RrTextureImage *img, gint target_w, gint target_h, |
