Matthias Clasen
ce030b1b36
gsk: Fix a minor type mismatch
...
Use the same types in the declaration of gsk_standard_contour_init.
Fixes : #6628
2024-04-13 22:28:48 -04:00
Matthias Clasen
6c5dc8cd1f
Merge branch 'matthiasc/for-main' into 'main'
...
wayland: Cosmetics
See merge request GNOME/gtk!7137
2024-04-13 21:56:27 +00:00
Matthias Clasen
fb4b38e5ea
inspector: Fix a bunch of memory leaks
...
g_list_store_append is *not* transfer full. Oops.
2024-04-13 17:22:42 -04:00
Matthias Clasen
fc405f8882
wayland: Cosmetics
...
Don't clear the same pointer twice.
2024-04-13 17:22:42 -04:00
Benjamin Otte
afe61e28e0
Merge branch 'wip/p3732/no-additional-grid-tile' into 'main'
...
grid-view: make footer tile file empty space
Closes #6076
See merge request GNOME/gtk!6370
2024-04-13 15:35:43 +00:00
Peter Eisenmann
4f3f3c9ae2
grid-view: make footer tile file empty space
2024-04-13 15:35:42 +00:00
Matthias Clasen
e699685003
Merge branch 'mr7057-preparation' into 'main'
...
gdk/wayland: Make the surface handle empty commits
See merge request GNOME/gtk!7133
2024-04-12 15:54:33 +00:00
Robert Mader
9583195e96
gdk/wayland: Make the surface handle empty commits
...
In order to avoid some code duplication and ensure the Cairo and
Vulkan implementations behave like the GL one.
2024-04-12 17:04:54 +02:00
Matthias Clasen
a526f0770e
Merge branch 'warning-fix' into 'main'
...
gdk/gsk: Fix a couple of maybe-uninitialized warnings
See merge request GNOME/gtk!7132
2024-04-12 11:55:04 +00:00
Philip Withnall
707e492f0d
gsk: Fix a maybe-uninitialized warning
...
The compiler (gcc 13.2) thinks that `t` could be used uninitialised.
That’s obviously not the case, because there’s always going to be at
least one loop iteration due to the initial values of `t1` and `t2`.
Change the loop to a `do…while` to make that a bit clearer to the
compiler without making any functional changes to the code.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-04-12 12:08:03 +01:00
Philip Withnall
680dba6524
gdk: Fix a maybe-uninitialized warning
...
If there somehow end up being no `supported_versions`, `ctx` would end
up being dereferenced before being initialised. While I think that’s
unlikely, the compiler doesn’t know that, so let’s just initialise the
variable unconditionally.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-04-12 12:03:29 +01:00
Matthias Clasen
d1bb1d091c
Merge branch 'gdk-build-dep-fix' into 'main'
...
build: Add a missing dependency
Closes #6618
See merge request GNOME/gtk!7127
2024-04-11 20:57:34 +00:00
Matthias Clasen
6510b876d1
build: Add a missing dependency
...
Add the generated gdk headers to the sources for all the backends,
to guarantee that they are generated before the library is used.
Fixes : #6618
2024-04-11 15:47:38 -04:00
Matthias Clasen
e376941e49
Merge branch 'scrollbar_accessible_range' into 'main'
...
a11y: Implement GtkAccessibleRange for scrollbars
Closes gnome-control-center#2994
See merge request GNOME/gtk!7129
2024-04-11 18:20:49 +00:00
Matthias Clasen
4889199b14
Merge branch 'glarea-dispose-fix' into 'main'
...
dmabuf texture: Survive multiple disposes
Closes #6623
See merge request GNOME/gtk!7131
2024-04-11 18:20:12 +00:00
Luca Bacci
2e15225446
Merge branch 'remove-work-arounds' into 'main'
...
GdkWin32: Remove some work arounds that are not needed anymore
Closes #6614
See merge request GNOME/gtk!7114
2024-04-11 17:03:08 +00:00
Matthias Clasen
9dad71513c
glarea: Clean up dispose
...
We were getting our gl and dmabuf texture mixed up and ending
up freeing the Texture structs while they were still used as
callback data for dmabuf texture destroys. Avoid that by keeping
separate pointers for the gl and dmabuf textures.
Fixes : #6623
2024-04-11 12:48:01 -04:00
Matthias Clasen
ed072b4b5d
dmabuf texture: Survive multiple disposes
...
dispose can be called more than once, so be safe for that.
2024-04-11 12:45:24 -04:00
Boyuan Yang
7ffc4e0a21
Update Chinese (China) translation
2024-04-11 15:46:08 +00:00
Emmanuele Bassi
b9403f4f5b
Apply review suggestions
2024-04-11 14:04:12 +00:00
Lukáš Tyrychtr
9f1aa3141b
a11y: Implement GtkAccessibleRange for scrollbars
...
Fixes gnome-control-center#2994
2024-04-11 14:25:42 +02:00
Matthias Clasen
06e905f87d
Merge branch 'gtk-wlmod' into 'main'
...
Meson: Use wayland module
See merge request GNOME/gtk!7126
2024-04-11 01:29:29 +00:00
Xavier Claessens
2ba8dcebff
Apply 1 suggestion(s) to 1 file(s)
2024-04-10 15:52:42 +00:00
Xavier Claessens
95a8def7c2
Meson: Use wayland module
2024-04-10 11:43:04 -04:00
Matthias Clasen
777799070d
Merge branch 'simplify_widget_accessible_get_bounds' into 'main'
...
a11y: Simplify GtkWidget's GtkAccessible.get_bounds implementation
See merge request GNOME/gtk!7128
2024-04-10 15:40:44 +00:00
Lukáš Tyrychtr
0f83a9550b
Proper rounding
2024-04-10 15:46:39 +02:00
Lukáš Tyrychtr
17f2443350
a11y: Simplify GtkWidget's GtkAccessible.get_bounds implementation
...
We can use the result from gtk_widget_get_bounds for the coordinates as well.
2024-04-10 15:32:16 +02:00
Matthias Clasen
6bfc995097
Merge branch 'matthiasc/for-main' into 'main'
...
docs: Update some links
See merge request GNOME/gtk!7125
2024-04-10 01:04:14 +00:00
Matthias Clasen
8068111c6e
Merge branch 'fix-xi2-input-source-type-debug-msg' into 'main'
...
xi2: Fix incorrect input source type in Input debug message
Closes #6619
See merge request GNOME/gtk!7120
2024-04-10 00:45:14 +00:00
Matthias Clasen
6e1c47b021
Merge branch 'improve_gtkeditabledelegate_docs' into 'main'
...
GtkEditable: Document the usage restrictions of gtk_editable_delegate_get_accessible_platform_state
See merge request GNOME/gtk!5691
2024-04-10 00:36:44 +00:00
Matthias Clasen
aed4ced032
Merge branch 'broadway-port-2972-3130' into 'main'
...
[gtk4] gdk/broadway: Port !2972 and !3130 from gtk3
See merge request GNOME/gtk!4467
2024-04-10 00:12:28 +00:00
Matthias Clasen
96160ea5dc
docs: Update some links
...
Use docs.gtk.org for all the documentation that is hosted there.
2024-04-09 20:00:00 -04:00
Matthias Clasen
c76c07ddfe
Merge branch 'matthiasc/for-main' into 'main'
...
testsuite: Cosmetics
See merge request GNOME/gtk!7124
2024-04-09 23:41:01 +00:00
Matthias Clasen
7b82dc7ac5
inspector: Show monitor resolution
2024-04-09 19:14:01 -04:00
Matthias Clasen
a63e9d38fb
gdk: Add private convenience api
...
Add a function to get the monitor resolution.
We may use this information in the future to make font rendering
decisions.
2024-04-09 19:13:34 -04:00
Matthias Clasen
cc8db1805d
gsk: Be safer against bad font options
...
Some combinations of hint-style and hint-metrics lead to bad glyph
placement in the glyph cache, so avoid them.
2024-04-09 19:12:49 -04:00
Matthias Clasen
948532f3c9
Deprecate gtk_widget_set/get_font_options
...
cairo font options are too low-level, and setting them directly
prevents us from doing smarter things for font rendering.
2024-04-09 19:12:41 -04:00
Matthias Clasen
8f39f8d827
testsuite: Add another test
...
This test checks that pango attributes can be specified in serialized
form.
2024-04-09 19:06:31 -04:00
Matthias Clasen
5e28c05121
testsuite: Cosmetics
...
Make the builder parser test less verbose.
2024-04-09 19:06:12 -04:00
Matthias Clasen
32d15a5858
Merge branch 'builder-gtkshortcutaction-warning' into 'main'
...
builder: Show warning for invalid action on GtkShortcut
See merge request GNOME/gtk!7121
2024-04-09 20:36:59 +00:00
Benjamin Otte
460eaac1f4
Merge branch 'wip/otte/for-main' into 'main'
...
vulkan: Handle generating mipmaps for 1x1 images
Closes #6553
See merge request GNOME/gtk!7073
2024-04-09 16:25:20 +00:00
Benjamin Otte
02d7817632
demo: Use get_fps() in fishbowl demo
...
Hopefully that leads to somewhat more reliable fps measurements
2024-04-09 17:39:36 +02:00
Benjamin Otte
3080e2974d
gpu: ceil() offscreen size before generating offscreen
...
The goal is to generate an offscreen at 1x scale.
When not ceil()ing the numbers the offscreen code would do it *and*
adjust the scale accordingly, so we'd end up with something like a
1.01x scale.
And that would cause the code to reenter this codepath with the goal to
generate an offscreen at 1x scale.
And indeed, this would lead to infinite recursion.
Tests included.
Fixes #6553
2024-04-09 17:39:32 +02:00
Juliano de Souza Camargo
be9d98ed38
Update Brazilian Portuguese translation
2024-04-09 13:31:35 +00:00
Leônidas Araújo
944274bc58
Update Brazilian Portuguese translation
...
(cherry picked from commit 235388fdcd
)
2024-04-09 13:26:40 +00:00
Sabri Ünal
b555e909c4
Update Turkish translation
2024-04-09 09:55:55 +00:00
Matthijs Velsink
c0b813940e
builder: Show warning for invalid action on GtkShortcut
...
The parsing for a `GTK_TYPE_SHORTCUT_ACTION` on a GtkShortcut in a
builder file can fail, resulting in a `NULL` GtkShortcutAction. This
currently does not result in any warnings, potentially making typos in
builder files tricky to debug.
Since `gtk_shortcut_action_parse_builder()` already sets an error if it
fails, we can just use that and simply return false.
2024-04-09 02:41:57 +02:00
Benjamin Otte
9fe9ea34fd
vulkan: Handle generating mipmaps for 1x1 images
...
Testcase included.
2024-04-08 21:06:54 +02:00
Hansem Ro
d90dc7f75e
xi2: Fix incorrect input source type in Input debug message
...
This drops cursor and eraser source names to account for their removal
from GdkInputSource so that GDK_DEBUG=input debug message correctly
prints source type in X11 environment.
Fixes: c1d90273
("gdk: Drop GDK_SOURCE_ERASER")
Fixes: 3285f52d
("gdk: Drop GDK_SOURCE_CURSOR")
Closes : #6619
2024-04-08 10:15:00 -07:00
Matthias Clasen
f36f1b9829
Merge branch 'dmabuf-glarea' into 'main'
...
One approach to dmabufs in glarea
See merge request GNOME/gtk!7116
2024-04-07 17:24:33 +00:00