1. 13 Feb, 2019 1 commit
    • LRN's avatar
      Use OS-dependent separator for G_RESOURCE_OVERLAYS · 294d8183
      LRN authored
      G_RESOURCE_OVERLAYS is a list of resource-path and filesystem-path pairs.
      Since on Windows filesystem paths use ':', this list can't be ':'-separated
      there. Fix that by making it ';'-separated on Windows. Make the parser
      error clearer (we're not looking for a slash, we're looking for an absolute
      path).
      294d8183
  2. 10 Jan, 2019 1 commit
  3. 13 Aug, 2018 2 commits
  4. 05 Jul, 2018 2 commits
  5. 15 Nov, 2017 1 commit
    • Christian Hergert's avatar
      gresource: avoid allocations in enumerate_children() · 5464461e
      Christian Hergert authored
      In the vast majority of cases, we can avoid temporary
      allocations for paths in g_resources_enumerate_children().
      
      In the case we need to add a suffix "/", we can usually just
      build the path on the stack. In other cases, we can completely
      avoid the strdup, which appears to only have been added for
      readability. If the path is really long, we fallback to doing
      what we did before, and use g_strconcat().
      
      In the case of Builder, this saved 5.3mb of temporary
      allocations in the process of showing the first application
      window.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=790275
      5464461e
  6. 14 Nov, 2017 2 commits
  7. 05 Jul, 2017 1 commit
  8. 31 May, 2017 3 commits
  9. 29 May, 2017 1 commit
  10. 22 Nov, 2016 1 commit
  11. 12 Oct, 2016 1 commit
  12. 04 May, 2016 1 commit
  13. 28 Apr, 2016 2 commits
    • Allison Karlitskaya's avatar
      GResources: add support for resource overlays · 55ab3af0
      Allison Karlitskaya authored
      When debugging a program or testing a change to an installed version, it
      is often useful to be able to replace resources in the program or a
      library, without recompiling.
      
      To support this, for debugging and hacking purposes, it's now possible
      to define a G_RESOURCE_OVERLAYS environment variable as a
      colon-separated list of substitutions to perform when looking up
      GResources.
      
      A substitution has the form
      
        "/org/gtk/libgtk=/home/desrt/gtk-overlay"
      
      The part before the '=' is the resource subpath for which the overlay
      applies.  The part after is a filesystem path which contains files and
      subdirectories as you would like to be loaded as resources with the
      equivalent names.
      
      In the example above, if an application tried to load a resource with
      the resource path '/org/gtk/libgtk/ui/gtkdialog.ui' then GResource would
      check the filesystem path '/home/desrt/gtk-overlay/ui/gtkdialog.ui'.  If
      a file was found there, it would be used instead.
      
      Substitutions must start with a slash, and must not have a trailing
      slash before the '='.  It is possible to overlay the location of a
      single resource with an individual file.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=765668
      55ab3af0
    • Allison Karlitskaya's avatar
      GResources: use g_hash_table_get_keys_as_array() · 3c7c0af1
      Allison Karlitskaya authored
      Replace the hand-written equivalent of this with the call to the
      GHashTable built-in version to save a few lines of code.
      
      The GResource code was written a couple of years before this function
      existed.
      
      Similarly, replace a set-mode usage of g_hash_table_insert() with a call
      to g_hash_table_add().
      
      https://bugzilla.gnome.org/show_bug.cgi?id=765668
      3c7c0af1
  14. 16 Dec, 2015 1 commit
  15. 28 Jul, 2015 1 commit
  16. 11 Jun, 2015 1 commit
  17. 14 May, 2015 2 commits
  18. 12 Mar, 2015 1 commit
  19. 05 Feb, 2015 1 commit
  20. 18 Aug, 2014 1 commit
  21. 20 Feb, 2014 1 commit
  22. 08 Feb, 2014 1 commit
  23. 06 Feb, 2014 3 commits
  24. 01 Feb, 2014 2 commits
  25. 31 Jan, 2014 1 commit
  26. 02 Nov, 2012 1 commit
  27. 28 Aug, 2012 2 commits
  28. 19 Aug, 2012 1 commit
  29. 16 Apr, 2012 1 commit