Commit Graph

75506 Commits

Author SHA1 Message Date
Matthias Clasen
806639d974 Stop binding textdomain for -properties
We don't have these translations anymore.
2023-04-21 08:22:06 +02:00
Matthias Clasen
9ca65eb787 gtk-demo: Reset properties when the image changes 2023-04-21 08:20:44 +02:00
Matthias Clasen
ee22a3ea36 broadway: Don't cause traffic when disconnecting
The recently added transient-for support was causing
roundtrips when a client with transients disconnects,
leading to assertion failures. Avoid that.
2023-04-21 08:19:17 +02:00
Matthias Clasen
dd8bd8ad15 docs: Update broadway docs
Using Broadway without broadwayd hasn't worked since 2013...

Fixes: #5662
2023-04-21 08:19:06 +02:00
Benjamin Otte
53655c1041 gldriver: Quick workaround for filter mismatch
We should really use texture views or samplers to handle this case for
shared textures, but this at least makes NEAREST not break.
2023-04-21 08:18:47 +02:00
Matthias Clasen
28e56d0dde label: Use GtkFileLauncher for file URI
The GtkUriLauncher calls into the openuri portal, which distinguishes
between files, directories, and URI. The GtkFileLauncher contains logic
to deal with this, because it can already handle the file and folder
differences.

If we have a file:// URI it's easier to create a GFile out of it, and
use the GtkFileLauncher API, while leaving the GtkUriLauncher API for
every other URI scheme.

Same fix as de3c1d0c73, for GtkLabel.

Fixes: #5671
2023-04-21 08:17:35 +02:00
Emmanuele Bassi
6a797f6b1a linkbutton: Use GtkFileLauncher for file URI
The GtkUriLauncher calls into the openuri portal, which distinguishes
between files, directories, and URI. The GtkFileLauncher contains logic
to deal with this, because it can already handle the file and folder
differences.

If we have a file:// URI it's easier to create a GFile out of it, and
use the GtkFileLauncher API, while leaving the GtkUriLauncher API for
every other URI scheme.

Fixes: #5671
2023-04-21 08:16:55 +02:00
Alexander Mikhaylenko
6b5baefd75 theme: Port .boxed-list style from libadwaita
Consistently use it for boxed lists in inspector and gtk-demo.

Fixes issues like https://gitlab.gnome.org/GNOME/gtk/-/issues/3145
2023-04-21 08:15:19 +02:00
Matthias Clasen
a6010b40f2 Merge branch 'fix-410-tests' into 'gtk-4-10'
testsuite: Fix broken test

See merge request GNOME/gtk!5855
2023-04-21 05:55:14 +00:00
Matthias Clasen
80c765b54d Merge branch 'cherry-pick-03b71a97' into 'gtk-4-10'
Merge branch 'wip/otte/for-main' into 'main'

See merge request GNOME/gtk!5854
2023-04-21 05:42:51 +00:00
Benjamin Otte
1b872743bc testsuite: Fix broken test
The test was referencing a nonexisting image.

Plus, node parsing cannot reference relative URLs.
2023-04-21 07:37:53 +02:00
Benjamin Otte
3e26418dfe Merge branch 'wip/otte/for-main' into 'main'
testsuite: Be less verbose in accessor-apis test

Closes #5763

See merge request GNOME/gtk!5851

(cherry picked from commit 03b71a9759)

be5f2250 testsuite: Be less verbose in accessor-apis test
39583e40 testsuite: Allow accessors in interfaces
e47c0760 adjustment: Split out a function
75c47755 adjustment: sanity-check values when setting them
f393f70e listbase: Don't warn on scroll in empty list
2023-04-21 00:48:27 -04:00
Sabri Ünal
78931915e4 Update Turkish translation 2023-04-19 12:59:55 +00:00
Matthias Clasen
15a62434f4 Merge branch 'cherry-pick-faac2f78' into 'gtk-4-10'
filesystemmodel: Notify correct position removed in remove_file()

See merge request GNOME/gtk!5816
2023-04-11 06:02:23 +00:00
Corey Berla
e041f7bf71 filesystemmodel: Notify correct position removed in remove_file()
32247bc50e made several changes to account for the
fact that we no longer have a NULL editable at the beginning of the list
model.  The commit mistakenly left out one change in remove_file(),
which causes the wrong file to be removed.


