1. 27 Nov, 2018 1 commit
  2. 12 Feb, 2018 1 commit
    • Jeremie Knuesel's avatar
      Distinguish zoom and scale, always apply DPI correction on scale · d625c0d9
      Jeremie Knuesel authored
      Replace scale with zoom in most cases. Scale means pixels per point, as
      before. The zoom is the screen-size / document-size ratio: a zoom of 1
      means that the document should have the same size on screen as on paper.
      
      This fixes many issues with the previous DPI changes, e.g. with link and
      search rectangles.
      d625c0d9
  3. 29 Jan, 2018 1 commit
  4. 01 May, 2016 1 commit
  5. 29 Apr, 2016 1 commit
  6. 07 Nov, 2014 1 commit
  7. 27 Oct, 2014 1 commit
  8. 20 Jan, 2014 1 commit
  9. 19 Jan, 2014 1 commit
  10. 26 Oct, 2013 2 commits
  11. 14 Sep, 2013 1 commit
  12. 10 Jun, 2013 1 commit
  13. 23 Mar, 2013 1 commit
    • Benoît Knecht's avatar
      Use signals to readjust_view_after_zooming() · c9eef954
      Benoît Knecht authored
      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>
      c9eef954
  14. 09 Oct, 2012 1 commit
  15. 17 Jun, 2012 1 commit
  16. 01 Jun, 2012 1 commit
  17. 21 Apr, 2012 1 commit