Commit Graph

70834 Commits

Author SHA1 Message Date
Jakub Steiner
3ae2ebac67 theme: make toggled tbuttons in toolbars visible
- do what Alex does in libadwaita

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4264
2021-10-31 17:52:04 -04:00
Matthias Clasen
4cf9f6382f Update the README
Remove the mention of GNU (since that has not been case
for a long time, effectively), state that GTK is hosted
by the GNOME project, and point to GNOME as a place
for donations.
2021-10-31 17:52:04 -04:00
Matthias Clasen
9ffb3e5ece testsuite: Call g_test_init in test binaries
Without it, we mess out on G_DEBUG=fatal-warnings,
so our ci does not alert us that we run a bunch of
tests which spit out warnings.
2021-10-31 17:52:04 -04:00
Lukáš Tyrychtr
72ffe46e74 Fix generation of accessible description in presence of described by relations
The loop going through the relation list should have stopped on the NULL sentinel value, however it never accesed the next list element.
2021-10-31 17:52:04 -04:00
Matthias Clasen
f7b5c886b3 testsuite: Fix a few memory leaks
These are keeping the asan build in ci from passing.
2021-10-31 17:52:04 -04:00
Lukáš Tyrychtr
5b186fab1a Set correct accessible relations for GtkMenuButton
Up until now, as the focus was moved to the inner button, it was not possible for
assistive technologies to determine the correct labels and descriptions
because developers could set them only for the parent widget.
Now, the proper relations are added so the labels should be picked up properly.

Fixes #4254
2021-10-31 17:52:04 -04:00
Alexander Mikhaylenko
d2c610148e media-controls: Make play button flat
Match the volume button.
2021-10-31 17:52:04 -04:00
Alexander Mikhaylenko
66ef08921d searchbar: Vertically center the close button 2021-10-31 17:52:04 -04:00
Julian Sparber
137a62cb94 stack: Dispose children before emitting items-changed
This makes sure that the `GListModel` returned by
`gtk_stack_get_pages()` actually has the items removed before
`items-changed` is emitted.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4255
2021-10-31 17:52:04 -04:00
Matthias Clasen
022b396a06 GtkApplication: Call setlocale early
If we don't call setlocale early enough,
--help output may come out misformatted.

Fixes: #4234
2021-10-31 17:52:04 -04:00
Matthias Clasen
afb9378405 textview: Invalidate Pango contexts
We need to invalidate the Pango contexts when
font settings change. Use the new helper
gtk_widget_update_pango_context to make it less
likely that we forget to update some things.
2021-10-31 17:52:04 -04:00
Matthias Clasen
abe7407abe widget: Provide a helper for updating pango contexts 2021-10-31 17:52:04 -04:00
Matthias Clasen
1038b94ab1 Rename an internal function
It occupies a name I want to reuse for something else.
2021-10-31 17:52:04 -04:00
Emmanuele Bassi
07381e2b14 Improve the gtk_accelerator_parse() docs
We need to escape the modifiers in angular brackets, or Markdown will
consider them as HTML tags.

We also should document the modifiers we're parsing.
2021-10-31 17:52:04 -04:00
Matthias Clasen
965ca1b607 widget: Redraw when font options change
Its the right thing to do, even if it is a rare event.
2021-10-31 17:52:04 -04:00
Simon McVittie
e67e51be14 reftest-compare: Treat colour channels as undefined if alpha is zero
If the alpha channel is zero, it doesn't matter what the values of the
red, green and blue channels are: the pixel is still fully transparent.
On most architectures, fully transparent pixels end up all-zeroes
(fully transparent black), matching what's in the reference PNG file;
but on mips*el the blend-difference and blend-normal tests get all-ones
(fully transparent white) and a test failure.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4227
Signed-off-by: Simon McVittie <smcv@debian.org>
2021-10-31 17:52:04 -04:00
Christoph Reiter
eab7c19dfb build: fix implicit-fallthrough errors with clang
The clang build fails due to -Werror=implicit-fallthrough being
on by default and some fallthrough cases not being marked as such.

Use G_GNUC_FALLTHROUGH or duplicate the code in those cases.
2021-10-31 17:52:04 -04:00
Rafał Dzięgiel
66804b9b49 Fix wrong gettext ITS target
The installed ITS rule filename is "gtk4builder.its". The .loc file
is wrongly pointing to old "gtkbuilder.its" which makes gettext fail
on systems without GTK3 installed.
2021-10-31 17:52:04 -04:00
Emmanuele Bassi
b48e158ef8 Release an extra reference on GtkExpander:child
The child of a GtkExpander is owned directly by the expander whenever
the "expanded" flag is unset.

We are adding an additional reference to the child of an expander when
expander is not expanded.

Additionally, if a GtkExpander is disposed while not expanded, we need
to explicitly release the reference on the child widget that we own.

