- 26 Mar, 2013 1 commit
-
-
This patch implements a page cache that is invalidated in a LRU fashion. Pages are added to the cache as soon as they become visible. When the cache is full and a new page that isn't in the cache becomes visible, the least recently viewed page in the cache is evicted from memory and the new one takes it's place. The cache size is configurable using the page-cache-size configuration variable, with a default value of 15 pages. Very large values for the cache size are not recommended, though, as it will stress the system memory out. The old periodic page reclaiming code is no longer necessary with this patch, so I removed it. Special thanks to Ignas Anikevičius, and Sebastian Ramacher for the inspirations. Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 25 Mar, 2013 1 commit
-
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 24 Mar, 2013 1 commit
-
-
I don't see any reason for queueing a redraw if the new surface is NULL. Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 23 Mar, 2013 4 commits
-
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Add a new adjust mode that is set when focusing the inputbar and disables adjusting the vertical scrollbar. As a result, focusing the inputbar doesn't scroll the document, leading to better results when changing pages from the inputbar (e.g. using bookmarks). Reported-by:
Marwan Tanager <marwan.tngr@gmail.com> Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Instead of guesstimating the values of the scrollbars adjustments after a change in zoom level, connect callbacks to the "changed" GtkAdjustment event (which is emitted when the bounds or page_size of the adjustment change, e.g. when the zoom level changes), and compute the new values from there. The previous adjustment values are tracked in zathura->ui.hadjustment and zathura->ui.vadjustment (and updated by signal handlers as well), so that the view's position can be maintained while zooming. cb_view_hadjustment_changed() centers the page horizontally if a "best-fit" or "width" zoom is being performed, or if "zoom-center" is true; otherwise, it keeps the view horizontally centered around the same area of the page. cb_view_vadjustment_changed() always keeps the view vertically centered around the same area of the page. Many thanks to Marwan Tanager for thoroughly reviewing the various stages of this patch, and actually coming up with a working solution. Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
This wasn't correct. Padding is already accounted for: scale = (width - (pages_per_row - 1) * padding) / (pages_per_row * cell_width) If you add padding on the denominator, you end up with black margins on the sides of the window, which isn't what padding is for (i.e. insert a gap between rendered pages), and defeats the purpose of a "best-fit". Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 17 Mar, 2013 7 commits
-
-
Sebastian Ramacher authored
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Now by default, 'q' quits zathura even in fullscreen mode, and 'BackSpace' does the reverse of 'space', i.e. go back one page. Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
If '--page [number]' (or '-P [number]') is given on the command-line, the document is opened at the specified page number. Negative numbers are allowed, and denote a page number starting from the end of the document. See issue 275 <http://bugs.pwmt.org/issue275 >. Reported-by:
bob <sean258@gmail.com>
-
- 14 Mar, 2013 3 commits
-
-
Sebastian Ramacher authored
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 11 Mar, 2013 1 commit
-
-
Moritz Lipp authored
-
- 09 Mar, 2013 2 commits
-
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 03 Mar, 2013 2 commits
-
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 28 Feb, 2013 2 commits
-
-
Sebastian Ramacher authored
Thanks to oblique for the patch. Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Moritz Lipp authored
-
- 24 Feb, 2013 2 commits
-
-
Moritz Lipp authored
-
If we have already requested a page to be rendered, we don't have to request it once again. Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 23 Feb, 2013 6 commits
-
-
Sebastian Ramacher authored
Thanks to oblique for the patch. Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Sebastian Ramacher authored
Closes: #292 Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Sebastian Ramacher authored
Thanks to oblique for the patch. Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 22 Feb, 2013 1 commit
-
-
Sebastian Ramacher authored
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
- 19 Feb, 2013 2 commits
-
-
Sebastian Ramacher authored
-
Sebastian Ramacher authored
-
- 13 Feb, 2013 4 commits
-
-
Sebastian Ramacher authored
-
Sebastian Ramacher authored
Conflicts: Makefile config.mk document.c
-
Signed-off-by:
Sebastian Ramacher <sebastian+dev@ramacher.at>
-
Sebastian Ramacher authored
There is another software called magic out there, so let's call it libmagic from file(1).
-
- 09 Feb, 2013 1 commit
-
-
Sebastian Ramacher authored
-