1. 24 Jul, 2018 6 commits
    • Ell's avatar
      */Makefile.am: add *marshal.h files to BUILT_SOURCES · a5102a7d
      Ell authored
      In subdirs containing a generated foomarshal.h header, add the
      generated sources to BUILT_SOURCES, so that they're generated
      before the rest of the source files are built.  Otherwise, since
      there is no rule specifying the dependency between the rest of the
      source files and foomarshal.h, and since foomarshal.h is not
      checked into git (and hence doesn't exist when doing a clean
      build), compilation of the said source files may fail if they're
      built before foomarshal.h is generated.
    • Michael Natterer's avatar
      app: make replacing a drawable's format use almost no undo memory · 248199e9
      Michael Natterer authored
      Add gimp_drawable_set_format() as low-level part of
      gimp_layer_fix_format_space(), and add a special undo type for it that
      only remembers the format and not the entire drawable buffer, because
      all pixels stay the same.
    • Daniel Mustieles's avatar
      Updated Spanish translation · a76553fb
      Daniel Mustieles authored
    • Ell's avatar
      app: fix segafult when halting filter-tool with controller · 78abe756
      Ell authored
      In GimpFilterTool, bind the controller's lifetime to the lifetime
      of the config object, rather than to the lifetime of the
      corresponding tool widget; make the controller's widget pointer a
      weak pointer to the widget, and bail out of the controller "set()"
      functions when the widget pointer is NULL.
      This fixes an issue arising when the properties of a config object
      that outlives the widget change after the widget had died,
      triggering a call to the controller's set() function, resulting in
      a segafult when trying to access the widget.
    • Ell's avatar
      app: in prop-GUI, use "direction" UI-meta of angle props for dial · 6976e87d
      Ell authored
      When constructing a prop-GUI widget for an angle property with a
      dial, use the the property's "direction" UI-meta, if exists, to set
      the direction of the dial.  Together with GEGL commit
      7b0578073a0f20334b5a8a8fe57b649d9f302454, this fixes wrong dial
      direction in certain ops that use clockwise angles.
    • Ell's avatar
      app: in GimpDial, add "clockwise-angles" property ... · 0c477564
      Ell authored
      ... and rename "clockwise" to "clockwise-delta"
      Add a boolean "clockwise-angles" property to GimpDial, which, when
      set, causes the dial legs' angles to be measured clockwise, rather
      than counter-clockwise.  The property is FALSE by default.
      Rename the "clockwise" property, which controls the direction of
      the measured delta between the two angles, to "clockwise-delta", to
      avoid confusion, and adapt the rest of the code.
  2. 23 Jul, 2018 3 commits
  3. 22 Jul, 2018 4 commits
  4. 21 Jul, 2018 4 commits
    • Michael Schumacher's avatar
    • Michael Schumacher's avatar
    • Michael Schumacher's avatar
    • Michael Natterer's avatar
      Initial space invasion commit in GIMP · e09e563a
      Michael Natterer authored
      All babl formats now have a space equivalent to a color profile,
      determining the format's primaries and TRCs. This commit makes GIMP
      aware of this.
      - enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
        as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
        NON_LINEAR and PERCPTUAL for each encoding, matching the babl
        encoding variants RGB, R'G'B' and R~G~B~.
      - gimp_color_transform_can_gegl_copy() now returns TRUE if both
        profiles can return a babl space, increasing the amount of fast babl
        color conversions significantly.
      - TODO: no solution yet for getting libgimp drawable proxy buffers in
        the right format with space.
      - follow the GimpPrecision change.
      - TODO: everything else unchanged and partly broken or sub-optimal,
        like setting a new image's color profile too late.
      - add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
        replacement for all "linear" booleans.
      - change gimp-babl functions to take babl spaces and GimpTRCType
        parameters and support all sorts of new perceptual ~ formats.
      - a lot of places changed in the early days of goat invasion didn't
        take advantage of gimp-babl utility functions and constructed
        formats manually. They all needed revisiting and many now use much
        simpler code calling gimp-babl API.
      - change gimp_babl_format_get_color_profile() to really extract a
        newly allocated color profile from the format, and add
        gimp_babl_get_builtin_color_profile() which does the same as
        gimp_babl_format_get_color_profile() did before. Visited all callers
        to decide whether they are looking for the format's actual profile,
        or for one of the builtin profiles, simplifying code that only needs
        builtin profiles.
      - drawables have a new get_space_api(), get_linear() is now get_trc().
      - images now have a "layer space" and an API to get it,
        gimp_image_get_layer_format() returns formats in that space.
      - an image's layer space is created from the image's color profile,
        change gimpimage-color-profile to deal with that correctly
      - change many babl_format() calls to babl_format_with_space() and take
        the space from passed formats or drawables
      - add function gimp_layer_fix_format_space() which replaces the
        layer's buffer with one that has the image's layer format, but
        doesn't change pixel values
      - use gimp_layer_fix_format_space() to make sure layers loaded from
        XCF and created by plug-ins have the right space when added to the
        image, because it's impossible to always assign the right space upon
        layer creation
      - "assign color profile" and "discard color profile" now require use
        of gimp_layer_fix_format_space() too because the profile is now
        embedded in all formats via the space.  Add
        gimp_image_assign_color_profile() which does all that and call it
        instead of a simple gimp_image_set_color_profile(), also from the
        PDB set-color-profile functions, which are essentially "assign" and
        "discard" calls.
      - generally, make sure a new image's color profile is set before
        adding layers to it, gimp_image_set_color_profile() is more than
        before considered know-what-you-are-doing API.
      - take special precaution in all places that call
        gimp_drawable_convert_type(), we now must pass a new_profile from
        all callers that convert layers within the same image (such as
        image_convert_type, image_convert_precision), because the layer's
        new space can't be determined from the image's layer format during
        the call.
      - change all "linear" properties to "trc", in all config objects like
        for levels and curves, in the histogram, in the widgets. This results
        in some GUI that now has three choices instead of two.
        TODO: we might want to reduce that back to two later.
      - keep "linear" boolean properties around as compat if needed for file
        pasring, but always convert the parsed parsed boolean to
      - TODO: the image's "enable color management" switch is currently
        broken, will fix that in another commit.
  5. 20 Jul, 2018 1 commit
  6. 19 Jul, 2018 6 commits
  7. 18 Jul, 2018 6 commits
  8. 17 Jul, 2018 10 commits
    • Jehan's avatar
      app: set overrided system extensions as unsensitive. · acdf169d
      Jehan authored
      When a user extension with same id as a system extension is installed,
      set the system extension unsensitive in the GUI (as well as extensions
      with missing requirements, though it is not implemented yet).
      The reason why I broke this change in 2 commits (with the previous
      commit) is because it will allow to easily cherry-pick the core code
      commits whereas the GTK+ code will have to be reimplemented for
      gimp-2-10 since this widget uses GTK+3 API.
    • Jehan's avatar
      app: functions to manage running extensions. · 4d745743
      Jehan authored
      Add gimp_extension_manager_can_run() and rename function:
      A system extension cannot be run if it has been overrided by a
      user-installed extension of same ID. Moreover extensions can have GIMP
      version requirements as well as have dependency on other extensions
      (though these are not implemented yet).
    • Jehan's avatar
      app: serialize and deserialize extensionrc from GimpExtensionManager. · 02aec4c3
      Jehan authored
      We only save the active state of extensions so that we can reload all
      extensions same as they were at previous exit. All other data are saved
      as per-extension metadata and should not be saved in the rc file.
      If an extension is not listed in extensionrc, we run it by default if
      this is a system extension (so that new core extensions by the GIMP team
      are run when installed after an updated), but not when they are
      user-installed extensions.
    • Jehan's avatar
      libgimpconfig: update some description comments. · bc427479
      Jehan authored
      Second parameter of gimp_scanner_parse_token() and
      gimp_scanner_parse_identifier() is not a return value. It is a value to
      compare with.
    • Piotr Drąg's avatar
      Update POTFILES.in · 3d6a9f3a
      Piotr Drąg authored
    • Øyvind "pippin" Kolås's avatar
      modules: add a filmic proof display filter · fe14feaa
      Øyvind "pippin" Kolås authored
      Add a display filter that can be used in scene-referred imaging workflows,
      this is using a luminance-only approximation of the ACES filmic HDR to SDR
      proofing mapping - see link in source comment for details.
    • Ell's avatar
      app: fix dynamics editor "fade" curve color · b2a9bb46
      Ell authored
      In the dynamics editor, use the neutral curve color, which depends
      on the current theme, for the "fade" curve, instead of hard-coding
      it to dark gray, which is hardly visible with dark themes.
    • Ell's avatar
      app: indentation fix in gimppluginmanager-restore.c · bfc26817
      Ell authored
    • Ell's avatar
      Issue #1825 - PSD files are loaded as merged by default ... · 03201262
      Ell authored
      ... depending on UI language
      Use gimp_register_file_handler_priority(), added in the previous
      commit, to increase the priority of the merged PSD loader, so that
      the non-merged loader is always preferred over it (unless
      explicitly chosen), regardless of the UI language.
    • Ell's avatar
      app, pdb: add gimp-register-file-handler-priority procedure · b4ac9568
      Ell authored
      Add a gimp-register-file-handler-priority procedure, which can be
      used to set the priority of a file-handler procedure.  When more
      than one file-handler procedure matches a file, the procedure with
      the lowest priority is used; if more than one procedure has the
      lowest priority, it is unspecified which one of them is used.  The
      default priority of file-handler procedures is 0.
      Add the necessary plumbing (plus some fixes) to the plug-in manager
      to handle file-handler priorities.  In particular, use two
      different lists for each type of file-handler procedures: one meant
      for searching, and is sorted according to priority, and one meant
      for display, and is sorted alphabetically.