Commit Graph

75495 Commits

Author SHA1 Message Date
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
Benjamin Otte
d0648a5c6e Merge branch 'wip/otte/for-main' into 'main'
treelistmodel: Clear item in right place

Closes #5681

See merge request GNOME/gtk!5682

(cherry picked from commit 56b904f1e6)

dd1e76e6 treelistmodel: Clear item in right place
2023-03-19 13:10:24 -04:00
Benjamin Otte
04dc23d047 Merge branch 'cherry-pick-f211a217' into 'gtk-4-10'
Merge branch 'wip/otte/for-main' into 'main'

See merge request GNOME/gtk!5679
2023-03-19 14:37:46 +00:00
Matthias Clasen
c95d677083 Merge branch 'for-4-10' into 'gtk-4-10'
[4.10] Cherry-pick "listitem: Claim sequence when handling an event"

See merge request GNOME/gtk!5680
2023-03-19 14:23:16 +00:00
Benjamin Otte
d87ac9761d listitem: Claim sequence when handling an event
See my rants on IRC for why we definitely need to claim gestures by
default in GTK5.

Fixes #5669
2023-03-19 12:12:40 +00:00
Benjamin Otte
ea7acdace3 Merge branch 'wip/otte/for-main' into 'main'
Fix inspector doing weird stuff

Closes #5646

See merge request GNOME/gtk!5678

(cherry picked from commit f211a2177f)

f4be5c80 cssnode: Refer the correct previous item
9048e391 treelistmodel: Cache the item
bf556850 treelistmodel: Track the item in the row
c4636852 treelistmodel: Clarify docs
2023-03-19 02:24:01 -04:00
Danial Behzadi
f55cbf5643 Update Persian translation 2023-03-18 01:10:45 +00:00
Matthias Clasen
a1912482ce Merge branch 'cherry-pick-565c9aed' into 'gtk-4-10'
Merge branch 'gridview-filler-tile-fix' into 'main'

See merge request GNOME/gtk!5666
2023-03-17 04:54:23 +00:00
Benjamin Otte
8d18ef4f5c Merge branch 'gridview-filler-tile-fix' into 'main'
gridview: Fix condition for adding filler tiles

See merge request GNOME/gtk!5664

(cherry picked from commit 565c9aed94)

65b6150e gridview: Fix condition for adding filler tiles
2023-03-16 19:50:28 -04:00
Benjamin Otte
9af8f92ba1 Merge branch 'cherry-pick-fbc8bfb3' into 'gtk-4-10'
Merge branch 'wip/otte/for-main' into 'main'

See merge request GNOME/gtk!5663
2023-03-16 21:46:28 +00:00
Benjamin Otte
d31dc4343b Merge branch 'wip/otte/for-main' into 'main'
Various small fixes

Closes #5380

See merge request GNOME/gtk!5662

(cherry picked from commit fbc8bfb303)

707c63c6 win32: Fix rowstride math
ef3c515c rowstrides are gsize, not int
a0382ef4 listview: Fix culling issues when using CSS padding
2023-03-16 17:05:40 -04:00
Matthias Clasen
ce651ee924 Merge branch 'drag-gl-wayland-hotspot-fix-4-10' into 'gtk-4-10'
[4.10] wayland: Reset pending offset in GL path

See merge request GNOME/gtk!5660
2023-03-16 19:48:45 +00:00