1. 11 Oct, 2015 1 commit
  2. 08 Oct, 2015 1 commit
  3. 07 Nov, 2014 1 commit
  4. 30 Sep, 2014 1 commit
  5. 19 Jan, 2014 4 commits
  6. 03 Dec, 2013 1 commit
  7. 01 Dec, 2013 1 commit
  8. 22 Nov, 2013 1 commit
  9. 07 Nov, 2013 5 commits
  10. 26 Oct, 2013 2 commits
    • Abdo Roig-Maranges's avatar
      add functions to compute page positions · 030a8c65
      Abdo Roig-Maranges authored
      The plan is to put in adjustment.c every piece of code that has to do
      with document positioning, either computing it from data on the document
      side, or talking to GTK.
      
      We want to have at our disposal functions to compute sizes and positions
      without having to ask for it to a GTK widget. The new functions are:
      
       - move page_calc_height_width to adjustment.c
      
       - add page_calc_position that rotates a position relative to a page
         according to the rotation settings.
      
       - add position_to_page_number that computes the number of a page
         sitting at a given position (given in document-relative coordinates)
      
       - add page_number_to_position that computes the position (in document
         relative coordinates) that will be placed at the center of the viewport.
      
       - add page_is_visible that checks whether the given page intersects the
         viewport.
      030a8c65
    • Abdo Roig-Maranges's avatar
      change arguments to page_calc_height_width · 7329209d
      Abdo Roig-Maranges authored
      now accepts a document object and explicit width and height. This will
      make it easier to reuse this function for computing the document page
      cell width and height.
      7329209d
  11. 20 Oct, 2013 1 commit
  12. 19 Oct, 2013 1 commit
    • Sebastian Ramacher's avatar
      Finish moving of the page cache · 5df5357f
      Sebastian Ramacher authored
      Add two more signals to ZathuraRenderRequest to notify pages if they are cached
      or not. This allows us to move some logic away from
      cb_view_vadjutment_value_changed to more appropriate places.
      
      ZathuraPageWidget will now release the surface if
      * it gets the signal that the page is no longer cached and the page is
        invisible,
      * the page is not cached and the render request is aborted.
      Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
      5df5357f
  13. 18 Oct, 2013 1 commit
  14. 30 Aug, 2013 8 commits
  15. 23 Aug, 2013 1 commit
  16. 21 Aug, 2013 1 commit
  17. 26 Jul, 2013 1 commit
  18. 02 Apr, 2013 1 commit
  19. 26 Mar, 2013 1 commit
    • Marwan Tanager's avatar
      Replace the periodic page reclaiming code with a LRU caching algorithm. · cb18fe86
      Marwan Tanager authored
      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's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
      cb18fe86
  20. 23 Feb, 2013 1 commit
  21. 09 Feb, 2013 1 commit
  22. 20 Jan, 2013 1 commit
  23. 08 Oct, 2012 1 commit
  24. 01 Aug, 2012 2 commits