Chun-wei Fan [Fri, 24 Mar 2023 03:08:26 +0000 (11:08 +0800)]
GDK-Win32: Add wrapper functions for calling core wgl* functions
We might be dealing with GL contexts from different threads, which have more
gotchas when we are using libepoxy, so in case the function pointers for
these are invalidated by wglMakeCurrent() calls outside of GTK/GDK, such as
in GstGL, we want to use these functions that are directly linked to
opengl32.dll provided by the system/ICD, by linking to opengl32.lib.
This will ensure that we will indeed call the "correct" wgl* functions that
we need.
This should help fix issue #5685.
Benjamin Otte [Fri, 24 Mar 2023 05:18:08 +0000 (05:18 +0000)]
Merge branch 'wip/otte/for-main' into 'main'
listview: Activatable means activate
See merge request GNOME/gtk!5709
Benjamin Otte [Fri, 24 Mar 2023 01:53:42 +0000 (02:53 +0100)]
columnview: Don't infloop when a cell is grab_focus()ed
Whoopsie.
Broken since
30d4629043f.
Benjamin Otte [Thu, 23 Mar 2023 19:37:57 +0000 (20:37 +0100)]
listview: Activatable means activate
Fix a typo that prevented activatable widgets from activating since the
refactoring in
608be08b0d6.
Matthias Clasen [Fri, 24 Mar 2023 03:43:21 +0000 (03:43 +0000)]
Merge branch 'mipmap-tracking' into 'main'
gsk: Avoid copying GL texture in more cases
See merge request GNOME/gtk!5704
Matthias Clasen [Thu, 23 Mar 2023 12:47:54 +0000 (08:47 -0400)]
gsk: Avoid copying GL texture in more cases
When the GL texture already has a mipmap, we don't
have to download and reupload it to generate one.
We differentiate the handling for texture scale nodes,
where we do want to force the mipmap creation even if
it requires us to reupload the GL texture, and plain
texture nodes, where we just take advantage of a
preexisting mipmap to allow trilinear filtering for
downscaling, or create one if we have to upload the
texture anyway.
Matthias Clasen [Thu, 23 Mar 2023 12:44:26 +0000 (08:44 -0400)]
gl: Add a private way to query mipmap status
Make GdkGLTexture determine if the texture has
a mipmap, and provide private API to query this
information.
This check is done in gdkgltexture.c instead of
gskgldriver.c, since we're already binding the
texture here for other reasons, so it is easy
to query a few more things.
Matthias Clasen [Fri, 24 Mar 2023 03:03:31 +0000 (03:03 +0000)]
Merge branch 'check-widget-on-destruction' into 'main'
gtkwidget: Do a type-check in gtk_widget_in_destruction()
See merge request GNOME/gtk!5708
Matthias Clasen [Fri, 24 Mar 2023 02:56:06 +0000 (22:56 -0400)]
gltexture: Try harder to determine the format
We can query these things as long as the texture ID
is valid in the current context.
Marco Trevisan (Treviño) [Fri, 24 Mar 2023 02:29:53 +0000 (03:29 +0100)]
gtkwidget: Do a type-check in gtk_widget_in_destruction()
Given it can be called during a widget destruction, it's safer to do a
type-check before crashing.
See: https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1727
Boyuan Yang [Thu, 23 Mar 2023 18:46:30 +0000 (18:46 +0000)]
Update Chinese (China) translation
Emmanuele Bassi [Thu, 23 Mar 2023 11:07:18 +0000 (11:07 +0000)]
Merge branch 'fix-a11y-leak2' into 'main'
Don't leak all AT contexts
Closes #5690
See merge request GNOME/gtk!5700
Benjamin Otte [Thu, 23 Mar 2023 05:38:29 +0000 (05:38 +0000)]
Merge branch 'wip/otte/listview-cleanups' into 'main'
listview refactoring and new stuff
See merge request GNOME/gtk!5701
Benjamin Otte [Thu, 23 Mar 2023 03:37:29 +0000 (04:37 +0100)]
columnview: Handle focus movement properly
- grab_focus() on a row (happens with scroll_to()) keeps the focus
column intact if possible.
- <Tab> and <Shift-Tab> move through the cells in order, and move
to the next row when at the end.
- <Up> an <Down> move to the next/prev row, keeping the same column
focused.
- <Left> and <Right> move to the prev/next cell, if one is available.
If not, they stay where they are.
Benjamin Otte [Thu, 23 Mar 2023 02:35:04 +0000 (03:35 +0100)]
columnview: add a (private) focus-column
Make setting the focus column scroll to it, too.
Benjamin Otte [Tue, 21 Mar 2023 13:08:14 +0000 (14:08 +0100)]
columnviewrowwidget: Handle left/right arrow keys
Make it move focus just like GtkWindow would.
Otherwise the listview will (try to) handle it and move focus between
cells - which doesn't do anything for lists and only works with grids.
Benjamin Otte [Tue, 21 Mar 2023 12:47:24 +0000 (13:47 +0100)]
listbase: Only grab_focus() if the cursor moved
If there is no movement, grab_focus() on the already focused widget
just causes weird inconsistencies and we don't want those.
Benjamin Otte [Tue, 21 Mar 2023 12:43:35 +0000 (13:43 +0100)]
columnviewrow: Handle focus movement properly
Handle backwards tab properly and deal with left right arrows.
Benjamin Otte [Wed, 15 Mar 2023 01:12:33 +0000 (02:12 +0100)]
listitemwidget: Only take a single child
Benjamin Otte [Mon, 13 Mar 2023 16:39:52 +0000 (17:39 +0100)]
columnviewrowwidget: Drop unneeded stuff
Also remove the GtkColumnListItemFactory and GtkColumnViewLayout
objects by folding them into GtkColumnViewRowWidget.
Benjamin Otte [Mon, 13 Mar 2023 04:04:29 +0000 (05:04 +0100)]
columnview: Add GtkColumnViewRowWidget
This is a copy/paste of GtkListItemWidget for now.
Modifications will happen in future commits.
Benjamin Otte [Mon, 20 Mar 2023 05:15:18 +0000 (06:15 +0100)]
listview: Add private GtkListFactoryWidget
This is a split of GtkListItemWidget into the generic parts of factory
using widgets.
On top of it there's GtkListItemWidget, which takes care of GtkListItem.
Benjamin Otte [Sun, 12 Mar 2023 21:03:03 +0000 (22:03 +0100)]
listview: Move ::factory out of the item manager
It's a listitemwidget property, and the item manager manages the items,
not the widgets.
Benjamin Otte [Sun, 12 Mar 2023 20:54:07 +0000 (21:54 +0100)]
listview: Move ::single-click-activate out of the item manager
It's a listitemwidget property, and the item manager manages the items,
not the widgets.
Benjamin Otte [Sun, 12 Mar 2023 17:36:57 +0000 (18:36 +0100)]
listitemmanager: Create widgets via vfunc
We now have listitemmanager just create GtkListItemBase objects via
vfunc and use them.
Benjamin Otte [Sun, 12 Mar 2023 04:05:48 +0000 (05:05 +0100)]
listitemwidget: split out GtkListItemBase
There's 2 reasons for this:
1. Adding a custom widget for columnview rows
2. Using this as base class for sections
Benjamin Otte [Sun, 12 Mar 2023 00:13:37 +0000 (01:13 +0100)]
itemmananger: Remove the user data
Use the widget instead. They're the same anyway.
Benjamin Otte [Sat, 11 Mar 2023 16:22:36 +0000 (17:22 +0100)]
listbase: Privatize 2 functions
They're not used outside of GtkListBase, so no use to have them in the
header.
Requires moving one function up in the source now that the forward
declaration is missing.
Benjamin Otte [Sat, 11 Mar 2023 16:41:06 +0000 (17:41 +0100)]
listitemmanager: Clean up header
Remove all unused functions and an unused macro.
Matthias Clasen [Thu, 23 Mar 2023 03:41:40 +0000 (23:41 -0400)]
Don't leak all AT contexts
create_at_context was confused - it stored a reference
to the newly created context in priv->context, but then
also returned a reference, and the caller stored that
in priv->context again.
Change it to only return a reference.
Fixes: #5690
Matthias Clasen [Thu, 23 Mar 2023 02:42:28 +0000 (02:42 +0000)]
Merge branch 'texture-scale-test' into 'main'
gsk: Add a test for scaled textures
See merge request GNOME/gtk!5686
Bruce Cowan [Wed, 22 Mar 2023 15:46:17 +0000 (15:46 +0000)]
Update British English translation
(cherry picked from commit
d80cecec06c5196bad93be38cc11db86715cca77)
Matthias Clasen [Wed, 22 Mar 2023 10:48:55 +0000 (10:48 +0000)]
Merge branch 'ebassi/ensure-file-chooser-types' into 'main'
Ensure GtkFileChooserCell's type
See merge request GNOME/gtk!5696
Emmanuele Bassi [Wed, 22 Mar 2023 10:23:28 +0000 (10:23 +0000)]
Ensure GtkFileChooserCell's type
Otherwise anything that dlopen()'s GTK will have a bad day.
See: https://discourse.gnome.org/t/strange-filechooserdialog-behaviour-in-gtk-4-10/14435
Matthias Clasen [Wed, 22 Mar 2023 03:26:55 +0000 (23:26 -0400)]
gsk: Improve slice handling
Upload slices in chunks, instead of copying
enormous amounts of memory.
Matthias Clasen [Wed, 22 Mar 2023 02:55:03 +0000 (22:55 -0400)]
gsk: Add more flexible texture upload
Add a command queue function to create a
GL texture by uploading several GdkTextures
at given positions.
This lets us 'piece together' textures.
Matthias Clasen [Tue, 21 Mar 2023 02:43:35 +0000 (22:43 -0400)]
gsk: Tweak one test to pass
Clip away the problematic corners in this
artificial texture scaling test. The GL renderer
has problems getting them perfect.
Matthias Clasen [Tue, 21 Mar 2023 01:49:42 +0000 (21:49 -0400)]
gsk: Drop debug code
Matthias Clasen [Tue, 21 Mar 2023 02:02:17 +0000 (22:02 -0400)]
gsk: Drop some unused arguments
All callers of the slice apis pass 0 for
min_rows and min_cols. So just drop these.
Matthias Clasen [Mon, 20 Mar 2023 11:57:13 +0000 (07:57 -0400)]
gsk: Use overlapping slices
Store texture coordinates for each slice
instead of assuming 0,0,1,1, and generate
overlapping slices to allow for proper mipmaps.
This almost fixes trilinear filtering with
sliced textures.
Matthias Clasen [Mon, 20 Mar 2023 00:25:14 +0000 (20:25 -0400)]
gsk: Add a test for scaled textures
GL and cairo disagree on this one, and have forever.
Whee!
Matthias Clasen [Mon, 20 Mar 2023 10:57:56 +0000 (06:57 -0400)]
gsk: Cosmetics
Matthias Clasen [Wed, 22 Mar 2023 00:24:52 +0000 (00:24 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
a11y: Add a test for gtk_accessible_role_to_name
See merge request GNOME/gtk!5694
Matthias Clasen [Wed, 22 Mar 2023 00:06:37 +0000 (20:06 -0400)]
a11y: Add a test for gtk_accessible_role_to_name
This should prevent !5693 from happening again
in the future.
Matthias Clasen [Tue, 21 Mar 2023 18:05:50 +0000 (18:05 +0000)]
Merge branch 'fix_gtk_accessible_role_to_name_crash' into 'main'
fix crash with gtk_accessible_role_to_name and GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON
See merge request GNOME/gtk!5693
Caolán McNamara [Tue, 21 Mar 2023 15:04:12 +0000 (15:04 +0000)]
fix crash with gtk_accessible_role_to_name and GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON
presumably since:
commit
de80f503e4db282a7343aa16d2803967d4179739
Date: Thu Feb 23 14:22:20 2023 +0100
a11y: Introduce a dedicated role for toggle buttons
Benjamin Otte [Tue, 21 Mar 2023 13:26:09 +0000 (13:26 +0000)]
Merge branch 'wip/otte/for-main' into 'main'
checkbutton: Only andle arrow focus if we're in a group
See merge request GNOME/gtk!5692
Benjamin Otte [Sun, 19 Mar 2023 22:24:42 +0000 (23:24 +0100)]
testsuite: Add a treelistmodel test
This one exhaustively tests reusing the same model as a child model for
many nodes.
This tracks that multiple items-changed signals emitted at the same time
(or multiple handlers for one such signal) doesn't put the treelistmodel
in an inconsistent state while it is handling all of them.
I'm not sure this (ab)use of treelistmodel should be officially
supported, but it works today, so let's test it to see if we can keep it
working.
Benjamin Otte [Tue, 21 Mar 2023 13:06:33 +0000 (14:06 +0100)]
checkbutton: Only andle arrow focus if we're in a group
If there is no other widget in the group that we can focus, don't focus
and activate ourselves.
Otherwise the arrow keys on checkbuttons toggle the checkbutton.
Matthias Clasen [Mon, 20 Mar 2023 23:06:44 +0000 (23:06 +0000)]
Merge branch 'disabled-picture-opacity-fix' into 'main'
theme: Use 0.5 opacity for disabled pictures
Closes #5683
See merge request GNOME/gtk!5689
Marco Trevisan (Treviño) [Mon, 20 Mar 2023 22:38:35 +0000 (23:38 +0100)]
theme: Use 0.5 opacity for disabled pictures
If a GtkImage is using an icon we use a gtk-icon-filter to se the icon
opacity when in insensitive state, however when using other kinds of
pictures we do not apply the same style leading to an inconsistent
result.
Closes: #5683
Matthias Clasen [Mon, 20 Mar 2023 14:39:15 +0000 (14:39 +0000)]
Merge branch 'alatiera/fedora-bump' into 'main'
ci: Use Fedora 38 as the base
See merge request GNOME/gtk!5688
Jordan Petridis [Mon, 20 Mar 2023 14:15:05 +0000 (16:15 +0200)]
vulkan: Update error codes enum
Jordan Petridis [Mon, 20 Mar 2023 13:47:10 +0000 (15:47 +0200)]
ci: Use Fedora 38 as the base
Matthias Clasen [Mon, 20 Mar 2023 11:23:21 +0000 (11:23 +0000)]
Merge branch 'bilelmoussaoui-main-patch-49195' into 'main'
g-i: Add since annotation to GdkSurfaceSize
See merge request GNOME/gtk!5687
Bilal Elmoussaoui [Mon, 20 Mar 2023 08:14:25 +0000 (08:14 +0000)]
g-i: Add since annotation to GdkSurfaceSize
Matthias Clasen [Mon, 20 Mar 2023 02:04:21 +0000 (02:04 +0000)]
Merge branch 'mipmap-more' into 'main'
gsk: Use mipmaps when it is beneficial
See merge request GNOME/gtk!5685
Matthias Clasen [Mon, 20 Mar 2023 01:44:54 +0000 (21:44 -0400)]
gsk: Use mipmaps when it is beneficial
If a texture node ends up getting scaled
down a lot, it helps to use trilinear filtering.
Benjamin Otte [Sun, 19 Mar 2023 17:07:53 +0000 (17:07 +0000)]
Merge branch 'wip/otte/for-main' into 'main'
treelistmodel: Clear item in right place
Closes #5681
See merge request GNOME/gtk!5682
Benjamin Otte [Sun, 19 Mar 2023 16:30:18 +0000 (17:30 +0100)]
treelistmodel: Clear item in right place
Items should be cleared when the node is discarded, not when the node's
children are discarded - which can also happen when a node is collapsed.
Fixes an error introduced in
9048e391b60e19ccefa0b9fe51c466d16b42dcc4
Fixes #5681
Matthias Clasen [Sun, 19 Mar 2023 14:54:34 +0000 (14:54 +0000)]
Merge branch 'texture-scale-tests' into 'main'
node-editor: Embed textures in testcases
See merge request GNOME/gtk!5681
Matthias Clasen [Sun, 19 Mar 2023 14:21:19 +0000 (10:21 -0400)]
ci: Make reports for all setups
Matthias Clasen [Sun, 19 Mar 2023 14:19:00 +0000 (10:19 -0400)]
testsuite: Improve setup name consistency
Rename the 'waylandgles' test setup to 'wayland_gles'.
Matthias Clasen [Sun, 19 Mar 2023 14:16:19 +0000 (10:16 -0400)]
ci: Run tests with small textures
Matthias Clasen [Sun, 19 Mar 2023 14:08:01 +0000 (10:08 -0400)]
testsuite: Add a test setup for slicing
Add a 'wayland_smalltexture' test setup that forces
the max texture size to be 1024, which lets us test
the texture slicing codepaths.
Matthias Clasen [Sun, 19 Mar 2023 14:05:52 +0000 (10:05 -0400)]
testsuite: Add some texture tests
In constrast to our other tests, these use
textures that are big enough to force slicing
with setting GSK_MAX_TEXTURE_SIZE, which we
will use in the following commits to improve
test coverage.
Matthias Clasen [Sun, 19 Mar 2023 14:04:46 +0000 (10:04 -0400)]
node-editor: Embed textures in testcases
It is useless to have node files with references
to external files in the testsuite, so turn such
textures into data urls by doing a serialization
roundtrip.
Benjamin Otte [Sun, 19 Mar 2023 06:23:46 +0000 (06:23 +0000)]
Merge branch 'wip/otte/for-main' into 'main'
Fix inspector doing weird stuff
Closes #5646
See merge request GNOME/gtk!5678
Benjamin Otte [Sun, 19 Mar 2023 04:25:52 +0000 (05:25 +0100)]
treelistmodel: Clarify docs
No user knows that we have an internal function called
gtk_tree_list_row_destroy() that gets called when a row gets removed
from the treelistmodel.
So everyone was probably just making stuff up about what "destroy"
means.
Related: #5646
Benjamin Otte [Sun, 19 Mar 2023 04:22:46 +0000 (05:22 +0100)]
treelistmodel: Track the item in the row
That way, we can return the item even after the row is removed. This is
particularly relevant in ListItemFactory::unbind callbacks because they
often use gtk_tree_list_row_get_item() and user code never tracks
changes to this property.
A side effect of this is that the item will survive until the row gets
destroyed, but that's what users expect anyway, so we can live with it.
Related: #5646
Benjamin Otte [Sun, 19 Mar 2023 04:04:51 +0000 (05:04 +0100)]
treelistmodel: Cache the item
This is a good idea to avoid reentrancy problems when any child model
(or potentially more than one child model) has started emitting
items-changed but the emission hasn't arrived in this model yet.
At tat point, we'd get_item() the wrong item from those models.
We want to avoid such cases of reentrancy.
Related: #5646
Benjamin Otte [Sun, 19 Mar 2023 04:07:17 +0000 (05:07 +0100)]
cssnode: Refer the correct previous item
We disconnect from old_previous, not from the new previous.
Related: #5646
Matthias Clasen [Sun, 19 Mar 2023 01:54:57 +0000 (01:54 +0000)]
Merge branch 'wip/matthiasc/samplers' into 'main'
glrenderer: Handle filters differently
See merge request GNOME/gtk!5676
Benjamin Otte [Fri, 17 Mar 2023 05:26:05 +0000 (06:26 +0100)]
glrenderer: Support GL without samplers
We cheat and just set the texture parameters instead and hope nothing
explodes.
So far it didn't.
This is only needed to support GLES 2.0 so it's quite a limited set of
hardware these days.
Benjamin Otte [Fri, 17 Mar 2023 05:14:53 +0000 (06:14 +0100)]
glrenderer: Handle filters differently
Instead of uploading a texture once per filter, ensure textures are
uploaded as little as possible and use samplers instead to switch
different filters.
Sometimes we have to reupload a texture unfortunately, when it is an
external one and we want to create mipmaps.
Matthias Clasen [Sat, 18 Mar 2023 22:56:22 +0000 (22:56 +0000)]
Merge branch 'docs-tweaks' into 'main'
dropdown: tweak the docs
See merge request GNOME/gtk!5677
Matthias Clasen [Sat, 18 Mar 2023 14:25:41 +0000 (10:25 -0400)]
docs: Cosmetics
Matthias Clasen [Sat, 18 Mar 2023 14:24:32 +0000 (10:24 -0400)]
docs: Tweaks
Tweak the wording in the list widget overview to
fix some typos and make things read more smoothly.
Matthias Clasen [Sat, 18 Mar 2023 14:24:06 +0000 (10:24 -0400)]
dropdown: tweak the docs
Add a link to the list widget overview.
Piotr Drąg [Sat, 18 Mar 2023 11:32:00 +0000 (12:32 +0100)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Sat, 18 Mar 2023 04:25:25 +0000 (04:25 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gsk: Drop texture subsetting
See merge request GNOME/gtk!5675
Matthias Clasen [Sat, 18 Mar 2023 04:10:38 +0000 (00:10 -0400)]
gsk: Drop texture subsetting
We don't do this for unfiltered textures either,
and with working slicing, it isn't needed.
Matthias Clasen [Sat, 18 Mar 2023 03:55:56 +0000 (03:55 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Stop binding textdomain for -properties
See merge request GNOME/gtk!5674
Matthias Clasen [Sat, 18 Mar 2023 03:35:45 +0000 (23:35 -0400)]
Stop binding textdomain for -properties
We don't have these translations anymore.
Matthias Clasen [Sat, 18 Mar 2023 02:47:04 +0000 (02:47 +0000)]
Merge branch 'fix-excessive-texture-uploads' into 'main'
gsk: Avoid reuploading textures too much
See merge request GNOME/gtk!5673
Matthias Clasen [Sat, 18 Mar 2023 02:28:27 +0000 (22:28 -0400)]
gsk: Avoid reuploading textures too much
When filtering changes for an already-cached
texture, we need to clear the render data
before setting the new one, otherwise it
does not take and we end up reuploading
the texture every frame.
Matthias Clasen [Sat, 18 Mar 2023 02:22:43 +0000 (02:22 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gtk4-builder-tool: Localization fixes
See merge request GNOME/gtk!5672
Matthias Clasen [Sat, 18 Mar 2023 02:04:25 +0000 (22:04 -0400)]
gtk4-builder-tool: Localization fixes
Be consistent about marking strings for
translation. And make locatization actually
work by including gi18n-lib.h instead of gi18n.h.
Danial Behzadi [Sat, 18 Mar 2023 01:10:45 +0000 (01:10 +0000)]
Update Persian translation
(cherry picked from commit
f55cbf56437e3e9da3a5998e583e523761243f0a)
Matthias Clasen [Fri, 17 Mar 2023 16:32:28 +0000 (16:32 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gtk-demo: Reset properties when the image changes
See merge request GNOME/gtk!5671
Matthias Clasen [Fri, 17 Mar 2023 15:48:44 +0000 (11:48 -0400)]
gtk-demo: Reset properties when the image changes
Matthias Clasen [Fri, 17 Mar 2023 15:44:07 +0000 (15:44 +0000)]
Merge branch 'texture-scale-slicing' into 'main'
gsk: Be more careful when slicing
Closes #5664
See merge request GNOME/gtk!5667
Matthias Clasen [Fri, 17 Mar 2023 15:25:38 +0000 (11:25 -0400)]
gsk: Drop texture subsetting
We don't do this for unfiltered textures either,
and with working slicing, it isn't needed.
Matthias Clasen [Fri, 17 Mar 2023 15:14:44 +0000 (15:14 +0000)]
Merge branch 'broadway-disconnect-fix' into 'main'
broadway: Don't cause traffic when disconnecting
See merge request GNOME/gtk!5670
Matthias Clasen [Fri, 17 Mar 2023 14:59:05 +0000 (10:59 -0400)]
broadway: Don't cause traffic when disconnecting
The recently added transient-for support was causing
roundtrips when a client with transients disconnects,
leading to assertion failures. Avoid that.
Matthias Clasen [Fri, 17 Mar 2023 13:17:19 +0000 (13:17 +0000)]
Merge branch 'fix-broadway-docs' into 'main'
docs: Update broadway docs
Closes #5662
See merge request GNOME/gtk!5669
Matthias Clasen [Fri, 17 Mar 2023 12:56:23 +0000 (08:56 -0400)]
docs: Update broadway docs
Using Broadway without broadwayd hasn't worked since 2013...
Fixes: #5662
Matthias Clasen [Fri, 17 Mar 2023 04:50:27 +0000 (00:50 -0400)]
gsk: Add slicing to texture scale nodes
This makes it possible to use large textures
with filtering.
Fixes: #5664
Matthias Clasen [Fri, 17 Mar 2023 04:50:01 +0000 (00:50 -0400)]
gsk: Be more careful when slicing
We can only reuse existing slices if they
have the right filtering.
Benjamin Otte [Fri, 17 Mar 2023 00:37:52 +0000 (00:37 +0000)]
Merge branch 'wip/otte/for-main' into 'main'
Various fixes
Closes #5669
See merge request GNOME/gtk!5665