Commit Graph

53389 Commits

Author SHA1 Message Date
8a26450bba Sink the floating ref on the file filter
The GtkFileChooserEntry widget creates a file filter instance, but never
sinks its floating reference. Newer versions of GLib correctly warn if
an instance with a floating reference gets finalized.

Fixes: #6527
2024-03-11 10:41:40 +00:00
6bac387a4e Update fa.po 2024-03-01 18:46:51 +00:00
fa1fd6b5c7 Merge branch 'quartz-selection' into 'gtk-3-24'
Finish fixing pasteboard constants macOS 10.14 and later.

See merge request GNOME/gtk!6954
2024-03-01 16:32:50 +00:00
bb99970746 Merge branch 'fix-possible-segfault' into 'gtk-3-24'
dnd: Prevent a possible segfault

See merge request GNOME/gtk!6957
2024-02-28 18:52:53 +00:00
889057a386 dnd: Prevent a possible segfault
It is at least theoretically possible that gtk_entry_get_pixel_ranges
will return no ranges, and we should handle that without an
out-of-bounds access or segfault.
2024-02-28 13:20:59 -05:00
7e9676d658 Fix Cocoa pasteboard constants for gtk.
Corresponds to gdkselection-quartz changes in f30ed5ddc.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/6480
2024-02-27 12:31:16 -08:00
687ec22393 Merge branch 'gtk3-edge-tiling-resize-fix' into 'gtk-3-24'
[gtk3/wayland] Infer resizable edges for tiled windows if possible.

See merge request GNOME/gtk!6742
2024-02-27 17:39:15 +00:00
9020a6f71e [gtk3/wayland] Infer resizable edges for tiled windows if possible.
This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1871627

All GTK3/4 apps on non-GNOME desktops aren't resizable if they are
tiled.

This patch makes the non-tiled edges resizable if we have per-edge
tiling, but not per-edge resizing information.

We might want to make all edges resizable, but that might not be fine
for tiling compositors.
2024-02-27 15:18:41 +01:00
8440752196 Merge branch 'fix_6449' into 'gtk-3-24'
a11y: Don't emit redundant checked notifications

See merge request GNOME/gtk!6923
2024-02-20 17:21:32 +00:00
35608223b6 Apply review suggestions. 2024-02-20 16:38:08 +00:00
bfad80e08e a11y: Don't emit redundant checked notifications
The ModelButton update logic was unconditionally emitting them even if nothing
changed.

Fixes #6449.
2024-02-20 14:32:53 +01:00
47c1ffaddf Merge branch 'ebassi/doc-since-fix' into 'gtk-3-24'
docs: Fix the Since tag for gtk_render_background()

See merge request GNOME/gtk!6906
2024-02-14 20:22:14 +00:00
69c74dfded docs: Fix the Since tag for gtk_render_background()
The version should not end with a trailing dot.
2024-02-14 15:36:53 +00:00
23185eca89 Merge branch 'gtk3_crash_tablet_pad_remove' into 'gtk-3-24'
gdk/wayland: Clear current_tablet on pad leave

See merge request GNOME/gtk!6884
2024-02-12 01:25:09 +00:00
47601f5413 gdk/wayland: Clear current_tablet on pad leave
Fixes crash when handling tablet pad removal event after the
current_tablet has already been freed.
2024-02-11 15:03:04 +00:00
15aa75a159 Merge branch 'replace-outdated-cursor-types' into 'gtk-3-24'
Replace some instances of outdated cursor types

See merge request GNOME/gtk!6835
2024-02-01 01:52:49 +00:00
4ee9fd953b Merge branch 'gtk3-monitor-scale' into 'gtk-3-24'
[gtk3/wayland] Fix GdkMonitor sizes on Mutter without fractional scaling.

