1. 26 Oct, 2021 1 commit
  2. 20 May, 2021 1 commit
  3. 11 Mar, 2021 2 commits
  4. 07 Dec, 2020 1 commit
  5. 12 Sep, 2020 1 commit
    • Matthias Clasen's avatar
      Clean up lots of GTK+ -> GTK · 929a56e5
      Matthias Clasen authored
      Replace most remaining uses of GTK+ in the docs and
      user-visible strings by GTK. Also remove some leftover
      "Was added in 3.x" sentences from the docs.
      929a56e5
  6. 05 Aug, 2020 1 commit
  7. 28 Jul, 2020 1 commit
    • Carlos Garnacho's avatar
      gdk: Conflate GDK devices · cab1dcb6
      Carlos Garnacho authored
      Make GdkEvents hold a single GdkDevice. This device is closer to
      the logical device conceptually, although it must be sufficient for
      device checks (i.e. GdkInputSource), which makes it similar to the
      physical devices.
      
      Make the logical devices have a more accurate GdkInputSource where
      needed, and conflate the event devices altogether.
      cab1dcb6
  8. 23 Jun, 2020 1 commit
  9. 09 Jun, 2020 2 commits
    • Matthias Clasen's avatar
      gdk: Rename gdk_motion_event_get_history · c9fad251
      Matthias Clasen authored
      Scroll events can have history too, so make a
      getter that works for both. This drops the
      gdk_scroll_event_get_history getter that was
      added a few commits earlier, since we now
      store scroll history in the same way as
      motion history.
      
      Update the docs, and all callers.
      c9fad251
    • Matthias Clasen's avatar
      Keep scroll history · b9cde6f8
      Matthias Clasen authored
      Similar to how we keep motion history for compressed
      events, keep scroll history for compressed scroll
      events.
      b9cde6f8
  10. 05 May, 2020 1 commit
  11. 16 Apr, 2020 1 commit
    • Emmanuele Bassi's avatar
      Restructure the GdkEvent type hierarchy · f28aa1ba
      Emmanuele Bassi authored
      GdkEvent has been a "I-can't-believe-this-is-not-OOP" type for ages,
      using a union of sub-types. This has always been problematic when it
      comes to implementing accessor functions: either you get generic API
      that takes a GdkEvent and uses a massive switch() to determine which
      event types have the data you're looking for; or you create namespaced
      accessors, but break language bindings horribly, as boxed types cannot
      have derived types.
      
      The recent conversion of GskRenderNode (which had similar issues) to
      GTypeInstance, and the fact that GdkEvent is now a completely opaque
      type, provide us with the chance of moving GdkEvent to GTypeInstance,
      and have sub-types for GdkEvent.
      
      The change from boxed type to GTypeInstance is pretty small, all things
      considered, but ends up cascading to a larger commit, as we still have
      backends and code in GTK trying to access GdkEvent structures directly.
      Additionally, the naming of the public getter functions requires
      renaming all the data structures to conform to the namespace/type-name
      pattern.
      f28aa1ba
  12. 06 Apr, 2020 3 commits
    • Matthias Clasen's avatar
      gdk: Redo key events · 0a96a483
      Matthias Clasen authored
      Add all of the keyboard translation results in the key event,
      so we can translate the keyboard state at the time the event
      is created, and avoid doing state translation at match time.
      
      We actually need to carry two sets of translation results,
      since we ignore CapsLock when matching accelerators, in
      gdk_event_matches().
      
      At the same time, drop the scancode field - it is only ever
      set on win32, and is basically unused in GTK.
      
      Update all callers.
      0a96a483
    • Matthias Clasen's avatar
      Add gdk_event_get_match · c9aef3fc
      Matthias Clasen authored
      This is a counterpart to gdk_event_matches() that can
      be used to obtain a shortcut matching an event.
      c9aef3fc
    • Matthias Clasen's avatar
      Add gdk_event_matches · e8330c5e
      Matthias Clasen authored
      Move the elaborate key event matching code from
      GtkShortcutTrigger to GdkEvent, which greatly reduces
      the amount of keymap api use outside of GDK.
      e8330c5e
  13. 21 Feb, 2020 10 commits
  14. 27 Nov, 2019 1 commit
    • Emmanuele Bassi's avatar
      Use a single compilation symbol · def70073
      Emmanuele Bassi authored
      We use a compilation symbol in our build to allow the inclusion of
      specific headers while building GTK, to avoid the need to include only
      the global header.
      
      Each namespace has its own compilation symbol because we used to have
      different libraries, and strict symbol visibility between libraries;
      now that we have a single library, and we can use private symbols across
      namespaces while building GTK, we should have a single compilation
      symbol, and simplify the build rules.
      def70073
  15. 31 May, 2019 1 commit
  16. 28 May, 2019 1 commit
    • Matthias Clasen's avatar
      Drop child surfaces · 989792cb
      Matthias Clasen authored
      Drop gdk_surface_child_new and the child surface type,
      since we no longer use them. Deprecate surface apis
      that only make sense with child surfaces.
      989792cb
  17. 23 Feb, 2019 1 commit
  18. 18 Jan, 2019 1 commit
  19. 22 Dec, 2018 1 commit
    • Tomasz Miąsko's avatar
      Annotate values of PRIORITY constants · c665a1d5
      Tomasz Miąsko authored and Christoph Reiter's avatar Christoph Reiter committed
      g-ir-scanner incorrectly evaluates macro definition that include
      references to other macro definitions. Provide a correct value as an
      annotation.
      
      Differences in generated gir files:
      
      ```diff
      @@ -19017 +19017 @@
      -    <constant name="PRIORITY_REDRAW" value="20" c:type="GDK_PRIORITY_REDRAW">
      +    <constant name="PRIORITY_REDRAW" value="120" c:type="GDK_PRIORITY_REDRAW">
      @@ -74229,3 +74229,3 @@
           </constant>
      -    <constant name="PRIORITY_RESIZE" value="10" c:type="GTK_PRIORITY_RESIZE">
      +    <constant name="PRIORITY_RESIZE" value="110" c:type="GTK_PRIORITY_RESIZE">
             <doc xml:space="preserve">Use this priority for functionality related to size allocation.
      @@ -106786,3 +106786,3 @@
           <constant name="TEXT_VIEW_PRIORITY_VALIDATE"
      -              value="5"
      +              value="125"
                     c:type="GTK_TEXT_VIEW_PRIORITY_VALIDATE">
      ```
      
      See !472
      c665a1d5
  20. 30 Jul, 2018 1 commit
  21. 16 Jul, 2018 1 commit
  22. 15 Jul, 2018 3 commits
    • Matthias Clasen's avatar
      gdk: Drop map events · 7ca6440f
      Matthias Clasen authored
      We are really inconsistent about generating these,
      and they are not actually used in GTK+. Instead,
      add a boolean GdkSurface::mapped property.
      7ca6440f
    • Matthias Clasen's avatar
      gdk: Drop expose events · da3aaf39
      Matthias Clasen authored
      Replace expose events with a GdkSurface::expose signal.
      This is part of the move to use events only for input.
      da3aaf39
    • Matthias Clasen's avatar
      gdk: Drop configure events · a8926c9d
      Matthias Clasen authored
      Replace configure events with a GdkSurface::size-changed signal.
      This is part of the move to use events only for input.
      a8926c9d
  23. 02 Jul, 2018 1 commit
    • Matthias Clasen's avatar
      dnd: Rename headers · 64f5afe6
      Matthias Clasen authored
      Rename gdkdnd.h to gdkdrag.h, to go along with gdkdrop.h
      
      This commit includes the necessary updates to the X11, Wayland
      and Broadway backends. Other backends have to be updated separately.
      64f5afe6
  24. 25 Jun, 2018 1 commit
  25. 18 Jun, 2018 1 commit