1. 22 May, 2021 1 commit
  2. 21 May, 2021 1 commit
    • Matthias Clasen's avatar
      docs: Reduce redundancy · 4a0d3d7a
      Matthias Clasen authored
      Remove a boatload of "or %NULL" from nullable parameters
      and return values. gi-docgen generates suitable text from
      the annotation that we don't need to duplicate.
      
      This adds a few missing nullable annotations too.
      4a0d3d7a
  3. 03 May, 2021 1 commit
    • Matthias Clasen's avatar
      dragsource: Keep the source alive long enough · 9e952bc7
      Matthias Clasen authored
      When a drop causes the event controller to be finalized
      (directly or indirectly), we end up segfaulting while
      trying to wrap up the drag operation. So, keep a reference
      on the GtkDragSource from when the drag begins to when
      it is done.
      
      This fixes a crash in gnome-todo when dragging tasks.
      9e952bc7
  4. 11 Mar, 2021 3 commits
  5. 29 Jan, 2021 1 commit
    • Alexander Mikhaylenko's avatar
      dragsource: Use double coordinates for checking drag threshold · f63e6394
      Alexander Mikhaylenko authored
      If multiple nested widgets have drag sources on them, both using bubble
      phase, we need to reliably pick the inner one. Both of them will try to
      start dragging, and we need to make sure there are no situations where the
      outer widget starts drag earlier and cancels the inner one.
      
      Currently, this can easily happen via integer rounding: start and current
      coordinates passed into gtk_drag_check_threshold() are initially doubles
      (other than in GtkNotebook and GtkIconView), and are casted to ints. Then
      those rounded values are used to calculate deltas to compare to the drag
      threshold, losing quite a lot of precision along the way, and often
      resulting in the outer widget getting larger deltas.
      
      To avoid it, just don't round it. Introduce a variant of the function that
      operates on doubles: gtk_drag_check_threshold_double() and use it instead
      of the original everywhere.
      f63e6394
  6. 21 Dec, 2020 1 commit
  7. 24 Nov, 2020 1 commit
  8. 14 Oct, 2020 1 commit
  9. 30 Jul, 2020 1 commit
  10. 24 Jul, 2020 2 commits
  11. 22 May, 2020 1 commit
  12. 17 May, 2020 1 commit
  13. 14 May, 2020 1 commit
  14. 11 May, 2020 1 commit
  15. 02 Mar, 2020 2 commits
  16. 21 Feb, 2020 2 commits
    • Matthias Clasen's avatar
      events: reorganize getters · b1eaa502
      Matthias Clasen authored
      Restructure the getters for event fields to
      be more targeted at particular event types.
      
      Update all callers, and replace all direct
      event struct access with getters.
      
      As a side-effect, this drops some unused getters.
      b1eaa502
    • Matthias Clasen's avatar
      Strip const from GdkEvent · 31bf9da6
      Matthias Clasen authored
      Events are refcounted structs, and we generally don't
      pass these as const.
      31bf9da6
  17. 04 Feb, 2020 2 commits
  18. 30 Jan, 2020 1 commit
  19. 29 Jan, 2020 1 commit
  20. 12 Jan, 2020 1 commit
  21. 08 Jan, 2020 14 commits