Ian Douglas Scott
1c6608f426
gdk/wayland/surface: Remove unused argument
2021-11-08 14:46:38 -08:00
Ian Douglas Scott
fcdc5538cf
gdk/wayland/surface: Move *idle_inhibitor*
to GdkWaylandToplevel
2021-11-08 14:46:34 -08:00
Ian Douglas Scott
dd327bc8a6
gdk/wayland/surface: Move *exported
to GdkWaylandToplevel
2021-11-08 14:43:19 -08:00
Ian Douglas Scott
b878353f0b
gdk/wayland/surface: Move server_decoration
to GdkWaylandToplevel
2021-11-08 14:00:00 -08:00
Luca Bacci
9f9479a50f
Merge branch 'forward-port-mr-3931-to-gtk4' into 'master'
...
Remove the GdkWin32 global screen offset
Closes #4348 and #1477
See merge request GNOME/gtk!4104
2021-11-08 18:55:07 +00:00
Emmanuele Bassi
59f45aa30c
docs: Fix wrong fragments in type links
...
Due to a bug in gi-docgen we're not getting a warning if a fragment to a
type does not match the actual type, and we're generating a broken link.
See: https://gitlab.gnome.org/GNOME/gi-docgen/-/merge_requests/120
2021-11-07 18:40:24 +00:00
Luca Bacci
4c8e703803
GdkWin32: Remove the global screen offset
...
Removes the _gdk_offset_x / _gdk_offset_y variables,
as today are not needed anymore.
2021-11-07 19:08:30 +01:00
Luca Bacci
8338e55549
GdkWin32: Use a signed integral type for the DPI scale
2021-11-07 19:01:32 +01:00
Marco Melorio
da72cfea40
docs: Tag Gdk.ModifierType as flags
2021-11-07 18:14:15 +01:00
Yuri Chornoivan
e80d938ee5
Fix minor typo: Unsupportd -> Unsupported
2021-11-05 18:42:20 +00:00
Carlos Garnacho
c5ac80be2b
gdk/wayland: Do not use xdg_wm_base.ping serials as "user input" serials
...
Ping/pong serials are not meant to be interpreted as user input serials
(e.g. those given back later to the compositor on grabs). As a matter
of fact, Mutter uses a different count (i.e. timestamps) in these, so
using these serials may confuse the compositor into denying certain
operations like DnD.
2021-11-05 14:42:53 +01:00
Benjamin Otte
6536e3dc54
macos: Fix return value
2021-11-03 22:53:59 +01:00
Benjamin Otte
164d0a5201
gdk: #if => #ifdef
...
Makes compilers happy
2021-11-03 22:53:59 +01:00
Benjamin Otte
bca77b5505
egl: Set the draw buffer to GL_BACK_LEFT
...
Instead of using GL_BACK, use GL_BACK_LEFT, because the spec demands
this (many drivers don't).
Also move the call from the GDK backends into the GLContext code, as
this is a generic EGL issue (nvidia being the main driver in need of
this call, see 9c4c4eaaa1
for a longer
discussion).
Fixes #4402
2021-11-03 22:53:59 +01:00
Emmanuele Bassi
49032b4b63
docs: Fix link to g_signal_emit()
2021-11-01 12:54:07 +00:00
Carlos Garnacho
206d7635f7
Merge branch 'x11-xi2.4-gestures' into 'master'
...
Touchpad gestures for X11 (XInput 2.4, X Server 21.1)
See merge request GNOME/gtk!3610
2021-10-28 16:44:52 +00:00
Benjamin Otte
9962ef9ac4
broadway: fix texture upload
...
This was carelessly broken by me in 5b473911
.
While fixing it anyway, at some support for better error handling.
Fixes #4381
2021-10-28 14:48:20 +02:00
Benjamin Otte
c11a43418e
docs: standard names are CSS names, not X11 names
...
We updated Pango a while ago to use these more common names, but apparently forgot the docs.
2021-10-27 22:12:58 +00:00
Matthias Clasen
d7d4cef66d
Merge branch 'wip/chergert/use-fabs-in-macos' into 'master'
...
macos: fix scale on macOS 12 beta
See merge request GNOME/gtk!4065
2021-10-27 19:37:01 +00:00
Benjamin Otte
d726ecdb5d
gdk: Split enums from types
...
Add gdkenums.h for enums and keep gdktypes.h for types.
Makes both files easier to read.
2021-10-26 20:59:37 +02:00
Benjamin Otte
41919158cc
gdktypes: Remove GDK_EXTERN_VAR
...
It is unused.
2021-10-26 20:42:22 +02:00
Matthias Clasen
4ea84d3144
Merge branch 'bilelmoussaoui/missing-since-annotations' into 'master'
...
since annotations cleanup
See merge request GNOME/gtk!4086
2021-10-26 17:53:06 +00:00
Jordan Petridis
4cda2aec57
gdkdisplay: Remove (nullable)
...
gdk_display_create_gl_context only returns NULL when there is
an error set or asserts/aborts. So nullalbe annotation isn't needed.
Similar to 53312cf696
2021-10-25 18:40:40 +03:00
Benjamin Otte
ae117d0cfa
png: allocate data before sigsetjmp()
...
Makes the static analyzer not trip up when trying to analyze memory
leaks.
2021-10-23 00:03:51 +02:00
Benjamin Otte
373ca2389a
glx: Remove unused assignment
2021-10-22 23:50:45 +02:00
Benjamin Otte
b2f9a907ce
tiff: Fix variable assignment
2021-10-22 23:50:45 +02:00
Emmanuele Bassi
82c0654f76
Merge branch 'fix-mac-kana-eisu' into 'master'
...
Correct translation of Mac JIS Eisu & Kana keys
Closes #4117
See merge request GNOME/gtk!3782
2021-10-22 15:05:29 +00:00
Bilal Elmoussaoui
cb3eae1042
g-i: add missing since 4.6 annotations
2021-10-21 15:34:39 +01:00
Bilal Elmoussaoui
3dcda782ce
gdk: fix MemoryFormat since annotations
2021-10-21 15:34:39 +01:00
Benjamin Otte
ea14e94eaf
drawcontext: Guard begin/end_frame() against non-surface contexts
...
This can happen now with gdk_display_create_gl_context().
2021-10-20 20:31:33 +02:00
Benjamin Otte
2601c39cb2
API: Add gdk_display_create_gl_context()
...
This is an alternative to gdk_surface_create_gl_context() when the
context is meant to only draw to textures.
This is useful in the testsuite or in GStreamer or with GLArea,
basically whenever we want to do GL stuff but don't need to actually
draw anything on screen.
A bunch of code will need to be updated to deal with context->surface
being NULL.
2021-10-20 20:31:33 +02:00
Benjamin Otte
53312cf696
surface: Remove (nullable)
...
The function only returns NULL on error, and such a function is not
considered nullable.
2021-10-20 20:02:26 +02:00
Matthias Clasen
8b02e87529
Merge branch 'gdkdisplay-c-stdlib-h' into 'master'
...
gdkdisplay.c: Include stdlib.h
See merge request GNOME/gtk!4041
2021-10-19 02:46:48 +00:00
Matthias Clasen
f04e10238b
Merge branch 'wip/hadess/quiet-broadway' into 'master'
...
broadway: Quiet initialisation failures
See merge request GNOME/gtk!4053
2021-10-19 02:45:42 +00:00
Matthias Clasen
e946ee4040
Merge branch 'file-list-get' into 'master'
...
Add getter to GdkFileList
See merge request GNOME/gtk!4047
2021-10-19 02:44:19 +00:00
Matthias Clasen
5ff9f4a435
Merge branch 'matthiasc/for-master' into 'master'
...
Small fixes
Closes #4248
See merge request GNOME/gtk!4072
2021-10-18 18:00:33 +00:00
Jonas Ådahl
6067a556d7
Merge branch 'work/reset_opaque' into 'master'
...
wayland: Mark opaque_region as dirty on hide
See merge request GNOME/gtk!4020
2021-10-18 13:45:32 +00:00
Jonas Ådahl
6a07a853b0
Merge branch 'work/tidy' into 'master'
...
wayland: miscellaneous minor tidy ups
See merge request GNOME/gtk!4066
2021-10-18 13:44:52 +00:00
Matthias Clasen
bddf9f9ca3
docs: Cosmetics
...
Do a round of "the the" removal.
2021-10-18 08:35:54 -04:00
Matthias Clasen
5f3062aff0
docs: Cosmetics
2021-10-18 08:35:54 -04:00
Benjamin Otte
5b47391162
broadway: Use gdk_texture_save_to_png_bytes()
...
Instead of using Cairo, save the texture directly.
2021-10-18 12:08:57 +02:00
Benjamin Otte
dcba783389
gdk: Rework gdk_pixbuf_get_from_texture()
...
Make it use gdk_memory_texture_from_texture().
Also make gdk_memory_format_alpha() privately available so that we can
detect if an image contains an alpha channel.
2021-10-18 12:08:57 +02:00
Benjamin Otte
7eceed8d4d
jpeg: Use gdk_memory_texture_from_texture()
2021-10-18 12:08:57 +02:00
Benjamin Otte
800246402f
tiff: Refactor
...
Now we support all the formats.
2021-10-18 12:08:57 +02:00
Benjamin Otte
c7e36bcf22
gltexture: Fix conditions for glGetTexImage() call
...
The conditions were inverted, plus we failed to limit this call to
non-GLES.
2021-10-17 22:28:44 +02:00
Benjamin Otte
79d2a14061
glcontext: reinstate another missing "!"
...
A leftover from aa0c22b648
.
2021-10-17 22:28:44 +02:00
Benjamin Otte
cf7ee82755
Merge branch 'fix-dnd-coordinates-on-windows' into 'master'
...
Fix DND coordinates on Windows
See merge request GNOME/gtk!3930
2021-10-16 17:04:26 +00:00
Benjamin Otte
7a50ebaa3f
gdk: Move GdkMemoryFormat enum to gdktypes.h
...
It's used in too many places now.
2021-10-16 15:49:37 +02:00
Benjamin Otte
aa0c22b648
glcontext: Reinstate missing "!"
...
Replacing the return_if_fail()s in commit f584d4f500
lost the
inversions.
Fixes #4349
2021-10-16 15:49:02 +02:00
David Edmundson
aa258fa17f
wayland: port code to g_clear_pointer
2021-10-15 12:03:57 +01:00