Dz Chen
84fdda4f56
Update Chinese (China) translation
2021-09-15 15:28:39 +00:00
Matthias Clasen
ec6228b3a4
Merge branch 'function-annotations' into 'master'
...
Annotate gsk_rounded_rect_is_circular as pure
See merge request GNOME/gtk!3952
2021-09-14 21:39:48 +00:00
Matthias Clasen
8b85e7f35a
Annotate gtk_get_default_language as const
2021-09-14 16:38:08 -04:00
Matthias Clasen
d7909dccdc
Annotate gtk_editable_get_chars as malloc
2021-09-14 16:38:08 -04:00
Matthias Clasen
7773ae4538
csstypes: Add annotations and inlines
...
Inline _gtk_css_change_for_sibling and
_gtk_css_change_for_child, and mark a few
other functions as const or malloc.
2021-09-14 16:38:08 -04:00
Matthias Clasen
bec44acdeb
Annotate some builder apis as malloc
2021-09-14 16:38:08 -04:00
Matthias Clasen
5bfac597f6
Annotate gtk_accelerator_get_default_mod_mask as const
2021-09-14 16:38:08 -04:00
Matthias Clasen
423a4d4c3e
Annotate gsk_cairo_blur_compute_pixels as const
2021-09-14 16:38:08 -04:00
Matthias Clasen
38fce67a9b
Annotate gdk_rgba_to_string as malloc
2021-09-14 16:38:08 -04:00
Matthias Clasen
04ef7055cd
Annotate gdk_drag_action_is_unique as const
2021-09-14 16:38:08 -04:00
Matthias Clasen
44a031c3c1
Annotate gtk_css_tokenizer_get_location as const
2021-09-14 16:38:08 -04:00
Matthias Clasen
be885c888f
cssparser: Mark some functions as pure and malloc
2021-09-14 16:38:08 -04:00
Matthias Clasen
6faef4416f
Annotate gsk_ngl_uniform_state_align as pure
2021-09-14 16:38:08 -04:00
Matthias Clasen
5f452a5e6c
Annotate gsk_rounded_rect_is_circular as pure
...
And also mark gsk_rounded_rect_to_string as malloc.
2021-09-14 16:38:08 -04:00
Matthias Clasen
060f2d5f65
Annotate pango_glyph_string_num_glyphs as pure
2021-09-14 16:38:08 -04:00
Matthias Clasen
ebca260f2d
Annotate gdk_unichar_direction as const
2021-09-14 16:38:08 -04:00
Matthias Clasen
d4b1f85e14
Merge branch 'gsk-tests-gl' into 'master'
...
testsuite: Call g_test_init in test binaries
See merge request GNOME/gtk!3953
2021-09-14 20:37:16 +00:00
Matthias Clasen
4439ff0c12
testsuite: Stop running tests for the gl renderer
...
It does not exist anymore.
2021-09-14 16:12:55 -04:00
Matthias Clasen
ffab67ac70
testsuite: Call g_test_init in test binaries
...
Without it, we mess out on G_DEBUG=fatal-warnings,
so our ci does not alert us that we run a bunch of
tests which spit out warnings.
2021-09-14 16:12:55 -04:00
Matthias Clasen
2e63b53b1e
Merge branch 'fix_accessible_described_by' into 'master'
...
Fix generation of accessible description in presence of described by relations
See merge request GNOME/gtk!3948
2021-09-14 13:29:28 +00:00
Matthias Clasen
878c9da736
Merge branch 'test-leak-fixes' into 'master'
...
testsuite: Fix a few memory leaks
See merge request GNOME/gtk!3947
2021-09-14 13:14:10 +00:00
Lukáš Tyrychtr
955d50a080
Fix generation of accessible description in presence of described by relations
...
The loop going through the relation list should have stopped on the NULL sentinel value, however it never accesed the next list element.
2021-09-14 14:33:30 +02:00
Matthias Clasen
2b4f798e34
testsuite: Fix a few memory leaks
...
These are keeping the asan build in ci from passing.
2021-09-14 08:29:45 -04:00
Matthias Clasen
cda5d2dadd
Merge branch 'tiff-ci' into 'master'
...
ci: Add libtiff-devel to the image
See merge request GNOME/gtk!3946
2021-09-14 12:27:39 +00:00
Matthias Clasen
c70fdd6331
ci: Use the v4 image
2021-09-14 08:06:09 -04:00
Matthias Clasen
ddec3dedd0
ci: Add libtiff-devel to the image
...
We want to require libtiff in our build.
2021-09-14 08:06:09 -04:00
Matthias Clasen
b1a5c3ff55
Merge branch 'wip/exalm/papercuts' into 'master'
...
Fix 2 papercuts
See merge request GNOME/gtk!3945
2021-09-14 11:36:25 +00:00
Alexander Mikhaylenko
8f9a5175f0
media-controls: Make play button flat
...
Match the volume button.
2021-09-14 12:23:03 +05:00
Alexander Mikhaylenko
099c923679
searchbar: Vertically center the close button
2021-09-14 12:22:45 +05:00
Matthias Clasen
2a12a3e6d9
Merge branch 'fix_#4255' into 'master'
...
stack: Dispose children before emitting items-changed
Closes #4255
See merge request GNOME/gtk!3943
2021-09-13 16:10:37 +00:00
Julian Sparber
cdc1fa166d
stack: Dispose children before emitting items-changed
...
This makes sure that the `GListModel` returned by
`gtk_stack_get_pages()` actually has the items removed before
`items-changed` is emitted.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4255
2021-09-13 17:19:05 +02:00
Benjamin Otte
f572ca52d2
Merge branch 'wip/otte/texture-threads' into 'master'
...
gltexture: Make sure downloading textures works in a different thread
See merge request GNOME/gtk!3942
2021-09-13 00:16:30 +00:00
Benjamin Otte
193b383739
ngl: Simplify and unbug texture download
...
If we can't handle the texture, always just download_texture() it,
that way we are sure it's a memory texture.
2021-09-13 01:56:47 +02:00
Benjamin Otte
6785461c26
gltexture: Make sure downloading textures works in a different thread
...
This happens in the real world when using the inspector to look at a
node recording of a GStreamer video while the video is still playing.
GStreamer will use the GL context in a different thread while we are
busy trying to download it.
A test is included.
2021-09-13 01:40:03 +02:00
Philipp Kiemle
b9ee9979e7
Update German translation
...
(cherry picked from commit 17d828fda2
)
2021-09-12 21:45:48 +00:00
Benjamin Otte
6bbec87700
Merge branch 'wip/otte/float-textures' into 'master'
...
Add float texture formats
See merge request GNOME/gtk!3940
2021-09-12 12:55:00 +00:00
Balázs Úr
b35608a351
Update Hungarian translation
2021-09-12 06:03:58 +00:00
Benjamin Otte
416763bf2d
testsuite: Add tests for gdk_texture_download_float()
2021-09-12 05:54:37 +02:00
Benjamin Otte
9179ebb28e
testsuite: Add memory test support for OpenGL up/downloads
...
Use a GL renderer to upload textures (and then optionally download them
via release() again). This way, we can test that the GL renderer
properly uploads textures to the right formats (not losing information
for HDR for example) and downloads them again.
2021-09-12 05:54:37 +02:00
Benjamin Otte
bcc17b3033
testsuite: Add tests uploading the memorytextures
...
Use a GL renderer and render_texture() them.
2021-09-12 05:54:37 +02:00
Benjamin Otte
00439f9e5c
testsuite: Rework memorytexture test some more
...
Instead of predefined colors, generate them randomly.
2021-09-12 05:54:37 +02:00
Benjamin Otte
c9d748fc51
testsuite: Overhaul memorytexture test
...
Instead of hardcoding pixel values, allow construction of textures by
filling them with GdkRGBA values.
2021-09-12 05:54:37 +02:00
Benjamin Otte
719eafa60c
gl: Implement uploading and downloading HDR formats
...
Also refactor the GL uploading so it does the fallback in a
GLES-compatible way, which means we only need one fallback.
2021-09-12 05:54:37 +02:00
Benjamin Otte
1759d27da9
memorytexture: Add support for HDR formats
...
Also sanitize the input bytes so the strides match alignment
requirements of the data types.
2021-09-12 05:54:37 +02:00
Benjamin Otte
53275481a5
texture: Add gdk_texture_download_float()
2021-09-12 05:54:37 +02:00
Benjamin Otte
cbe6d0da76
gdk: Deprecate gdk_cairo_draw_from_gl()
...
It's broken with various pixel formats and OpenGL ES, it's hard to
understand what everything does, and gdk_texture_download() can be used
instead.
2021-09-12 05:54:37 +02:00
Benjamin Otte
c349ed9562
gltexture: Implement download() via glGetTexImage()
...
1. The download via gdk_cairo_draw_from_gl() was broken sometimes
2. We get easy conversion on fallback by chaining up and using
download_texture().
3. One more place where Cairo is no longer necessary.
2021-09-12 05:22:21 +02:00
Benjamin Otte
74ce69a8a1
gltexture: Make release() use download_texture()
...
1. It avoids Cairo, and in particular conversion to Cairo.
2. Keeping a texture allows easy chaining in the vfuncs.
3. Using a texture means releasing will work for HDR formats
too, once we add them.
2021-09-12 05:22:21 +02:00
Benjamin Otte
4f17f3ac24
texture: Add gdk_texture_download_texture()
...
A private vfunc that downloads a texture as a GdkMemoryTexture in
whatever format the texture deems best.
There are multiple reasons for this:
* GLES cannot download the Cairo format. But it can download some
format and then just delegate to the GdkMemoryTexture implementation.
* All the other download vfuncs (including the ones still coming) can
be implemented via download_texture() and delegation, making the
interface easier.
* We want to implement image loading and saving support. By using
download_texture(), we can save in the actual format of the texture.
* A potential GdkCompressedTexture could be implemented by just
providing this one vfunc as a compress() step.
2021-09-12 05:22:21 +02:00
Benjamin Otte
9c8e464b04
texture: Add GdkMemoryConversion private enum
...
Now gdk_memory_convert() converts to one of these conversions instead of
re(ab)using parts of the GdkMemoryFormat enum.
2021-09-12 05:22:21 +02:00