(cherry picked from commit faac2f7894)
2023-04-11 01:28:45 -04:00
Alexander Shopov
f15aa82eaf Update Bulgarian translation 2023-04-07 16:26:55 +00:00
Matthias Clasen
625219508b Merge branch 'cherry-pick-515f39f1' into 'gtk-4-10'
Merge branch 'wip/otte/for-main' into 'main'

See merge request GNOME/gtk!5760
2023-04-01 12:48:49 +00:00
Matthias Clasen
520b25e96c Merge branch 'cherry-picks-for-4-10' into 'gtk-4-10'
scrolledwindow: Disconnect the right handler

See merge request GNOME/gtk!5762
2023-04-01 01:23:44 +00:00
Benjamin Otte
f00b29f2c6 rendernodeparser: Emit error when failing to resolve URL 2023-03-31 20:26:19 -04:00
Benjamin Otte
5c20cb08dc rendernodeparser: Failing to parse a string is an error
Testcase included.
2023-03-31 20:26:12 -04:00
Matthias Clasen
5d8bf6d9ca wayland: Comply with protocol requirements
If you send a bad anchor rect to mutter, it crashes.
Thats not great, so lets not do that.
2023-03-31 20:25:51 -04:00
Matthias Clasen
ea6f176055 gdk: Avoid a pointless indirection
Don't use g_fprintf if GLib is using system printf
anyway.
2023-03-31 20:23:42 -04:00
Matthias Clasen
eec1298aa1 Improve an error message
We were producing a misleading error message
when gtk_init() fails.

Fixes: #5704
2023-03-31 20:23:27 -04:00
Matthias Clasen
61536ea1a7 gdk: Improve logging for backends
Log more when trying backends.
2023-03-31 20:22:11 -04:00
Benjamin Otte
340ab6c20f enums: Move G_END_DECLS to the end of the file 2023-03-31 20:21:51 -04:00
Bilal Elmoussaoui
2229ff6807 docs: Fix various broken links 2023-03-31 20:21:36 -04:00
Jonas Ådahl
7bc18a125f wayland/popup: Handle late received reposition feedback
If we map, reposition, unmap, remap, the reposition feedback from the
last time a popup was mapped might be received while we're dealing with
the new version of the popup. At this point, the old reposition token
has no meating, so lets drop it. Also reset the reposition tokens when
creating new protocol objects, so that the reposition token are as if
we're in the initial state.

This fixes an issue where we'd get stuck if repeatedly smashing a button
that'd create popups that'd immediately get dismissed by the compositor.
2023-03-31 20:21:28 -04:00
Ludovico de Nittis
5303bbf66a wayland: Try to open the display even if XDG_RUNTIME_DIR is unset
Since Wayland 1.15, it is now possible to use absolute paths in
"WAYLAND_DISPLAY".
In that scenario, having a valid "XDG_RUNTIME_DIR" is not a requirement
anymore.

For this reason we remove the "XDG_RUNTIME_DIR" check and we let
`wl_display_connect()` decide if our environment is correct.

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
2023-03-31 20:21:02 -04:00
Benjamin Otte
c2f432b6df magnifier: Don't check for visibility
gtk_widget_queue_draw() already does that.
2023-03-31 20:20:41 -04:00
Matthias Clasen
e0a48a215f scrolledwindow: Disconnect the right handler
We connect gtk_scrolled_window_update_use_indicators
as signal handler in realize(), but we were disconnecting
gtk_scrolled_window_sync_use_indicators in unrealize.

Spotted by Milan Crha.

Fixes: #5684
2023-03-31 20:20:12 -04:00
Benjamin Otte
1be7a1f18f Merge branch 'wip/otte/for-main' into 'main'
various fixes

See merge request GNOME/gtk!5756

(cherry picked from commit 515f39f161)

6f417534 widget: Shortcut widget not repositioning
dbff49b5 listbase: Clear any newly set adjustments
2023-03-31 17:56:21 -04:00
Alexander Shopov
3458ebf8c9 Update Bulgarian translation 2023-03-31 10:04:26 +00:00
Марко Костић
1bd53839c6 Update Serbian translation 2023-03-29 11:28:23 +00:00
Matthias Clasen
427f65bac4 Merge branch 'cherry-pick-3a5282ab' into 'gtk-4-10'
wayland: Don't crash without xdg_activation_v1

