1. 26 Jul, 2022 2 commits
    • Gaël Bonithon's avatar
      Properly update iterator when browsing a list containing invalid files · 804b0722
      Gaël Bonithon authored
      This ensures that an invalid file is not requested to be displayed, nor
      a thumbnail for that file, which could cause invalid memory accesses
      fixed in the previous commit.
      
      Fixes: #94, cab91f0a
      804b0722
    • Gaël Bonithon's avatar
      thumbnailer: Remove invalid files after processing thumbnail queue · 6e3a8d2a
      Gaël Bonithon authored
      Removing a file from the image list usually causes its iterators to be
      updated, which can then trigger a thumbnail request. Since queuing this
      request modifies the internal thumbnailer list, you should not send a
      remove request while browsing this list.
      
      Given the thumbnail handling in Ristretto, unless there is a bug as
      reported in #94, removing invalid files from the image list from the
      thumbnailer should not cause a new thumbnail request. But it is safer to
      move this removing after the GSourceFunc, i.e. into a GDestroyNotify.
      
      Related: !31, #94
      6e3a8d2a
  2. 12 Jul, 2022 1 commit
  3. 09 Jul, 2022 2 commits
  4. 04 Jul, 2022 1 commit
  5. 03 Jul, 2022 2 commits
  6. 01 Jul, 2022 1 commit
  7. 14 Jun, 2022 2 commits
    • Gaël Bonithon's avatar
      Use `G_FILE_MONITOR_WATCH_MOVES` for file monitoring · 34dd6350
      Gaël Bonithon authored
      For file monitoring only, not for directory monitoring, where this is
      unnecessary. The rationale is that it allows for proper handling of file
      renaming, which otherwise requires directory monitoring to receive the
      `G_FILE_MONITOR_EVENT_CREATED` event.
      
      Requires: GLib 2.46
      34dd6350
    • Gaël Bonithon's avatar
      Do not keep sticky state when current file is removed · f02794eb
      Gaël Bonithon authored
      Unlike what was done in d135e3ad. This
      allows in particular to stay on the current image when renaming it,
      which is done via a deleted-created pair, at least when the monitoring
      is done at the directory level. The case of file monitoring, which only
      works halfway, is treated in the next commit.
      f02794eb
  8. 13 Jun, 2022 1 commit
  9. 12 Jun, 2022 1 commit
  10. 07 Jun, 2022 1 commit
  11. 14 May, 2022 1 commit
  12. 13 May, 2022 1 commit
  13. 24 Apr, 2022 1 commit
  14. 31 Mar, 2022 1 commit
  15. 19 Mar, 2022 1 commit
  16. 17 Mar, 2022 1 commit
  17. 16 Mar, 2022 1 commit
  18. 14 Mar, 2022 1 commit
  19. 13 Mar, 2022 1 commit
  20. 12 Mar, 2022 2 commits
  21. 08 Mar, 2022 1 commit
  22. 01 Mar, 2022 1 commit
  23. 08 Feb, 2022 1 commit
  24. 07 Feb, 2022 1 commit
  25. 05 Feb, 2022 1 commit
  26. 03 Feb, 2022 1 commit
  27. 15 Jan, 2022 1 commit
  28. 14 Jan, 2022 2 commits
  29. 11 Jan, 2022 1 commit
  30. 09 Jan, 2022 2 commits
  31. 08 Jan, 2022 1 commit
  32. 05 Jan, 2022 1 commit
  33. 04 Jan, 2022 1 commit