summaryrefslogtreecommitdiff
path: root/iconcache.c
diff options
context:
space:
mode:
authorAgney Lopes Roth Ferraz <agney@debian.org>2006-06-21 22:18:24 -0300
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:36 -0500
commit078e9c700feccfcf1318b7bde49d6e464bc2ac8c (patch)
tree4d24c99643f10e4b8b75bebaaec5d48294b3b112 /iconcache.c
parent18820242e374421ebd6d504a20d11f310b2ac023 (diff)
parent720f5023a8f68aaaa54cb6b7bf46efee23b5b4c3 (diff)
Import Debian changes 0.4.1-1
hardinfo (0.4.1-1) unstable; urgency=low * New upstream release.
Diffstat (limited to 'iconcache.c')
-rw-r--r--iconcache.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/iconcache.c b/iconcache.c
index 5ef2bc3c..fae641d1 100644
--- a/iconcache.c
+++ b/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);