See merge request GNOME/gtk!5742
2023-03-29 01:08:16 +00:00
Matthias Clasen
78bdfe9db9 wayland: Don't crash without xdg_activation_v1
If the compositor does not support this protocol,
we can't use it.

Fixes: #5701


(cherry picked from commit 3a5282abe1)
2023-03-28 20:39:04 -04:00
Boyuan Yang
76c6a55206 Update Chinese (China) translation 2023-03-28 15:14:10 +00:00
Guillaume Bernard
3fc6acf638 Update French translation 2023-03-28 09:36:51 +00:00
Matthias Clasen
2b8bf0236a Merge branch 'cursor-size-fix-4-10' into 'gtk-4-10'
wayland: Don't crash on cursor size 0

See merge request GNOME/gtk!5722
2023-03-26 12:15:04 +00:00
Matthias Clasen
c80d712d35 wayland: Don't crash on cursor size 0
The cursor-theme-size setting is documented as
'0 means the default size'. Make it so by using
size 24 if we see a 0. Its better than crashing.

Fixes: #5700
2023-03-25 22:01:20 -04:00
Matthias Clasen
3c5b8be62e Merge branch 'cherry-pick-d209f556' into 'gtk-4-10'
Backport !5702 (fix for #5685) into gtk-4-10

See merge request GNOME/gtk!5713
2023-03-24 16:15:11 +00:00
Chun-wei Fan
5df9d4a727 Merge branch 'alternative-fix-5685' into 'main'
GDK/Win32: Use wgl* functions directly as needed (fix #5685)

Closes #5685

See merge request GNOME/gtk!5702

(cherry picked from commit d209f55677)

627ee674 GDK-Win32: Add wrapper functions for calling core wgl* functions
b5ebe270 gtkgstsink.c: Drop workarounds needed for Windows
2023-03-24 11:38:58 -04:00
Matthias Clasen
8cefb950d0 Merge branch 'cherry-pick-7b22983b' into 'gtk-4-10'
Don't leak all AT contexts

See merge request GNOME/gtk!5703
2023-03-24 03:04:20 +00:00
Matthias Clasen
804d6cf6c9 Don't leak all AT contexts
create_at_context was confused - it stored a reference
to the newly created context in priv->context, but then
also returned a reference, and the caller stored that
in priv->context again.

Change it to only return a reference.

Fixes: #5690


(cherry picked from commit 7b22983be5)
2023-03-23 08:19:45 -04:00
Emmanuele Bassi
c8bedb7d3d Merge branch 'backport_next_accessible-sibling_fix' into 'gtk-4-10'
a11y: Backport the gtk_accessible_get_next_accessible_sibling fix

See merge request GNOME/gtk!5699
2023-03-22 16:02:15 +00:00
Bruce Cowan
d80cecec06 Update British English translation 2023-03-22 15:46:17 +00:00
Matthias Clasen
678e11ecb5 Merge branch 'fix_next_accessible_sibling_after_refcounts' into 'main'
a11y: Fix the logic in gtk_accessible_get_next_accessible_sibling which decided whether we will use the overridden sibling on the context.

See merge request GNOME/gtk!5659
2023-03-22 16:34:42 +01:00
Emmanuele Bassi
b35898abf8 Merge branch 'cherry-pick-724ecf3b' into 'gtk-4-10'
Ensure GtkFileChooserCell's type

See merge request GNOME/gtk!5697
2023-03-22 12:33:13 +00:00
Matthias Clasen
6cddd96eb7 Merge branch 'ebassi/ensure-file-chooser-types' into 'main'
Ensure GtkFileChooserCell's type

See merge request GNOME/gtk!5696

(cherry picked from commit 724ecf3b51)

b2e8158c Ensure GtkFileChooserCell's type
2023-03-22 06:55:36 -04:00
Martin
96c47b8c6e Update Slovenian translation 2023-03-20 22:16:13 +00:00
Benjamin Otte
c9987d4889 Merge branch 'cherry-pick-56b904f1-2' into 'gtk-4-10'
Merge branch 'wip/otte/for-main' into 'main'

See merge request GNOME/gtk!5683
2023-03-19 17:33:38 +00:00