Commit graph

1519 commits

Author SHA1 Message Date
Sebastian Ramacher
410e47a5d7 Update pos 2013-01-13 15:09:04 +01:00
Rob Cornish
1a6b03fc62 Fixed reverse searching behaviour to be more like less/vi
Signed-off-by: Sebastian Ramacher <sebastian@ramacher.at>
2012-12-19 00:29:31 +01:00
Benoît Knecht
8f50bf5ea0 Fix fence post error in page-widget's redraw_rect()
A rectangle whose horizontal coordinates are x1 on the left and x2 on
the right is (x2 + 1) - x1 pixels wide, not x2 - x1.

This error caused the search result highlighting to leave a
one-pixel-wide border behind, on the right and bottom side of the
result.

See issue 242 <http://bugs.pwmt.org/issue242>.

Reported-by: Abdó Roig <abdo.roig@gmail.com>

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-14 15:35:54 +01:00
Benoît Knecht
006724bc75 Update French translation
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-14 00:39:21 +01:00
Benoît Knecht
20def5bd78 Update translations
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-14 00:39:12 +01:00
Benoît Knecht
cdf1428050 Wrap long comment introduced in 27d7973
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-14 00:39:12 +01:00
Benoît Knecht
92c26ed28d Account for scrollbars when fitting page into window
The width of the vertical scrollbar (if there is one) needs to be
substracted from the width of the GtkScrolledWindow in order to obtain
the correct dimensions of the view area.

See issue 27 <http://bugs.pwmt.org/issue27>.

It also deals better with documents where pages don't all have the same
size.

Reported-by: Andreas Weinlich <business@weinlich.org>

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-13 18:18:03 +01:00
Benoît Knecht
99fbf0d17b Add function to get the size of the laid out document
zathura_get_document_size computes the size of the document to be
displayed (in pixels), given the size of the individual cells. It takes
padding between the cells into account.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-13 18:18:03 +01:00
Benoît Knecht
27d7973586 Add document method to compute the size of a cell
A document is laid out on a homogeneous gtk table/grid. This new method,
zathura_document_get_cell_size, computes the size of the cells in that
table/grid, at the current scale.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-13 18:18:03 +01:00
Benoît Knecht
ff305e6972 Initialize GdkRectangle structs in cb_view_vadjustment_value_changed
Initializing page_rect makes Valgrind happy; it was complaining before,
even though all the values were properly initialized, but it's more
obvious this way.

Initialize the other two structs in the same way for consitency.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-13 18:18:03 +01:00
Sebastian Ramacher
30fd662794 Support empty LINGUAS
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-13 14:01:40 +01:00
Benoît Knecht
a16819fdf0 Always free the GtkTreePath in sc_navigate_index
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-10 00:01:37 +01:00
Sebastian Ramacher
e929a5bd5a Readd set to list of mappings 2012-12-08 18:13:26 +01:00
Benoît Knecht
6c5d8c9b5e Declare missing shortcut functions and document them
"focus_inputbar" and "toggle_page_mode" were defined in code but not
declared as shortcut functions (and thus could not be mapped to
different keys by the user using "map").

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-08 17:59:33 +01:00
Benoît Knecht
7982efde00 Update the shortcut functions list in documentation
Also alphabetize the shortcut functions declarations in code, to make it
easier to keep the documentation and code in sync.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-08 17:59:24 +01:00
Benoît Knecht
5e53580808 Document display_link shortcut and its key binding
Update the zathura(1) and zathurarc(5) man pages.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-08 17:59:09 +01:00
Sebastian Ramacher
6df59353a7 Mention Benoît Knecht in AUTHORS 2012-12-07 18:09:48 +01:00
Benoît Knecht
2192b7172c Add new shortcut function to display links
This is useful when the text of the link doesn't match its target. The
default key is set to 'F'.

See issue 266 <http://bugs.pwmt.org/issue266>.

