1. 08 Jan, 2019 2 commits
    • Germán Poo-Caamaño's avatar
      sidebar-thumbnails: Remove GtkTreeView implementation · edc0caa6
      Germán Poo-Caamaño authored
      Since commit 6480c703, there should not be performance
      issues that make the treeview workaround to be in the code
      anymore. Not at least one we can perceive.
      
      Additionally, the GtkTreeView implementation of thumbnails
      is subpar with the GtkIconView.
      edc0caa6
    • Nelson Benítez León's avatar
      sidebar-thumbnails: display a first blank thumbnail · 2fe2acef
      Nelson Benítez León authored
      when following conditions are met:
       - We are in dual page mode
       - Option for "odd pages on left side" is off
       - We are using the GtkIconView (TODO: GtkTreeView implementation)
       - GtkIconView is displaying two columns of thumbnails
      
      This blank thumbnail can't be selected, and we make sure
      the page count logic (when relying on number of items in IconView)
      is updated accordingly when we are displaying the blank thumbnail.
      
      The blank thumbnail item can be distinguished among all other items
      in the GtkIconView as it's the only one which has the COLUMN_SURFACE
      as NULL while COLUMN_THUMBNAIL_SET is set to TRUE.
      
      Addresses issue #30, however there is a corner case still missing
      to considerit fixed: When resizing the sidebar, it should keep
      the blank thumbnail.
      2fe2acef
  2. 07 Jan, 2019 1 commit
  3. 12 Dec, 2018 1 commit
  4. 13 Nov, 2018 6 commits
  5. 12 Nov, 2018 6 commits
  6. 11 Nov, 2018 2 commits
  7. 10 Nov, 2018 3 commits
  8. 09 Nov, 2018 11 commits
  9. 06 Nov, 2018 2 commits
  10. 23 Oct, 2018 1 commit
    • Nelson Benítez León's avatar
      ev-view: fix appearance of editable GtkComboBox in PDF form · 7a63f67a
      Nelson Benítez León authored
      Due to a bug in GtkEntry, the GtkEntry of an editable GtkComboBox
      will be too wide (due to a hardcoded minimum-width of
      150px), overcome this by forcing a very small minimum-width via
      "width-chars" property, this allows the GtkEntry to match the
      width of the ComboBox item list.
      
      We also tweak evince.css to reduce the padding of the GtkEntry and
      GtkButton of the GtkComboBox, which was 8px and made the GtkButton
      take up too much space and GtkEntry be left with too little space
      for displaying text.
      
      Workarounds gtk#1422
      
      Fixes evince#1002
      7a63f67a
  11. 12 Oct, 2018 1 commit
    • Nelson Benítez León's avatar
      sidebar outline: close auto-expanded rows and remember state · 45abf6a7
      Nelson Benítez León authored
      This commit adds the following features:
      
      - Remember and restore state for rows that were manually
        collapsed and expanded by the user. To save that information
        we use two new metadata keys 'index-expand' and 'index-collapse'.
      
        Metadata key 'index-expand' is a string containing the GtkTreePath's
        that the user has explicitly expanded, except those already marked
        expanded by the pdf producer data. The string format is
        "|path1|path2|path3|" (starting and ending in pipe). A case with
        only one element would be "|path1|". A case with no elements would be
        the empty string "". This is to facilitate the search of the paths.
      
        Metadata key 'index-collapse' is a string containing the GtkTreePath's
        that the pdf producer data had them marked as expanded but the user
        has explicitly collapsed them. The string format is the same as in
        'index_expand'.
      
      - When scrolling through document, take the chance to collapse rows
        that have been automatically expanded previously. This avoids
        cluttering the tree view with too many entries when navigating
        documents that have heavily indexed outlines.
      
      Issue #85
      45abf6a7
  12. 09 Oct, 2018 1 commit
  13. 08 Oct, 2018 1 commit
  14. 07 Oct, 2018 2 commits