Button: svg icon support
o9000 mrovi9000@gmail.com
3 files changed,
5 insertions(+),
5 deletions(-)
M
src/launcher/launcher.c
→
src/launcher/launcher.c
@@ -572,13 +572,13 @@ launcherIcon->image = NULL;
char *new_icon_path = get_icon_path(icon_theme_wrapper, launcherIcon->icon_name, launcherIcon->icon_size, TRUE); if (new_icon_path) - launcherIcon->image = load_image(new_icon_path, 1); + launcherIcon->image = load_image(new_icon_path, TRUE); // On loading error, fallback to default if (!launcherIcon->image) { free(new_icon_path); new_icon_path = get_icon_path(icon_theme_wrapper, DEFAULT_ICON, launcherIcon->icon_size, TRUE); if (new_icon_path) - launcherIcon->image = imlib_load_image_immediately(new_icon_path); + launcherIcon->image = load_image(new_icon_path, TRUE); } Imlib_Image original = launcherIcon->image; launcherIcon->image = scale_icon(launcherIcon->image, launcherIcon->icon_size);
M
src/tint.c
→
src/tint.c
@@ -601,7 +601,7 @@ const gchar *const *data_dirs = g_get_system_data_dirs();
for (int i = 0; data_dirs[i] != NULL; i++) { gchar *path = g_build_filename(data_dirs[i], "tint2", "default_icon.png", NULL); if (g_file_test(path, G_FILE_TEST_EXISTS)) - default_icon = imlib_load_image(path); + default_icon = load_image(path, TRUE); g_free(path); } if (!default_icon) {