Reported-by: Iron <o380770@rtrtr.com>

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-07 18:05:59 +01:00
Sebastian Ramacher
526e76b6d8 Replace Report-Msgid-Bugs-To in update-po 2012-12-07 15:30:13 +01:00
Sebastian Ramacher
1a2b195ce9 Add some comments 2012-12-07 15:24:57 +01:00
Sebastian Ramacher
98510e7420 Try printing to the cairo object first 2012-12-07 15:11:57 +01:00
Sebastian Ramacher
e6f77735ba Improve printing quality again 2012-12-07 14:53:09 +01:00
Sebastian Ramacher
aef1b3b346 Call gtk_print_operation_cancel on failure 2012-12-07 14:52:49 +01:00
Sebastian Ramacher
1312825438 Draw white background on correct cairo instance 2012-12-07 14:36:24 +01:00
Sebastian Ramacher
895a0dfbfe Merge branch 'develop' of pwmt.org:zathura into develop 2012-12-07 14:26:07 +01:00
Sebastian Ramacher
cc9f047c76 Enabled embedded page setup 2012-12-07 14:24:14 +01:00
Moritz Lipp
31acb71078 Merge branch 'develop' of pwmt.org:zathura into develop 2012-12-06 22:34:33 +01:00
Sebastian Ramacher
23649bc0bc Fix printing
The plugins expect an image surface but the target of the print context might
not be one.
2012-12-06 21:43:21 +01:00
Benoît Knecht
48d12f49be Also wrap when scrolling with 'j' and 'k'
The scroll-wrap option used to only change the behavior of 'J' and 'K'
(i.e.  moving one page forward/backward).

Now, if scroll-wrap is true and the top of the first page is shown,
pressing 'k' will show the bottom of the last page; conversely, when at
the bottom of the last page, pressing 'j' will show the top of the first
page.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-06 20:39:16 +01:00
Benoît Knecht
c06d353eb7 Reverse scroll-wrap's logic
When set to true, it used to _not_ wrap around the begining/end. Now it
wraps if set to true, and it doesn't if set to false.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-06 20:38:51 +01:00
Benoît Knecht
824843a917 Correct misspellings of the word "synctex"
Both in the documentation and in function names, "synctex" was sometimes
spelled "syntex" or "syntec".

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-06 20:34:14 +01:00
Benoît Knecht
8047332b8e Update and correct French translation
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-06 20:34:09 +01:00
Benoît Knecht
a093e19ac2 Fix the "n=" shortcut to zoom to size n
No matter what the value of n was, the "n=" shortcut would set the zoom
value to 100%. It is now set to n% instead.

See issue #273 <http://bugs.pwmt.org/issue273>.

Reported-by: Kamil Smardzewski <roderyk197@gmail.com>

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-06 20:29:12 +01:00
Sebastian Ramacher
668973a8b9 Update translations 2012-11-21 23:45:47 +01:00
Sebastian Ramacher
1c638569ba remove fuzzy translation 2012-11-21 23:42:29 +01:00
Sebastian Ramacher
a0e6121066 Add URLs to Report-Msgid-Bugs-To 2012-11-12 01:06:40 +01:00
Moritz Lipp
05ab0a36f7 Update default key bindings 2012-11-02 13:17:59 +01:00
Moritz Lipp
11bf7ba2c8 Update link evaluation 2012-10-31 07:29:17 +01:00
Sebastian Ramacher
f69bfcb5c1 Add shortcuts for +/- on the num pad
Thanks to Jean-Pierre Demailly for the patch.
2012-10-21 18:36:21 +02:00
Moritz Lipp
60f63634f9 Update modes in zathurarc.5 2012-10-12 12:14:02 +02:00
Moritz Lipp
89e7832047 Update style 2012-10-09 01:12:18 +02:00
Moritz Lipp
41cb60e5c6 Merge branch 'develop' of pwmt.org:zathura into develop 2012-10-06 14:58:15 +02:00
Moritz Lipp
94d8eef959 Toggle multi-page-mode with d 2012-10-06 14:58:07 +02:00
Sebastian Ramacher
9dbb32338e Update Spanish translation.
Thanks to Alvaro Ramiro.
2012-10-05 11:54:37 +02:00
Sebastian Ramacher
4a4a153944 Update po files. 2012-10-05 11:50:42 +02:00
Moritz Lipp
ac88923e5b Print error message if directory creation failed 2012-10-05 00:51:28 +02:00
Moritz Lipp
f82845a0cb Merge branch 'develop' of pwmt.org:zathura into develop
Conflicts:
	config.c
2012-10-05 00:44:56 +02:00
Moritz Lipp
b24ae033ad Set fullscreen mode and custom button press events 2012-10-05 00:41:05 +02:00
Markus Scherer
92a75565a2 Enable horiontal mouse scrolling
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-10-02 19:07:32 +02:00
Sebastian Ramacher
07fbbd514a Lock the render thread while searching.
This is a temporary workaround because of issues in the poppler plugin. We
really need to introduce locking in the poppler plugin and remove the render
locks agains.

Closes: #253
2012-09-22 12:50:11 +02:00