1. 20 Mar, 2018 1 commit
    • Dan Torop's avatar
      gtk: turn off smooth scrolling for X11/Quartz · 47a1a1b3
      Dan Torop authored
      Try to fix reports since dt 2.4 of jittery or too fast scrolling with
      trackpad/touch on Quartz and X11. GDK_SMOOTH_SCROLL_MASK needs to be set
      for Wayland to receive trackpad/touch events, but for X11 (and
      Quartz?) these events are converted to regular scroll events if
      GDK_SMOOTH_SCROLL_MASK is not set but GDK_SCROLL_MASK is.
      
      I haven't seen bad scroll behavior for X11, but for safety's sake, am
      eliminating this for X11 too.
      
      Fixes #11974.
      
      (cherry picked from commit d30303b9)
      47a1a1b3
  2. 02 Mar, 2018 1 commit
  3. 05 Jan, 2018 1 commit
    • Unknown's avatar
      Source comment typos · 3432f27f
      Unknown authored
      Found using `codespell -q 3 --skip="*.po,./src/external" -I ../darktable-whitelist.txt`
      where whitelist consisted of:
      ```
      cas
      childs
      ect
      eacg
      isnt
      liquify
      nd
      nonexistant
      substract
      thru
      ```
      This PR is actually split up from #1576
      .
      
      (cherry picked from commit ca07fcc0)
      3432f27f
  4. 29 Apr, 2017 1 commit
  5. 28 Apr, 2017 1 commit
  6. 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
      gradientslider: make smooth scrollable · 239e51a5
      Dan Torop authored
      This makes scrolling to move the gradientslider work with trackpads on
      Wayland. It should also now be smoother on any trackpad.
      
      Use gdouble for slider deltas to make consistent with how deltas come
      in from GTK and how positions are stored in
      _GtkDarktableGradientSlider.
      239e51a5
  7. 07 Nov, 2016 1 commit
  8. 27 Oct, 2016 1 commit
  9. 21 Sep, 2016 1 commit
  10. 24 Aug, 2016 1 commit
  11. 24 Jul, 2016 1 commit
  12. 14 Jul, 2016 1 commit
  13. 26 Apr, 2016 1 commit
  14. 25 Mar, 2016 1 commit
  15. 01 Mar, 2016 1 commit
  16. 08 Feb, 2016 1 commit
  17. 04 Feb, 2016 1 commit
  18. 02 Feb, 2016 1 commit
  19. 28 Jan, 2016 1 commit
    • Asma's avatar
      modify paint.c · f0cb9578
      Asma authored
      Use Pango instead of cairo toy API.
      f0cb9578
  20. 15 Oct, 2015 1 commit
  21. 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
  22. 24 May, 2015 1 commit
    • Roman Lebedev's avatar
      Do not forget to call cairo_pattern_destroy() after cairo_pattern_create_linear() · 4d741640
      Roman Lebedev authored
      Fixes LeakSanitizer-detected leaks like:
      Direct leak of 2640 byte(s) in 10 object(s) allocated from:
          #0 0x7f4541e9474f in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5474f)
          #1 0x7f45408610f6 in cairo_pattern_create_linear (/usr/lib/x86_64-linux-gnu/libcairo.so.2+0x510f6)
          #2 0x7f4541ba56e0 in dtgtk_cairo_paint_modulegroup_color /home/lebedevri/darktable/src/dtgtk/paint.c:1353
          #3 0x7f4541ba7cf9 in _togglebutton_draw /home/lebedevri/darktable/src/dtgtk/togglebutton.c:138
      4d741640
  23. 08 Mar, 2015 2 commits
    • Roman Lebedev's avatar
      Gtk: prefer gtk_render_background() over... · 92184d3d
      Roman Lebedev authored
      Gtk: prefer gtk_render_background() over gtk_style_context_get()+gdk_cairo_set_source_rgba()+cairo_paint()
      
      Also, fix invalid gtk_style_context_get() calls i have just added (:
      92184d3d
    • Roman Lebedev's avatar
      GTK+-3.15: gtk_style_context_get_background_color() is deprecated · 6722a75a
      Roman Lebedev authored
      TODO: (from #gtk+)
      the replacement is to subclass the widget and change the rendering to
      render the color you want
      alongside using style classes, if you want to use the CSS machinery
      that's the only sane replacement in CSS land
      if you don't want to use the CSS, then you can use cairo to simply draw
      the background
      The only sensible reason for knowing the color is for drawing it
      which is, obviously, wrong because "background color" does not mean
      anything if the background is not a color, but an image
      So the suggestion to use gtk_render_* is correct, in that context,
      because any other use of get_background_color() is generally wrong
      
      Created using following semantic patch and Coccinelle:
      
      @@
      expression context, state, color;
      @@
      -gtk_style_context_get_background_color(context, state, color);
      +gtk_style_context_get (context, state, "background-color", color, NULL);
      6722a75a
  24. 06 Feb, 2015 1 commit
  25. 28 Jan, 2015 1 commit
  26. 14 Jan, 2015 1 commit
  27. 08 Jan, 2015 4 commits
  28. 07 Jan, 2015 2 commits
  29. 05 Jan, 2015 2 commits
  30. 30 Dec, 2014 1 commit
  31. 29 Dec, 2014 1 commit
  32. 28 Dec, 2014 2 commits