Emilio Cobos Álvarez
68cf5f2cf3
[gtk4] gtkopenuriportal: Fix portal close signal.
...
Same fix. The other instance of this pattern in gtkapplication-dbus.c
does it right.
2023-11-25 03:49:58 +01:00
Emilio Cobos Álvarez
77c4097c86
[gtk4] GtkFileChooserNative: Fix portal close.
...
This makes closing a portal file chooser work.
Fixes the GTK4 bits of #6225 .
2023-11-25 03:47:28 +01:00
Benjamin Otte
d7bc4c719b
dmabuf: Remove unused headers
2023-11-25 01:44:34 +01:00
Benjamin Otte
725857e15b
dmabuf: Add a fallback list of fourccs
...
That way, we can work with older libdrm versions.
The list was generated via a bit of sed and grep from the current
dmabuf-fourcc.h, which is why I put it into its own file and included
all the formats, no matter how old they are.
2023-11-25 01:44:34 +01:00
Benjamin Otte
50ee872978
dmabuf: Add gdk_dmabuf_get_fourcc()
...
Returns the fourcc for a given GdkMemoryFormat.
Not sure if this is the best name, but I didn't know a better one.
2023-11-25 01:44:34 +01:00
Benjamin Otte
b6c82c6b54
dmabuf: Add all formats
...
Add the matching GdkMemoryFormat for all dmabuf formats.
This way, we don't fall back to RGBA8 for 10- and 16-bit formats that we
don't support natively when EGL or Vulkan use them.
Also includes corrections for a few mixups.
2023-11-25 01:44:34 +01:00
Benjamin Otte
1bf94b045c
dmabuf: Refactor function
...
1. Don't require passing in a GdkDisplay
2. return TRUE/FALSE if a format was found, so calling code can
decide how to handle failure itself
2023-11-25 01:44:34 +01:00
Matthias Clasen
13bfe188b5
Merge branch 'matthiasc/for-main' into 'main'
...
frameclock: Inline a few things
See merge request GNOME/gtk!6607
2023-11-25 00:04:57 +00:00
Matthias Clasen
f21175b3d0
frameclock: Inline a few things
...
There is no need to call type-checking getters in a loop.
2023-11-24 17:53:34 -05:00
Carlos Garnacho
d78475372f
gtk: Obey GTK grabs on DnD events
...
Make DnD events get directed to the right places (and most
importantly, not to the wrong places) when happening over
modal parts of the UI.
Fixes DnD started from popovers being able to drop on their
modal toplevel.
2023-11-24 23:37:20 +01:00
Carlos Garnacho
988b9de210
gdk/wayland: Pass surface-relative coordinates in DnD events
...
Make this event behave like the other regular events, and emit
coordinates based on native surfaces. Fixes DnD over popovers
finding the correct coordinates.
2023-11-24 23:35:45 +01:00
Carlos Garnacho
0c19ef6c2c
gdk/wayland: Improve recent serial lookup
...
This function takes an event, so the place(s) that do
not have one readily available can only pass NULL, so
the serial lookup will only work for the pointer.
Pass a device (plus optional sequence) to this function,
as these places do at least have the corresponding
GdkDevice at hand.
Fixes serial lookups for DnD, for other devices than
pointers (e.g. tablets, or touch).
2023-11-24 23:30:36 +01:00
Matthias Clasen
2bfd4a88d6
Fix some more static analysis warnings
2023-11-24 16:36:46 -05:00
Matthias Clasen
de3eeb4970
Merge branch 'docs_clarify_nested_lookup_tags' into 'main'
...
docs: Clarify that <lookup> tags can be nested.
See merge request GNOME/gtk!6606
2023-11-24 21:22:47 +00:00
Logan Rathbone
5c2e2977e0
docs: Clarify that <lookup> tags can be nested.
2023-11-24 15:52:32 -05:00
Logan Rathbone
24f3ec0949
docs: Clarify how to refer to instances created by <template>
2023-11-24 14:44:12 -05:00
Matthias Clasen
bcab0e4254
Merge branch 'none-bitfield' into 'main'
...
gdk-enums: Add GDK_NO_MODIFIER_MASK
See merge request GNOME/gtk!6602
2023-11-24 18:33:56 +00:00
Matthias Clasen
253955c017
Merge branch 'ebassi/docs-content-files' into 'main'
...
Add content_base_url to the docs project files
See merge request GNOME/gtk!6604
2023-11-24 18:19:06 +00:00
Maximiliano Sandoval R.
3a8834a437
gdk-enums: Add GDK_NO_MODIFIER_MASK
2023-11-24 18:04:56 +01:00
Emmanuele Bassi
48ea2ecac3
docs: Add content_base_url
...
Newer versions of gi-docgen support linking the rendered content files
to its source inside the repository, just like a symbol docblock.
2023-11-24 16:50:41 +00:00
Emmanuele Bassi
6d0b31128b
docs: Update the user support information
...
The IRC channel is on Libera and there's a Matrix room.
2023-11-24 16:50:41 +00:00
Emmanuele Bassi
0b519bc353
docs: Clarify title of the Initialization content file
2023-11-24 16:50:41 +00:00
Emmanuele Bassi
bb756b35a2
docs: Remove duplicate titles
2023-11-24 16:50:41 +00:00
Emmanuele Bassi
7ba7ab1e3d
docs: Fix links to the 2.x to 4 migration guide
...
The GTK3 migration guide is on docs.gtk.org, these days; and the
3.x to 4 migration guide is in the same location as this file.
2023-11-24 16:50:41 +00:00
Emmanuele Bassi
f73a7e29ca
docs: Use consistent style for content metadata
2023-11-24 16:50:41 +00:00
Emmanuele Bassi
2eb6e3d4c5
docs: Clean up the key value content file
...
Use a more descriptive title, add links to the API, add code elements,
and align the text a bit better.
2023-11-24 16:50:41 +00:00
Matthias Clasen
b28cf76f11
Merge branch 'matthiasc/for-main' into 'main'
...
Matthiasc/for main
See merge request GNOME/gtk!6603
2023-11-24 16:09:19 +00:00
Matthias Clasen
36314f28e2
gsk: Some more rect inlining
2023-11-24 10:35:57 -05:00
Matthias Clasen
b7a1b1d7ee
Fix some static analysis warnings
2023-11-24 10:35:57 -05:00
Matthias Clasen
57e382b59c
Merge branch 'sumibi-yakitori/fix-mouse-cursor-on-macos' into 'main'
...
macos: Change to send motion events to NSApp
Closes #6134
See merge request GNOME/gtk!6451
2023-11-24 13:06:53 +00:00
Matthias Clasen
a35a885902
Merge branch 'file-launcher-writable' into 'main'
...
file laucher: Add a writable property
Closes #4247
See merge request GNOME/gtk!6600
2023-11-23 00:13:19 +00:00
Matthias Clasen
5fa3a2a39f
file laucher: Add a writable property
...
If GtkFileLauncher:writable is TRUE, we ask the openuri portal
to make the file writable for the handler that it launches.
Fixes : #4247
2023-11-22 17:43:10 -05:00
Matthias Clasen
7f53b3d3f4
openuri portal: Introduce flags
2023-11-22 17:30:37 -05:00
Matthias Clasen
9b25257cbf
Merge branch 'matthiasc/for-main' into 'main'
...
Address various static analysis complaints
See merge request GNOME/gtk!6598
2023-11-22 11:49:57 +00:00
Matthias Clasen
a90a6c4517
Address various static analysis complaints
...
These were picked out of the scan_build logs in ci.
2023-11-22 00:07:47 -05:00
Matthias Clasen
e69f062c99
Merge branch 'testsuite-leaks' into 'main'
...
testsuite: Don't leak so much
See merge request GNOME/gtk!6597
2023-11-22 04:48:42 +00:00
Matthias Clasen
210c7f25ad
testsuite: Leak even less
...
A memory leak spotted by asan.
2023-11-21 23:21:55 -05:00
Matthias Clasen
9695791f7b
testsuite: Don't leak so much
...
My subsurface attach code was leaking all the nodes. Oops.
2023-11-21 23:21:55 -05:00
Matthias Clasen
ca0da0dd83
Merge branch 'matthiasc/for-main' into 'main'
...
ci: Run less tests
See merge request GNOME/gtk!6596
2023-11-22 03:41:15 +00:00
Matthias Clasen
5a8a839921
ci: Run less tests
...
Our test setups are mostly about varying the rendering environment
(different backends, or renderers, etc). Therefore, we don't need
to duplicate the runs of the css or node parser or path tests.
Just run the gdk and gsk-gl tests under all setups.
2023-11-21 22:20:47 -05:00
Matthias Clasen
eb84171cda
Merge branch 'testsuite-improvements' into 'main'
...
ci: Tweak the run-tests script
See merge request GNOME/gtk!6587
2023-11-21 19:31:15 +00:00
Benjamin Otte
5608a8978e
Merge branch 'picture-integral-size' into 'main'
...
picture: Keep paintable size integral
See merge request GNOME/gtk!6593
2023-11-21 19:30:53 +00:00
Matthias Clasen
efefdbd5c0
Merge branch 'no-fractional-offload' into 'main'
...
wayland: Don't offload with fractional scales
See merge request GNOME/gtk!6592
2023-11-21 19:28:03 +00:00
Matthias Clasen
6bea059424
Merge branch 'subsurface-api-tweaks' into 'main'
...
subsurface: Replace place_above/below
See merge request GNOME/gtk!6595
2023-11-21 18:52:07 +00:00
Matthias Clasen
c99c06f0da
wayland: Careful offloading with fractional scales
...
Sadly, subsurface positioning is undefined in this case. We'll
trust the compositor to not mess up if the device coordinates
after applying the scale are integral, but otherwise, we'll
decline.
2023-11-21 13:47:10 -05:00
Matthias Clasen
bda8f5393d
wayland: Allow attaching (some) non-opaque textures
...
Allow translucent textures when we are raising the subsurface.
2023-11-21 13:24:04 -05:00
Matthias Clasen
160fa969d4
subsurface: Replace place_above/below
...
Instead, do it all in attach(), which becomes more and more like
ConfigureWindow. This is good, because it will let us take the
above-ness into account when making decisions about attaching.
2023-11-21 13:24:04 -05:00
Benjamin Otte
edf33a6617
Merge branch 'wip/otte/for-main' into 'main'
...
subsurface: Don't marka failure as success
See merge request GNOME/gtk!6594
2023-11-21 17:01:54 +00:00
Benjamin Otte
86587a9328
subsurface: Don't marka failure as success
...
There was one branch in the success case that turned it into a failure,
yet we were still reporting a success (and discarding the buffer).
Don't do that.
2023-11-21 17:31:40 +01:00
Matthias Clasen
8691d471d0
picture: Keep paintable size integral
...
Without this, offloading is very hit-and-miss, since you need
to hit the few size combinations where you get an exact integral
size when preserving the aspect ratio.
2023-11-21 11:14:15 -05:00