Commit ff816e19 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Update upstream source from tag 'upstream/0.3.8'

Update to upstream version '0.3.8'
with Debian dir 5b9eca76d000b185a10486ef5ebb31ea3b29eb5f
parents 982e45f3 107522c0
.pc/
debian/zathura*debhelper*
debian/*.substvars
debian/zathurarc.5
debian/tmp
debian/zathura-dev
zathura
debian/files
zathura-headers
pdf-poppler-*
.depend
version.h
zathura.pc
po/de
tests/tests
girara-version-check
......@@ -4,26 +4,22 @@ include config.mk
include colors.mk
include common.mk
OSOURCE = $(filter-out ${PROJECT}/css-definitions.c, $(filter-out ${PROJECT}/dbus-interface-definitions.c, $(sort $(wildcard ${PROJECT}/*.c))))
# source files
OSOURCE = $(sort $(wildcard ${PROJECT}/*.c) \
${PROJECT}/resources.c)
SOURCE_FILTER =
ifneq (${WITH_SQLITE},0)
INCS += $(SQLITE_INC)
LIBS += $(SQLITE_LIB)
SOURCE = $(OSOURCE)
CPPFLAGS += -DWITH_SQLITE
else
SOURCE = $(filter-out ${PROJECT}/database-sqlite.c,$(OSOURCE))
SOURCE_FILTER += ${PROJECT}/database-sqlite.c
endif
ifneq ($(WITH_MAGIC),0)
INCS += $(MAGIC_INC)
LIBS += $(MAGIC_LIB)
CPPFLAGS += -DWITH_MAGIC
endif
ifneq ($(WITH_SYNCTEX),0)
INCS += $(SYNCTEX_INC)
LIBS += $(SYNCTEX_LIB)
CPPFLAGS += -DWITH_SYNCTEX
endif
......@@ -41,16 +37,10 @@ ifeq (,$(findstring -DLOCALEDIR,${CPPFLAGS}))
CPPFLAGS += -DLOCALEDIR=\"${LOCALEDIR}\"
endif
OBJECTS = $(addprefix ${BUILDDIR_RELEASE}/,${SOURCE:.c=.o}) \
${BUILDDIR_RELEASE}/${PROJECT}/css-definitions.o \
${BUILDDIR_RELEASE}/${PROJECT}/dbus-interface-definitions.o
OBJECTS_DEBUG = $(addprefix ${BUILDDIR_DEBUG}/,${SOURCE:.c=.o}) \
${BUILDDIR_DEBUG}/${PROJECT}/css-definitions.o \
${BUILDDIR_DEBUG}/${PROJECT}/dbus-interface-definitions.o
OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o}) \
${BUILDDIR_GCOV}/${PROJECT}/css-definitions.o \
${BUILDDIR_GCOV}/${PROJECT}/dbus-interface-definitions.o
HEADER = $(wildcard ${PROJECT}/*.h) $(wildcard synctex/*.h)
SOURCE = $(filter-out $(SOURCE_FILTER),$(OSOURCE))
OBJECTS = $(addprefix ${BUILDDIR_RELEASE}/,${SOURCE:.c=.o})
OBJECTS_DEBUG = $(addprefix ${BUILDDIR_DEBUG}/,${SOURCE:.c=.o})
OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o})
HEADERINST = $(addprefix ${PROJECT}/,version.h document.h macros.h page.h types.h plugin-api.h links.h)
all: options ${PROJECT} po build-manpages
......@@ -72,6 +62,8 @@ options:
@echo "DFLAGS = ${DFLAGS}"
@echo "CC = ${CC}"
# generated files
${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk
$(QUIET)sed -e 's/ZVMAJOR/${ZATHURA_VERSION_MAJOR}/' \
-e 's/ZVMINOR/${ZATHURA_VERSION_MINOR}/' \
......@@ -80,24 +72,23 @@ ${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk
-e 's/ZVABI/${ZATHURA_ABI_VERSION}/' ${PROJECT}/version.h.in > ${PROJECT}/version.h.tmp
$(QUIET)mv ${PROJECT}/version.h.tmp ${PROJECT}/version.h
${PROJECT}/dbus-interface-definitions.c: data/org.pwmt.zathura.xml
$(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 $@
${PROJECT}/resources.%: data/zathura.gresource.xml config.mk
$(call colorecho,GEN,$@)
@mkdir -p ${DEPENDDIR}/$(dir $@)
$(QUIET)$(GLIB_COMPILE_RESOURCES) --generate --c-name=zathura_resources --internal \
--dependency-file=$(DEPENDDIR)/$@.dep \
--sourcedir=data --target=$@ data/zathura.gresource.xml
${PROJECT}/css-definitions.c: data/zathura.css_t
$(QUIET)echo '#include "css-definitions.h"' > $@.tmp
$(QUIET)echo 'const char* CSS_TEMPLATE_INDEX =' >> $@.tmp
$(QUIET)sed 's/^\(.*\)$$/"\1\\n"/' $< >> $@.tmp
$(QUIET)echo ';' >> $@.tmp
$(QUIET)mv $@.tmp $@
# common dependencies
# release build
${OBJECTS} ${OBJECTS_DEBUG} ${OBJECTS_GCOV}: config.mk \
.version-checks/GIRARA \
.version-checks/GLIB \
.version-checks/GTK \
${PROJECT}/version.h \
${PROJECT}/resources.h
${OBJECTS}: config.mk ${PROJECT}/version.h \
.version-checks/GIRARA .version-checks/GLIB .version-checks/GTK
# rlease build
${BUILDDIR_RELEASE}/%.o: %.c
$(call colorecho,CC,$<)
......@@ -120,9 +111,6 @@ run: release
# debug build
${OBJECTS_DEBUG}: config.mk ${PROJECT}/version.h \
.version-checks/GIRARA .version-checks/GLIB .version-checks/GTK
${BUILDDIR_DEBUG}/%.o: %.c
$(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $@)
......@@ -143,9 +131,6 @@ run-debug: debug
# gcov build
${OBJECTS_GCOV}: config.mk ${PROJECT}/version.h \
.version-checks/GIRARA .version-checks/GLIB .version-checks/GTK
${BUILDDIR_GCOV}/%.o: %.c
$(call colorecho,CC,$<)
@mkdir -p ${DEPENDDIR}/$(dir $@)
......@@ -157,7 +142,7 @@ ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT}: ${OBJECTS_GCOV}
$(call colorecho,CC,$@)
@mkdir -p ${BUILDDIR_GCOV}/${BINDIR}
$(QUIET)${CC} ${LDFLAGS} ${GCOV_CFLAGS} ${GCOV_LDFLAGS} \
-o ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} ${OBJECTS_GCOv} ${LIBS}
-o ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} ${OBJECTS_GCOV} ${LIBS}
gcov: options ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT}
$(QUIET)${MAKE} -C tests run-gcov
......@@ -180,10 +165,8 @@ clean:
${PROJECT}.pc \
${PROJECT}/version.h \
${PROJECT}/version.h.tmp \
${PROJECT}/dbus-interface-definitions.c \
${PROJECT}/dbus-interface-definitions.c.tmp \
${PROJECT}/css-definitions.c \
${PROJECT}/css-definitions.c.tmp \
${PROJECT}/resources.c \
${PROJECT}/resources.h \
$(PROJECT).info \
gcov \
.version-checks
......
......@@ -6,8 +6,8 @@ girara user interface library and several document libraries.
Requirements
------------
gtk3 (>= 3.6)
glib (>= 2.32)
girara (>= 0.2.4)
glib (>= 2.50)
girara (>= 0.2.8)
sqlite3 (optional, >= 3.5.9)
check (for tests)
intltool
......
......@@ -6,11 +6,11 @@ PROJECT = zathura
ZATHURA_VERSION_MAJOR = 0
ZATHURA_VERSION_MINOR = 3
ZATHURA_VERSION_REV = 7
ZATHURA_VERSION_REV = 8
# If the API changes, the API version and the ABI version have to be bumped.
ZATHURA_API_VERSION = 2
# If the ABI breaks for any reason, this has to be bumped.
ZATHURA_ABI_VERSION = 2
ZATHURA_ABI_VERSION = 3
VERSION = ${ZATHURA_VERSION_MAJOR}.${ZATHURA_VERSION_MINOR}.${ZATHURA_VERSION_REV}
# version checks
......@@ -18,11 +18,11 @@ VERSION = ${ZATHURA_VERSION_MAJOR}.${ZATHURA_VERSION_MINOR}.${ZATHURA_VERSION_RE
# girara
GIRARA_VERSION_CHECK ?= 1
GIRARA_MIN_VERSION = 0.2.7
GIRARA_MIN_VERSION = 0.2.8
GIRARA_PKG_CONFIG_NAME = girara-gtk3
# glib
GLIB_VERSION_CHECK ?= 1
GLIB_MIN_VERSION = 2.32
GLIB_MIN_VERSION = 2.50
GLIB_PKG_CONFIG_NAME = glib-2.0
# GTK
GTK_VERSION_CHECK ?= 1
......@@ -32,6 +32,9 @@ GTK_PKG_CONFIG_NAME = gtk+-3.0
# pkg-config binary
PKG_CONFIG ?= pkg-config
# glib-compile-resources
GLIB_COMPILE_RESOURCES ?= glib-compile-resources
# database
# To disable support for the sqlite backend set WITH_SQLITE to 0.
WITH_SQLITE ?= $(shell (${PKG_CONFIG} --atleast-version=3.5.9 sqlite3 && echo 1) || echo 0)
......@@ -48,7 +51,7 @@ WITH_MAGIC ?= 1
PREFIX ?= /usr
MANPREFIX ?= ${PREFIX}/share/man
DESKTOPPREFIX ?= ${PREFIX}/share/applications
APPDATAPREFIX ?= ${PREFIX}/share/appdata
APPDATAPREFIX ?= ${PREFIX}/share/metainfo
LIBDIR ?= ${PREFIX}/lib
INCLUDEDIR ?= ${PREFIX}/include
DBUSINTERFACEDIR ?= ${PREFIX}/share/dbus-1/interfaces
......@@ -66,38 +69,58 @@ PLUGINDIR ?= ${LIBDIR}/zathura
LOCALEDIR ?= ${PREFIX}/share/locale
# libs
GTK_INC ?= $(shell ${PKG_CONFIG} --cflags gtk+-3.0)
GTK_LIB ?= $(shell ${PKG_CONFIG} --libs gtk+-3.0)
GTHREAD_INC ?= $(shell ${PKG_CONFIG} --cflags gthread-2.0)
GTHREAD_LIB ?= $(shell ${PKG_CONFIG} --libs gthread-2.0)
GMODULE_INC ?= $(shell ${PKG_CONFIG} --cflags gmodule-no-export-2.0)
GMODULE_LIB ?= $(shell ${PKG_CONFIG} --libs gmodule-no-export-2.0)
ifeq (${GTK_INC}-${GTK_LIB},-)
PKG_CONFIG_LIBS += gtk+-3.0
else
INCS += ${GTK_INC}
LIBS += ${GTK_LIB}
endif
GLIB_INC ?= $(shell ${PKG_CONFIG} --cflags glib-2.0)
GLIB_LIB ?= $(shell ${PKG_CONFIG} --libs glib-2.0)
ifeq (${GLIB_INC}-${GLIB_LIB},-)
PKG_CONFIG_LIBS += gthread-2.0 gmodule-no-export-2.0 glib-2.0
else
INCS += ${GLIB_INC}
LIBS += ${GLIB_LIB}
endif
GIRARA_INC ?= $(shell ${PKG_CONFIG} --cflags girara-gtk3)
GIRARA_LIB ?= $(shell ${PKG_CONFIG} --libs girara-gtk3)
ifeq (${GIRARA_INC}-${GIRARA_LIB},-)
PKG_CONFIG_LIBS += girara-gtk3
else
INCS += ${GIRARA_INC}
LIBS += ${GIRARA_LIB}
endif
ifneq (${WITH_SQLITE},0)
SQLITE_INC ?= $(shell ${PKG_CONFIG} --cflags sqlite3)
SQLITE_LIB ?= $(shell ${PKG_CONFIG} --libs sqlite3)
ifeq (${SQLITE_INC}-${SQLITE_LIB},-)
PKG_CONFIG_LIBS += sqlite3
else
INCS += ${SQLITE_INC}
LIBS += ${SQLITE_LIB}
endif
endif
ifneq (${WITH_MAGIC},0)
MAGIC_INC ?=
MAGIC_LIB ?= -lmagic
INCS += ${MAGIC_INC}
LIBS += ${MAGIC_LIB}
endif
ifneq ($(WITH_SYNCTEX),0)
SYNCTEX_INC ?= $(shell ${PKG_CONFIG} --cflags synctex)
SYNCTEX_LIB ?= $(shell ${PKG_CONFIG} --libs synctex)
ifeq (${SYNCTEX_INC}-${SYNCTEX_LIB},-)
PKG_CONFIG_LIBS += synctex
else
INCS += ${SYNCTEX_INC}
LIBS += ${SYNCTEX_LIB}
endif
endif
INCS = ${GIRARA_INC} ${GTK_INC} ${GTHREAD_INC} ${GMODULE_INC} ${GLIB_INC}
LIBS = ${GIRARA_LIB} ${GTK_LIB} ${GTHREAD_LIB} ${GMODULE_LIB} ${GLIB_LIB} -lpthread -lm
ifneq (${PKG_CONFIG_LIBS},)
INCS += $(shell ${PKG_CONFIG} --cflags ${PKG_CONFIG_LIBS})
LIBS += $(shell ${PKG_CONFIG} --libs ${PKG_CONFIG_LIBS})
endif
LIBS += -lpthread -lm
# pre-processor flags
CPPFLAGS += -D_FILE_OFFSET_BITS=64
......
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/pwmt/zathura/CSS">
<file compressed="true">zathura.css_t</file>
</gresource>
<gresource prefix="/org/pwmt/zathura/DBus">
<file compressed="true">org.pwmt.zathura.xml</file>
</gresource>
</gresources>
.\" Man page generated from reStructuredText.
.
.TH "ZATHURA" "1" "2017-01-11" "0.2.7" "zathura"
.TH "ZATHURA" "1" "2017-12-20" "0.2.7" "zathura"
.SH NAME
zathura \- a document viewer
.
......@@ -33,7 +33,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.SH SYNOPSIS
.sp
zathura [\-e XID] [\-c PATH] [\-d PATH] [\-p PATH] [\-w PASSWORD] [\-P NUMBER]
[\-\-fork] [\-l LEVEL] [\-s] [\-x CMD] [\-\-synctex\-forward INPUT] [\-\-synctex\-pid PID]
[–fork] [\-l LEVEL] [\-s] [\-x CMD] [–synctex\-forward INPUT] [–synctex\-pid PID]
<files>
.SH DESCRIPTION
.sp
......@@ -73,8 +73,8 @@ Set the synctex editor command. Overrides the synctex\-editor\-command setting.
.TP
.BI \-\-synctex\-forward\fB= input
Jump to the given position. The switch expects the same format as specified
for synctex\(aqs view \-i. If no instance is running for the specified document,
a new instance will be launched (only if \-\-synctex\-pid is not specified).
for synctexs view \-i. If no instance is running for the specified document,
a new instance will be launched (only if synctex\-pid is not specified).
.TP
.BI \-\-synctex\-pid\fB= pid
Instead of looking for an instance having the correct file opened, try only
......@@ -155,7 +155,7 @@ Enter command
Rotate by 90 degrees
.TP
.B ^r
Recolor
Recolor (grayscale and invert colors)
.TP
.B R
Reload document
......@@ -190,7 +190,7 @@ Zoom to size n
.B mX
Set a quickmark to a letter or number X
.TP
.B \(aqX
.B X
Goto quickmark saved at letter or number X
.TP
.B q
......@@ -346,14 +346,21 @@ description please consult zathurarc(5).
.SH SYNCTEX SUPPORT
.sp
Both synctex forward and backwards synchronization are supported by zathura, To
enable synctex forward synchronization, please look at the \fI\-\-synctex\-forward\fP
and \fI\-\-synctex\-editor\fP options. zathura will also emit a signal via the D\-Bus
enable synctex forward synchronization, please look at the \fIsynctex\-forward\fP
and \fIsynctex\-editor\fP options. zathura will also emit a signal via the D\-Bus
interface. To support synctex backwards synchronization, zathura provides a
D\-Bus interface that can be called by the editor. For convince zathura also
knows how to parse the output of the \fIsynctex view\fP command. It is enough to
pass the arguments to \fIsynctex view\fP\(aqs \fI\-i\fP option to zathura via
\fI\-\-syntex\-forward\fP and zathura will pass the information to the correct
pass the arguments to \fIsynctex view\fPs \fI\-i\fP option to zathura via
\fIsyntex\-forward\fP and zathura will pass the information to the correct
instance.
.sp
Some editors support zathura as viewer out of the box:
.INDENT 0.0
.IP \(bu 2
LaTeXTools for SublimeText
(\fI\%https://latextools.readthedocs.io/en/latest/available\-viewers/#zathura\fP)
.UNINDENT
.SH KNOWN BUGS
.sp
If GDK_NATIVE_WINDOWS is enabled you will experience problems with large
......
.\" Man page generated from reStructuredText.
.
.TH "ZATHURARC" "5" "2017-01-11" "0.2.7" "zathura"
.TH "ZATHURARC" "5" "2017-12-20" "0.2.7" "zathura"
.SH NAME
zathurarc \- zathura configuration file
.
......@@ -68,7 +68,7 @@ FLOAT \- A floating point number
.IP \(bu 2
STRING \- A character string
.IP \(bu 2
BOOL \- A boolean value ("true" for true, "false" for false)
BOOL \- A boolean value (“true” for true, “false” for false)
.UNINDENT
.sp
In addition we advice you to check the options to get a more detailed view of
......@@ -146,6 +146,8 @@ normal (default)
.IP \(bu 2
fullscreen
.IP \(bu 2
presentation
.IP \(bu 2
index
.UNINDENT
.sp
......@@ -322,6 +324,10 @@ Change current mode. Pass the desired mode as argument.
.sp
Display link target.
.IP \(bu 2
\fBexec\fP:
.sp
Execute an external command.
.IP \(bu 2
\fBfocus_inputbar\fP
.sp
Focus inputbar.
......@@ -499,7 +505,7 @@ unmap [mode] <binding>
.SH OPTIONS
.SS girara
.sp
This section describes settings concerning the behaviour of libgirara and
This section describes settings concerning the behaviour of girara and
zathura. The settings described here can be changed with \fBset\fP\&.
.SS n\-completion\-items
.sp
......@@ -590,7 +596,7 @@ Default value: #000000
.UNINDENT
.SS exec\-command
.sp
Defines a command the should be prepanded to any command run with exec.
Defines a command the should be prepended to any command run with exec.
.INDENT 0.0
.IP \(bu 2
Value type: String
......@@ -609,10 +615,10 @@ Default value: monospace normal 9
.SS guioptions
.sp
Shows or hides GUI elements.
If it contains \(aqc\(aq, the command line is displayed.
If it contains \(aqs\(aq, the statusbar is displayed.
If it contains \(aqh\(aq, the horizontal scrollbar is displayed.
If it contains \(aqv\(aq, the vertical scrollbar is displayed.
If it contains ‘c’, the command line is displayed.
If it contains ‘s’, the statusbar is displayed.
If it contains ‘h’, the horizontal scrollbar is displayed.
If it contains ‘v’, the vertical scrollbar is displayed.
.INDENT 0.0
.IP \(bu 2
Value type: String
......@@ -730,7 +736,7 @@ Default value: #000000
.SS show\-scrollbars
.sp
Defines if both the horizontal and vertical scrollbars should be shown or not.
Deprecated, use \(aqguioptions\(aq instead.
Deprecated, use ‘guioptions’ instead.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
......@@ -740,7 +746,7 @@ Default value: false
.SS show\-h\-scrollbar
.sp
Defines whether to show/hide the horizontal scrollbar. Deprecated, use
\(aqguioptions\(aq instead.
‘guioptions’ instead.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
......@@ -750,7 +756,7 @@ Default value: false
.SS show\-v\-scrollbar
.sp
Defines whether to show/hide the vertical scrollbar. Deprecated, use
\(aqguioptions\(aq instead.
‘guioptions’ instead.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
......@@ -835,7 +841,7 @@ Default value: true
.SS adjust\-open
.sp
Defines which auto adjustment mode should be used if a document is loaded.
Possible options are "best\-fit" and "width".
Possible options are “best\-fit” and “width”.
.INDENT 0.0
.IP \(bu 2
Value type: String
......@@ -851,11 +857,21 @@ Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
.SS continuous\-hist\-save
.sp
Tells zathura whether to save document history at each page change or only when
closing a document.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
.SS database
.sp
Defines the database backend to use for bookmarks and input history. Possible
values are "plain", "sqlite" (if built with sqlite support) and "null". If
"null" is used, bookmarks and input history will not be stored.
values are “plain”, “sqlite” (if built with sqlite support) and “null”. If
“null” is used, bookmarks and input history will not be stored.
.INDENT 0.0
.IP \(bu 2
Value type: String
......@@ -874,7 +890,7 @@ Default value: true
.UNINDENT
.SS filemonitor
.sp
Defines the filemonitor backend. Possible values are "glib" and "signal" (if
Defines the filemonitor backend. Possible values are “glib” and “signal” (if
signal handling is supported).
.INDENT 0.0
.IP \(bu 2
......@@ -932,7 +948,7 @@ Default value: 1
.SS page\-cache\-size
.sp
Defines the maximum number of pages that could be kept in the page cache. When
the cache is full and a new page that isn\(aqt cached becomes visible, the least
the cache is full and a new page that isnt cached becomes visible, the least
recently viewed page in the cache will be evicted to make room for the new one.
Large values for this variable are NOT recommended, because this will lead to
consuming a significant portion of the system memory.
......@@ -969,7 +985,7 @@ Default value: 1
.sp
Defines the column in which the first page will be displayed.
This setting is stored separately for every value of pages\-per\-row according to
the following pattern <1 page per row>:[<2 pages per row>[: ...]]. The last
the following pattern <1 page per row>:[<2 pages per row>[: ]]. The last
value in the list will be used for all other number of pages per row if not set
explicitly.
.sp
......@@ -1027,7 +1043,7 @@ Default value: false
.UNINDENT
.SS render\-loading
.sp
Defines if the "Loading..." text should be displayed if a page is rendered.
Defines if the “Loading…” text should be displayed if a page is rendered.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
......@@ -1036,7 +1052,7 @@ Default value: true
.UNINDENT
.SS render\-loading\-bg
.sp
Defines the background color that is used for the "Loading..." text.
Defines the background color that is used for the “Loading…” text.
.INDENT 0.0
.IP \(bu 2
Value type: String
......@@ -1045,7 +1061,7 @@ Default value: #FFFFFF
.UNINDENT
.SS render\-loading\-fg
.sp
Defines the foreground color that is used for the "Loading..." text.
Defines the foreground color that is used for the “Loading…” text.
.INDENT 0.0
.IP \(bu 2
Value type: String
......@@ -1129,7 +1145,7 @@ Default value: false
.UNINDENT
.SS smooth\-scroll
.sp
Defines if scrolling via touchpad should be smooth(only available with gtk >= 3.4).
Defines if scrolling via touchpad should be smooth.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
......@@ -1218,6 +1234,15 @@ Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
.SS vertical\-center
.sp
Center the screen at the vertical midpoint of the page by default.
.INDENT 0.0
.IP \(bu 2
Value type: Boolean
.IP \(bu 2
Default value: false
.UNINDENT
.SS zoom\-max
.sp
Defines the maximum percentage that the zoom level can be.
......@@ -1248,8 +1273,8 @@ Default value: 10
.SS selection\-clipboard
.sp
Defines the X clipboard into which mouse\-selected data will be written. When it
is "clipboard", selected data will be written to the CLIPBOARD clipboard, and
can be pasted using the Ctrl+v key combination. When it is "primary", selected
is “clipboard”, selected data will be written to the CLIPBOARD clipboard, and
can be pasted using the Ctrl+v key combination. When it is “primary”, selected
data will be written to the PRIMARY clipboard, and can be pasted using the
middle mouse button, or the Shift\-Insert key combination.
.INDENT 0.0
......
......@@ -39,7 +39,7 @@ General
r
Rotate by 90 degrees
^r
Recolor
Recolor (grayscale and invert colors)
R
Reload document
Tab
......
......@@ -7,3 +7,8 @@ knows how to parse the output of the *synctex view* command. It is enough to
pass the arguments to *synctex view*'s *-i* option to zathura via
*--syntex-forward* and zathura will pass the information to the correct
instance.
Some editors support zathura as viewer out of the box:
* LaTeXTools for SublimeText
(https://latextools.readthedocs.io/en/latest/available-viewers/#zathura)
......@@ -91,6 +91,7 @@ argument which can take one of the following values:
* normal (default)
* fullscreen
* presentation
* index
The brackets around the value are mandatory.
......@@ -225,6 +226,10 @@ The following shortcut functions can be mapped:
Display link target.
* ``exec``:
Execute an external command.
* ``focus_inputbar``
Focus inputbar.
......@@ -370,7 +375,7 @@ OPTIONS
girara
------
This section describes settings concerning the behaviour of libgirara and
This section describes settings concerning the behaviour of girara and
zathura. The settings described here can be changed with ``set``.
n-completion-items
......@@ -444,7 +449,7 @@ Defines the default background color
exec-command
^^^^^^^^^^^^
Defines a command the should be prepanded to any command run with exec.
Defines a command the should be prepended to any command run with exec.
* Value type: String
* Default value:
......@@ -651,6 +656,14 @@ Defines if the number of pages per row should be honored when advancing a page.
* Value type: Boolean
* Default value: false
continuous-hist-save
^^^^^^^^^^^^^^^^^^^^
Tells zathura whether to save document history at each page change or only when
closing a document.
* Value type: Boolean
* Default value: false
database
^^^^^^^^
Defines the database backend to use for bookmarks and input history. Possible
......@@ -874,7 +887,7 @@ Defines if scrolling by half or full pages stops at page boundaries.
smooth-scroll
^^^^^^^^^^^^^
Defines if scrolling via touchpad should be smooth(only available with gtk >= 3.4).
Defines if scrolling via touchpad should be smooth.
* Value type: Boolean
* Default value: false
......@@ -943,6 +956,13 @@ En/Disables horizontally centered zooming.
* Value type: Boolean
* Default value: false
vertical-center
^^^^^^^^^^^^^^^
Center the screen at the vertical midpoint of the page by default.
* Value type: Boolean
* Default value: false
zoom-max
^^^^^^^^
Defines the maximum percentage that the zoom level can be.
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -12,33 +12,29 @@ OBJECTS = $(addprefix ${BUILDDIR_RELEASE}/,${SOURCE:.c=.o})
OBJECTS_DEBUG = $(addprefix ${BUILDDIR_DEBUG}/,${SOURCE:.c=.o})
OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o})
ZATHURA_OBJECTS = \
$(filter-out ../${BUILDDIR_RELEASE}/zathura/main.o, $(wildcard ../${BUILDDIR_RELEASE}/zathura/*.o))
ZATHURA_OBJECTS_DEBUG = \
$(filter-out ../${BUILDDIR_DEBUG}/zathura/main.o, $(wildcard ../${BUILDDIR_DEBUG}/zathura/*.o))
ZATHURA_OBJECTS_GCOV= \
$(filter-out ../${BUILDDIR_GCOV}/zathura/main.o, $(wildcard ../${BUILDDIR_GCOV}/zathura/*.o))
FILTER = %/main.o
ifneq (${WITH_SQLITE},0)
INCS += $(SQLITE_INC)
LIBS += $(SQLITE_LIB)
CPPFLAGS += -DWITH_SQLITE
else
SOURCE = $(filter-out database-sqlite.c,$(OSOURCE))
FILTER += %/database-sqlite.o
endif
ifneq ($(WITH_MAGIC),0)
INCS += $(MAGIC_INC)
LIBS += $(MAGIC_LIB)
CPPFLAGS += -DWITH_MAGIC
endif
ifneq ($(WITH_SYNCTEX),0)
INCS += $(SYNCTEX_INC)
LIBS += $(SYNCTEX_LIB)
CPPFLAGS += -DWITH_SYNCTEX
endif
ZATHURA_OBJECTS = \
$(filter-out $(FILTER), $(wildcard ../${BUILDDIR_RELEASE}/zathura/*.o))
ZATHURA_OBJECTS_DEBUG = \
$(filter-out $(FILTER), $(wildcard ../${BUILDDIR_DEBUG}/zathura/*.o))
ZATHURA_OBJECTS_GCOV= \
$(filter-out $(FILTER), $(wildcard ../${BUILDDIR_GCOV}/zathura/*.o))
ifneq ($(wildcard ${VALGRIND_SUPPRESSION_FILE}),)
VALGRIND_ARGUMENTS += --suppressions=${VALGRIND_SUPPRESSION_FILE}
endif
......
......@@ -4,6 +4,7 @@ Type=Application
Name=Zathura
Comment=A minimalistic document viewer
Comment[ca]=Un visualitzador de documents minimalista
Comment[cs]=Jednoduchý prohlížeč dokumentů
Comment[de]=Ein minimalistischer Dokumenten-Betrachter
Comment[el]=Ένας ελαφρύς προβολέας κειμένων
Comment[eo]=Malpeza dokumento spektanto
......
......@@ -611,9 +611,23 @@ cb_page_widget_image_selected(ZathuraPage* page, GdkPixbuf* pixbuf, void* data)
if (selection != NULL) {
gtk_clipboard_set_image(gtk_clipboard_get(*selection), pixbuf);
bool notification = true;
girara_setting_get(zathura->ui.session, "selection-notification", &notification);
if (notification == true) {