Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
9a0ff4b7
Commit
9a0ff4b7
authored
Apr 26, 2014
by
Sebastian Ramacher
Browse files
CSS definitions for index mode
parent
f4ff19d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
9a0ff4b7
...
...
@@ -19,6 +19,7 @@ zathura.1
zathurarc.5
.version-checks/
dbus-interface-definitions.c
css-definitions.c
.ycm_extra_conf.py
.ropeproject
compile_commands.json
Makefile
View file @
9a0ff4b7
...
...
@@ -4,7 +4,7 @@ include config.mk
include
colors.mk
include
common.mk
OSOURCE
=
$(
filter-out
dbus-interface-definitions.c,
$(
wildcard
*
.c
))
OSOURCE
=
$(
filter-out
css-definitions.c,
$(
filter-out
dbus-interface-definitions.c,
$(
wildcard
*
.c
))
)
HEADER
=
$(
wildcard
*
.h
)
HEADERINST
=
version.h document.h macros.h page.h types.h plugin-api.h links.h
...
...
@@ -37,10 +37,11 @@ ifeq (,$(findstring -DLOCALEDIR,${CPPFLAGS}))
CPPFLAGS
+=
-DLOCALEDIR
=
\"
${LOCALEDIR}
\"
endif
OBJECTS
=
$(
patsubst
%.c, %.o,
$(SOURCE)
)
dbus-interface-definitions.o
OBJECTS
=
$(
patsubst
%.c, %.o,
$(SOURCE)
)
dbus-interface-definitions.o
css-definitions.o
DOBJECTS
=
$(
patsubst
%.o, %.do,
$(OBJECTS)
)
all
:
options ${PROJECT} po build-manpages
all
:
options ${PROJECT} po
# build-manpages
# pkg-config based version checks
.version-checks/%
:
config.mk
...
...
@@ -68,11 +69,18 @@ version.h: version.h.in config.mk
$(QUIET)
mv
version.h.tmp version.h
dbus-interface-definitions.c
:
data/org.pwmt.zathura.xml
$(QUIET)
echo
'#include "dbus-interface-definitions.h"'
>
dbus-interface-definitions.c.tmp
$(QUIET)
echo
'const char* DBUS_INTERFACE_XML ='
>>
dbus-interface-definitions.c.tmp
$(QUIET)
sed
's/^\(.*\)$$/"\1\\n"/'
data/org.pwmt.zathura.xml
>>
dbus-interface-definitions.c.tmp
$(QUIET)
echo
';'
>>
dbus-interface-definitions.c.tmp
$(QUIET)
mv
dbus-interface-definitions.c.tmp dbus-interface-definitions.c
$(QUIET)
echo
'#include "dbus-interface-definitions.h"'
>
$@
.tmp
$(QUIET)
echo
'const char* DBUS_INTERFACE_XML ='
>>
$@
.tmp
$(QUIET)
sed
's/^\(.*\)$$/"\1\\n"/'
data/org.pwmt.zathura.xml
>>
$@
.tmp
$(QUIET)
echo
';'
>>
$@
.tmp
$(QUIET)
mv
$@
.tmp
$@
.c
css-definitions.c
:
data/zathura.css_t
$(QUIET)
echo
'#include "css-definitions.h"'
>
$@
.tmp
$(QUIET)
echo
'const char* CSS_TEMPLATE ='
>>
$@
.tmp
$(QUIET)
sed
's/^\(.*\)$$/"\1\\n"/'
$<
>>
$@
.tmp
$(QUIET)
echo
';'
>>
$@
.tmp
$(QUIET)
mv
$@
.tmp
$@
%.o
:
%.c
$(
call
colorecho,CC,
$<
)
...
...
css-definitions.h
0 → 100644
View file @
9a0ff4b7
/* See LICENSE file for license and copyright information */
#ifndef GIRARA_CSS_DEFINITIONS_H
#define GIRARA_CSS_DEFINITIONS_H
extern
const
char
*
CSS_TEMPLATE
;
#endif
data/zathura.css_t
0 → 100644
View file @
9a0ff4b7
#@session@ .indexmode {
color: @index-fg@;
background-color: @index-bg@;
}
#@session@ .indexmode:selected {
color: @index-active-fg@;
background-color: @index-active-bg@;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment