1. 15 May, 2020 1 commit
  2. 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
  3. 06 Apr, 2020 3 commits
  4. 14 Mar, 2020 1 commit
  5. 21 Feb, 2020 4 commits
  6. 30 Jan, 2020 1 commit
    • Matthias Clasen's avatar
      Remove primary monitor api · a46f9af1
      Matthias Clasen authored
      We only have implementations of this on X11 and Win32,
      so make it available as backend api there.
      
      Update all callers to use either the backend api, or
      just monitor 0.
      a46f9af1
  7. 31 May, 2019 1 commit
    • Christian Hergert's avatar
      gtk: rely on default marshallers · bd26cce8
      Christian Hergert authored
      Similar to previous removals of g_cclosure_marshal_VOID__VOID we can remove
      other marshallers for which are a simple G_TYPE_NONE with single parameter.
      In those cases, GLib will setup both a c_marshaller and va_marshaller for
      us. Before this commit, we would not get a va_marshaller because the
      c_marshaller is set.
      
      Related to Initiatives#10
      bd26cce8
  8. 29 May, 2019 3 commits
  9. 28 May, 2019 4 commits
  10. 10 Feb, 2019 1 commit
  11. 27 Jun, 2018 1 commit
  12. 25 Jun, 2018 2 commits
  13. 18 Jun, 2018 2 commits
  14. 11 Jun, 2018 1 commit
  15. 29 May, 2018 1 commit
  16. 20 Mar, 2018 5 commits
    • Benjamin Otte's avatar
      surface: Remove GSK_SURFACE_ROOT · 5a324693
      Benjamin Otte authored
      Root surface have been dead for a while now, no need to keep the enum
      value around.
      5a324693
    • Alexander Larsson's avatar
      GdkSurface: Rename lots of stuff from window->surface · 3dce0dcc
      Alexander Larsson authored
      Mostly these are internal things, but the major public change is
      that event.window is now event.surface.
      3dce0dcc
    • Alexander Larsson's avatar
      GdkSurface: Rename various functions and variables · 9a7e7211
      Alexander Larsson authored
      This is an automatic rename of various things related
      to the window->surface rename.
      
      Public symbols changed by this is:
       GDK_MODE_WINDOW
       gdk_device_get_window_at_position
       gdk_device_get_window_at_position_double
       gdk_device_get_last_event_window
       gdk_display_get_monitor_at_window
       gdk_drag_context_get_source_window
       gdk_drag_context_get_dest_window
       gdk_drag_context_get_drag_window
       gdk_draw_context_get_window
       gdk_drawing_context_get_window
       gdk_gl_context_get_window
       gdk_synthesize_window_state
       gdk_surface_get_window_type
       gdk_x11_display_set_window_scale
       gsk_renderer_new_for_window
       gsk_renderer_get_window
       gtk_text_view_buffer_to_window_coords
       gtk_tree_view_convert_widget_to_bin_window_coords
       gtk_tree_view_convert_tree_to_bin_window_coords
      
      The commands that generated this are:
      
      git sed -f g "GDK window" "GDK surface"
      git sed -f g window_impl surface_impl
      (cd gdk; git sed -f g impl_window impl_surface)
      git sed -f g WINDOW_IMPL SURFACE_IMPL
      git sed -f g GDK_MODE_WINDOW GDK_MODE_SURFACE
      git sed -f g gdk_draw_context_get_window gdk_draw_context_get_surface
      git sed -f g gdk_drawing_context_get_window gdk_drawing_context_get_surface
      git sed -f g gdk_gl_context_get_window gdk_gl_context_get_surface
      git sed -f g gsk_renderer_get_window gsk_renderer_get_surface
      git sed -f g gsk_renderer_new_for_window gsk_renderer_new_for_surface
      
      (cd gdk; git sed -f g window_type surface_type)
      git sed -f g gdk_surface_get_window_type gdk_surface_get_surface_type
      
      git sed -f g window_at_position surface_at_position
      git sed -f g event_window event_surface
      git sed -f g window_coord surface_coord
      git sed -f g window_state surface_state
      git sed -f g window_cursor surface_cursor
      git sed -f g window_scale surface_scale
      git sed -f g window_events surface_events
      git sed -f g monitor_at_window monitor_at_surface
      git sed -f g window_under_pointer surface_under_pointer
      (cd gdk; git sed -f g for_window for_surface)
      git sed -f g window_anchor surface_anchor
      git sed -f g WINDOW_IS_TOPLEVEL SURFACE_IS_TOPLEVEL
      git sed -f g native_window native_surface
      git sed -f g source_window source_surface
      git sed -f g dest_window dest_surface
      git sed -f g drag_window drag_surface
      git sed -f g input_window input_surface
      
      git checkout NEWS* po-properties po docs/reference/gtk/migrating-3to4.xml
      9a7e7211
    • Alexander Larsson's avatar
      GdkWindow -> GdkSurface: File renames · 890080eb
      Alexander Larsson authored
      Rename all *window.[ch] source files.
      
      This is an automatic operation, done by the following commands:
      
      for i in $(git ls-files gdk | grep window); do
          git mv $i $(echo $i | sed s/window/surface/);
          git sed -f g $(basename $i) $(basename $i | sed s/window/surface/) ;
      done
      
      git checkout NEWS* po-properties po
      890080eb
    • 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_window" "wayland_surface"
      git sed -f g "WaylandWindow" "WaylandSurface"
      git sed -f g "X11_WINDOW" "X11_SURFACE"
      git sed -f g "x11_window" "x11_surface"
      git sed -f g "X11Window" "X11Surface"
      git sed -f g "WIN32_WINDOW" "WIN32_SURFACE"
      git sed -f g "win32_window" "win32_surface"
      git sed -f g "Win32Window" "Win32Surface"
      git sed -f g "QUARTZ_WINDOW" "QUARTZ_SURFACE"
      git sed -f g "quartz_window" "quartz_surface"
      git sed -f g "QuartzWindow" "QuartzSurface"
      
      git checkout NEWS* po-properties
      391727bd
  17. 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
  18. 17 Jan, 2018 1 commit
    • Matthias Clasen's avatar
      gdk: Drop some unused cursor apis · 77bab4e0
      Matthias Clasen authored
      The query function for cursor sizes and capabilities
      are not very interesting. At least, they are not used
      in GTK+, and all backends but X11 just hardcode
      made-up values anyway. So, lets drop them.
      77bab4e0
  19. 14 Jan, 2018 2 commits
    • Matthias Clasen's avatar
      Make gdk logging per-display · e151058d
      Matthias Clasen authored
      As far as possible, use per-display debug flags.
      
      This will minimize the debug spew that we get from
      the inspector if it is running on a separate display.
      e151058d
    • Matthias Clasen's avatar
      gdk: Reorganize env vars · c5fc8412
      Matthias Clasen authored
      Drop GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE.
      Merge the useful bits into GDK_DEBUG.
      Drop unused debug flags (CURSOR).
      c5fc8412
  20. 26 Dec, 2017 4 commits