]> git.mdlowis.com Git - proto/labwc.git/commitdiff
button-png.c: s/png_load/button_png_load/
authorJohan Malm <jgm323@gmail.com>
Sat, 16 Sep 2023 21:36:31 +0000 (22:36 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 17 Sep 2023 18:26:41 +0000 (19:26 +0100)
include/button/button-png.h
src/button/button-png.c
src/theme.c

index e238b9d8b6449bb71bdf33005b711ff678cc7d1d..31d01ff583401140d505ed9b233cb119672f5e3c 100644 (file)
@@ -4,6 +4,6 @@
 
 struct lab_data_buffer;
 
-void png_load(const char *button_name, struct lab_data_buffer **buffer);
+void button_png_load(const char *button_name, struct lab_data_buffer **buffer);
 
 #endif /* LABWC_BUTTON_PNG_H */
index feceb7ec51dcb4808f1825e1ba846ec0d492a9bf..61c8e4cffcb9903b8772cd8f3e98d10f5ed689bd 100644 (file)
@@ -45,7 +45,7 @@ ispng(const char *filename)
 #undef PNG_BYTES_TO_CHECK
 
 void
-png_load(const char *button_name, struct lab_data_buffer **buffer)
+button_png_load(const char *button_name, struct lab_data_buffer **buffer)
 {
        if (*buffer) {
                wlr_buffer_drop(&(*buffer)->base);
index 55d6a2b22f5aed3567cd33f7469ecaf4fc152c63..fe2c754b74c9b3e51ad5147e4045c0cc2a1d8b97 100644 (file)
@@ -117,9 +117,9 @@ load_buttons(struct theme *theme)
 
                /* Try png icon first */
                snprintf(filename, sizeof(filename), "%s-active.png", b->name);
-               png_load(filename, b->active.buffer);
+               button_png_load(filename, b->active.buffer);
                snprintf(filename, sizeof(filename), "%s-inactive.png", b->name);
-               png_load(filename, b->inactive.buffer);
+               button_png_load(filename, b->inactive.buffer);
 
 #if HAVE_RSVG
                /* Then try svg icon */