This reference leak was masked in GTK3 by GtkContainer removing each
child from the parent container by recursively calling
gtk_widget_destroy().
2021-10-31 17:52:04 -04:00
Qiu Wenbo
4e42006d41 docs: Fix documentation for gtk_icon_view_create_drag_icon
Fixes: #4190
2021-10-31 17:52:04 -04:00
Kalev Lember
946914a2d0 build: Fix detection for pre-compiled css files
The default theme changed from Adwaita to Default and this tripped up
the logic to detect if the tarball builds contain pre-built css files or
not. Fix this by looking at pre-compiled css files in themes/Default/
instead of themes/Adwaita/.
2021-10-31 17:52:04 -04:00
Benjamin Otte
9c1bce629d docs: Expand gdk_clipboard_set() docs 2021-10-31 17:52:04 -04:00
Rūdolfs Mazurs
d67982d5e0 Update Latvian translation 2021-10-31 14:59:22 +00:00
Jordi Mas i Hernandez
ca02700a63 Update Catalan translation 2021-10-29 11:45:56 +00:00
Alexey Rubtsov
65b955fe26 Update Russian translation 2021-10-29 11:06:26 +00:00
Benjamin Otte
4a884ed706 Merge branch 'cherry-pick-ac8c4245' into 'gtk-4-4'
css: Don't throw warnings on broken URL in image css

See merge request GNOME/gtk!4098
2021-10-27 01:02:45 +00:00
Benjamin Otte
36cb2e932c css: Don't throw warnings on broken URL in image css
If a URL can't be loaded, we might end up with a NULL file. Handle that
case properly by creating an invalid image instead and don't crash or
complain to stderr when files are NULL.

This was broken since 0886ade182

A new reftest has been included. We need a reftest instead of a
CSS parser test, because the error only becomes visible when
compute()ing the actual image.

Fixes #4373


(cherry picked from commit ac8c4245b2)
2021-10-26 23:44:38 +00:00
Rūdolfs Mazurs
4f5264d1b7 Update Latvian translation 2021-10-25 16:59:50 +00:00
Benjamin Otte
ff2345a8f8 Merge branch 'cherry-pick-3c9c7a0e' into 'gtk-4-4'
build: Make sure ifuncs exist when using fp16

See merge request GNOME/gtk!4089
2021-10-22 18:17:42 +00:00
Benjamin Otte
2a4b90a81c build: Make sure ifuncs exist when using fp16
Fixes msys compiles on Windows (and everywhere else hopefully).

Fixes #4285


(cherry picked from commit 3c9c7a0e72)
2021-10-22 16:32:55 +00:00
Goran Vidović
6aa6ab85f6 Update Croatian translation 2021-10-21 10:51:24 +00:00
Matthias Clasen
c293a243d9 Merge branch 'gtk-4-4nodate' into 'gtk-4-4'
Drop date attribute from our appdata files

See merge request GNOME/gtk!4077
2021-10-19 11:36:44 +00:00
Bernhard M. Wiedemann
6681bbf8d2 Drop date attribute from our appdata files
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good

This was suggested by Matthias Clasen as an alternative to MR !3929
2021-10-19 09:38:36 +02:00
Benjamin Otte
5b2aa196e0 Merge branch 'backport-mr-3930-to-gtk-4-4' into 'gtk-4-4'
Fix DND coordinates on Windows

See merge request GNOME/gtk!4049
2021-10-16 17:04:55 +00:00
Sveinn í Felli
83b3c7d826 Update Icelandic translation 2021-10-12 22:48:01 +00:00
Rafael Fontenelle
4b9260608a Update Brazilian Portuguese translation 2021-10-12 17:33:41 +00:00
Benjamin Otte
7f0d7aff0b Merge branch 'cherry-pick-d89e82d4' into 'gtk-4-4'
Merge branch 'wip/otte/for-master' into 'gtk-4-4'

See merge request GNOME/gtk!4055
2021-10-11 19:47:37 +00:00
Benjamin Otte
3c90385716 Merge branch 'wip/otte/for-master' into 'master'
x11: Don't try to move destroyed windows

See merge request GNOME/gtk!4054

(cherry picked from commit d89e82d4a0)

f40ce51a x11: Don't try to move destroyed windows
2021-10-11 18:37:15 +00:00
Asier Sarasua Garmendia
2492729238 Update Basque translation 2021-10-08 17:44:18 +00:00
Luca Bacci
b7988d869d Fix DND coordinates on Windows 2021-10-08 14:24:29 +02:00
Luca Bacci
d79b52ce55 Make the DND indicator not interfere with the drag and drop operation 2021-10-08 14:24:04 +02:00
Dušan Kazik
14f31183b8 Update Slovak translation 2021-10-04 13:20:03 +00:00
Asier Sarasua Garmendia
5959dcc112 Update Basque translation 2021-10-03 07:12:30 +00:00
Daniel Șerbănescu
dc77823787 Update Romanian translation 2021-09-30 12:40:26 +00:00
Sveinn í Felli
4e08ec0ea1 Update Icelandic translation 2021-09-29 12:04:41 +00:00
Kukuh Syafaat
cc70eaca93 Update Indonesian translation 2021-09-29 05:57:08 +00:00
Matthias Clasen
fbf09f6e31 Merge branch 'cherry-pick-d61c71c3' into 'gtk-4-4'
macos: Actually set the vfuncs

See merge request GNOME/gtk!4007
2021-09-29 00:36:34 +00:00
Benjamin Otte
c0c18459f5 macos: Actually set the vfuncs
(cherry picked from commit d61c71c378)
2021-09-29 00:05:14 +00:00
Yaron Shahrabani
e230579149 Update Hebrew translation 2021-09-28 20:27:52 +00:00
Daniel Mustieles
2155486ffd Updated Spanish translation 2021-09-28 12:31:04 +02:00