Marco Trevisan (Treviño)
a2076dd537
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
2023-03-20 23:46:08 +01:00
Matthias Clasen
75f9379cd5
Merge branch 'alatiera/fedora-bump' into 'main'
...
ci: Use Fedora 38 as the base
See merge request GNOME/gtk!5688
2023-03-20 14:39:15 +00:00
Jordan Petridis
f9b2d3104a
vulkan: Update error codes enum
2023-03-20 16:16:30 +02:00
Jordan Petridis
679657cc0f
ci: Use Fedora 38 as the base
2023-03-20 16:16:24 +02:00
Matthias Clasen
d712bdcd6d
Merge branch 'bilelmoussaoui-main-patch-49195' into 'main'
...
g-i: Add since annotation to GdkSurfaceSize
See merge request GNOME/gtk!5687
2023-03-20 11:23:21 +00:00
Bilal Elmoussaoui
aa0cd3a553
g-i: Add since annotation to GdkSurfaceSize
2023-03-20 08:14:25 +00:00
Matthias Clasen
244d36d3f4
Merge branch 'mipmap-more' into 'main'
...
gsk: Use mipmaps when it is beneficial
See merge request GNOME/gtk!5685
2023-03-20 02:04:21 +00:00
Matthias Clasen
a19cf02b16
gsk: Use mipmaps when it is beneficial
...
If a texture node ends up getting scaled
down a lot, it helps to use trilinear filtering.
2023-03-19 21:45:30 -04:00
Benjamin Otte
56b904f1e6
Merge branch 'wip/otte/for-main' into 'main'
...
treelistmodel: Clear item in right place
Closes #5681
See merge request GNOME/gtk!5682
2023-03-19 17:07:53 +00:00
Benjamin Otte
dd1e76e601
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 9048e391b6
Fixes #5681
2023-03-19 17:38:38 +01:00
Matthias Clasen
e850dc81ba
Merge branch 'texture-scale-tests' into 'main'
...
node-editor: Embed textures in testcases
See merge request GNOME/gtk!5681
2023-03-19 14:54:34 +00:00
Matthias Clasen
942c8eec73
ci: Make reports for all setups
2023-03-19 10:21:19 -04:00
Matthias Clasen
e7bb7785fa
testsuite: Improve setup name consistency
...
Rename the 'waylandgles' test setup to 'wayland_gles'.
2023-03-19 10:19:00 -04:00
Matthias Clasen
9705ccbe2f
ci: Run tests with small textures
2023-03-19 10:16:19 -04:00
Matthias Clasen
ace2122d45
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.
2023-03-19 10:15:22 -04:00
Matthias Clasen
80730a4014
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.
2023-03-19 10:05:52 -04:00
Matthias Clasen
0a3eceb15d
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.
2023-03-19 10:04:46 -04:00
Benjamin Otte
f211a2177f
Merge branch 'wip/otte/for-main' into 'main'
...
Fix inspector doing weird stuff
Closes #5646
See merge request GNOME/gtk!5678
2023-03-19 06:23:46 +00:00
Benjamin Otte
c463685286
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
2023-03-19 06:55:05 +01:00
Benjamin Otte
bf55685000
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
2023-03-19 06:55:05 +01:00
Benjamin Otte
9048e391b6
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
2023-03-19 06:55:05 +01:00
Benjamin Otte
f4be5c80c6
cssnode: Refer the correct previous item
...
We disconnect from old_previous, not from the new previous.
Related: #5646
2023-03-19 06:55:01 +01:00
Matthias Clasen
e8ea1b3c8b
Merge branch 'wip/matthiasc/samplers' into 'main'
...
glrenderer: Handle filters differently
See merge request GNOME/gtk!5676
2023-03-19 01:54:57 +00:00
Benjamin Otte
17c877659c
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.
2023-03-18 21:33:17 -04:00
Benjamin Otte
b5345b7f25
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.
2023-03-18 21:33:17 -04:00
Matthias Clasen
b59d45c5c7
Merge branch 'docs-tweaks' into 'main'
...
dropdown: tweak the docs
See merge request GNOME/gtk!5677
2023-03-18 22:56:22 +00:00
Matthias Clasen
0fb5331c31
docs: Cosmetics
2023-03-18 10:25:58 -04:00
Matthias Clasen
9a7bf66ed4
docs: Tweaks
...
Tweak the wording in the list widget overview to
fix some typos and make things read more smoothly.
2023-03-18 10:25:58 -04:00
Matthias Clasen
628157e44e
dropdown: tweak the docs
...
Add a link to the list widget overview.
2023-03-18 10:25:58 -04:00
Piotr Drąg
3f5e1589e2
Update POTFILES.in and POTFILES.skip
2023-03-18 12:32:00 +01:00
Matthias Clasen
be8a77171d
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Drop texture subsetting
See merge request GNOME/gtk!5675
2023-03-18 04:25:25 +00:00
Matthias Clasen
d31ba5f551
gsk: Drop texture subsetting
...
We don't do this for unfiltered textures either,
and with working slicing, it isn't needed.
2023-03-18 00:10:38 -04:00
Matthias Clasen
fb6e432afb
Merge branch 'matthiasc/for-main' into 'main'
...
Stop binding textdomain for -properties
See merge request GNOME/gtk!5674
2023-03-18 03:55:56 +00:00
Matthias Clasen
ee7c0ed1e8
Stop binding textdomain for -properties
...
We don't have these translations anymore.
2023-03-17 23:35:45 -04:00
Matthias Clasen
376f1053ec
Merge branch 'fix-excessive-texture-uploads' into 'main'
...
gsk: Avoid reuploading textures too much
See merge request GNOME/gtk!5673
2023-03-18 02:47:04 +00:00
Matthias Clasen
8aa095c4d7
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.
2023-03-17 22:31:10 -04:00
Matthias Clasen
f96d041246
Merge branch 'matthiasc/for-main' into 'main'
...
gtk4-builder-tool: Localization fixes
See merge request GNOME/gtk!5672
2023-03-18 02:22:43 +00:00
Matthias Clasen
2dc17aeca9
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.
2023-03-17 22:04:25 -04:00
Danial Behzadi
fda2010a9e
Update Persian translation
...
(cherry picked from commit f55cbf5643
)
2023-03-18 01:10:52 +00:00
Matthias Clasen
ac799542ee
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Reset properties when the image changes
See merge request GNOME/gtk!5671
2023-03-17 16:32:28 +00:00
Matthias Clasen
060ab606a2
gtk-demo: Reset properties when the image changes
2023-03-17 11:49:57 -04:00
Matthias Clasen
a1c02161ba
Merge branch 'texture-scale-slicing' into 'main'
...
gsk: Be more careful when slicing
Closes #5664
See merge request GNOME/gtk!5667
2023-03-17 15:44:07 +00:00
Matthias Clasen
3877a2e533
gsk: Drop texture subsetting
...
We don't do this for unfiltered textures either,
and with working slicing, it isn't needed.
2023-03-17 11:25:38 -04:00
Matthias Clasen
158facc2ca
Merge branch 'broadway-disconnect-fix' into 'main'
...
broadway: Don't cause traffic when disconnecting
See merge request GNOME/gtk!5670
2023-03-17 15:14:44 +00:00
Matthias Clasen
88dd6e630e
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.
2023-03-17 11:00:35 -04:00
Matthias Clasen
8d839c96d9
Merge branch 'fix-broadway-docs' into 'main'
...
docs: Update broadway docs
Closes #5662
See merge request GNOME/gtk!5669
2023-03-17 13:17:19 +00:00
Matthias Clasen
31ec095ec7
docs: Update broadway docs
...
Using Broadway without broadwayd hasn't worked since 2013...
Fixes : #5662
2023-03-17 09:00:10 -04:00
Matthias Clasen
b14a134a46
gsk: Add slicing to texture scale nodes
...
This makes it possible to use large textures
with filtering.
Fixes : #5664
2023-03-17 00:51:05 -04:00
Matthias Clasen
f3b0aa27ea
gsk: Be more careful when slicing
...
We can only reuse existing slices if they
have the right filtering.
2023-03-17 00:50:01 -04:00
Benjamin Otte
fe2b6dd246
Merge branch 'wip/otte/for-main' into 'main'
...
Various fixes
Closes #5669
See merge request GNOME/gtk!5665
2023-03-17 00:37:52 +00:00