1. 25 Apr, 2017 1 commit
  2. 23 Mar, 2017 2 commits
    • Dan Torop's avatar
      gtk: functions to handle parsing scroll events · 7b34b62e
      Dan Torop authored
      Combine boilerplate scroll-event parsing code into a couple more
      general-purpose functions. This should be safer. Switching a
      scrollable widget from calling dt_gui_get_scroll_deltas() to
      dt_gui_get_scroll_unit_deltas() will get rid of "smooth-ness" while
      still working with Wayland.
      
      Behavior under scroll wheels should be unchanged.
      
      Make histogram events unit-scroll rather than smooth, as a many
      incoming exposure change events create a backlog and lag.
      7b34b62e
    • Dan Torop's avatar
      monochrome: smooth scrolled color filter size · 1046c2e9
      Dan Torop authored
      This makes less jerky sizing for trackpads with either X11 or Wayland
      backend to GDK.
      
      Keep size in range of [0.5,3.0], which seems to have been the intent
      of the prior code. In the prior implementation, size could end up
      [0.4,3.1], due to checking bounds then changing size, but unless there
      is serious floating point error, monochrome size params should still
      be [0.5,3.0] as initial size values are 2 or 2.3 and it is changed by
      units of 0.1.
      
      Also make scroll handling code safer and only add to history and
      redraw the widget if the scroll is handled.
      1046c2e9
  3. 09 Nov, 2016 1 commit
  4. 08 Nov, 2016 1 commit
  5. 26 Oct, 2016 1 commit
  6. 19 Oct, 2016 1 commit
  7. 02 Oct, 2016 1 commit
    • Roman Lebedev's avatar
      g_object_set(): do NOT use NULL as sentinel, that is just wrong. · ce4def97
      Roman Lebedev authored
      NULL should not be passed to a variadic function without
      explicitly casting it to the right type.
      
      NULL is arbitrary null pointer constant
      (with whatever type, unless you assume posix where it must be void*)
      
      The variadic function expects the arguments to be some type
      (depends on how it uses va_arg)
      Using the wrong type with va_arg is UB.
      
      After a long and fruitful disscussion in #musl and #gtk+,
      i have come to conclusion that #musl is right in this
      and #gtk+ is #gtk+ :)
      
      Fixed mostly by semantic patch:
      @@
      type T;
      @@
      <...
      g_object_set(
      ...
      ,
      (
      - NULL
      |
      - (T*)NULL
      )
      + HI_IM_GCHAR
       )
      ...>
      
      And then mass-replace s/HI_IM_GCHAR/(gchar *)0/
      ce4def97
  8. 01 Jul, 2016 1 commit
  9. 23 Apr, 2016 1 commit
  10. 18 Apr, 2016 1 commit
  11. 09 Apr, 2016 1 commit
  12. 25 Mar, 2016 1 commit
  13. 17 Mar, 2016 1 commit
  14. 01 Mar, 2016 1 commit
  15. 29 Feb, 2016 2 commits
  16. 20 Feb, 2016 2 commits
    • Roman Lebedev's avatar
      IOPs: add #include "iop/iop_api.h" · 477d7434
      Roman Lebedev authored
      Yes, we need to include it via cmake AND manually.
      Via CMake - in case it is not included manually.
      Manually - cmake && make does not detect when the header
      included via '-include' is changed and does not cause
      recompilation, only #include "..." does.
      
      Also, not all (not mine) IDE understand -include,
      so they don't parse that header => not cool for reasons.
      
      (to check whether all iops include the header one can use
      $ grep -lr DT_MODULE * | xargs grep -L "iop/iop_api.h")
      477d7434
    • Roman Lebedev's avatar
      Adapt code to the IOP api declaration. · 844061a6
      Roman Lebedev authored
      As it can be seen, those consts remove the need to specify
      those variables in shared(). And since almost no iop
      does change them internally (e.g. demosaic) it should be good.
      844061a6
  17. 10 Dec, 2015 1 commit
  18. 08 Nov, 2015 1 commit
  19. 07 Nov, 2015 1 commit
  20. 09 Sep, 2015 1 commit
    • Tobias Ellinghaus's avatar
      Major rewrite of color profile handling · c0f84c27
      Tobias Ellinghaus authored
      - No longer use magic profile names for the built in profiles and
        filenames for others, but clearly mark every profile.
      - Move display and softproof profile out of colorout into the lower
        toolbar
      c0f84c27
  21. 10 Feb, 2015 1 commit
  22. 10 Jan, 2015 1 commit
  23. 30 Dec, 2014 1 commit
  24. 22 Dec, 2014 1 commit
  25. 09 Dec, 2014 5 commits
  26. 03 Dec, 2014 2 commits
  27. 13 Oct, 2014 1 commit
  28. 20 May, 2014 1 commit
  29. 10 May, 2014 1 commit
    • Tobias Ellinghaus's avatar
      Some more GUI fixes · a0280808
      Tobias Ellinghaus authored
      - Try to keep background grids crisp in custom widgets.
      - Put a subdued dt logo into the empty widget of zone system.
      a0280808
  30. 09 May, 2014 1 commit
  31. 08 May, 2014 1 commit
    • Tobias Ellinghaus's avatar
      First batch of high DPI fixes · e0ea299f
      Tobias Ellinghaus authored
      Soem small things like the triangles in our custom dr widgets are still
      missing, but the big issues should be solved now.
      I only tested these thigns by setting the screen DPI using xrandr, I am
      not 100% sure if that is a perfect simulation.
      People using a high DPI screen should still set the panel_width in the
      config to something bigger.
      e0ea299f
  32. 27 Apr, 2014 1 commit