]> git.mdlowis.com Git - proto/labwc.git/commitdiff
theme: fix icon bug
authorJohan Malm <jgm323@gmail.com>
Wed, 6 Dec 2023 21:55:31 +0000 (21:55 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 6 Dec 2023 22:02:23 +0000 (23:02 +0100)
Do not carry over previous alt_filename for icons that don't have one.

src/theme.c

index 1df54389232933f80a19fae8a6f17b082be49910..97a00695bfe4e8a169f9e3b3d39cb8e2096a7a7c 100644 (file)
@@ -227,6 +227,7 @@ load_buttons(struct theme *theme)
 
                /* If there were no png/svg buttons, use xbm */
                snprintf(filename, sizeof(filename), "%s.xbm", b->name);
+               alt_filename[0] = '\0';
                if (b->alt_name) {
                        snprintf(alt_filename, sizeof(alt_filename), "%s.xbm", b->alt_name);
                }