Matthias Clasen
c2965aed35
Merge branch 'dragsurface-resize' into 'main'
...
Fix drag surfaces ignoring size updates on Wayland and X11
See merge request GNOME/gtk!5597
2023-03-15 02:59:19 +00:00
Ivan Molodetskikh
11d9bbfd6e
x11/surface: Get current drag surface size with compute-size signal
...
Query and update size of drag surfaces, similarly to how it's done for
the Wayland backend in the previous commit.
2023-03-14 19:41:44 -07:00
Ivan Molodetskikh
f63fc91b0e
wayland/dragsurface: Get current size with compute-size signal
...
GdkDragSurface-backed widgets are not parented to an existing widget,
unlike popovers, and like toplevels. This means that there's nobody to
actively call gdk_drag_surface_present() to update the size, and
GdkDragSurface should do it on its own, just like GdkToplevel.
This commit implements this for the Wayland backend.
2023-03-14 19:41:44 -07:00
Ivan Molodetskikh
e041646bfc
dragicon: Handle compute-size
...
Compute our size when requested by the backend. This makes GtkDragIcons
actually recompute their size when it changes, instead of getting stuck
with the first size and potentially underallocating.
2023-03-14 19:41:44 -07:00
Ivan Molodetskikh
c3dde05d33
dragsurface: Add compute-size signal
...
Similarly to GdkToplevel, GdkDragSurface's compute-size should be called
by backends to query the current surface size, and should be connected
to by widget implementations (like GtkDragIcon) to report the current
size.
GdkDragSurface-backed widgets are not parented to an existing widget,
unlike popovers, and like toplevels. This means that there's nobody to
actively call gdk_drag_surface_present() to update the size, and
GdkDragSurface should do it on its own, just like GdkToplevel.
2023-03-14 19:41:44 -07:00
Matthias Clasen
45434d501c
Add GdkDragSurfaceSize
...
This helper type will be used in the next commit for a new compute-size
request on GdkDragSurface. It is analogous in spirit to GdkToplevelSize.
2023-03-14 19:41:44 -07:00
Matthias Clasen
b74d483f01
Merge branch 'matthiasc/for-main' into 'main'
...
gl: Print max texture size in debug output
See merge request GNOME/gtk!5654
2023-03-15 02:32:37 +00:00
Ivan Molodetskikh
cd5af8c0d9
tests: Add resizing drag icon test
...
The test can verify that dynamic drag icon resizing and hotspot
adjustment work as intended.
2023-03-14 19:31:49 -07:00
Matthias Clasen
9a2cc79286
gl: Print max texture size in debug output
...
This is useful information.
2023-03-14 22:13:37 -04:00
Matthias Clasen
cc7d996a5c
Merge branch 'add_visited_state' into 'main'
...
a11y: Add GTK_ACCESSIBLE_STATE_VISITED
See merge request GNOME/gtk!5616
2023-03-15 01:24:18 +00:00
Aleksandr Melman
79e7078949
Update Russian translation
2023-03-14 20:47:29 +00:00
Matthias Clasen
53cfbbbb65
Merge branch 'drop-gslice' into 'main'
...
Drop gslice
See merge request GNOME/gtk!5634
2023-03-14 19:22:28 +00:00
Matthias Clasen
bc592c92be
inspector: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
6d380cdfb4
css: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
61d53b6402
tests: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
fe79c7db16
testsuite: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
bcb0882208
modules: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
a36123c802
gtk: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
9f88dba162
gsk: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
98ff6c0d4d
gdk: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
15d73a1adb
macos: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
6f93baf420
win32: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
5cca7488d4
x11: Stop using g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
83d14bfa98
CODING-STYLE: Drop mention of g_slice
2023-03-14 14:56:42 -04:00
Matthias Clasen
f0c076619d
Merge branch 'wip/exalm/boxed-list' into 'main'
...
theme: Port .boxed-list style from libadwaita
See merge request GNOME/gtk!4806
2023-03-14 18:54:54 +00:00
Benjamin Otte
a05b73cb05
Merge branch 'wip/hadess/children-left-msg' into 'main'
...
gtk: Fix "children left" warning with fatal warnings
See merge request GNOME/gtk!5652
2023-03-14 16:31:44 +00:00
Alexander Mikhaylenko
b4dc7f29d4
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-03-14 20:16:51 +04:00
Bastien Nocera
4f1ea18c10
gtk: Fix "children left" warning with fatal warnings
...
When fatal warnings were turned on, the developer would never see which
widgets were left as children to the widget that triggered the warning as
those were printed in separate g_warning calls.
Print a single warning with all the info so runs with fatal warnings
aren't left without any info.
2023-03-14 16:45:59 +01:00
Matthias Clasen
7c60fb88b0
Merge branch 'matthiasc/for-main' into 'main'
...
Start 4.12 development
See merge request GNOME/gtk!5651
2023-03-14 15:33:20 +00:00
Matthias Clasen
93edb08094
Start 4.12 development
2023-03-14 11:16:30 -04:00
Martin
7a0e8f2b8b
Update Slovenian translation
2023-03-14 12:43:31 +00:00
Matthias Clasen
7ed8c5b6c7
Post-release version bump
2023-03-14 08:16:30 -04:00
Matthias Clasen
d776ad789d
4.10.1
2023-03-14 07:50:49 -04:00
Daniel
86bbc13a61
Updated Spanish translation
2023-03-14 12:43:00 +01:00
Matthias Clasen
664ce48a4c
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Mark mask nodes as 'supports transforms'
See merge request GNOME/gtk!5650
2023-03-14 05:30:17 +00:00
Matthias Clasen
42f1b623bf
css: Small speedups
2023-03-14 01:14:57 -04:00
Matthias Clasen
6b7f0266ac
icontheme: Silence a compiler warning
2023-03-14 01:14:57 -04:00
Matthias Clasen
ad84ee8352
tests: Add more tests for texture scale nodes
2023-03-14 01:14:57 -04:00
Matthias Clasen
c035384fc8
gsk: Mark mask nodes as 'supports transforms'
...
Just like blur nodes, the renderer can handle
these without creating an extra offscreen.
2023-03-14 01:14:57 -04:00
Matthias Clasen
7b1644b2d0
Merge branch 'fix-texture-scale-rotation' into 'main'
...
gtk4-demo: Polish the image scaling demo
See merge request GNOME/gtk!5649
2023-03-14 05:08:37 +00:00
Benjamin Otte
aaac380053
Merge branch 'bilelmoussaoui-main-patch-31679' into 'main'
...
GLTexture: Add GL_RGB format support
See merge request GNOME/gtk!5647
2023-03-14 05:03:13 +00:00
Matthias Clasen
dcc6cb8f1c
gsk: Fix rotated texture scale nodes
...
This was causing us to render rotated texture scale
nodes to an unclipped offscreen, bringing 'giant
intermediate texture' problems back.
2023-03-14 05:36:08 +01:00
Matthias Clasen
0c1ec82a74
gtk4-demo: Add a tooltip to image scaling
...
Show some information about the values.
2023-03-14 05:36:08 +01:00
Matthias Clasen
3eb9afb0ca
gtk4-demo: Polish the image scaling demo
...
Make the scale binding bidirectional again, fix up
the ranges and the sensitivity of the actions, and
add a mark for the unscaled position.
2023-03-14 05:36:08 +01:00
Jürgen Benvenuti
36037a2ee8
Update German translation
2023-03-13 18:30:32 +00:00
Bilal Elmoussaoui
23408f6dbf
GLTexture: Add GL_RGB format support
2023-03-13 13:59:17 +00:00
Matthias Clasen
413abef01d
Merge branch 'more-scaled-texture-fixes' into 'main'
...
Fix gtk_snapshot_append_scaled_texture
See merge request GNOME/gtk!5638
2023-03-13 08:58:58 +00:00
Matthias Clasen
4f8743a537
Merge branch 'matthiasc/for-main' into 'main'
...
gtk4-demo: Fix rotation handling in image scaling
See merge request GNOME/gtk!5643
2023-03-13 07:55:52 +00:00
Matthias Clasen
e24d4ba5db
gtk4-demo: Use gtk_snapshot_append_scaled_texture
2023-03-13 08:54:13 +01:00
Matthias Clasen
118361a085
Fix gtk_snapshot_append_scaled_texture
...
This was doing the wrong thing with transforms.
2023-03-13 08:45:12 +01:00