1. 17 Mar, 2018 1 commit
    • Nikita Churaev's avatar
      canvas-container: Distribute icons horizontally · 00fe3e5d
      Nikita Churaev authored
      Nautilus has always had a view that tries to emulate a grid,
      however the grid doesn't distribute the spacing of the icons
      when resizing and rather just snaps them on the left side.
      
      We can actually fix this by distributing evenly the spacing
      left. However there is a case where that looks bad, and
      that's when there is less than a single line of icons, since
      the icons will be spaced out along the whole view. We can
      fix that too by distributing the spacing in a function manner.
      
      This commit distributes the spacing of the icons in an evenly
      way when there is one or more lines full, and it uses a fast
      decreasing but smooth incremental function when there is less
      icons than a full single line.
      
      Eventually we will move to new views where the space is already
      distributed by the gtk containers, however we might want to
      keep the function spacing distribution too, so this code will
      be helpful at that point.
      00fe3e5d
  2. 07 Mar, 2018 4 commits
  3. 05 Mar, 2018 8 commits
  4. 04 Mar, 2018 1 commit
  5. 03 Mar, 2018 3 commits
  6. 02 Mar, 2018 1 commit
  7. 01 Mar, 2018 9 commits
  8. 28 Feb, 2018 5 commits
  9. 27 Feb, 2018 5 commits
    • Ernestas Kulik's avatar
      general: truncate messages used in dialogs · fe6a5681
      Ernestas Kulik authored
      This is most notably a problem with paths that are approaching PATH_MAX
      in length. Cairo surface creation fails due to its internal size limit
      being reached and GTK+ promptly crashes after trying to dereference a
      null pointer. Besides, the window can get ridiculously long even if
      Nautilus doesn’t crash.
      fe6a5681
    • Ernestas Kulik's avatar
      file-operations: don’t add label to container twice · 7cd0d631
      Ernestas Kulik authored
      Oversight from 490a6cbe.
      7cd0d631
    • Ernestas Kulik's avatar
      eel: string: refactor middle truncation · 53650572
      Ernestas Kulik authored
      This commit tries to make the function more readable and fixes the allocation of
      the new string: the truncated string is of the same size as the source string.
      This can be fixed by adding a couple of different allocations. :)
      Some comments were trimmed down or removed.
      53650572
    • Alexandru Fazakas's avatar
      files-view: Avoid leaking selection list and data · 5da4acab
      Alexandru Fazakas authored
      Sometimes, while working with the files_view_get_selection function, the
      freeing is not done properly. We leak a lot of objects as of this and we
      need a way to fix it.
      
      To avoid leaking, we implemented g_autoptr support for NautilusFile in order
      to have at our disposal automatic, deep cleanup whenever we use the function.
      
      In this patch, we changed all calls to use g_autolist appropriately and bumped
      the glib dependency up to 2.55.1 (in order for us to use g_autolist).
      
      Fixes GNOME/nautilus#226
      5da4acab
    • Alexandru Fazakas's avatar
      file: Add autoptr support · 7e7eac3a
      Alexandru Fazakas authored
      This is further used for the deep freeing as part of g_autolist().
      
      Related to GNOME/nautilus#226
      7e7eac3a
  10. 26 Feb, 2018 3 commits