1. 11 Feb, 2018 1 commit
  2. 24 Jan, 2018 1 commit
    • Jeremie Knuesel's avatar
      HiDPI: refactor handling of device scale factors · 4e9f8a7b
      Jeremie Knuesel authored
      The document scale factors are now guaranteed to be non-zero.
      A new Cairo helper function get_safe_device_factors() and a type
      zathura_device_factors_t are introduced to simplify the code and avoid
      some #ifdef blocks.
  3. 23 Jan, 2018 4 commits
  4. 22 Jan, 2018 1 commit
  5. 12 Sep, 2017 1 commit
  6. 04 Dec, 2016 1 commit
  7. 03 Dec, 2016 1 commit
  8. 25 Oct, 2016 3 commits
  9. 24 Apr, 2016 1 commit
  10. 07 Dec, 2015 1 commit
  11. 12 Nov, 2015 1 commit
  12. 05 Oct, 2015 1 commit
  13. 28 Apr, 2015 1 commit
  14. 08 Dec, 2014 1 commit
  15. 25 Nov, 2014 1 commit
  16. 07 Nov, 2014 1 commit
  17. 30 Sep, 2014 1 commit
  18. 04 Sep, 2014 1 commit
  19. 22 Aug, 2014 1 commit
  20. 07 Aug, 2014 1 commit
  21. 24 Jun, 2014 1 commit
  22. 23 Jun, 2014 2 commits
  23. 24 May, 2014 1 commit
  24. 25 Apr, 2014 1 commit
  25. 14 Feb, 2014 1 commit
  26. 17 Nov, 2013 1 commit
  27. 26 Oct, 2013 7 commits
    • Abdo Roig-Maranges's avatar
      get rid of tracking adjustments · 9367d646
      Abdo Roig-Maranges authored
      They are not used anywere, and do not seem to become useful anymore in
      the light of the new separation of document and view.
    • Abdo Roig-Maranges's avatar
      disable adjustment callbacks in index mode · 018e026e
      Abdo Roig-Maranges authored
      Otherwise the document object gets updated with wrong position values,
      because the adjustment belong to the index, not the document view.
    • Abdo Roig-Maranges's avatar
      adapt view_adjustment callbacks to new document/view separation · 36346362
      Abdo Roig-Maranges authored
      The adjustment callbacks act as an interface between position data in
      the document object, and the adjustments.
      We remove the horizontal centering code, as now it is done by
      position_set. Those callbacks should not change the position read from
      the document object in any way.
      Also, we split the adjustment_value_changed callback into a vertical and
      an horizontal version. Previously a single callback was reused for both,
      horizontal and vertical. That lead to a subtle problem when coming out
      of index mode. What happened was the following:
        1. horizontal adjustment bounds change coming out of index mode. This
           triggers an hadjustment changed signal.
        2. the hadjustment_changed callback handles it, and resets the
           hadjustment value, as the bound may have changed. This triggers a
           value_changed event.
        3. the value_changed callback handles the event, and captures the
           position for *BOTH*, horizontal and vertical adjustments, saving
           them to the document object.
        1..3 is repeated for the vertical adjustment.
        Now, if in 3. the horizontal adjustment bounds were not yet updated
        after the index mode, we got ourselves at the wrong vertical position.
      This race condition is avoided now because both value_changed callbacks
      *ONLY* handle their own direction, either vertical or horizontal, not
    • Abdo Roig-Maranges's avatar
      move adjustment code from sc_adjust_window to adjust_view · c4245600
      Abdo Roig-Maranges authored
      This new function adjust_view is in charge of recomputing the scale
      according to adjustment settings and trigger a render_all.
      adjust_view contains the old sc_adjust_window code, slightly simplified
      thanks to the availability of the document_get_viewport_size.
      Then it is used by sc_adjust_window, document_open and the
      cb_view_resized callback. Makes slightly more sense this way than
      calling the shortcut sc_adjust_window directly.
    • Abdo Roig-Maranges's avatar
      add a custom refresh-view signal · 692e72ab
      Abdo Roig-Maranges authored
      Now we can trigger a gtk page refresh calling refresh_view. This
      function triggers a custom signal refresh-view, whose handler copies the
      position from the document object to the adjustments.
    • Abdo Roig-Maranges's avatar
      merge callbacks for pages-per-row, first-page-column and page-padding · 0da491f7
      Abdo Roig-Maranges authored
      All of those callbacks are conceptually related (change the page
      layout), and depend from one another.
      Now the single callback page_layout_value_changed defers to
      page_widget_set_mode to change whatever is needed in the GTK widgets.
    • Abdo Roig-Maranges's avatar
      page_widget_set_mode now sets the page-padding too · c5930c90
      Abdo Roig-Maranges authored
        - fix the computation of the number of rows in the table. Doing a ceil
          of an integer division has no effect...
        - set the page_padding in page_widget_set_mode function, instead of
          doing it independently.
        - call zathura_document_set_layout after calling page_widget_set_mode
          to save the page layout settings into the document object.
  28. 21 Oct, 2013 1 commit