See merge request GNOME/gtk!6723
2024-02-01 01:51:59 +00:00
Mat
75df35298c Replace some instances of outdated cursor types
Use the CSS cursor names instead.
2024-02-01 01:23:15 +02:00
51b04c5007 wayland: Small fixup to monitor size handling
The first time this function is called, has_xdg_output() returns
true, but haven't yet received all the xdg-output events, so wait
for that to be done. Otherwise, the logical size is 0, and nothing
useful comes from that.
2024-01-31 14:12:40 +01:00
09373bf7ee [gtk3/wayland] Fix GdkMonitor sizes on Mutter without fractional scaling.
This is the gtk3 version of !6722.

This fixes a problem that is apparent in
https://bugzilla.mozilla.org/show_bug.cgi?id=1869724, but that also
reproduces on any GTK application as described in
https://bugzilla.mozilla.org/show_bug.cgi?id=1869724#c16.

xdg_output sizes might be physical if the compositor doesn't scale them,
it seems. So to report the correct logical geometry in GDK pixels, we
need to detect this case. We do this by checking whether the wl_output
size matches the xdg_output size.
2024-01-31 14:12:40 +01:00
40fe09855b Post-release version bump 2024-01-23 20:38:23 -05:00
77ebdd8509 3.24.41 2024-01-23 20:14:34 -05:00
2b054f3edc Merge branch 'lcrippa-gtk-3-24-patch-37647' into 'gtk-3-24'
fix gtk-shell protocol handling

See merge request GNOME/gtk!6803
2024-01-24 01:08:43 +00:00
5de743572e fix gtk-shell protocol handling 2024-01-24 01:08:43 +00:00
5cffea2ddf Merge branch 'wip/davidk/gtk3-casts' into 'gtk-3-24'
Fix some casts

See merge request GNOME/gtk!6782
2024-01-20 16:35:28 +00:00
f9a844ab85 Merge branch 'fix/6345' into 'gtk-3-24'
Fix for #6345 and #6345

See merge request GNOME/gtk!6786
2024-01-20 14:24:29 +00:00
ba58b3a23d Fix for #6342 2024-01-19 23:01:22 +01:00
6880ac90a0 don't free monitor->name twice (fixes #6345) 2024-01-19 19:15:52 +01:00
05a12b1c5f testsuite: Fix casts in reftests 2024-01-19 12:58:44 +00:00
76bc2a5713 tests: Add GdkEvent casts in testinput 2024-01-19 11:28:02 +00:00
230ced2670 Post-release version bump 2024-01-17 21:53:43 -05:00
f926323d04 3.24.40 2024-01-17 21:38:13 -05:00
a487deb189 Merge branch 'fix/monitor-name' into 'gtk-3-24'
Use xorg 'monitor' the right way.

See merge request GNOME/gtk!6680
2024-01-16 16:36:05 +00:00
adce74bc28 Free monitor name on finalize 2024-01-15 08:25:58 +01:00
813787c541 Update Hebrew translation 2024-01-14 06:57:42 +00:00
099ace2a1e Update Georgian translation 2024-01-07 06:30:39 +00:00
53d6a34e54 Merge branch 'fix-display-selection-init' into 'gtk-3-24'
gdkdisplay-wayland: Init selection before roundtrips

See merge request GNOME/gtk!6714
2024-01-07 01:17:04 +00:00
a58ae95c87 gdkdisplay-wayland: Init selection before roundtrips
Some of the listeners connected during the initial roundtrip assume a
non-NULL selection, when they finally invoke functions such as
gdk_wayland_selection_ensure_offer(),
gdk_wayland_selection_ensure_primary_offer() or
gdk_wayland_selection_set_offer(). The GdkWaylandSelection should
therefore be initialized before the second series of roundtrips, as the
compositor may have already sent a selection by then.
2024-01-06 23:30:34 +01:00
782615ec68 Update Hebrew translation 2024-01-02 21:55:09 +00:00
a64d3df749 Update Swedish translation 2023-12-29 23:29:54 +00:00
bf84ee045a Update Hebrew translation 2023-12-28 12:17:42 +00:00
345bfb494a Use consistent coordinates in get_toplevel_from_ns_event.
[NSView frame] returns a rectangle in the superview's coordinates, and the
superview of an NSWindow's content view (which is the only NSView that
GdkQuartz instantiates) is an undocumented NSThemeFrame. While it happens
to have the same origin as the content view and the same size as the
window's frame this isn't documented and so could change without notice.
Convert the window frame coordinates to the view's coordinate system to
ensure consistency.

