Matthias Clasen
f66172451d
textview: Respect editability for Emoji
...
Switch the Emoji chooser keybinding to use the
action, so that disabling the action has the
desired effect.
2021-11-30 18:37:33 -05:00
Benjamin Otte
e80238120e
Merge branch 'wip/otte/for-main' into 'main'
...
texture: Remove gdk_texture_download_float()
See merge request GNOME/gtk!4202
2021-11-30 14:25:22 +00:00
Benjamin Otte
07cfdd8ca0
label: Don't set ellipsized size as natural size
...
Natural size should never ellipsize.
Tests added.
2021-11-30 15:10:02 +01:00
Benjamin Otte
ade7509b97
GL renderer: Remove noperspective usage
...
It causes issues with compilation of GLES shaders and isn't in any
way correct.
2021-11-30 14:12:10 +01:00
Benjamin Otte
8d1956921d
node-editor: Display errors
...
When opening a file or pasting DND fails, display the error as the
actual node.
2021-11-30 14:12:10 +01:00
Benjamin Otte
354fa6544a
texture: Remove gdk_texture_download_float()
...
The download API is not well thought out yet, so postpone it until
there's an actual usecase for it.
Remove testcases, too.
2021-11-30 14:12:10 +01:00
Benjamin Otte
291c50202a
rendernode: Simplify conic gradient code
2021-11-30 14:12:10 +01:00
Benjamin Otte
ce8faa2e90
testsuite: Make function arguments const
2021-11-30 14:12:10 +01:00
Matthias Clasen
50e4ca8593
Mention main in NEWS and README.md
2021-11-29 17:42:40 -05:00
Matthias Clasen
ddd5704c92
Update references to master in the repository
2021-11-29 17:37:49 -05:00
Benjamin Otte
3ba6d2bd27
Merge branch 'wip/otte/hfw-min-size' into 'master'
...
window: Implement height-for-width for min size
See merge request GNOME/gtk!4183
2021-11-29 10:31:42 +00:00
Matthias Clasen
cd9b730735
Merge branch 'font-chooser-variations-fix' into 'master'
...
fontchooser: Avoid setting variations needlessly
See merge request GNOME/gtk!4197
2021-11-28 12:56:09 +00:00
Piotr Drąg
f593f3da0a
Update POTFILES.skip
2021-11-28 13:30:19 +01:00
Matthias Clasen
e9d8bf96e0
fontchooser: Avoid setting variations needlessly
...
Setting variations to their default value causes
them to show up in the serialization of the font
description - a font description has no idea about
the default values, so can't filter them out.
Avoid that.
2021-11-27 17:13:23 -05:00
Bastien Nocera
6b3a612bbc
listbox: Explain behaviour of GtkListBoxCreateWidgetFunc
...
It might be an interesting shortcut for applications to use, but it
needs to be documented to be useful and agreed.
2021-11-25 12:33:10 +01:00
Emmanuele Bassi
c742debea8
Merge branch 'fix_typo_gesture' into 'master'
...
gesture: fix typo in docs
See merge request GNOME/gtk!4191
2021-11-24 19:56:42 +00:00
Alexandros Theodotou
cd60ec1576
gesture: fix typo in docs
2021-11-24 19:34:49 +00:00
Fabio Tomat
95e6453823
Update Friulian translation
2021-11-22 09:19:32 +00:00
Aurimas Černius
7e0279b15c
Updated Lithuanian translation
2021-11-21 21:58:20 +02:00
Quentin PAGÈS
791f0d70ac
Update Occitan translation
2021-11-21 19:38:33 +00:00
Benjamin Otte
0709dc7a6a
window: Add a new fancy way to compute min size
...
Try to compute a min size that matches the current aspect ratio.
This means that when interactively resizing, we adapt the min size to
the current window area dynamically.
And that means that we always have a min size that is large enough, but
users can interactively cause it to be small-width x large-height,
large-width x small-width or anything inbetween.
2021-11-21 18:52:42 +00:00
Benjamin Otte
15528599f4
Merge branch 'wip/otte/for-master' into 'master'
...
window: Always clamp to max size
See merge request GNOME/gtk!4185
2021-11-21 18:44:26 +00:00
Emmanuele Bassi
031aab3ef6
Merge branch 'ebassi/issue-4421' into 'master'
...
Unrealize ATContext on unroot
Closes #4421
See merge request GNOME/gtk!4136
2021-11-21 15:36:25 +00:00
Benjamin Otte
c990134e49
window: Properly distribute size between title and child
...
Otherwise we can end up with a window that's too small in certain corner
cases after resizing.
2021-11-21 08:19:07 +01:00
Benjamin Otte
822508f33e
widget: Clear size request cache on queue_resize()
...
... and not later.
Otherwise future calls to sizing fucntions will reuse an outdated cache
and compute wrong values.
2021-11-21 06:08:06 +01:00
Benjamin Otte
358893aa84
window: Always clamp to max size
...
When computing the window size, always try to clamp to the max size.
This will shrink a window down into a sane size if it was too big
before.
2021-11-21 05:33:28 +01:00
Benjamin Otte
344fac5aa7
Merge branch 'wip/otte/for-master' into 'master'
...
Fixes
Closes #4469
See merge request GNOME/gtk!4182
2021-11-21 03:55:28 +00:00
Benjamin Otte
27965d5fdc
builder-tool: Don't simplify enums too much
...
Store the enum nick, not the enum value. That way the file remains
human-readable.
Updated reftests to new expected output.
2021-11-21 02:19:57 +01:00
Benjamin Otte
c025bc5098
paned: Compute the right handle size
...
Testcase included
Fixes #4469
2021-11-21 01:49:40 +01:00
Benjamin Otte
170bc0a8de
window: properly compute desired size
...
Previously, the code did not expand the size properly when a default
size was already set.
Reftest included.
2021-11-21 01:31:06 +01:00
Matthias Clasen
891fd5c604
Merge branch 'missing-the-missing-glyphs' into 'master'
...
Go back to using pango for glyph rendering
See merge request GNOME/gtk!4181
2021-11-20 21:56:37 +00:00
Matthias Clasen
5b1cd335bb
Go back to using pango for glyph rendering
...
Using just cairo makes us lose hexboxes. So, until
we implement that ourselves, go back to using pango.
2021-11-20 11:13:52 -05:00
Benjamin Otte
eefb6a0dd4
sizerequest: Change critical message
...
Printing the affected widget leads people to assume that it is to blame
for the error. However, the widget is the object the function is being
called on, not the caller. And the caller is doing it wrong.
Usually the caller is the parent widget, so we could print that one, but
it's only usually, it can be an issue propagating from a grandparent and
it doesn't tell you from where the function is called (allocation or
measuring), so you need a debugger anyway.
So don't put anything there instead.
2021-11-20 17:05:36 +01:00
Matthias Clasen
9aaf54140f
Merge branch 'wip/fix-randr-race' into 'master'
...
x11: Trap error when getting CRTC info
See merge request GNOME/gtk!4169
2021-11-20 14:43:48 +00:00
Samuel Thibault
c5786916f7
Revert "a11y: return -1 if parent is NULL"
...
This reverts commit 22847563ce
.
2021-11-20 10:59:00 +01:00
Samuel Thibault
b8e009eb05
Merge branch 'wip/chergert/fix-a11y-critical' into 'master'
...
a11y: return -1 if parent is NULL
See merge request GNOME/gtk!4179
2021-11-20 08:14:35 +00:00
Asier Sarasua Garmendia
256d226d4b
Update Basque translation
2021-11-20 07:52:06 +00:00
Benjamin Otte
7b3208092c
Merge branch 'wip/otte/for-master' into 'master'
...
Lots of sizing fixes
See merge request GNOME/gtk!4180
2021-11-20 06:06:08 +00:00
Benjamin Otte
1eb86d6394
widget: Remove a check
...
That consistency check is entirely outdated and just prints confusing
stuff.
2021-11-20 06:04:10 +01:00
Benjamin Otte
a0ca936e8d
sizerequestcache: Increase size
...
This is a quickfix to avoid infinite runtime in nested boxes with
wrapped labels.
Test included
2021-11-20 06:04:10 +01:00
Benjamin Otte
de3c50a237
sizerequest: Use g_printerr() for debug messages
...
glib doesn't print debug messages by default anymore.
2021-11-20 06:04:10 +01:00
Benjamin Otte
244ddea0ea
paned: Always query at least min size
...
For shrinking children, we would not make sure of this and just throw
the current size at them.
2021-11-20 06:04:10 +01:00
Benjamin Otte
6c94835f5d
stack: Make sure to not under-measure children
...
When the stack is homogeneous in only one direction, the other direction
may produce min sizes to small for all children. Make sure to query at
least the min size for those.
2021-11-20 06:04:10 +01:00
Benjamin Otte
617566128d
stack: Index the homogeneous array by orientation
2021-11-20 06:04:10 +01:00
Benjamin Otte
7bf772111c
stack: Turn the homogenenous variables into an array
...
that way, we can index them by orientation.
2021-11-20 06:04:10 +01:00
Benjamin Otte
50e0893497
widget: force adjustment method is one size is FILL
...
If halign=fill, force adjustment to height-for-width.
If valign=fill, force adjustment to width-for-height.
Otherwise look at request mode.
This way we don't try to adapt the filled dimension and only adjust
the one that is not set to fill.
2021-11-20 06:04:10 +01:00
Benjamin Otte
7459d430eb
widget: Don't forget margins when adjusting
...
This could lead to the wrong values being passed and computing invalid
sizes which would then lead to very unhappy code.
Test included.
2021-11-19 23:46:59 +01:00
Benjamin Otte
163616cc0a
sizerequest: Add a critical when for_size is too small
...
It's not expensive to check it because we'll cache the dfault size
request anyway, and people do it wrong a lot.
As a bonus, don't do any return_if_fail(), just use the min size
instead.
2021-11-19 23:46:59 +01:00
Fran Dieguez
e378dc4c28
Update Galician translation
2021-11-19 22:23:26 +00:00
Fran Dieguez
4876028f29
Update Galician translation
2021-11-19 22:23:10 +00:00