Benjamin Otte
1f8045ddbe
vulkan: Do intersection check for every node
...
This is more expensive, but it finds more cases, and in particular it
catches corner cases like empty nodes or fully clipped nodes that might
otherwise make the kernel throw signals in our direction.
2023-06-11 03:54:50 +02:00
Benjamin Otte
82ba8c848b
vulkan: Handle empty rects in intersects_rect()
...
Apart from the none case, this was already handled, so we just check if
the rect is empty now.
2023-06-11 03:15:08 +02:00
Benjamin Otte
cf48f83709
mediafile: Load extension at startup with GTK_MEDIA
...
When the GTK_MEDIA env var is set, check at startup that it works, not
only when the first MediaFile is instantiated.
This has the fortunate side effect that it prints help output for
GTK_MEDIA=help at startup, too.
2023-06-11 03:14:55 +02:00
Matthias Clasen
9d79982677
Merge branch 'fontchooser-a11y' into 'main'
...
button: Improve accessible setup
See merge request GNOME/gtk!6081
2023-06-10 20:29:45 +00:00
Alice Mikhaylenko
27599d688e
menubutton: Horizontally expand child
...
Set hexpand on the outer box so we don't propagate that expand.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5883
2023-06-11 00:02:15 +04:00
Alice Mikhaylenko
c0d8716366
menubutton: Normalize label layout
...
- Remove unnecessary halign=center and hexpand=0 dance
- Set hexpand=false on the outer box so we don't propagate hexpand
2023-06-11 00:01:19 +04:00
Benjamin Otte
3681144768
Merge branch 'wip/otte/for-main' into 'main'
...
testsuite: Add another test to the listitemmanager
See merge request GNOME/gtk!6083
2023-06-10 18:51:05 +00:00
Benjamin Otte
c2fef6f6fd
listitemmanager: All sections without widgets are unmatched
...
We were failing to mark sections when both the start and end of the
untracked area fell on a section boundary.
Fixes testsuite failure in
https://gitlab.gnome.org/GNOME/gtk/-/jobs/2878290
2023-06-10 20:25:20 +02:00
Benjamin Otte
f06cfa2967
testsuite: Print update after changes, not before
...
This way, we don't do an empty print at the start and don't miss a print
at the end.
2023-06-10 20:25:20 +02:00
Benjamin Otte
2cbee7cf86
testsuite: Check that removing listitem trackers works properly
...
We remove them at the end, so just to be sure, check again.
(Guess if I added this check because removing failed.)
2023-06-10 20:25:20 +02:00
Benjamin Otte
f5cdd6fa32
testsuite: Add another test to the listitemmanager
...
Ensure the itemmanager doesn't lose any widgets by ensuring that the
tiles with widgets do account for all children of the list widget.
2023-06-10 20:25:20 +02:00
Matthias Clasen
c49c971f47
colorchooser: Improve accessibility
...
Set up missing accessible relations, labels and roles.
2023-06-10 13:59:32 -04:00
Matthias Clasen
4746e0bdc4
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Fix an oversight
See merge request GNOME/gtk!6082
2023-06-10 16:15:20 +00:00
Matthias Clasen
f20ef5a0fc
fontchooser: Improve accessibility
...
Set up missing accessible relations, labels and roles.
2023-06-10 11:29:12 -04:00
Matthias Clasen
cf30a4f304
button: Improve accessible setup
...
With the current approach, we get duplicate labels
in the accessible name: _Cancel Cancel. Change things
around to always set the labelled-by accessible relation
if we have a label, and not the label accessible property.
2023-06-10 11:29:12 -04:00
Matthias Clasen
ca189cb5f5
inspector: Fix an oversight
...
There is no margin property, so don't set it.
2023-06-10 11:09:50 -04:00
Matthias Clasen
5e07710f5a
Merge branch 'textview-ctrl-backspace' into 'main'
...
textview: Improve word navigation
Closes #737
See merge request GNOME/gtk!6080
2023-06-10 13:33:10 +00:00
Matthias Clasen
46bb5837e2
textview: Improve word navigation
...
Both Ctrl-Left and Ctrl-Backspace were failing
to step over a non-word at the beginning of
the line. Fix this to match GtkEntry behavior.
Fixes : #737
2023-06-10 09:05:34 -04:00
Matthias Clasen
1888f1e422
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Change sidebar tab behavior
Closes #3543
See merge request GNOME/gtk!6079
2023-06-10 11:03:02 +00:00
Matthias Clasen
e606313ad1
gtk-demo: Change sidebar tab behavior
...
Change the sidebar to use the 'item' tab
behavior.
Fixes : #3543
2023-06-10 00:02:29 -04:00
Matthias Clasen
b69bfe3799
testsuite: More memleak fixes
2023-06-09 23:23:32 -04:00
Matthias Clasen
5d07c71dd2
builder: Cosmetics
2023-06-09 23:23:32 -04:00
Matthias Clasen
8155b08de8
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Cosmetics
See merge request GNOME/gtk!6078
2023-06-10 03:17:14 +00:00
Matthias Clasen
0790f24773
gtk: Plug a memory leak
2023-06-09 22:40:38 -04:00
Matthias Clasen
5f02631812
gsk: Fully free mask nodes
...
We were forgetting to chain up in finalize. Oops
2023-06-09 22:40:38 -04:00
Matthias Clasen
c8133ecb50
gsk: Plug a memory leak
2023-06-09 22:40:38 -04:00
Matthias Clasen
b439398d09
testsuite: Plug some memory leaks
2023-06-09 22:40:38 -04:00
Matthias Clasen
fcb9048043
inspector: Show computed values in a11y tab
...
Show the name and description in the a11y tab.
These are not direct property values, but computed
according to ARIA rules.
2023-06-09 21:05:17 -04:00
Matthias Clasen
5816e2fe51
inspector: Cosmetics
...
Don't use technobabble like "fps overlay" in the UI.
2023-06-09 20:10:56 -04:00
Matthias Clasen
298fed6d94
Merge branch 'filechooser-sort-directories-first' into 'main'
...
FileChooser: Sort directories before files by default
See merge request GNOME/gtk!4284
2023-06-09 19:10:58 +00:00
Matthias Clasen
0557b29f5b
Merge branch 'matthiasc/for-main' into 'main'
...
Avoid deprecation warnings from GTK_ALIGN_BASELINE_FILL
Closes #5875
See merge request GNOME/gtk!6077
2023-06-09 14:18:51 +00:00
Matthias Clasen
4c65bdf707
Fix some typos in gtk.supp
...
Actually ignore the media module leak.
2023-06-09 08:28:36 -04:00
Matthias Clasen
351d747909
print: Drop one use of private api
...
We added public api for the foreground color
for just this case, so use it.
2023-06-09 08:23:09 -04:00
Matthias Clasen
53af7208e6
gdk: Fix an oversight in GdkContentFormats
...
When clearing a builder, reset the counts to 0.
Otherwise valgrind spots uninitialized memory
use in our testsuite.
2023-06-09 08:17:34 -04:00
Matthias Clasen
c67f3c5038
Avoid deprecation warnings from GTK_ALIGN_BASELINE_FILL
...
We have to be careful to only use GDK_ALIGN_BASELINE_FILL when
permitted by GDK_VERSION_MAX_ALLOWED because gtkenums.h is a
public header.
Fixes : #5875
I don't think we can avoid conditional compilation here, because the old definition is going to cause deprecated declaration warnings unless you define an old GDK_VERSION_MIN_REQUIRED.
2023-06-09 08:17:34 -04:00
Daniel Boles
1bee1cd180
DrawingArea: Document Widget.get_color, !StyleCont
...
StyleContext is deprecated. To just get foreground colour we now have a
method on Widget, so use that in this example, instead of StyleContext.
2023-06-09 13:02:40 +01:00
Piotr Drąg
e77a17b227
Update POTFILES.in and POTFILES.skip
2023-06-09 13:22:17 +02:00
Benjamin Otte
d8b4249ee9
Merge branch 'wip/otte/for-main' into 'main'
...
testsuite: Set GIO_USE_VFS=local everywhere
See merge request GNOME/gtk!6076
2023-06-09 00:47:26 +00:00
Matthias Clasen
da47d9cc3d
Merge branch 'print-subdir' into 'main'
...
Move printing code to its own directory
See merge request GNOME/gtk!6067
2023-06-09 00:32:45 +00:00
Benjamin Otte
53bebd2ed1
testsuite: Set GIO_USE_VFS=local everywhere
...
And do so centrally, not randomly in individual tests.
(Hopefully) fixes spurious test failures in CI.
Related: #5867
2023-06-09 02:29:24 +02:00
Benjamin Otte
ca9f0abdd8
Merge branch 'wip/otte/for-main' into 'main'
...
testsuite: Make memorytexture tests random
See merge request GNOME/gtk!6075
2023-06-08 23:54:07 +00:00
Matthias Clasen
8497f97dec
print: Reimplement collate preview
...
Redo this with widgets instead of cairo drawing.
The new private widget is called GtkPageThumbnail.
2023-06-08 19:51:28 -04:00
Matthias Clasen
f22788a3a8
print: Drop some private api use
2023-06-08 19:51:28 -04:00
Matthias Clasen
a30e0fad1f
Move resources too
2023-06-08 19:51:28 -04:00
Benjamin Otte
f033b6c2c6
testsuite: Don't always loop in memorytexture tests
...
When running the tests, only run the random (and potentially large) size
download test once instead of 10 times.
There's no real benefit in doing that, both because it's unlikely to
fail only in the 2nd or 9th run and because the sizes are picked
randomly.
This also speeds up the test massively as the download test was
dominating the runtime.
2023-06-09 01:12:32 +02:00
Benjamin Otte
45656ba426
testsuite: Make memorytexture tests random
...
Instead of picking a few numbers in advance and running them through the
test gauntlet every time, pick the random numbers at runtime.
This both increases the test coverage in that it ultimately tests more
combinations across many runs and it reduces the runtime of individual
runs because every tun only runs the download tests twice (with 1px and
the random size) instead of 5 times.
And that speedup benefits the CI, where the asan runs would cause this
test to timeout sometimes.
2023-06-09 01:12:32 +02:00
Benjamin Otte
83efe2b66c
Merge branch 'wip/otte/for-vulkan' into 'main'
...
vulkan: Fancy gradients
See merge request GNOME/gtk!6073
2023-06-08 21:57:07 +00:00
dgsasha
84840f1f2e
win32: Center newly created transient windows
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5407
2023-06-08 16:42:27 -04:00
Benjamin Otte
2883f4b7a2
vulkan: Antialiasing for linear gradients
...
Shaders are complicated now...
2023-06-08 22:16:18 +02:00
Benjamin Otte
0a0f0d9e7e
testsuite: Add a test for repeating gradients
...
Make sure scaling the image also scales the color stop lookup.
2023-06-08 22:16:18 +02:00