Skip to content

Commit 3536163

Browse files
committed
Merge branch 'release/0.5.13'
2 parents 9e1919d + 19de090 commit 3536163

24 files changed

+428
-276
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
username: ${{ github.actor }}
1818
password: ${{ secrets.GITHUB_TOKEN }}
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
- name: Build and test
2222
run: |
2323
mkdir build
@@ -42,7 +42,7 @@ jobs:
4242
username: ${{ github.actor }}
4343
password: ${{ secrets.GITHUB_TOKEN }}
4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4646
- name: Build and test
4747
run: |
4848
mkdir build
@@ -67,7 +67,7 @@ jobs:
6767
username: ${{ github.actor }}
6868
password: ${{ secrets.GITHUB_TOKEN }}
6969
steps:
70-
- uses: actions/checkout@v4
70+
- uses: actions/checkout@v5
7171
- name: Build and test
7272
run: |
7373
mkdir build

data/meson.build

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ if desktop_file_validate.found()
4444
)
4545
endif
4646

47-
appstream_util = find_program('appstream-util', required: get_option('tests'), native: true)
48-
if appstream_util.found()
49-
test('validate-appdata',
50-
appstream_util,
51-
args: ['validate-relax', '--nonet', appdata.full_path()]
47+
appstreamcli = find_program('appstreamcli', required: get_option('tests'), native: true)
48+
if appstreamcli.found()
49+
test(
50+
'validate-appdata',
51+
appstreamcli,
52+
args: ['validate', '--no-net', appdata.full_path()],
5253
)
5354
endif
5455

data/org.pwmt.zathura.appdata.xml.in

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
<id>org.pwmt.zathura</id>
55
<metadata_license>CC0-1.0</metadata_license>
66
<project_license>Zlib</project_license>
7+
<developer id="org.pwmt">
8+
<name>pwmt</name>
9+
</developer>
710
<name>Zathura</name>
8-
<summary>A minimalistic document viewer</summary>
11+
<summary>Minimalistic document viewer</summary>
912
<description>
1013
<p>
1114
Zathura is a highly customizable and functional document viewer. It
@@ -26,30 +29,52 @@
2629
</description>
2730
<launchable type="desktop-id">org.pwmt.zathura.desktop</launchable>
2831
<url type="homepage">https://pwmt.org/projects/zathura</url>
29-
<url type="bugtracker">https://bugs.pwmt.org/project/zathura</url>
32+
<url type="bugtracker">https://github.com/pwmt/zathura/issues</url>
33+
<url type="donation">https://pwmt.org/help/donate</url>
34+
<url type="contact">https://pwmt.org/contact</url>
35+
<url type="translate">https://github.com/pwmt/zathura/tree/develop/po</url>
36+
<url type="vcs-browser">https://github.com/pwmt/zathura</url>
37+
<url type="help">https://pwmt.org/projects/zathura/documentation/</url>
3038
<screenshots>
3139
<screenshot type="default">
3240
<image>https://pwmt.org/static/img/zathura-cover.png</image>
41+
<caption>Reading a PDF file</caption>
3342
</screenshot>
3443
<screenshot>
3544
<image>https://pwmt.org/static/img/zathura-completion.png</image>
45+
<caption>Opening a file with the `open` command</caption>
3646
</screenshot>
3747
<screenshot>
3848
<image>https://pwmt.org/static/img/zathura-follow.png</image>
49+
<caption>Following links</caption>
3950
</screenshot>
4051
<screenshot>
4152
<image>https://pwmt.org/static/img/zathura-bookmarks.png</image>
53+
<caption>Listing and selecting bookmakrs</caption>
4254
</screenshot>
4355
</screenshots>
4456
<translation type="gettext">zathura</translation>
4557
<provides>
4658
<binary>zathura</binary>
4759
</provides>
48-
<content_rating type="oars-1.0" />
60+
<content_rating type="oars-1.1" />
61+
<recommends>
62+
<control>keyboard</control>
63+
<control>pointing</control>
64+
<control>touch</control>
65+
</recommends>
4966
<releases>
67+
<release version="0.5.13" date="2025-09-23">
68+
<description>
69+
<p>Validate appstream files with appstreamcli</p>
70+
<p>Split page-padding into page-h-padding and page-v-padding</p>
71+
<p>Fix memory leak and callback type error (#767)</p>
72+
<p>Warn if plugins do not support exporting images or attachments (#334)</p>
73+
</description>
74+
</release>
5075
<release version="0.5.12" date="2025-07-03">
5176
<description>
52-
<p>A shortcut to open files via file chooser dialog</p>
77+
<p>Add shortcut to open files via file chooser dialog</p>
5378
<p>Refactor rendering of pages</p>
5479
<p>Add lightness adjustment for recolering</p>
5580
<p>Initial support for OpenBSD sandbox</p>
@@ -131,12 +156,12 @@
131156
</release>
132157
<release version="0.5.1" date="2022-09-09">
133158
<description>
134-
<p>seccomp: Make glibc fallback to clone instead of using clone3</p>
159+
<p>`seccomp`: Make glibc fallback to clone instead of using clone3</p>
135160
</description>
136161
</release>
137162
<release version="0.5.0" date="2022-09-08">
138163
<description>
139-
<p>magic is now a required dependency</p>
164+
<p>`magic` is now a required dependency</p>
140165
<p>Various fixes and improvements</p>
141166
</description>
142167
</release>
@@ -524,7 +549,7 @@
524549
<p>Configureable modes</p>
525550
<p>Smooth scrolling</p>
526551
<p>Extended statusbar string manipulation</p>
527-
<p>function</p>
552+
<p>`function`</p>
528553
<p>Strip executable</p>
529554
<p>Updated manpage</p>
530555
</description>
@@ -536,10 +561,10 @@
536561
<p>Updated the behaviour of sc_scroll</p>
537562
<p>Half/Full-page scrolling</p>
538563
<p>Check document health in sc_reload</p>
539-
<p>tabbed support</p>
564+
<p>`tabbed` support</p>
540565
<p>Define look with the set function</p>
541566
<p>Implemented map function</p>
542-
<p>zathurarc file</p>
567+
<p>`zathurarc` file</p>
543568
<p>Prevent buffer overflow in realpath</p>
544569
<p>Strip executeable</p>
545570
<p>Key evaluation when buffer is not empty</p>
@@ -595,7 +620,7 @@
595620
<p>Marker support</p>
596621
<p>Highlight search results</p>
597622
<p>Buffered commands</p>
598-
<p>set Function</p>
623+
<p>`set` Function</p>
599624
<p>Revert video function</p>
600625
<p>Command completion</p>
601626
</description>

doc/man/zathura.1.rst

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,16 +187,28 @@ Index mode
187187

188188
k, j
189189
Move to upper or lower entry
190-
l
190+
Up, Down
191+
Move to upper or lower entry
192+
^u, ^d
193+
Scroll and move up or down by half a screen
194+
l, Right, zo
191195
Expand entry
192-
L
196+
zO
197+
Expand entry recursively
198+
L, zR
193199
Expand all entries
194-
h
200+
h, Left, zc
195201
Collapse entry
196-
H
202+
zC
203+
Collapse entry recursively
204+
H, zM
197205
Collapse all entries
198-
space, Return
206+
space, Return, ^j
199207
Select and open entry
208+
gg, G
209+
Goto to the first or last entry
210+
Tab, Escape, ^[, ^c
211+
Hide index and switch to normal mode
200212

201213

202214
Mouse bindings

doc/man/zathurarc.5.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,12 @@ They can also be combined with modifiers:
380380
* bottom
381381
* backward
382382
* collapse
383+
* collapse-recursive
383384
* collapse-all
384385
* default
385386
* down
386387
* expand
388+
* expand-recursive
387389
* expand-all
388390
* forward
389391
* full-down
@@ -787,8 +789,14 @@ zathura
787789
* Value type: Integer
788790
* Default value: 15
789791

790-
*page-padding*
791-
The page padding defines the gap in pixels between each rendered page.
792+
*page-v-padding*
793+
Vertical page padding defines the vertical gap in pixels between each rendered page.
794+
795+
* Value type: Integer
796+
* Default value: 1
797+
798+
*page-h-padding*
799+
Horizontal page padding defines the horizontal gap in pixels between each rendered page.
792800

793801
* Value type: Integer
794802
* Default value: 1

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('zathura', 'c',
2-
version: '0.5.12',
2+
version: '0.5.13',
33
meson_version: '>=1',
44
default_options: ['c_std=c17', 'warning_level=3'],
55
)

tests/meson.build

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -75,26 +75,5 @@ if get_option('tests').allowed()
7575
'LIBGL_DEBUG=quiet'
7676
]
7777
)
78-
79-
# need the equivalent of xvfb for wayland
80-
if seccomp.found() or landlock
81-
sandbox = executable('test_sandbox', files('test_sandbox.c'),
82-
dependencies: build_dependencies + [libzathura_sandbox_dep] + sandbox_dependencies,
83-
include_directories: include_directories,
84-
c_args: defines + sandbox_defines + flags
85-
)
86-
test('sandbox', xvfb,
87-
args: xvfb_args + [sandbox],
88-
timeout: 60*60,
89-
protocol: 'tap',
90-
env: [
91-
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
92-
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
93-
'NO_AT_BRIDGE=1',
94-
'MESA_LOG=null',
95-
'LIBGL_DEBUG=quiet'
96-
]
97-
)
98-
endif
9978
endif
10079
endif

zathura/adjustment.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,3 @@ bool page_is_visible(zathura_document_t* document, unsigned int page_number) {
140140
return (fabs(pos_x - page_x) < 0.5 * (double)(view_width + cell_width) / (double)doc_width &&
141141
fabs(pos_y - page_y) < 0.5 * (double)(view_height + cell_height) / (double)doc_height);
142142
}
143-
144-
void zathura_adjustment_set_value(GtkAdjustment* adjustment, gdouble value) {
145-
const gdouble lower = gtk_adjustment_get_lower(adjustment);
146-
const gdouble upper_m_size = gtk_adjustment_get_upper(adjustment) - gtk_adjustment_get_page_size(adjustment);
147-
148-
gtk_adjustment_set_value(adjustment, MAX(lower, MIN(upper_m_size, value)));
149-
}

zathura/adjustment.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,4 @@ void page_number_to_position(zathura_document_t* document, unsigned int page_num
7474
*/
7575
bool page_is_visible(zathura_document_t* document, unsigned int page_number);
7676

77-
/**
78-
* Set the adjustment value while enforcing its limits
79-
*
80-
* @param adjustment Adjustment instance
81-
* @param value Adjustment value
82-
*/
83-
void zathura_adjustment_set_value(GtkAdjustment* adjustment, gdouble value);
84-
8577
#endif /* ZATHURA_ADJUSTMENT_H */

zathura/callbacks.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,18 @@ void cb_page_layout_value_changed(girara_session_t* session, const char* name, g
314314
unsigned int first_page_column = find_first_page_column(first_page_column_list, pages_per_row);
315315
g_free(first_page_column_list);
316316

317-
unsigned int page_padding = 1;
318-
girara_setting_get(zathura->ui.session, "page-padding", &page_padding);
317+
unsigned int page_v_padding = 1;
318+
girara_setting_get(zathura->ui.session, "page-v-padding", &page_v_padding);
319+
320+
unsigned int page_h_padding = 1;
321+
girara_setting_get(zathura->ui.session, "page-h-padding", &page_h_padding);
319322

320323
bool page_right_to_left = false;
321324
girara_setting_get(zathura->ui.session, "page-right-to-left", &page_right_to_left);
322325

323-
zathura_document_set_page_layout(zathura_get_document(zathura), page_padding, pages_per_row, first_page_column);
324-
zathura_document_widget_set_mode(zathura, page_padding, pages_per_row, first_page_column, page_right_to_left);
326+
zathura_document_set_page_layout(zathura_get_document(zathura), page_v_padding, page_h_padding, pages_per_row,
327+
first_page_column);
328+
zathura_document_widget_set_mode(zathura, page_v_padding, page_h_padding, page_right_to_left);
325329
}
326330

327331
void cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path, GtkTreeViewColumn* UNUSED(column), void* data) {

0 commit comments

Comments
 (0)