mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
mv xbm/ ..
This commit is contained in:
parent
a042aad9f6
commit
fd8d9a395d
16 changed files with 22 additions and 13 deletions
|
|
@ -15,6 +15,7 @@ SRC = \
|
|||
../../src/common/dir.c \
|
||||
../../src/common/buf.c \
|
||||
../../src/common/font.c \
|
||||
../../src/common/log.c \
|
||||
../../src/config/keybind.c
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,12 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <cairo.h>
|
||||
#include <pango/pangocairo.h>
|
||||
|
||||
#include "config/rcxml.h"
|
||||
#include "common/buf.h"
|
||||
#include "common/log.h"
|
||||
|
||||
struct rcxml rc = { 0 };
|
||||
|
||||
|
|
@ -20,4 +23,5 @@ int main(int argc, char **argv)
|
|||
rcxml_read(argv[1]);
|
||||
printf("%s", b.buf);
|
||||
free(b.buf);
|
||||
pango_cairo_font_map_set_default(NULL);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ LDFLAGS += -DWLR_USE_UNSTABLE
|
|||
SRCS = \
|
||||
theme-helper.c \
|
||||
../../src/theme/theme.c \
|
||||
../../src/common/dir.c
|
||||
../../src/common/dir.c \
|
||||
../../src/common/log.c
|
||||
|
||||
all:
|
||||
gcc $(CFLAGS) -o theme-helper $(SRCS) $(LDFLAGS)
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ PROGS = xbm-tokenize xbm-parse
|
|||
|
||||
DEP_TOKENIZE = \
|
||||
../../src/common/buf.c \
|
||||
../../src/theme/xbm/tokenize.c
|
||||
../../src/xbm/tokenize.c
|
||||
|
||||
DEP_PARSE = $(DEP_TOKENIZE) \
|
||||
../../src/theme/xbm/parse.c \
|
||||
../../src/xbm/parse.c \
|
||||
../../src/common/grab-file.c
|
||||
|
||||
all: $(PROGS)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,11 @@
|
|||
#include <string.h>
|
||||
#include <cairo.h>
|
||||
|
||||
#include "theme/xbm/parse.h"
|
||||
#include "xbm/parse.h"
|
||||
#include "common/grab-file.h"
|
||||
|
||||
static float red[] = { 1.0, 0.0, 0.0, 1.0 };
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
struct token *tokens;
|
||||
|
|
@ -20,6 +22,7 @@ int main(int argc, char **argv)
|
|||
exit(EXIT_FAILURE);
|
||||
tokens = tokenize_xbm(buffer);
|
||||
free(buffer);
|
||||
parse_set_color(red);
|
||||
struct pixmap pixmap = parse_xbm_tokens(tokens);
|
||||
free(tokens);
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "common/buf.h"
|
||||
#include "theme/xbm/tokenize.h"
|
||||
#include "xbm/tokenize.h"
|
||||
|
||||
/* Read file into buffer, because it's easier to tokenize that way */
|
||||
char *read_file(const char *filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue