1. 24 Aug, 2013 1 commit
  2. 21 Aug, 2013 1 commit
  3. 27 Jul, 2013 1 commit
  4. 07 Jul, 2013 1 commit
  5. 29 Jun, 2013 1 commit
  6. 10 Jun, 2013 2 commits
    • Marwan Tanager's avatar
      Use jumplist with marks · 092fe818
      Marwan Tanager authored and Sebastian Ramacher's avatar Sebastian Ramacher committed
      Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
    • Marwan Tanager's avatar
      Enhancements/Cleanups for the jumplist mechansim · afd008f4
      Marwan Tanager authored and Sebastian Ramacher's avatar Sebastian Ramacher committed
      	- Don't delete the elements on the right of the current one, when
      	  appending a new jump to the jumplist, because this makes no sense at
      	  all; the point of the jumplist in the first place is to remember
      	  previously jumped-to positions in the document, so there is no need
      	  to delete anythings except to trim the oldest entries from the
      	  beginning to maintain the maximum size. This also makes us compatible
      	  with the Vim way of doing things.
      	- Make the jumplist mechanism functional on the same page; if we
      	  followed a link to a target on the same page, remember the
      	  adjustments before and after following the link. The same holds for
      	  navigating search results on the same page.
      	- Implement position_set and use it instead of position_set_delayed
      	  when following links in order to give zathura_jumplist_save a chance
      	  to record the exact adjustments of the link target. Otherwise, it
      	  will always record the adjustments after going to the target page,
      	  but before going to the exact position within it.
      	- Don't consider movements with ^i and ^o as jumps :)
      	- Don't use page_set followed by setting the adjustments in
      	  sc_jumplist, because this is redundant and causes clutter when using
      	  ^i and ^o, as the adjustments is set twice this way (once in page_set
      	  and again in position_set_delayed).  It's enough to only update the
      	  page number on the statusbar and then set the adjustments.
      	- Hide implementation details (zathura_jumplist_save and
      	  zathura_jumplist_append), and make things more consistent by
      	  exporting and using only zathura_jumplist_add for adding new entries.
      The end result: A more slick jumping experience :-)
      Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
  7. 02 Apr, 2013 1 commit
  8. 26 Mar, 2013 1 commit
    • Marwan Tanager's avatar
      Replace the periodic page reclaiming code with a LRU caching algorithm. · cb18fe86
      Marwan Tanager authored and Sebastian Ramacher's avatar Sebastian Ramacher committed
      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
      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
      Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
  9. 23 Mar, 2013 1 commit
    • Benoît Knecht's avatar
      Use signals to readjust_view_after_zooming() · c9eef954
      Benoît Knecht authored and Sebastian Ramacher's avatar Sebastian Ramacher committed
      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's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
  10. 17 Mar, 2013 1 commit
  11. 23 Feb, 2013 1 commit
  12. 19 Dec, 2012 1 commit
  13. 06 Dec, 2012 1 commit
  14. 02 Sep, 2012 2 commits
  15. 13 Aug, 2012 1 commit
  16. 05 Aug, 2012 2 commits
  17. 01 Aug, 2012 1 commit
  18. 13 Jul, 2012 1 commit
  19. 27 Jun, 2012 1 commit
  20. 22 Apr, 2012 1 commit
  21. 21 Apr, 2012 1 commit
  22. 03 Apr, 2012 2 commits
  23. 01 Apr, 2012 1 commit
  24. 27 Mar, 2012 1 commit
  25. 24 Mar, 2012 1 commit
  26. 19 Mar, 2012 1 commit
  27. 16 Mar, 2012 1 commit
  28. 09 Mar, 2012 1 commit
  29. 04 Mar, 2012 1 commit
  30. 02 Mar, 2012 1 commit
  31. 21 Feb, 2012 2 commits
  32. 20 Feb, 2012 1 commit
  33. 14 Feb, 2012 1 commit
  34. 08 Feb, 2012 1 commit
  35. 07 Feb, 2012 1 commit