projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f19c90a
)
Permit icon field in desktop file to be an absolute path
author
Colin Clark
<colin.clark@cclark.uk>
Fri, 19 Oct 2018 17:42:55 +0000
(18:42 +0100)
committer
Colin Clark
<colin.clark@cclark.uk>
Fri, 19 Oct 2018 17:42:55 +0000
(18:42 +0100)
src/pixbuf_util.c
patch
|
blob
|
history
diff --git
a/src/pixbuf_util.c
b/src/pixbuf_util.c
index
4b2af51
..
7cf4d69
100644
(file)
--- a/
src/pixbuf_util.c
+++ b/
src/pixbuf_util.c
@@
-234,6
+234,15
@@
gboolean register_theme_icon_as_stock(const gchar *key, const gchar *icon)
{
DEBUG_1("Couldn't load icon %s: %s", icon2, error->message);
g_error_free(error);
+ error = NULL;
+
+ /* try as an absolute path */
+ pixbuf = gdk_pixbuf_new_from_file(icon, &error);
+ if (error)
+ {
+ DEBUG_1("Couldn't load icon as absolute path %s: %s", icon, error->message);
+ g_error_free(error);
+ }
}
g_free(icon2);
}