button-png.c: s/png_load/button_png_load/

This commit is contained in:
Johan Malm 2023-09-16 22:36:31 +01:00 committed by Johan Malm
parent c62df26c2a
commit c598cf7f11
3 changed files with 4 additions and 4 deletions

View file

@ -4,6 +4,6 @@
struct lab_data_buffer; 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 */ #endif /* LABWC_BUTTON_PNG_H */

View file

@ -45,7 +45,7 @@ ispng(const char *filename)
#undef PNG_BYTES_TO_CHECK #undef PNG_BYTES_TO_CHECK
void 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) { if (*buffer) {
wlr_buffer_drop(&(*buffer)->base); wlr_buffer_drop(&(*buffer)->base);

View file

@ -117,9 +117,9 @@ load_buttons(struct theme *theme)
/* Try png icon first */ /* Try png icon first */
snprintf(filename, sizeof(filename), "%s-active.png", b->name); 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); 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 #if HAVE_RSVG
/* Then try svg icon */ /* Then try svg icon */