Matthias Clasen
82395e73ad
Merge branch 'wip/smcv/rej' into 'main'
...
demos: Remove detritus from a patch not applying cleanly
See merge request GNOME/gtk!4957
2022-08-16 12:28:46 +00:00
Simon McVittie
0237713c3a
demos: Remove detritus from a patch not applying cleanly
...
I assume this was committed by mistake. It isn't used, and some
packaging systems will automatically remove it during `clean`.
Signed-off-by: Simon McVittie <smcv@debian.org>
2022-08-16 08:32:45 +01:00
Jordi Mas
7e0e8365bd
Update Catalan translation
2022-08-15 23:58:40 +02:00
Luca Bacci
fbd11fc595
Merge branch 'overshoot-win32-fix' into 'main'
...
GdkWin32: Support high resolution scroll wheel events
See merge request GNOME/gtk!4950
2022-08-15 21:33:19 +00:00
Matthias Clasen
bebaac64e1
Merge branch 'gtktreeview-adjustment' into 'main'
...
treeview: Do not set top row adjustment value while animating
Closes #4550
See merge request GNOME/gtk!4940
2022-08-14 22:40:32 +00:00
Matthias Clasen
1d232a725f
Merge branch 'treeview-widget-coords' into 'main'
...
treeview: Use widget coordinates where required
See merge request GNOME/gtk!4939
2022-08-14 22:39:21 +00:00
Benjamin Otte
fb4312738d
Merge branch 'wip/otte/for-main' into 'main'
...
listitemwidget: Actually unref the listitems
Closes #5102
See merge request GNOME/gtk!4955
2022-08-14 21:19:48 +00:00
Benjamin Otte
918dd66dca
listitemwidget: Actually unref the listitems
...
Fixes #5102
2022-08-14 22:55:27 +02:00
Ricardo Maia Louro
6ceacee0f9
GdkWin32: Support high resolution scroll wheel events
2022-08-14 18:30:28 +01:00
Piotr Drąg
f1e81d176c
Update Polish translation
2022-08-14 15:24:39 +02:00
Matthias Clasen
8d18b2b92d
Merge branch 'fix-gears-leak' into 'main'
...
gtk4-demo: Fix a memory leak
See merge request GNOME/gtk!4954
2022-08-13 21:42:35 +00:00
Matthias Clasen
4a04e468fd
gtk4-demo: Fix a memory leak
...
The gears demo was leaking its vertices.
2022-08-13 17:27:40 -04:00
Matthias Clasen
f8d1912098
Merge branch 'wayland-cursor-texture-leak' into 'main'
...
wayland: Avoid leaking cursor textures
See merge request GNOME/gtk!4953
2022-08-13 17:35:56 +00:00
Matthias Clasen
0bd15b44f2
wayland: Avoid leaking cursor textures
...
When we fall back to the default cursor and load it
from a resource, we need to free the texture.
2022-08-13 13:19:49 -04:00
Matthias Clasen
e4fb6933d2
Merge branch 'inscription-leak-fixes' into 'main'
...
inscription: Plug a memory leak
See merge request GNOME/gtk!4952
2022-08-13 00:49:33 +00:00
Matthias Clasen
33cf8f9404
inscription: Plug a memory leak
...
PangoFontMetrics also need to be freed.
2022-08-12 20:35:36 -04:00
Matthias Clasen
1640390839
inscription: Plug a memory leak
...
PangoLayoutIter needs to be freed.
2022-08-12 20:35:36 -04:00
Matthias Clasen
b01f28b9e2
Merge branch 'fix-cups-backend-leak' into 'main'
...
Add more valgrind suppressions
See merge request GNOME/gtk!4951
2022-08-12 23:00:44 +00:00
Matthias Clasen
62192cba6e
cups printbackend: Plug memory leaks
...
This loop has many early exits, and all of them
need to free this info object that gets allocated
at the beginning.
2022-08-12 18:44:25 -04:00
Matthias Clasen
586826d34c
Add more valgrind suppressions
...
This gets all GQuark functions out of the logs.
2022-08-12 12:44:02 -04:00
Matthias Clasen
c7a55faf37
Merge branch 'fix-a11y-leak' into 'main'
...
a11y: Fix a memory leak
See merge request GNOME/gtk!4949
2022-08-12 16:17:48 +00:00
Matthias Clasen
e81db46578
a11y: Fix a memory leak
...
We need to free the queued context list in dispose
if we didn't get to register the contexts, and we also
need to free the list properly when we do get to
register them.
This showed up in valgrind as leaked GList structs.
2022-08-12 12:01:42 -04:00
Goran Vidović
e036eebde8
Update Croatian translation
2022-08-12 14:33:14 +00:00
Goran Vidović
dfa45c0da2
Update Croatian translation
2022-08-12 14:25:29 +00:00
Goran Vidović
6692c7e9c4
Update Croatian translation
2022-08-12 14:22:10 +00:00
Zurab Kargareteli
671f33a7b8
Update Georgian translation
2022-08-12 03:32:05 +00:00
Matthias Clasen
0fee50d1a5
Merge branch 'fix-leak' into 'main'
...
gtk/css: data_url_path fix leak in error path
See merge request GNOME/gtk!4947
2022-08-12 00:09:15 +00:00
Pablo Correa Gómez
97d3363360
gtk/css: data_url_path fix leak in error path
...
Fixes 7900032f30
2022-08-12 01:34:18 +02:00
Matthias Clasen
6eb3548192
4.7.2
2022-08-11 14:26:50 -04:00
Matthias Clasen
e5a47b5592
Merge branch 'improve-css-test' into 'main'
...
css: Propagate charset conversion errors
See merge request GNOME/gtk!4943
2022-08-11 11:58:04 +00:00
Matthias Clasen
6c3119bc33
tests: Check the error first
...
The error contains useful information when
things fail, so check it first to get useful
output in case of failure.
2022-08-11 07:29:56 -04:00
Matthias Clasen
7900032f30
css: Propagate charset conversion errors
...
Lets not throw away informtation that
helps to figure out why things fail.
2022-08-11 07:29:56 -04:00
Matthias Clasen
a020cf7534
Merge branch 'matthiasc/for-main' into 'main'
...
jpeg loader: Limit memory consumption
See merge request GNOME/gtk!4942
2022-08-10 17:57:55 +00:00
Matthias Clasen
59f6c50df8
jpeg loader: Limit memory consumption
...
This will prevent stupid oom situations with pathological
jpeg files, without affecting our ability to load reasonable
images.
2022-08-10 13:25:17 -04:00
Matthias Clasen
bbd6fdaa04
Merge branch 'jx/hi-res-scrolling' into 'main'
...
High-resolution scroll wheel support
See merge request GNOME/gtk!3839
2022-08-10 16:51:55 +00:00
Carlos Garnacho
6a7136d5fb
ci: Disable -Werror on wayland submodule
...
CI is mostly interested in GTK not introducing compiler warnings, other
submodules like Wayland might have their own and that shouldn't hinder
CI testing of GTK.
Disable -Werror for the wayland submodule, and let it be fixed independently
at some point.
2022-08-10 16:37:17 +02:00
José Expósito
95860d4989
gtkeventcontrollerscroll: Always accumulate discrete deltas
...
When GTK_EVENT_CONTROLLER_SCROLL_DISCRETE is set, accumulate deltas also
for mouse scroll so a high-resolution mouse wheel click behaves in the
in the same manner as a low-resolution mouse wheel click.
2022-08-10 14:23:58 +00:00
José Expósito
37a561eb53
gdk/x11: Handle high-resolution scroll events
2022-08-10 14:23:58 +00:00
José Expósito
ed0a2a203c
gdk/wayland: Handle high-resolution scroll events
...
Starting with the Wayland protocol wl_pointer >= 8, discrete axis
events have been deprecated in favour of high-resolution scroll event.
Add a listener for high-resolution scroll events and, for backwards
compatibility, handle discrete events as discrete*120.
2022-08-10 14:23:58 +00:00
José Expósito
fc3aca8223
gdk/wayland: Calculate discrete scroll direction in its helper
...
Refactor, no functional changes.
2022-08-10 14:23:58 +00:00
José Expósito
6ebb38e12e
gdk/events: Set discrete scroll deltas in its constructor
...
Instead of calculating the discrete scroll deltas in
GtkEventControllerScroll, move that code to the event constructor and
access the precalculated values using gdk_scroll_event_get_deltas.
Refactor, no functional changes.
2022-08-10 14:23:58 +00:00
José Expósito
51ca454eef
gdk/events: Add constructor for high-resolution scroll events
...
Starting with Linux Kernel v5.0 two new axes are available for
mice that support high-resolution wheel scrolling: REL_WHEEL_HI_RES and
REL_HWHEEL_HI_RES.
Both axes send data in fractions of 120 where each multiple of 120
amounts to one logical scroll event. Fractions of 120 indicate a wheel
movement less than one detent.
The 120 magic number is a copy of the Windows API, so this new
constructor can be used both in Linux >= 5.0 and Windows >= Vista.
2022-08-10 14:23:58 +00:00
José Expósito
fb100d719f
build: Update Wayland to >= 1.21.0
2022-08-10 14:23:58 +00:00
Jordi Mas
cf1974f6b1
Update Catalan translation
2022-08-10 14:27:44 +02:00
Emmanuele Bassi
3f4a0aa1f3
Merge branch 'rounded-clip-node-new-transfer-full' into 'main'
...
Mark gsk_rounded_clip_node_new() return value as (transfer full)
See merge request GNOME/gtk!4941
2022-08-10 09:23:02 +00:00
Sebastian Dröge
0cc2d5559b
Mark gsk_rounded_clip_node_new() return value as (transfer full)
...
Like all the other constructors for nodes already do. Without this,
newly created rounded clip nodes are leaked in bindings.
2022-08-10 11:07:51 +03:00
Mat
b4ade026f1
treeview: Do not set top row adjustment value while animating
...
gtk_tree_view_top_row_to_dy, which is called from GtkTreeView's
size_allocate function, changes the adjustment value. Since this
conflicts with the animation when changing the active row, bail
out until the animation is finished.
Fixes #4550
2022-08-10 08:32:47 +03:00
Mat
102ca838b8
treeview: Use widget coordinates where required
...
When a GtkTreeView scrolled horizontally, it was not possible to
select rows outside the initial area due to an erroneous comparison
between widget and bin window coordinates.
Original change to widget coordinates occurred in commit
a0de570e47
2022-08-10 04:25:19 +03:00
Carlos Garnacho
378ae4fbc1
Merge branch 'gbsneto/paned-focus-infloop' into 'main'
...
paned: Protect against NULL variable
Closes #5094
See merge request GNOME/gtk!4938
2022-08-09 18:26:48 +00:00
Matthias Clasen
00f079d705
Merge branch 'wip/carlosg/fix-crossing-on-unmap' into 'main'
...
gtkwindow: Use pointer-oriented function to deal with crossing events
Closes #5094
See merge request GNOME/gtk!4937
2022-08-09 18:15:41 +00:00