mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
button-png.c: s/png_load/button_png_load/
This commit is contained in:
parent
c62df26c2a
commit
c598cf7f11
3 changed files with 4 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue