mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
Finds paths to icon files using libsfdo. Libsfdo is currently an
optional compile time dependency. This means the former code paths are all retained and new ones are wrapped in #if HAVE_LIBSFDO. Behavior should be identical now between the two code paths. Later commits will add the handling of icons specified as absolute paths which both former swaybar code and libsfdo have thus far avoided.
This commit is contained in:
parent
34d2020042
commit
478c77a69b
14 changed files with 220 additions and 23 deletions
19
include/sfdo.h
Normal file
19
include/sfdo.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef _SWAY_SFDO_H
|
||||
#define _SWAY_SFDO_H
|
||||
|
||||
#include <sfdo-desktop.h>
|
||||
#include <sfdo-icon.h>
|
||||
#include <sfdo-basedir.h>
|
||||
|
||||
struct sfdo {
|
||||
struct sfdo_desktop_ctx *desktop_ctx;
|
||||
struct sfdo_icon_ctx *icon_ctx;
|
||||
struct sfdo_desktop_db *desktop_db;
|
||||
struct sfdo_icon_theme *icon_theme;
|
||||
};
|
||||
|
||||
char *sfdo_icon_lookup_extended(struct sfdo *sfdo, char *icon_name, int target_size, int scale);
|
||||
struct sfdo *sfdo_create(char *icon_theme);
|
||||
void sfdo_destroy(struct sfdo *sfdo);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue