Matthias Clasen
e41bf097d0
Merge branch 'wip/chergert/undo-fixes' into 'master'
...
texthistory: add barriers after final grouping
Closes #4276
See merge request GNOME/gtk!3989
2021-09-24 12:36:30 +00:00
Benjamin Otte
7a82e9f557
Merge branch 'wip/otte/shittymorph' into 'master'
...
gdk: Make sure only one GL backend is used
See merge request GNOME/gtk!3992
2021-09-24 08:50:17 +00:00
Benjamin Otte
23acc993cc
gdk: Make sure only one GL backend is used
...
Creative people managed to create an X11 display and a Wayland display
at once, thereby getting EGL and GLX involved in a fight to the death
over the ownership of the glFoo() symbolspace.
A way to force such a fight with available tools here is (on Wayland)
running something like:
GTK_INSPECTOR_DISPLAY=:1 GTK_DEBUG=interactive gtk4-demo
Related: xdg-desktop-portal-gnome#5
2021-09-24 01:59:37 +02:00
Christian Hergert
659393049e
textview: improve undo grouping when overwriting
...
We want to group in more than one undo group when removing a selection
and replacing it with a new character or characters, unless we're
replacing a single character. In that case, the natural thing is to treat
it as an atomic change.
2021-09-23 13:25:41 -07:00
Christian Hergert
b578c78eff
texthistory: add barriers after final grouping
...
We don't want to allow new items to be grouped into a previous action
group after the end_user_action() is called. This ensures that we add a
barrier action in those conditions.
Fixes #4276
2021-09-23 13:25:35 -07:00
Matthias Clasen
d7db3f1546
Merge branch 'master' into 'master'
...
gtktextview: Fixed arrow key crash.
Closes #4275
See merge request GNOME/gtk!3984
2021-09-22 23:03:18 +00:00
Matthias Clasen
20f6610c61
Merge branch 'widgetfactory-async-load' into 'master'
...
Revert "Use GtkLoader for image loading"
See merge request GNOME/gtk!3986
2021-09-22 21:49:15 +00:00
Matthias Clasen
923c944abb
Add GtkLoader to gtk4-widget-factory
...
Add an async-loading paintable implementation
to gtk4-widget-factory, and use it to load the
jpegs in the background.
2021-09-22 17:09:53 -04:00
Matthias Clasen
0b9f6985b1
texture: Document constructors as threadsafe
...
We aren't providing async loading apis here,
but we want to allow applications to create
textures in a thread, to avoid blocking the
main thread.
2021-09-21 23:10:53 -04:00
Matthias Clasen
1430142ad8
Revert "Add delayed loading for textures"
...
This reverts commit 4a89cfe2c9
.
2021-09-21 23:10:53 -04:00
Matthias Clasen
3a5091cb6e
Revert "Use GtkLoader for image loading"
...
This reverts commit da115ad075
.
2021-09-21 23:10:53 -04:00
Matthias Clasen
d6d7299859
Merge branch 'composetable/accept-long-replacements' into 'master'
...
gtkcomposetable: Accept long replacement strings
Closes #4273
See merge request GNOME/gtk!3983
2021-09-21 17:37:06 +00:00
Jordan Yelloz
5f913e9558
gtktextview: Fixed arrow key crash.
...
When pressing the keyboard arrows to move around when the insertion point is
hidden, it causes an assertion error in blink_cb.
Insertion point blinks should only be scheduled when blinking is enabled and the
insertion point is visible.
Closes #4275
2021-09-21 09:14:22 -07:00
Martin Kühl
a9d7282f00
gtkcomposetable: Accept long replacement strings
...
This change removes the assertions limiting replacement strings in the compose table to be less than 20 characters.
The limit seems arbitrary, is not required, will break some users' setups, and problems with it result in applications not launching.
Fixes #4273
2021-09-21 17:03:20 +02:00
Benjamin Otte
3e20ecd6e1
Merge branch 'wip/otte/titlebar' into 'master'
...
window: Add a titlebar property
See merge request GNOME/gtk!3982
2021-09-21 03:08:46 +00:00
Benjamin Otte
1ef000b1ab
reftests: Add tests that check default-size is computed correctly
...
Related: #4136
2021-09-21 02:52:30 +00:00
Benjamin Otte
765e78f72b
window: Add a titlebar property
...
It just turns get/set_titlebar into a property.
2021-09-21 02:52:30 +00:00
Benjamin Otte
32871f997e
window: Make priv->titlebar the titlebar
...
It was priv->title_box before - unless priv->titlebar wasn't NULL, then
it was NULL.
Confusing? Yeah, that's why I changed it.
2021-09-21 02:52:30 +00:00
Benjamin Otte
9fb729ccc0
window: Improve set_titlebar() function
...
Get rid of a goto and check if the titlebar is already set.
2021-09-21 02:52:30 +00:00
Matthias Clasen
4b582851f7
Merge branch 'mention_a11y_concern' into 'master'
...
Mention that after setting a button child the user is responsible for a11y relations
See merge request GNOME/gtk!3981
2021-09-20 12:15:44 +00:00
Lukáš Tyrychtr
da20c68d48
Mention that after setting a button child the user is responsible for a11y relations
2021-09-20 10:52:16 +02:00
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