all repos — tint2 @ 1d02b8588b59ac1ff2c7689f657e23a5e5464b06

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Fix icon loading with wrong image extension
o9000 o9000
commit

1d02b8588b59ac1ff2c7689f657e23a5e5464b06

parent

487774eac9e8d279c5132ea624225d2fe66afe16

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/launcher/launcher.csrc/launcher/launcher.c

@@ -213,8 +213,9 @@ free_icon(launcherIcon->icon_original);

free_icon(launcherIcon->icon_scaled); launcherIcon->icon_original = launcherIcon->icon_scaled = NULL; // Load the new file and scale + launcherIcon->icon_original = imlib_load_image_immediately(new_icon_path); #ifdef HAVE_RSVG - if (g_str_has_suffix(new_icon_path, ".svg")) { + if (!launcherIcon->icon_original && g_str_has_suffix(new_icon_path, ".svg")) { GError* err = NULL; RsvgHandle* svg = rsvg_handle_new_from_file(new_icon_path, &err);