mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 15:31:28 +00:00
common: move load_image to swaybar
swaynag, swaymsg, and sway do not use this function and are unlikely to in the future.
This commit is contained in:
parent
439122e887
commit
e633fe0b40
|
@ -1,7 +1,6 @@
|
|||
lib_sway_common = static_library(
|
||||
'sway-common',
|
||||
files(
|
||||
'background-image.c',
|
||||
'cairo.c',
|
||||
'gesture.c',
|
||||
'ipc-client.c',
|
||||
|
@ -14,7 +13,6 @@ lib_sway_common = static_library(
|
|||
),
|
||||
dependencies: [
|
||||
cairo,
|
||||
gdk_pixbuf,
|
||||
pango,
|
||||
pangocairo,
|
||||
wayland_client.partial_dependency(compile_args: true)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _SWAY_BACKGROUND_IMAGE_H
|
||||
#define _SWAY_BACKGROUND_IMAGE_H
|
||||
#ifndef _SWAYBAR_IMAGE_H
|
||||
#define _SWAYBAR_IMAGE_H
|
||||
#include <cairo.h>
|
||||
|
||||
cairo_surface_t *load_image(const char *path);
|
|
@ -1,7 +1,7 @@
|
|||
#include <assert.h>
|
||||
#include "background-image.h"
|
||||
#include "config.h"
|
||||
#include "log.h"
|
||||
#include "swaybar/image.h"
|
||||
|
||||
#if HAVE_GDK_PIXBUF
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
@ -26,6 +26,7 @@ executable(
|
|||
'bar.c',
|
||||
'config.c',
|
||||
'i3bar.c',
|
||||
'image.c',
|
||||
'input.c',
|
||||
'ipc.c',
|
||||
'main.c',
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
#include <string.h>
|
||||
#include "swaybar/bar.h"
|
||||
#include "swaybar/config.h"
|
||||
#include "swaybar/image.h"
|
||||
#include "swaybar/input.h"
|
||||
#include "swaybar/tray/host.h"
|
||||
#include "swaybar/tray/icon.h"
|
||||
#include "swaybar/tray/item.h"
|
||||
#include "swaybar/tray/tray.h"
|
||||
#include "background-image.h"
|
||||
#include "cairo_util.h"
|
||||
#include "list.h"
|
||||
#include "log.h"
|
||||
|
|
Loading…
Reference in a new issue