Benjamin Otte
d19f4ad53a
Merge branch 'wip/otte/for-master' into 'master'
...
cssprovider: Be clearer about warnings vs errors
See merge request GNOME/gtk!3980
2021-09-20 05:38:27 +00:00
Benjamin Otte
d17552670c
wayland: Add format hex value to debug print
...
It's how it's listed in the spec, this makes it easier to search.
2021-09-20 07:04:20 +02:00
Matthias Clasen
6a69b4e475
Merge branch 'matthiasc/for-master' into 'master'
...
builder: Drop unused part of private api
See merge request GNOME/gtk!3979
2021-09-20 04:29:54 +00:00
Matthias Clasen
0b4817a1c6
window: Drop some dead code
...
The gtk_window_set_buildable_property implementation
was only used to set the unused builder_visible flag.
Remove both the flag and the vfunc.
This means we no longer have any set_buildable_property
implementations and could eventually drop that vfunc and
the support for it in GtkBuilder.
2021-09-20 00:01:24 -04:00
Benjamin Otte
e931afdc9b
cssprovider: Be clearer about warnings vs errors
...
The CSS parser tried to warn about unexpected syntax that the spec
doesn't define as an error.
2021-09-20 05:57:14 +02:00
Matthias Clasen
7dab5322df
builder: Cosmetics
2021-09-19 23:54:38 -04:00
Matthias Clasen
138fd6f0f3
builder: Small optimization
...
Use g_object_setv where we can.
It would be much nicer if we could pass the
pspecs we already have, and avoid having GObject
look them up again.
2021-09-19 23:26:00 -04:00
Matthias Clasen
5c3bb42612
builder: Avoid a pointless call
...
pspec->name is guaranteed to be interned already.
2021-09-19 22:13:00 -04:00
Matthias Clasen
2c2d03a8d7
builder: Drop unused part of private api
...
The aliases arguments was used to support 'primary',
but we no longer have that, and all callers pass
NULL for aliases. So, just drop it.
2021-09-19 22:04:32 -04:00
Emin Tufan Çetin
6474c7af35
Update Turkish translation
2021-09-19 17:22:22 +00:00
Emin Tufan Çetin
145a16ff81
Update Turkish translation
2021-09-19 17:18:57 +00:00
Matthias Clasen
f079d75d1f
Merge branch 'resource-cleanup' into 'master'
...
Clean up gesture icons
See merge request GNOME/gtk!3978
2021-09-19 12:53:59 +00:00
Matthias Clasen
e1facc548a
resources: Treat svgs as xml
...
They can have their whitespace removed just the same.
2021-09-19 08:27:08 -04:00
Matthias Clasen
87e4a542eb
Clean up gesture icons
...
These had duplicate drawing in them, and were
saved with all the extra Inkscape data.
2021-09-19 08:27:08 -04:00
Matthias Clasen
56e6a51ac0
Merge branch 'delayed-loading' into 'master'
...
gtk-demo: Cosmetics
See merge request GNOME/gtk!3975
2021-09-18 23:02:00 +00:00
Matthias Clasen
da115ad075
Use GtkLoader for image loading
...
This avoids blocking on image loading while
we have better things to do.
2021-09-18 17:35:00 -04:00
Matthias Clasen
4a89cfe2c9
Add delayed loading for textures
...
Add a private GdkPaintable implementation that
loads a texture in a thread, and does not show
anything until the texture is loaded. This avoid
blocking on image loading in the main thread.
2021-09-18 17:35:00 -04:00
Matthias Clasen
c9135546b6
loaders: Add profiler marks
...
These are potentially expensive calls, we
should make sure they show up in profiles.
2021-09-18 17:35:00 -04:00
Jordi Mas
a94e438a29
Update Catalan translation
2021-09-18 21:15:31 +02:00
Matthias Clasen
164443a99a
builder: Cosmetics
2021-09-18 14:14:55 -04:00
Matthias Clasen
d88c4d122d
gtk-demo: Cosmetics
...
Tweak the color of the outlines in the font rendering
demo.
2021-09-18 11:08:15 -04:00
Matthias Clasen
d66bc501a4
Merge branch 'wip/baedert/for-master' into 'master'
...
label: Remove redundant store
Closes #4196
See merge request GNOME/gtk!3891
2021-09-18 15:04:09 +00:00
Timm Bäder
1c2c356ed4
widget factory: Scale down jpeg images
2021-09-18 16:48:48 +02:00
Piotr Drąg
1fae91d123
Update POTFILES.in
2021-09-18 13:12:42 +02:00
Timm Bäder
24415a6ffb
cssimageurl: Explicitly check for local_error != NULL
...
This should always be the case since gdk_texture_new_from_file should
always set the error when it returns NULL, but make it explicit anyway.
2021-09-18 13:08:46 +02:00
Timm Bäder
ae08aa3622
constraintsolver: Remove a dead assignment
2021-09-18 12:53:41 +02:00
Timm Bäder
c24b7877a0
gdktiff: Use guint32 instead of int32
...
The latter seems to be deprecated.
2021-09-18 09:00:16 +02:00
Matthias Clasen
7b22e37371
Merge branch 'transform-work' into 'master'
...
transform: Add sections
See merge request GNOME/gtk!3974
2021-09-18 06:35:08 +00:00
Timm Bäder
c2ab1f172d
window: Fix mnemonics-visible getter+setter annotations
2021-09-18 08:29:18 +02:00
Timm Bäder
136a3f6e5a
stackswitcher: Expand child buttons
...
Fixes #4196
2021-09-18 08:29:18 +02:00
Timm Bäder
2bc82da34d
inspector: Cache if we have ever constructed a window
...
Silly optimization to get rid of
gtk_main_do_event
gtk_inspector_handle_event
gtk_inspector_window_get_for_display
g_object_get_data
showing up in profiles even though it's useless since we've never even
created any inspector window in the first place.
2021-09-18 08:29:18 +02:00
Matthias Clasen
41b810da7f
Add gsk_transform_to_2d_components
...
This function decomposes a general 2D transform
into skew, scale, rotation and translation.
Tests included.
2021-09-18 02:06:51 -04:00
Matthias Clasen
155e0f3dfb
Merge branch 'gbsneto/fix-filechooserwidget-choices' into 'master'
...
File chooser choice fixes
See merge request GNOME/gtk!3973
2021-09-18 03:59:52 +00:00
Georges Basile Stavracas Neto
02bb23486f
filechooserwidget: Return an id in get_choice()
...
gtk_file_chooser_widget_get_choice() is supposed to return the option
id of the choice, but it currently is returning the option label.
Return the option id instead.
2021-09-18 00:22:05 -03:00
Georges Basile Stavracas Neto
bc0d9488ee
filechooserwidget: Match choice id from "options"
...
When choices are added to the file chooser widget, the options of
that choice are stored object data under the "options" key. However,
gtk_file_chooser_widget_set_choice() was checking for "choices".
Retrieve the options from the "options" key stored data object data.
2021-09-18 00:20:42 -03:00
Matthias Clasen
5742483422
Add more transform tests
...
Test gsk_transform_to_2d.
2021-09-17 22:37:08 -04:00
Matthias Clasen
7f2cb1138a
Merge branch 'static-analysis-fixes' into 'master'
...
label: Remove a dead assignment
See merge request GNOME/gtk!3972
2021-09-18 02:22:21 +00:00
Matthias Clasen
1289e68931
gsk: Add skew transforms
...
Add gsk_transform_skew() to make our transform
api more complete wrt to what you would expect
for a graphics api.
2021-09-17 22:07:26 -04:00
Matthias Clasen
9e6adaa913
transform: Add sections
...
This makes the code easier to navigate (for me).
2021-09-17 22:07:26 -04:00
Matthias Clasen
9cfce67d0f
textview: Remove a dead store
...
Pointed out by clang.
2021-09-17 22:06:21 -04:00
Matthias Clasen
295d406207
listitemmanager: Add a few assertions
...
This might help poor static analyzers.
2021-09-17 22:06:21 -04:00
Matthias Clasen
ece5fd7db5
Merge branch 'more-glyph-drawing-fixes' into 'master'
...
ngl: Use exact device scales for glyphs
See merge request GNOME/gtk!3971
2021-09-18 00:26:14 +00:00
Matthias Clasen
c4e558da46
imcontextsimple: Rewrite a function slightly
...
This hopefully avoids upsetting static analyis.
2021-09-17 20:02:12 -04:00
Matthias Clasen
be1a60d5d0
label: Remove a dead assignment
...
It may have quieted gcc at some point, but
it upsets clang nowadays. Remove it.
2021-09-17 19:54:16 -04:00
Matthias Clasen
a1adaac69b
Merge branch 'glyph-clipping-fixes' into 'master'
...
gtk-demo: Improve ink extents rendering
See merge request GNOME/gtk!3969
2021-09-17 23:31:41 +00:00
Matthias Clasen
7e4b2b971f
Revert "gsk: Stop enlarging text bounding boxes"
...
This reverts commit 87af45403a
.
I've found that this change is needed to ensure that the
bounding boxes of text nodes encompass all the glyphd drawing.
Without it, we overdraw the widget boundaries and cut off
glyphs.
2021-09-17 19:11:06 -04:00
Matthias Clasen
c6cacd2b2d
ngl: Use exact device scales for glyphs
...
We are rendering the glyphs on a larger surface,
and we should avoid introducing unnecessary
rounding errors here. Also, I've found that
we always need to enlarge the surface by one
pixels in each direction to avoid cutting off
the tops of large glyphs.
2021-09-17 19:07:55 -04:00
Matthias Clasen
2c8e55605b
gtk-demo: Improve ink extents rendering
...
Show the pixel-aligned ink rectangle, so we can
see that it includes all the pixels that are inked.
2021-09-17 16:29:30 -04:00
Matthias Clasen
06db477847
gtk-demo: Fix non-circular buttons
2021-09-17 15:24:26 -04:00
Matthias Clasen
e9cf8c6cc7
Merge branch 'glyph-clipping-fixes' into 'master'
...
gsk: Stop enlarging text bounding boxes
See merge request GNOME/gtk!3968
2021-09-17 18:35:41 +00:00