summaryrefslogtreecommitdiff
path: root/hardinfo2/iconcache.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-15 21:57:09 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-15 21:57:09 +0000
commit3722c94e232b39d2a05ef359a60d25ac0cbe7887 (patch)
tree3212d41dd2db5e96fe09587a80f6606e9fb69317 /hardinfo2/iconcache.c
parent9949aa0b97e44d67713eed79859028c5ba92b1a3 (diff)
Make menu shortcuts work, plug memory leaks, socket code cleanup
Diffstat (limited to 'hardinfo2/iconcache.c')
-rw-r--r--hardinfo2/iconcache.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hardinfo2/iconcache.c b/hardinfo2/iconcache.c
index fae641d1..ee5d2f4f 100644
--- a/hardinfo2/iconcache.c
+++ b/hardinfo2/iconcache.c
@@ -18,6 +18,7 @@
#include <iconcache.h>
#include <config.h>
#include <binreloc.h>
+#include <hardinfo.h>
static GHashTable *cache = NULL;
@@ -36,8 +37,7 @@ GdkPixbuf *icon_cache_get_pixbuf(const gchar *file)
if (!icon) {
gchar *tmp = g_strdup_printf("%s/hardinfo/pixmaps/%s",
- gbr_find_data_dir(PREFIX),
- file);
+ path_data, file);
icon = gdk_pixbuf_new_from_file(tmp, NULL);
g_hash_table_insert(cache, g_strdup(file), icon);
@@ -64,8 +64,7 @@ GdkPixbuf *icon_cache_get_pixbuf_at_size(const gchar *file, gint wid, gint hei)
if (!icon) {
gchar *tmp = g_strdup_printf("%s/hardinfo/pixmaps/%s",
- gbr_find_data_dir(PREFIX),
- file);
+ path_data, file);
icon = gdk_pixbuf_new_from_file_at_size(tmp, wid, hei, NULL);
g_hash_table_insert(cache, g_strdup(file), icon);