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. 02 Feb, 2018 1 commit
  4. 30 Jan, 2016 1 commit
  5. 12 Nov, 2015 1 commit
  6. 07 Nov, 2014 1 commit
  7. 27 Oct, 2014 1 commit
  8. 11 Apr, 2014 1 commit
  9. 05 Jan, 2014 1 commit
  10. 26 Oct, 2013 3 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
      move zathura_get_document_size to document.c · a0a64832
      Abdo Roig-Maranges authored
      It makes more sense, plus now the document knows about the page layout
      and can do the computation.
      a0a64832
    • 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. 31 Aug, 2013 1 commit
    • Marwan Tanager's avatar
      Make the X clipboard buffer configurable · d09cd5c6
      Marwan Tanager authored
      This patch adds a new configuration setting, selection-clipboard, which allows
      us to choose between the PRIMARY selection, and the CLIPBOARD selection, for
      determining which X clipboard to use for storing mouse-selected data. It has
      only two valid values: "primary" and "clipboard", with "clipboard" being set as
      the it's default value.
      Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
      d09cd5c6
  12. 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
  13. 23 Feb, 2013 2 commits
  14. 13 Dec, 2012 1 commit
  15. 14 Aug, 2012 1 commit
  16. 12 Jul, 2012 1 commit
  17. 17 Jun, 2012 1 commit
  18. 28 May, 2012 1 commit
  19. 22 Apr, 2012 4 commits
  20. 21 Apr, 2012 1 commit
  21. 03 Apr, 2012 1 commit
  22. 19 Mar, 2012 1 commit
  23. 09 Feb, 2012 1 commit
  24. 08 Feb, 2012 3 commits
  25. 07 Feb, 2012 1 commit
  26. 19 Jan, 2012 1 commit
    • Moritz Lipp's avatar
      Implement recalc_rectangle · 8ce61ed6
      Moritz Lipp authored
      This function should be used to recalculate the coordinates of
      a rectangle to its new coordinates on the rendered page
      (depending on the current scale and rotation value)
      8ce61ed6
  27. 10 Dec, 2011 1 commit
  28. 23 Oct, 2011 1 commit
  29. 01 Oct, 2011 1 commit
  30. 27 May, 2011 1 commit
  31. 25 May, 2011 1 commit
  32. 19 Apr, 2011 1 commit