comparison src/pixbuf_util.c @ 2853:c2c8f0d3183b

Permit icon field in desktop file to be an absolute path
author Colin Clark <colin.clark@cclark.uk>
date Fri, 19 Oct 2018 18:42:55 +0100
parents e88128f85953
children b20a96b979a3
comparison
equal deleted inserted replaced
2852:2bced2eec21b 2853:c2c8f0d3183b
232 &error); 232 &error);
233 if (error) 233 if (error)
234 { 234 {
235 DEBUG_1("Couldn't load icon %s: %s", icon2, error->message); 235 DEBUG_1("Couldn't load icon %s: %s", icon2, error->message);
236 g_error_free(error); 236 g_error_free(error);
237 error = NULL;
238
239 /* try as an absolute path */
240 pixbuf = gdk_pixbuf_new_from_file(icon, &error);
241 if (error)
242 {
243 DEBUG_1("Couldn't load icon as absolute path %s: %s", icon, error->message);
244 g_error_free(error);
245 }
237 } 246 }
238 g_free(icon2); 247 g_free(icon2);
239 } 248 }
240 } 249 }
241 250