Skip to content
  1. May 13, 2017
  2. May 12, 2017
    • Jehan's avatar
      app: layers-text-tool should give the focus to the canvas. · bb977263
      Jehan authored
      If focus is on the layer list for instance, running this action from
      right-click menu raises the on-canvas toolbar, ready for edition, with a
      visible text cursor. But if the canvas has no focus (since you clicked
      on the layer list, it has the focus), you still have to move your mouse
      over and click the text on canvas. That doesn't make sense and there
      would be barely any reason to use this over selecting the text tool then
      clicking the canvas.
      bb977263
    • Jehan's avatar
      app: layers_text_tool_cmd_callback() is not supposed to be run on... · 526918b2
      Jehan authored
      ... non-text layers.
      Since commit 10099bda, the action will be non-sensitive with non-text
      layers, so if it happens, there is a bug somewhere. Therefore
      g_return_if_fail() on this condition.
      Moreover opening the edit attributes dialog was absolutely confusing on
      what this action is supposed to do. We should not have these kind of
      random behaviors.
      526918b2
    • Jehan's avatar
      app: layers-text-tool action should only be sensitive when active... · 10099bda
      Jehan authored
      ... layer is a text layer.
      It doesn't make sense to activate the text tool on any other kind of
      layer.
      10099bda
    • Ell's avatar
      app: update layer backdrop only after removing from stack · 99ab780d
      Ell authored
      When a layer is removed from a layer stack, and its backdrop needs
      invalidating, emit the UPDATE signals for the backdrop only after
      the layer has been removed from the container.
      99ab780d
    • Ell's avatar
      app: don't invalidate layer when invalidating its backdrop · dd8e2e9b
      Ell authored
      Harmless, but unnecessary.
      dd8e2e9b
    • Jehan's avatar
      build: update the flatpak-howto. · 590924f8
      Jehan authored
      In particular, I didn't have the correct metadata because I was missing
      appstream-compose. This should be a dependency of flatpak. But for the
      time being, let's just have a note in our howto.
      590924f8
  3. May 11, 2017
    • Ell's avatar
      app: add GimpLayerStack · 07ac78ef
      Ell authored
      A subclass of GimpDrawableStack, for layer stacks.  Invalidates the
      layers' backdrop as/when necessary, according to the value of their
      excludes_backdrop property.
      
      Make gimp_drawable_stack_update() protected, instead of private, so
      that we can use it in GimpLayerStack.
      07ac78ef
    • Ell's avatar
      app: add GimpLayer::excludes_backdrop property · a0510022
      Ell authored
      A boolean flag, specifying whether the backdrop is clipped to the
      layer.  That's the case when the layer's composite mode is dst-atop
      or src-in.
      
      This is a read-only property, derived from the other attributes of
      the layer.  We compute its value through a virtual function, so that
      GimpGroupLayer will eventually be able to specialize it for pass-
      through groups.
      
      The next commit uses this property to actually do something useful.
      a0510022
    • Ell's avatar
      app: add gimp_layer_mode_get_included_region() · a6713565
      Ell authored
      Takes a layer mode and a composite mode, and returns the region
      included in the composition.
      
      Use this function in GimpOperationLayerMode, instead of testing
      for specific composite modes directly.  Will also be used by
      the next commit.
      
      Indentation cleanup in gimp_layer_modes.h
      a6713565
    • Ell's avatar
      app: rename GimpLayerModeAffectMask to GimpLayerCompositeRegion · c78cecd7
      Ell authored
      ... so that we can use it for other functions that involve
      compositing regions (which we do in the next commit).
      
      Rename gimp_operation_layer_mode_get_affect_mask() and
      friends to _get_affected_region().
      c78cecd7
    • Ell's avatar
      app: make LCH lightness select-criterion faster · b5974d34
      Ell authored
      babl already has a faster path for getting L only, than going
      through LCH.
      b5974d34
    • Michael Natterer's avatar
      app: factor out button-2-motion handling code in GimpDisplayShell · 465eba32
      Michael Natterer authored
      less code in the huge gimp_display_shell_canvas_tool_events().
      Also fix the rotating cursor in gimp_display_shell_start_scrolling().
      465eba32
  4. May 10, 2017
  5. May 09, 2017
  6. May 08, 2017
  7. May 07, 2017