Matthias Clasen
b4d7ac660d
Merge branch 'vulkan-validation-ci' into 'main'
...
ci: Create an F41 image
See merge request GNOME/gtk!8087
2025-01-09 00:41:26 +00:00
Matthias Clasen
6bed6d88ef
ci: Create an F41 image
...
And add vulkan-validation-layers to the package list, so that
we can enable the Vulkan validation for one of our testsuite
runs.
2025-01-08 19:12:03 -05:00
Matthias Clasen
0c51b7528c
Merge branch 'for-main' into 'main'
...
Try to fix textview cursors going missing
Closes #4979
See merge request GNOME/gtk!8085
2025-01-08 23:54:36 +00:00
Matthias Clasen
2301e73f23
text layout: Add an assertion
...
It is bad news if we end up in snapshot() with lines that are
(partially) invalid. For example, we may end up with the line
that contains the cursors having its cursors array purged,
causing us to not draw the blinking cursor despite us changing
cursor alpha in a tick callback.
Add an assertion to catch this when it happens.
2025-01-08 18:39:22 -05:00
Matthias Clasen
6edcaf1a43
text: Fix handling of cursor invalidation
...
The GtkTextLineDisplayCache was sometimes losing track of the
line containing the cursor, and then we end up snapshotting lines
that have display_line->cursors_invalid set, which sadly means
that we would not render any cursors. Fix that.
2025-01-08 18:38:55 -05:00
Benjamin Otte
aca43aa2a8
Merge branch 'wip/otte/for-main' into 'main'
...
gpu: Don't double clip edges
See merge request GNOME/gtk!8086
2025-01-08 18:23:11 +00:00
Benjamin Otte
9c60c8b0c7
gpu: Don't double clip edges
...
Due to using offscreens when drawing shadows, we are drawing twice:
Once into the offscreen and then the offscreen into the backbuffer.
We were using the node bounds rectangle for both of these operations
which caused the edge to be antialiased twice - if the edge was not
pixel-aligned.
This was a cause of the label-shadows.ui reftest randomly breaking on
some setups.
Test added.
2025-01-08 18:52:41 +01:00
Matthias Clasen
85b08355fb
text: Drop keyboard direction leftovers
...
Now that we are no longer relying on keyboard direction to
determine the direction of empty entries, there's no need
for a direction-changed signal handler.
2025-01-07 22:10:08 -05:00
Matthias Clasen
3e6d70c0a1
Merge branch 'for-main' into 'main'
...
Add a helper for guessing scales
See merge request GNOME/gtk!8084
2025-01-07 11:34:16 +00:00
Matthias Clasen
23829f31e3
window: Fix scale handling
...
Don't keep a private copy of the scale factor that doesn't get
updated on scale changes.
2025-01-06 20:54:01 -05:00
Matthias Clasen
453ca73d26
Add a helper for guessing scales
...
Add gdk_display_guess_scale_factor and use it in both places
where we were open-coding the same heuristics.
2025-01-06 18:52:26 -05:00
Matthias Clasen
4f47e98017
wayland: Drop an unused helper
2025-01-06 17:43:12 -05:00
Matthias Clasen
60832d8b2e
Merge branch 'for-main' into 'main'
...
Drop accidentally committed files
See merge request GNOME/gtk!8081
2025-01-06 14:36:36 +00:00
Matthias Clasen
1ecdb81bfa
Drop accidentally committed files
...
These snuck into commit a291ca6643
.
2025-01-06 09:15:27 -05:00
Matthias Clasen
355a3dc18f
Merge branch 'deprecate-home-themes' into 'main'
...
css: Warn about for ~/.themes
See merge request GNOME/gtk!8067
2025-01-06 12:38:19 +00:00
Matthias Clasen
2f56ddb7f7
Merge branch 'action-keys' into 'main'
...
Add support for various action keys
See merge request GNOME/gtk!8076
2025-01-06 12:37:42 +00:00
Matthias Clasen
e515f6464e
Merge branch 'for-main' into 'main'
...
Fix a ui file mishap
See merge request GNOME/gtk!8075
2025-01-06 03:27:43 +00:00
Jules Bertholet
d7339c46c7
Add support for various action keys
...
Add support for the `Cut`, `Copy`, `Paste`,
`Undo`, and `Redo` keys to text views, and
`Find` to the file chooser widget.
These keys can be found on old keyboards,
but they will also be emitted by
custom layouts like [Extend](https://dreymar.colemak.org/layers-extend.html ).
Signed-off-by: Jules Bertholet <julesbertholet@quoi.xyz>
2025-01-05 22:17:58 -05:00
Matthias Clasen
71abb40214
Fix a ui file mishap
...
Translator comments in ui files go in xml comments.
This broke in commit 1519810883
.
2025-01-05 21:48:55 -05:00
Matthias Clasen
f8822bab3c
Merge branch 'for-main' into 'main'
...
builder: parse tab arrays and font descriptions
See merge request GNOME/gtk!8074
2025-01-06 02:11:40 +00:00
Matthias Clasen
06c822a447
builder: parse tab arrays and font descriptions
...
We have widgets with properties that have these types, so parsing
them is useful.
Tests included.
2025-01-05 20:57:53 -05:00
Matthias Clasen
5b378ac77d
Merge branch 'buildable-deprecations' into 'main'
...
Add deprecation warnings for <child>
See merge request GNOME/gtk!8069
2025-01-05 22:27:17 +00:00
Matthias Clasen
e1193a6eee
window: Warn about deprecated buildable features
...
<child> is deprecated for setting child properties
Affected ui files have been updated.
2025-01-05 17:02:06 -05:00
Matthias Clasen
fa17275dd0
windowhandle: Warn about deprecated buildable features
...
<child> is deprecated for setting child properties
2025-01-05 17:02:06 -05:00
Matthias Clasen
a21de66e25
overlay: Warn about buildable deprecations
...
child is a property.
Affedcted ui files have been updated.
2025-01-05 17:02:06 -05:00
Matthias Clasen
b80ebf6f45
flowboxchild: Warn about buildable deprecations
...
Child is a property.
2025-01-05 15:25:12 -05:00
Matthias Clasen
76e9564e5e
filefilter: Warn about deprecated buildable features
...
These can all be set as properties.
2025-01-05 15:25:11 -05:00
Matthias Clasen
b8cb738381
label: Warn about deprecated buildable features
...
Pango attributes are a property.
2025-01-05 15:25:11 -05:00
Matthias Clasen
f65141df1a
entry: Warn about deprecated buildable features
...
Pango attributes are a property.
2025-01-05 15:25:11 -05:00
Matthias Clasen
1519810883
stringlist: Warn about deprecated buildable features
...
<items> is deprecated for the items property.
Affected ui files have been updated.
2025-01-05 15:25:11 -05:00
Matthias Clasen
cff1010f67
centerbox: Warn about buildable deprecations
...
start-, center-, end-widget are properties.
Affected ui files have been updated.
2025-01-05 15:25:11 -05:00
Matthias Clasen
0a58341f40
viewport: Warn about deprecated buildable features
...
<child> is deprecated for setting child propertie
Affected ui files have been updated.
2025-01-05 15:25:11 -05:00
Matthias Clasen
a9e064218b
searchbar: Warn about deprecated buildable features
...
<child> is deprecated for setting child properties
Affected ui files have been updated.
2025-01-05 15:25:11 -05:00
Matthias Clasen
70c765ae97
scrolledwindow: Warn about deprecated buildable features
...
<child> is deprecated for setting child properties
Affected ui files have been updated.
2025-01-05 15:25:11 -05:00
Matthias Clasen
05fd68ed8c
headerbar: Warn about buildable deprecations
...
The title widget is a property.
Affected ui files have been updated.
2025-01-05 15:25:11 -05:00
Matthias Clasen
b071064990
revealer: Warn about deprecated buildable features
...
<child> is deprecated for setting child properties
Affected ui files have been updated.
2025-01-05 15:25:11 -05:00
Matthias Clasen
b3d52cd311
popover: Warn about deprecated buildable features
...
<child> is deprecated for setting child properties
Affected ui files have been updated.
2025-01-05 15:25:11 -05:00
Matthias Clasen
98bed3561e
menubutton: Warn about deprecated buildable features
...
<child> is deprecated for setting child properties
2025-01-05 15:25:11 -05:00
Matthias Clasen
458560505e
button: Warn about deprecated buildable features
...
<child> is deprecated for setting child properties.
Affected ui files have been updated.
2025-01-05 15:25:11 -05:00
Benjamin Otte
bfb9a2bd73
Merge branch 'udmabuffer-stride-256' into 'main'
...
testsuite: Align udmabuf stride to 256
See merge request GNOME/gtk!8072
2025-01-05 20:10:45 +00:00
Janne Grunau
d903433315
testsuite: Align udmabuf stride to 256
...
Aligned stride is necessary for compatibility with GPUs. Recent AMD GPUs
require 256 for non RGB formats. Direct3D 12's RowPitch in
D3D12_SUBRESOURCE_FOOTPRINT requires 256 as well so HW targeting D3D12
will not require a larger alignment.
Fixes: 6cefdfeddd
("testsuite: Fix udmabuf creation")
2025-01-05 19:09:36 +01:00
Matthias Clasen
bfe825fa37
paned: Warn about deprecated buildable features
...
<child> is deprecated for setting child properties.
Affected ui files have been updated.
2025-01-05 09:58:06 -05:00
Matthias Clasen
a291ca6643
aspectframe: Warn about deprecated buildable features
...
<child> is deprecated for <property name="child">.
2025-01-05 09:50:16 -05:00
Matthias Clasen
8a18edc604
frame: Warn about deprecated buildable features
...
<child type="label"> is deprecated for <property name="label-widget">.
2025-01-05 09:50:14 -05:00
Matthias Clasen
077fc992ed
expander: Warn about deprecated buildable features
...
<child type="label"> is deprecated for <property name="label-widget">.
Affected ui files have been updated.
2025-01-05 09:40:25 -05:00
Matthias Clasen
69d532fe97
builder: Add helpers for deprecations
2025-01-04 12:29:00 -05:00
Matthias Clasen
d206f59563
builder-tool: Use the new debug flag
...
When asked to warn about deprecations, set the GTK_BUILDER_DEBUG
flag.
2025-01-04 12:18:59 -05:00
Matthias Clasen
7918d4b3a6
Add a new builder debug flag
...
Use GTK_DEBUG=builder to report deprecated GtkBuilder features.
2025-01-04 12:18:59 -05:00
Matthias Clasen
286325879a
Rename a debug flag
...
Change GTK_DEBUG=builder to GTK_DEBUG=builder-trace.
2025-01-04 12:18:59 -05:00
Matthias Clasen
0046fae326
docs: Add a missing debug key
...
Document GTK_DEBUG=css.
2025-01-04 12:18:59 -05:00