1. 10 Mar, 2016 2 commits
  2. 09 Mar, 2016 2 commits
    • Allison Karlitskaya's avatar
      g_get_user_runtime_dir(): ensure directory exists · 7c6141a5
      Allison Karlitskaya authored
      If the XDG_RUNTIME_DIR environment variable is set, we are being told by
      the OS that this directory exists and is appropriately configured
      already.  In the fallback case of ~/.cache/, however, the directory may
      not yet exist.
      
      Rework the logic of this function a little so that we only check for the
      environment variable once.  If it is not set, we will fall back to the
      cache directory, and mkdir() it to make sure that it exists.
      
      Meanwhile, remove a statement from the reference documentation that
      promises a warning in this case (which has never been true) and replace
      it with a statement that applications can rely on the directory
      existing.
      
      This change prevents each user of this API from having to check for the
      directory for themselves; an example of that can be seen in bug 763274.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=763344
      7c6141a5
    • Philip Withnall's avatar
      array: Support clearing an empty array with g_array_remove_range() · 37756a06
      Philip Withnall authored
      Previously, calling g_array_remove_range(array, 0, array->len) on an
      empty array would result in a precondition failure in
      g_array_remove_range(), as the given start index (0), was not strictly
      less than the array length (0).
      
      Allow the index to equal the array length, so that zero elements can be
      removed from any array. A subsequent check makes sure that the array
      length is not overflowed by the index + length.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=763339
      37756a06
  3. 08 Mar, 2016 2 commits
  4. 07 Mar, 2016 1 commit
  5. 06 Mar, 2016 1 commit
  6. 05 Mar, 2016 6 commits
  7. 04 Mar, 2016 3 commits
  8. 03 Mar, 2016 7 commits
  9. 02 Mar, 2016 1 commit
  10. 01 Mar, 2016 7 commits
  11. 29 Feb, 2016 1 commit
  12. 28 Feb, 2016 3 commits
  13. 27 Feb, 2016 1 commit
  14. 25 Feb, 2016 3 commits