mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -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;
|
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 */
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue