diff --git a/common/background-image.c b/common/background-image.c index d94346c8..2df10dd2 100644 --- a/common/background-image.c +++ b/common/background-image.c @@ -104,7 +104,7 @@ static cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf( } #endif // HAVE_GDK_PIXBUF -cairo_surface_t *load_background_image(const char *path) { +cairo_surface_t *load_image(const char *path) { cairo_surface_t *image; #if HAVE_GDK_PIXBUF GError *err = NULL; diff --git a/include/background-image.h b/include/background-image.h index 5ecd4c53..67c27c84 100644 --- a/include/background-image.h +++ b/include/background-image.h @@ -2,6 +2,6 @@ #define _SWAY_BACKGROUND_IMAGE_H #include -cairo_surface_t *load_background_image(const char *path); +cairo_surface_t *load_image(const char *path); #endif diff --git a/swaybar/tray/item.c b/swaybar/tray/item.c index 1f18b8bb..c7938a35 100644 --- a/swaybar/tray/item.c +++ b/swaybar/tray/item.c @@ -431,7 +431,7 @@ static void reload_sni(struct swaybar_sni *sni, char *icon_theme, list_free(icon_search_paths); if (icon_path) { cairo_surface_destroy(sni->icon); - sni->icon = load_background_image(icon_path); + sni->icon = load_image(icon_path); free(icon_path); return; }