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. 20 May, 2021 1 commit
  4. 11 Mar, 2021 2 commits
  5. 14 Oct, 2020 1 commit
  6. 28 Sep, 2020 1 commit
    • Matthias Clasen's avatar
      glarea: Flip our texture · b711c12b
      Matthias Clasen authored
      The texture that produce is upside-down, compared to what
      GSK expects, so flip things around with a transform.
      
      This fixes the shadertoy demo being upside-down after a
      recent fix to avoid downloading and reuploading the texture.
      b711c12b
  7. 21 Aug, 2020 1 commit
  8. 26 Jul, 2020 1 commit
    • Emmanuele Bassi's avatar
      Remove ATK · c63087a5
      Emmanuele Bassi authored
      To build a better world sometimes means having to tear the old one down.
              -- Alexander Pierce, "Captain America: The Winter Soldier"
      
      ATK served us well for nearly 20 years, but the world has changed, and
      GTK has changed with it. Now ATK is mostly a hindrance towards improving
      the accessibility stack:
      
       - it maps to a very specific implementation, AT-SPI, which is Linux and
         Unix specific
       - it requires implementing the same functionality in three different
         layers of the stack: AT-SPI, ATK, and GTK
       - only GTK uses it; every other Linux and Unix toolkit and application
         talks to AT-SPI directly, including assistive technologies
      
      Sadly, we cannot incrementally port GTK to a new accessibility stack;
      since ATK insulates us entirely from the underlying implementation, we
      cannot replace it piecemeal. Instead, we're going to remove everything
      and then incrementally build on a clean slate:
      
       - add an "accessible" interface, implemented by GTK objects directly,
         which describe the acces...
      c63087a5
  9. 24 Jul, 2020 1 commit
  10. 12 Jun, 2020 1 commit
    • Emmanuel Gil Peyrot's avatar
      Switch to GL_ARB_framebuffer_object · 404d7915
      Emmanuel Gil Peyrot authored
      GTK 4.0 was currently using GL_EXT_framebuffer_object, which is
      deprecated as the ARB version has been merged into OpenGL 3.0 as well as
      OpenGL ES 2.0, and provides laxer requirements.
      
      This is a port of !2076 for 4.x.
      404d7915
  11. 11 May, 2020 1 commit
  12. 09 Apr, 2020 1 commit
    • Matthias Clasen's avatar
      Reinstate expected focus behavior · 632524f6
      Matthias Clasen authored
      After the :can-focus change in the previous commit, widgets
      need to set suitable focus and grab_focus implementations
      to implement the desired focus behavior.
      
      This commit does that for all widgets.
      632524f6
  13. 02 Jun, 2019 1 commit
    • Christian Hergert's avatar
      gtk: fix all uses of g_cclosure_marshal_generic · 41e373f1
      Christian Hergert authored
      This adds specific marshallers for all of the locations where a generic
      marshaller is being used. It also provides va_marshallers to reduce the
      chances that we get stack traces from perf going through ffi_call_unix64.
      
      This is forward ported from gtk-3-24.
      
      # Conflicts:
      #	gtk/gtkeventcontrollerkey.c
      #	gtk/gtkeventcontrollermotion.c
      #	gtk/gtkgesture.c
      #	gtk/gtkgesturemultipress.c
      41e373f1
  14. 28 May, 2019 2 commits
  15. 13 Nov, 2018 1 commit
  16. 24 Apr, 2018 1 commit
    • Benjamin Otte's avatar
      snapshot: Redo debug messages · 73b4a62f
      Benjamin Otte authored
      Instead of every snapshot function having debug messages, have an
      explicit gtk_snapshot_push_debug() function that appends a debug node.
      73b4a62f
  17. 05 Apr, 2018 1 commit
  18. 04 Apr, 2018 1 commit
  19. 20 Mar, 2018 2 commits
    • Alexander Larsson's avatar
      GtkWidget: Start renaming widget->window · 63e060a2
      Alexander Larsson authored
      This is an automated change doing these command:
      
      git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface
      git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface
      git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface
      git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface
      git sed -f g gtk_widget_set_window gtk_widget_set_surface
      git sed -f g gtk_widget_get_window gtk_widget_get_surface
      git sed -f g gtk_widget_register_window gtk_widget_register_surface
      git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface
      
      git checkout NEWS*
      63e060a2
    • Alexander Larsson's avatar
      GdkWindow -> GdkSurface initial type rename · 391727bd
      Alexander Larsson authored
      This renames the GdkWindow class and related classes (impl, backend
      subclasses) to surface. Additionally it renames related types:
      GdkWindowAttr, GdkWindowPaint, GdkWindowWindowClass, GdkWindowType,
      GdkWindowTypeHint, GdkWindowHints, GdkWindowState, GdkWindowEdge
      
      This is an automatic conversion using the below commands:
      
      git sed -f g GdkWindowWindowClass GdkSurfaceSurfaceClass
      
      git sed -f g GdkWindow GdkSurface
      git sed -f g "gdk_window\([ _\(\),;]\|$\)" "gdk_surface\1" # Avoid hitting gdk_windowing
      git sed -f g "GDK_WINDOW\([ _\(]\|$\)" "GDK_SURFACE\1" # Avoid hitting GDK_WINDOWING
      git sed "GDK_\([A-Z]*\)IS_WINDOW\([_ (]\|$\)" "GDK_\1IS_SURFACE\2"
      git sed GDK_TYPE_WINDOW GDK_TYPE_SURFACE
      git sed -f g GdkPointerWindowInfo GdkPointerSurfaceInfo
      
      git sed -f g "BROADWAY_WINDOW" "BROADWAY_SURFACE"
      git sed -f g "broadway_window" "broadway_surface"
      git sed -f g "BroadwayWindow" "BroadwaySurface"
      git sed -f g "WAYLAND_WINDOW" "WAYLAND_SURFACE"
      git sed -f g "wayland_win...
      391727bd
  20. 18 Mar, 2018 1 commit
    • Benjamin Otte's avatar
      texture: Expose subclasses as subclasses · 82a99a36
      Benjamin Otte authored
      This is necessary so that bidnings work properly and don't make
      gdk_gl_texture_release() a function on GdkTexture.
      It also allows code to identify what type of texture they are dealing
      with.
      
      Finally, we can now decide to add getters later without screwing
      anything up, if we want to allow people to access GL textures directly.
      82a99a36
  21. 07 Mar, 2018 1 commit
    • Benjamin Otte's avatar
      gdk: Split out GL texture · 160e6ad6
      Benjamin Otte authored
      Put GdkGLTexture into its own file and rename the API to
      gdk_gl_texture_foo() instead of gdk_texture_foo_for_gl().
      
      Apart from naming, no actual code changes.
      160e6ad6
  22. 06 Feb, 2018 1 commit
    • Matthias Clasen's avatar
      The big versioning cleanup · 4c150d8e
      Matthias Clasen authored
      Remove all the old 2.x and 3.x version annotations.
      GTK+ 4 is a new start, and from the perspective of a
      GTK+ 4 developer all these APIs have been around since
      the beginning.
      4c150d8e
  23. 04 Feb, 2018 2 commits
  24. 18 Jan, 2018 5 commits
  25. 17 Jan, 2018 3 commits
  26. 03 Nov, 2017 1 commit
  27. 12 Oct, 2017 1 commit
  28. 20 Jul, 2017 1 commit
    • Timm Bäder's avatar
      widget: Add baseline and out_clip parameters to size-allocate · 36ab70dd
      Timm Bäder authored
      Since setting a clip is mandatory for almost all widgets, we can as well
      change the size-allocate signature to include a out_clip parameter, just
      like GtkCssGadget did. And since we now always propagate baselines, we
      might as well pass that one on to size-allocate.
      
      This way we can also make sure to transform the clip returned from
      size-allocate to parent-coordinates, i.e. the same coordinate space
      priv->allocation is in.
      36ab70dd
  29. 25 May, 2017 2 commits
    • Carlos Garnacho's avatar
      gtkglarea: Remove input window · ee13d446
      Carlos Garnacho authored
      It's not necessary to receive events anymore.
      ee13d446
    • Carlos Garnacho's avatar
      gtk: Mass delete all GtkWidget event mask API · a72404dd
      Carlos Garnacho authored
      We now rely on toplevels receiving and forwarding all the events
      the windowing should be able to handle. Event masks are no longer a
      way to determine whether an event is deliverable ot a widget.
      
      Events will always be delivered in the three captured/target/bubbled
      phases, widgets can now just attach GtkEventControllers and let those
      handle the events.
      a72404dd