1. 26 Oct, 2019 5 commits
  2. 25 Oct, 2019 1 commit
  3. 24 Oct, 2019 15 commits
  4. 23 Oct, 2019 10 commits
  5. 22 Oct, 2019 3 commits
    • Ell's avatar
      app: avoid spurious channel switch in histogram editor when switching drawbles · eb6f544c
      Ell authored
      Add an n_components parameter to gimp_histogram_clear_values(),
      which allows to set the new component count when clearing the
      histogram.  This is useful to seed the histogram with the correct
      number of channels, for display purposes, before starting an async
      histogram calculation.  We use this in GimpHistogramEditor, to
      avoid resetting the view's channel back to "Value" each time the
      active drawable changes.
      eb6f544c
    • Ell's avatar
      8bd4ae34
    • Ell's avatar
      app: streamline GimpHistogram; avoid spurious channel switch in histogram view · fc17f0ed
      Ell authored
      In GimpHistogram, get rid of the "n-channels" property and
      corresponding gimp_histogram_n_channels() function.  The former
      returned the actual number of channels, but this wasn't too useful,
      as channel values may not be sequential; the latter returned the
      number of components.  Instead, add an "n-components" property and
      a corresponding gimp_histogram_n_components() function, both of
      which return the number of components.  Furthermore, add a
      gimp_histogram_has_channel() function, which determines if the
      histogram has a given channel; this allows for simple testing for
      channel availability, which was done wrong in various places.
      
      Adjust the GimpHistogram code for the changes, and clean it up,
      fixing a few bugs.
      
      Adjust users of GimpHisotgram for the changes.  In particular,
      in GimpHisotgramView, fix the channel-availability test when
      setting the view's histogram (which happens whenever the active
      drawable's preview is frozen), to avoid erroneously swithcing the
      view's channel back to "Value" when a non-RGB channel is selected.
      fc17f0ed
  6. 20 Oct, 2019 6 commits