Use the view's bounds instead of its frame: The bounds rectangle is in the
view's coordinate system. Use the parent NSWindow's frame instead of the
private NSThemeFrame's. This ensures that all coordinate comparisons have
the same reference.

Finally, the macOS coordinate systems origin is at the bottom left, so the
title bar is between the content view's height and the window's height,
not in negative y in the view's coordinates. Adjust the y comparisons
accordingly.

Fixes #6297
2023-12-25 11:10:12 -08:00
26336c401a Update Hebrew translation 2023-12-23 21:10:05 +00:00
d6bec14774 Merge branch 'gtk-3-24-emoji-15.1' into 'gtk-3-24'
[GTK3] emoji: Update data to CLDR v44

See merge request GNOME/gtk!6687
2023-12-22 15:59:56 +00:00
4ef9fb7357 emoji: Update data to CLDR v44
Based on emojibase v15.3.0

Contains the changes in Unicode 15.1

https://unicode.org/versions/Unicode15.1.0/
https://cldr.unicode.org/index/downloads/cldr-44
https://github.com/milesj/emojibase/blob/emojibase-data%4015.3.0/packages/data/CHANGELOG.md
(cherry picked from commit 76a1f1714da0d7a1829826810851cdd67e80c8c4)
(cherry picked from commit e42befb76bb0dd6096e7ed9bf50bb2496958a8c9)
2023-12-22 10:40:22 -05:00
5a8a0814f7 emoji: Update data to CLDR v43
Based on emojibase v15.2.0

Contains the changes in Unicode 15.0

https://unicode.org/versions/Unicode15.0.0/
https://cldr.unicode.org/index/downloads/cldr-43
https://github.com/milesj/emojibase/blob/emojibase-data%4015.2.0/packages/data/CHANGELOG.md
(cherry picked from commit bf358363501c5c2dff390f8bf73ac274f8e63b0a)
(cherry picked from commit f947f2368735a603000670eafc4cbef7c8fcbebb)
2023-12-22 10:40:22 -05:00
4e2e544924 add hi-ja-et-fi-nb-th for gtkemojichooser
(cherry picked from commit 49fbbfb6ccdbeb2ac85235622a618472000e28a9)
(cherry picked from commit 322d9e5c3f1583c7ef5a2090330db8ab6800baca)
2023-12-22 10:40:22 -05:00
9a3a67765a add bengali language bn.data for gtkemojichooser
(cherry picked from commit 16806294e351698c3ff6e346e5e74dfecf76527b)
(cherry picked from commit 4b2145475ebf0c6967a52d14c4243185536e1290)
2023-12-22 10:40:22 -05:00
a8feb1528d emoji: Add more locales
Based on the locales that are at least 85% translated in Damned Lies:
https://l10n.gnome.org/releases/gnome-41/
Limited by the locales available in emojibase

Closes #4568

(cherry picked from commit d8c79e91a21b831580ea890b7cf146934877fbb7)
2023-12-22 10:40:22 -05:00
f0469035e1 emoji: Update data to CLDR v40
Based on emojibase-data v7.0.1
Contains the changes in Unicode 14.0

https://unicode.org/versions/Unicode14.0.0/
https://cldr.unicode.org/index/downloads/cldr-40
https://github.com/milesj/emojibase/blob/b85382524c/packages/data/CHANGELOG.md
(cherry picked from commit 7f5a24905685b4987d5bc9ed255c4d972714ebf8)
2023-12-22 10:40:22 -05:00