Skip to content
  1. Dec 21, 2024
  2. Dec 20, 2024
  3. Dec 19, 2024
  4. Dec 18, 2024
  5. Dec 17, 2024
    • Jehan's avatar
      gimp-data: bump the pointed data commit. · f2cf2bfd
      Jehan authored
      - More icons from Default used in legacy as temporary workaround of
        missing icons.
      - Splash image updated.
      f2cf2bfd
    • Jehan's avatar
      NEWS: update. · e81a6bfd
      Jehan authored
      e81a6bfd
    • Jehan's avatar
      plug-ins: also update the prompt when searching. · 363f37d8
      Jehan authored
      When searching backward, it will show '^^^' and forward 'vvv' instead of
      '>>>' and also the searched text will appear next to the prompt between
      parentheses. This makes searching a lot easier as we have clear feedback
      of where we are at and what we are searching.
      363f37d8
    • Jehan's avatar
      plug-ins: implement Ctrl-R and Ctrl-S in Python Console for searching. · 70da73ee
      Jehan authored
      These are the common shell shortcuts for respectively searching backward
      and forward in command history. I use the Python Console plug-in so much
      for testing that it started to weigh on me on how ineffective it was not
      to be able to search through the history and laboriously hit Up/Down
      buttons instead.
      
      While doing a search, most navigation keys would trigger to stop the
      search (and stay at the current history item followed by whatever the
      key was supposed to do, such as changing cursor position, etc.). Esc in
      particular would just stop the search and do nothing else.
      
      Ctrl-C though would reset the search and get the text back to what it
      was before search started.
      70da73ee
    • Jehan's avatar
      plug-ins: do not cycle through Python Console history. · 95881328
      Jehan authored
      When you want to get back to the latest command, it is very confusing
      when it starts cycling from the oldest history command!
      95881328
    • Jehan's avatar
      NEWS: update. · 3284e9a4
      Jehan authored
      As a particularity in these NEWS, the changes for BMP are more accurate
      in the NEWS file than in the commit because MR !1932 got mistakenly
      squashed. For anyone looking to have even more details, they should read
      the informative comments in the MR:
      
      !1932 (commits)
      3284e9a4
    • Jehan's avatar
      app, pdb, plug-ins: replace (plug-in-bump-map). · aa2d35c5
      Jehan authored
      For plug-in writers reference, these are equivalent:
      
      - (plug-in-bump-map RUN-NONINTERACTIVE img drawable bump-layer azimuth elevation depth 0 0 0 0 FALSE FALSE 0)
      + (let* ((filter (car (gimp-drawable-filter-new drawable "gegl:bump-map" ""))))
      +   (gimp-drawable-filter-configure filter LAYER-MODE-REPLACE 1.0
      +                                   "azimuth" azimuth "elevation" elevation "depth" depth
      +                                   "offset-x" 0 "offset-y" 0 "waterlevel" 0.0 "ambient" 0.0
      +                                   "compensate" FALSE "invert" FALSE "type" "linear"
      +                                   "tiled" FALSE)
      +   (gimp-drawable-filter-set-aux-input filter "aux" bump-layer)
      +   (gimp-drawable-merge-filter drawable filter)
      + )
      
      The "type" argument now uses strings.
      
      This commit also do a big cleanup of remaining now-unused helper
      functions in the compat PDB code.
      aa2d35c5
    • Jehan's avatar
      app, pdb, plug-ins: replace (plug-in-displace). · e2d7cc16
      Jehan authored
      For plug-in writers reference, these are equivalent:
      
      - (plug-in-displace RUN-NONINTERACTIVE work-image frame-layer
      -                   x-displacement y-displacement
      -                   TRUE TRUE aux1 aux2 abyss))
      + (let* ((abyss "black")
      +        (filter (car (gimp-drawable-filter-new frame-layer "gegl:displace" ""))))
      +
      +   (if (= edge-type 1) (set! abyss "loop"))
      +   (if (= edge-type 2) (set! abyss "clamp"))
      +
      +   (gimp-drawable-filter-configure filter LAYER-MODE-REPLACE 1.0
      +                                   "amount-x" x-displacement "amount-x" y-displacement "abyss-policy" abyss
      +                                   "sampler-type" "cubic" "displace-mode" "cartesian")
      +   (gimp-drawable-filter-set-aux-input filter "aux" aux1)
      +   (gimp-drawable-filter-set-aux-input filter "aux2" aux2)
      +   (gimp-drawable-merge-filter frame-layer filter)
      + )
      
      I also changed a test which (I think) was just a no-op since do-x and
      do-y were 0 0 (hence FALSE). Therefore the whole filter processing was
      ignored. Note though that unlike the rippling animation filter, I
      haven't tested the test script.
      e2d7cc16
    • Jehan's avatar
      plug-ins: Script-fu (gimp-drawable-filter-set-aux-input) procedure. · c663c8cd
      Jehan authored
      This is a wrapper to the C function of the same name. It is now possible
      to merge filters with auxiliary input pads!
      c663c8cd
    • Jehan's avatar
      app, libgimp, pdb, plug-ins: add a few Script-fu wrapper of libgimp filter API. · a6392ed8
      Jehan authored
      In particular (gimp-drawable-filter-configure),
      (gimp-drawable-merge-filter) and (gimp-drawable-append-filter) are
      proper Script-fu methods.
      
      I had to rename the PDB procedures for the 2 latter because they were
      clashing with these wrapper. I had not realized that private PDB
      procedures are still visible by Script-fu. This is not so glop. :-/
      
      Right now, it doesn't look so useful compared to the -new- one-liner
      variant procedures. But it will make sense when I will add aux input C
      procedure wrappers.
      a6392ed8
Loading