1. 05 Oct, 2017 1 commit
  2. 04 Oct, 2017 3 commits
    • Ell's avatar
      libgimpwidgets: enable ratio expressions for size entries with two fields · f2a80a09
      Ell authored
      When a size entry has exactly two fields, enable ratio expressions
      in eevl.  Set the reference value to the value of the field that is
      not currently being evaluated, and invert the ratio when evaluating
      the second field.
    • Ell's avatar
      libgimpwidgets: add ratio expressions to eevl · 6caae9c5
      Ell authored
      Ratio expressions have the form 'x : y' (the ':' operator has the
      highest precedence for a binary operator, and is left-associative).
      Given a reference value 'a', the expression evaluates to
      'a * (x / y)'.
      Ratio expressions can be controlled by the caller by:
        - Enabling or disabling them:  They're meant to be used when the
          eevl servers two paired entries, and can be disabled otherwise.
        - Setting the reference value:  That's normally the value of the
          "other" entry of the pair--the one not currently being
        - Inverting the ratios:  Normally, one entry refers to the
          antecedent term of the ratio, and the other entry refers to the
          consequent term of the ratio.  When evaluating the latter one,
          the ratio should be inverted.
    • Ell's avatar
      libgimpwidgets: use struct, not parameters, to pass eevl options · 7362d479
      Ell authored
      Pass the evaluation options to gimp_eevl_evaluate() using a single
      parameter of type GimpEevlOptions, instead of using individual
      parameters for each option.  Add a GIMP_EEVL_OPTIONS_INIT macro,
      used to initialize a GimpEevlOptions struct to the default set of
      options.  This would allow us to add evaluation options more
  3. 03 Sep, 2017 1 commit
  4. 28 Aug, 2017 1 commit
  5. 27 Aug, 2017 1 commit
    • Ell's avatar
      */Makefile.am: work around a bug in the new glib-genmarshal · 0ef3795f
      Ell authored
      glib-genmarshal was rewritten in glib 2.53.4, and as of now (2.53.6)
      it has a bug where it unconditionally generates marshaler bodies,
      even for standard marshalers, even with --stdinc.  This causes
      libgimpwidgets to define and export g_cclosure_marshal_VOID__INT()
      and g_cclosure_marshal_VOID__OBJECT(), which upsets defcheck, and
      breaks the build.
      Work around this for now by using --header --body when generating
      the marshal.c files, which includes the prototypes in the source,
      instead of including the header ourselves.  This is the only code
      path where the new glib-genmarshal doesn't generate bodies for
      standard marshalers.  Note, however, that this usage is deprecated,
      so we'll probably want to change it back once it's fixed.
  6. 24 Aug, 2017 1 commit
  7. 09 Aug, 2017 1 commit
  8. 16 Jul, 2017 1 commit
    • Elle Stone's avatar
      Bug 749902 - Add Hue-Chroma operation/tool and LCH color selector · d13fa390
      Elle Stone authored
      This patch increases the LCH Chroma slider maximum value from 100 to
      200 and also makes the Chroma slider properly display out of gamut
      Chroma selections for any given Hue/Lightness combinations.
      The current Chroma slider only runs to 100. But quite a few sRGB
      colors have LCH chroma values that are greater than 100. For example
      reddest red has a chroma of 107, and bluest blue has a chroma of 131.
      So it's inconvenient to have to deal with a Chroma slider limit of
      Also, the current Chroma slider doesn't properly show out of gamut
      areas on the Chroma slider. So for example picking a given LCH Hue and
      then moving the Lightness slider doesn't allow to see which Lightness
      value allows for choosing the maximum in-gamut chroma for the chosen
  9. 27 Jun, 2017 2 commits
  10. 12 Jun, 2017 2 commits
  11. 06 Jun, 2017 1 commit
  12. 03 Jun, 2017 1 commit
  13. 02 Jun, 2017 1 commit
  14. 01 Jun, 2017 2 commits
  15. 28 May, 2017 2 commits
  16. 23 May, 2017 1 commit
    • Ell's avatar
      enums: run gimp-mkenums from the build dir · 5bcde32c
      Ell authored
      Commit 1e6acbd4 modified the
      generated enum recipes to run gimp-mkenums from the source
      directory, instead of the build directory, so that only the
      basenames of the corresponding header files would appear in
      the comment at the top of the generated files.  This was a
      mistake -- $(GIMP_MKENUMS) is expecting to be invoked from the
      build directory.
      Switch back to running gimp-mkenums from the build directory.  To
      avoid including the relative path from the build directory to the
      source directory in the generated file, add a @basename@ production
      variable to gimp-mkenums, which exapnds to the basename of the
      input file, and use it instead of @filename@ in the recipes for the
      generated enum files.
  17. 22 May, 2017 3 commits
  18. 19 May, 2017 3 commits
  19. 18 May, 2017 3 commits
  20. 17 May, 2017 1 commit
    • Michael Natterer's avatar
      Bug 749902 - Add Hue-Chroma operation/tool and LCH color selector · 2b167d63
      Michael Natterer authored
      Add LCH to the color selectors, patch by Elle Stone and myself.
      - Extend enum GimpColorSelectorChannel by LCH channels
      - Support them in GimpColorScale, GimpColorScales and GimpColorSelect
      - Did not yet remove the HSV channels until things are working 100% ok
      - Change drawing in GimpColorSelect to be much faster, to compensate
        for babl_process() making the LCH modes pretty slow
      - Clean up stuff in GimpColorSelect
      This is WIP and should not be considered finished, biggest TODO is
      displaying out-of-gamut values in GimpColorScales' spinbuttons.
  21. 10 May, 2017 1 commit
  22. 09 May, 2017 1 commit
  23. 06 May, 2017 1 commit
    • Ell's avatar
      enums: generate enum files in source dir · 1e6acbd4
      Ell authored
      We check them into git, so this makes it easier to keep them in
      sync when using a separate build directory.
      Case in point -- this commit also syncs a few enum files that went
      out-of-sync with their headers.
  24. 30 Apr, 2017 1 commit
  25. 06 Apr, 2017 1 commit
  26. 24 Mar, 2017 1 commit
  27. 23 Mar, 2017 1 commit
    • Jehan's avatar
      libgimpwidgets: entry width of gimp_prop_size_entry_new() is too small. · f8615850
      Jehan authored
      One cannot just use the min/max values since the precision digits must
      also be accounted for (as well as one additional character for the
      decimal separator).
      Current implementation is not perfect yet because GimpSizeEntry code
      itself does not yet use gimp_unit_get_scaled_digits(). Moreover the
      entry size could be updated when changing units (or the original size
      be actually based of the bigger width considering every possible unit).
  28. 17 Mar, 2017 1 commit