]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/theme.c: fix loading of alt_name hover icon
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 2 Jan 2024 12:45:58 +0000 (13:45 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 3 Jan 2024 20:07:38 +0000 (20:07 +0000)
Fixes #1395

src/theme.c

index ec921e37a6bd7f533ccdc4b367dad397ee875b74..7d1c3bdfa6396f83279af71423aa9a7e3309571c 100644 (file)
@@ -256,7 +256,7 @@ load_buttons(struct theme *theme)
                 * For example max_hover_toggled instead of max_toggled_hover
                 */
                if (b->alt_name) {
-                       snprintf(filename, sizeof(filename), "%s.xbm", b->name);
+                       snprintf(filename, sizeof(filename), "%s.xbm", b->alt_name);
                }  else {
                        filename[0] = '\0';
                }