diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-05-20 14:41:28 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-05-20 14:41:28 +0000 |
commit | 7b3c726991f0f060ca18c576fc7816b930435240 (patch) | |
tree | 1b6e5c7396fd89cd81baa018af6080c5349e1c6b /hardinfo2/iconcache.c | |
parent | cbd8b0d401add58a06d82c7a5d7fb22b53d80714 (diff) |
- Add binreloc support.
- Add users information.
- Add ppc64 and mips64 support.
- Fix loadgraph autoscaling (should be usable now! :)
- Misc cosmetic changes.
- Misc wording changes.
Diffstat (limited to 'hardinfo2/iconcache.c')
-rw-r--r-- | hardinfo2/iconcache.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hardinfo2/iconcache.c b/hardinfo2/iconcache.c index 5ef2bc3c..fae641d1 100644 --- a/hardinfo2/iconcache.c +++ b/hardinfo2/iconcache.c @@ -17,6 +17,7 @@ */ #include <iconcache.h> #include <config.h> +#include <binreloc.h> static GHashTable *cache = NULL; @@ -34,7 +35,9 @@ GdkPixbuf *icon_cache_get_pixbuf(const gchar *file) icon = g_hash_table_lookup(cache, file); if (!icon) { - gchar *tmp = g_strdup_printf(PREFIX "pixmaps/%s", file); + gchar *tmp = g_strdup_printf("%s/hardinfo/pixmaps/%s", + gbr_find_data_dir(PREFIX), + file); icon = gdk_pixbuf_new_from_file(tmp, NULL); g_hash_table_insert(cache, g_strdup(file), icon); @@ -60,7 +63,9 @@ GdkPixbuf *icon_cache_get_pixbuf_at_size(const gchar *file, gint wid, gint hei) icon = g_hash_table_lookup(cache, file); if (!icon) { - gchar *tmp = g_strdup_printf(PREFIX "pixmaps/%s", file); + gchar *tmp = g_strdup_printf("%s/hardinfo/pixmaps/%s", + gbr_find_data_dir(PREFIX), + file); icon = gdk_pixbuf_new_from_file_at_size(tmp, wid, hei, NULL); g_hash_table_insert(cache, g_strdup(file), icon); |