diff options
author | 2023-11-23 08:01:48 -0500 | |
---|---|---|
committer | 2023-11-23 20:42:04 +0100 | |
commit | 439122e887d8d90991a06cf4877d5dd19bb21692 (patch) | |
tree | d2ced5b318d5f643181fcfd1017314c6dc64a40f | |
parent | common: Drop unused render_background_image (diff) | |
download | sway-439122e887d8d90991a06cf4877d5dd19bb21692.tar.gz sway-439122e887d8d90991a06cf4877d5dd19bb21692.tar.zst sway-439122e887d8d90991a06cf4877d5dd19bb21692.zip |
common: rename load_background_image to load_image
-rw-r--r-- | common/background-image.c | 2 | ||||
-rw-r--r-- | include/background-image.h | 2 | ||||
-rw-r--r-- | swaybar/tray/item.c | 2 |
3 files changed, 3 insertions, 3 deletions
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( | |||
104 | } | 104 | } |
105 | #endif // HAVE_GDK_PIXBUF | 105 | #endif // HAVE_GDK_PIXBUF |
106 | 106 | ||
107 | cairo_surface_t *load_background_image(const char *path) { | 107 | cairo_surface_t *load_image(const char *path) { |
108 | cairo_surface_t *image; | 108 | cairo_surface_t *image; |
109 | #if HAVE_GDK_PIXBUF | 109 | #if HAVE_GDK_PIXBUF |
110 | GError *err = NULL; | 110 | 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 @@ | |||
2 | #define _SWAY_BACKGROUND_IMAGE_H | 2 | #define _SWAY_BACKGROUND_IMAGE_H |
3 | #include <cairo.h> | 3 | #include <cairo.h> |
4 | 4 | ||
5 | cairo_surface_t *load_background_image(const char *path); | 5 | cairo_surface_t *load_image(const char *path); |
6 | 6 | ||
7 | #endif | 7 | #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, | |||
431 | list_free(icon_search_paths); | 431 | list_free(icon_search_paths); |
432 | if (icon_path) { | 432 | if (icon_path) { |
433 | cairo_surface_destroy(sni->icon); | 433 | cairo_surface_destroy(sni->icon); |
434 | sni->icon = load_background_image(icon_path); | 434 | sni->icon = load_image(icon_path); |
435 | free(icon_path); | 435 | free(icon_path); |
436 | return; | 436 | return; |
437 | } | 437 | } |