Matthias Clasen
4e4f57e091
reftests: Enforce default settings
...
Set all settings to their default values, so we
are less dependent on the environment to be set
up just right. In particular, this fixes animations
being disabled when we happen to run in a vm.
2021-07-19 13:26:32 -04:00
Matthias Clasen
77829cf3ed
Merge branch 'pango-main' into 'master'
...
Use pango from the main branch
See merge request GNOME/gtk!3762
2021-07-17 13:05:42 +00:00
Yuri Chornoivan
4d10ab3d35
Update Ukrainian translation
2021-07-17 05:34:21 +00:00
Matthias Clasen
e609ede597
Use pango from the main branch
...
Change the Pango subproject to use the main branch.
This depends on
https://gitlab.gnome.org/GNOME/pango/-/merge_requests/379
2021-07-16 13:19:22 -04:00
Benjamin Otte
2ba69abe39
Merge branch 'wip/otte/for-master' into 'master'
...
cssimagecrossfade: Don't abort() when failing to parse image
Closes #4101
See merge request GNOME/gtk!3758
2021-07-16 16:26:23 +00:00
Benjamin Otte
a76f515569
cssimagecrossfade: Don't abort() when failing to parse image
...
The code wasn't checking if parsing an image failed and just returning
success.
Testcase from bug is attached.
Fixes #4101
2021-07-16 17:50:09 +02:00
Matthias Clasen
a663b8c313
Merge branch 'fix-negative-scales' into 'master'
...
ngl: Handle negative scales
Closes #4096
See merge request GNOME/gtk!3755
2021-07-16 11:59:47 +00:00
Matthias Clasen
f66fa16bd1
Merge branch 'metainfo' into 'master'
...
metadata: Fix license identifiers and appdata
See merge request GNOME/gtk!3757
2021-07-16 11:14:09 +00:00
Matthias Clasen
8390363abe
testsuite: Avoid negative scales with gl renderer
...
The fix in 1c90bb522e
was only for the ngl renderer,
so don't use the test with the gl renderer, until it is
fixed as well.
2021-07-16 07:11:20 -04:00
Matthias Clasen
6ff85d287a
Merge branch 'wip/chergert/fix-texthistory-insert' into 'master'
...
texthistory: fix calculation of n_chars
See merge request GNOME/gtk!3756
2021-07-16 11:04:21 +00:00
Maximiliano Sandoval R
94c2072be8
meson: Use a valid SPDX identifier
...
See https://mesonbuild.com/Reference-manual.html#license
2021-07-16 11:14:46 +02:00
Maximiliano Sandoval R
64b9d53472
appdata: Use launchable rather than id
...
<id> should be used for the component id and <launchable> for the
desktop file.
2021-07-16 11:14:46 +02:00
Maximiliano Sandoval R
a5e7b92c5d
appdata: Add content_rating
...
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-content_rating
2021-07-16 11:14:42 +02:00
Maximiliano Sandoval R
2da9ba63e2
appdata: Use correct SPDX license identifier
...
Following
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-project_license ,
for the complete list of identifiers see https://spdx.org/licenses/
2021-07-16 11:09:28 +02:00
Christian Hergert
5d02a8f5db
texthistory: fix calculation of n_chars
...
This should be the number of characters, not the end position. This fixes
an issue where we wouldn't coalesce insert actions together.
2021-07-15 21:26:30 -07:00
Benjamin Otte
834d3749c6
testsuite: Add test for crasher
...
Test for the crasher in !4096
2021-07-15 23:43:28 +02:00
Matthias Clasen
1c90bb522e
ngl: Handle negative scales
...
Scale factors can be negative, but we were not
looking out for that, triggering an assertion when
trying to create a render target with negative
width of height. Avoid that.
Fixes : #4096
2021-07-15 16:40:13 -04:00
Matthias Clasen
b70b058b66
Merge branch 'transparent-optimizations' into 'master'
...
snapshot: Handle transparent opacity nodes correctly
See merge request GNOME/gtk!3754
2021-07-15 18:39:48 +00:00
Matthias Clasen
b99beeb552
Merge branch 'wip/baedert/for-master' into 'master'
...
snapshot: Replace trivial gradients with color nodes
See merge request GNOME/gtk!3753
2021-07-15 18:31:22 +00:00
Matthias Clasen
c799452973
ngl: Do nothing for transparent text nodes
...
Like the previous commit - a transparent text node
will not produce any visible pixels, so bail out early.
2021-07-15 13:18:23 -04:00
Matthias Clasen
fd48afb77d
ngl: Do nothing for transparent color nodes
...
No need to send commands to the GPU to render transparency.
2021-07-15 13:18:23 -04:00
Matthias Clasen
aaa68954c3
snapshot: Handle transparent opacity nodes correctly
...
Eliding totally transparent content from the node tree is
not 100% correct, since filters can make things visible, so
we need to at least preserve the bounds. We can do that by
creating a transparent color node.
2021-07-15 13:18:23 -04:00
Timm Bäder
433233258b
snapshot: Only compute start and end point if we have to
...
If the linear gradient results in a color node, we don't need the start
and end point. Only declare and compute it if we need to.
2021-07-15 16:52:38 +02:00
Timm Bäder
3eed61deba
snapshot: Replace trivial gradients with color nodes
...
Extend this to all existing gradient types
2021-07-15 16:51:17 +02:00
Benjamin Otte
67952a9142
Merge branch 'wip/otte/for-master' into 'master'
...
rendernodeparser: Don't use %g when writing file
See merge request GNOME/gtk!3752
2021-07-14 18:46:36 +00:00
Benjamin Otte
ca3d942b9b
rendernodeparser: Remove leftover debug prints
2021-07-14 20:19:40 +02:00
Benjamin Otte
5470a1344d
rendernodeparser: Don't use %g when writing file
...
%g is locale dependent and can add "," where "." should be. Use
string_append_double() instead.
2021-07-14 20:18:44 +02:00
Emmanuele Bassi
c09718b731
Merge branch 'doc-fixes' into 'master'
...
doc: Syntax fixes
See merge request GNOME/gtk!3751
2021-07-13 23:43:06 +00:00
Marco Melorio
eacfa2a966
doc: Syntax fixes
2021-07-13 22:53:19 +00:00
Matthias Clasen
e7f228e240
Merge branch 'fp16-tests' into 'master'
...
ngl: Make the C half-float implementation accessible
See merge request GNOME/gtk!3748
2021-07-13 13:38:21 +00:00
Matthias Clasen
fab82a7c25
tests: Add some fp16 tests
2021-07-13 09:03:49 -04:00
Matthias Clasen
fc9c34897a
ngl: Make the C half-float implementation accessible
...
Make this accessible for tests.
2021-07-13 09:03:49 -04:00
Emmanuele Bassi
28cdd3f497
Merge branch 'gi-fixes' into 'master'
...
Various introspection fixes
See merge request GNOME/gtk!3747
2021-07-13 11:21:20 +00:00
Marc-André Lureau
a009e26e95
gtk: fix GtkPasswordEntryBuffer introspection
...
Move the source file to public_sources list, and fix tag annotation.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-07-13 15:03:09 +04:00
Marc-André Lureau
ab908c23f4
Add GtkMenuButton:primary Since: annotation
...
Property added in commit a74420bc1a
.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-07-13 11:31:09 +04:00
Marc-André Lureau
ae21f66fe5
Add GTK_DEBUG_ICONFALLBACK Since: 4.2 annotation
...
Introduced in commit 6f82408056
.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-07-13 11:26:39 +04:00
Rafael Fontenelle
2d092ea280
Update Brazilian Portuguese translation
...
(cherry picked from commit c7a7fc4de6
)
2021-07-10 19:30:32 +00:00
Rafael Fontenelle
0f9d39cdfd
Update Brazilian Portuguese translation
...
(cherry picked from commit 72c3026764
)
2021-07-10 17:14:31 +00:00
Matthias Clasen
a64087d481
Merge branch 'activatable-buttons' into 'master'
...
menubutton: Make menu buttons activatable again
Closes #4079
See merge request GNOME/gtk!3728
2021-07-10 12:59:39 +00:00
Matthias Clasen
c85f3f4942
Merge branch 'wip/chergert/fix-4094' into 'master'
...
joinedmenu: add helper to join menus instead of nesting
Closes #4094
See merge request GNOME/gtk!3739
2021-07-09 19:29:41 +00:00
Matthias Clasen
d7553279ff
Merge branch 'gdkkeys-m' into 'master'
...
[master] gdkkeys-win32.c: fix initialisation of key_state in update_keymap
See merge request GNOME/gtk!3742
2021-07-09 10:58:23 +00:00
Matthias Clasen
c86631b8a9
Merge branch 'dynamic-typelib-path' into 'master'
...
build: Get typelib dir dynamically using gobject-introspection dependency
See merge request GNOME/gtk!3737
2021-07-09 10:57:37 +00:00
Matthias Clasen
c1af63de9b
Merge branch 'invisible-char-fix' into 'master'
...
textbtree: Initialize to zero the tags counting array
See merge request GNOME/gtk!3740
2021-07-09 10:56:51 +00:00
Jeremy Tan
2784b03b2d
gdkkeys-win32.c: fix initialisation of key_state in update_keymap
...
It apparently worked by chance in the past, but now causes e.g.
alphanumeric characters to be interpreted as half-width katakana
when using the Japanese IME.
2021-07-09 12:46:49 +08:00
Marco Trevisan (Treviño)
10bdf8c645
textbtree: Initialize to zero the tags counting array
...
We're using the tag contents array to count the number of invisible tags
set but we always increase it without being initialized.
This may lead to unexpected behavior when traversing them and it's
causing a reliable failure in the textiter tests under s390x.
So, memset that area content to 0 once allocated. It's not needed to do
the same for the tags themselves as we always assign them.
Conditional jump or move depends on uninitialised value(s)
at 0x4CFAA00: _gtk_text_btree_char_is_invisible (gtktextbtree.c:2569)
by 0x4B8A1BB: find_visible_by_log_attrs (gtktextiter.c:3244)
by 0x10E93D: check_backward_visible_word_start (textiter.c:484)
by 0x10E93D: test_visible_word_boundaries (textiter.c:523)
by 0x533288F: g_test_run_suite (in /usr/lib/s390x-linux-gnu/libglib-2.0.so.0)
by 0x53328E7: g_test_run (in /usr/lib/s390x-linux-gnu/libglib-2.0.so.0)
by 0x109CC1: main (textiter.c:807)
2021-07-09 03:48:40 +02:00
Christian Hergert
d63d9b2319
joinedmenu: add helper to join menus instead of nesting
...
In many cases, we have an "extra-menu" property that is used to allow
applications to join menus into the native menu for the widget. Previously,
this was done by nesting that menu in a section.
Doing so increases the complexity of the rules for GtkMenuTracker as you
may want different handling from inside of the section vs toplevel
sections.
If instead we synthetically glue the menus together, we have a much more
natural joining of menus as the application developer would expect for
their menu.
This also ports GtkLabel, GtkText, GtkPasswordEntry, and GtkTextView to
use the joined menu helper.
The joined menu helper comes originally from GNOME Builder and has had
extensive use there.
Fixes #4094
2021-07-08 14:16:06 -07:00
Marco Trevisan (Treviño)
d5f2b69d0c
build: Get typelib dir dynamically using gobject-introspection dependency
...
We hardcoded the typelib directory for only an arch (and a distro),
while we can just get it from gobject-introspection pkg config if tests
are enabled.
2021-07-08 04:59:10 +02:00
Matthias Clasen
6818eee859
Merge branch 'wip/exalm/scroll-touch' into 'master'
...
scrolledwindow: Don't check drag threshold when already scrolling
See merge request GNOME/gtk!3735
2021-07-07 21:37:58 +00:00
Matthias Clasen
e7f1398d85
Merge branch 'text-cursor-extents' into 'master'
...
text: Add API to compute cursor extents
See merge request GNOME/gtk!3734
2021-07-07 21:37:14 +00:00
Matthias Clasen
880c01f8cc
Merge branch 'wl-since' into 'master'
...
Add missing "Since: 4.X" doc tags
See merge request GNOME/gtk!3736
2021-07-07 21:36:13 +00:00