Alexander Mikhaylenko
0a59429dc8
wayland: Fix dnd hotspot movement
...
_gdk_wayland_surface_offset_next_wl_buffer() moves the surface relatively
to its current position, pass it a delta instead of new position.
2020-08-27 04:04:48 +05:00
Matthias Clasen
70ae073394
Merge branch 'matthiasc/for-master' into 'master'
...
Matthiasc/for master
See merge request GNOME/gtk!2488
2020-08-26 22:34:08 +00:00
Carlos Garnacho
6421355065
gdk/wayland: Use double-click/drag-threshold settings from g-d-s
...
Handle both these settings, and the older settings-daemon ones for
backwards compatibility. The keys are already checked for existence
in the schema, so it will just use the existing ones.
2020-08-27 00:27:50 +02:00
Carlos Garnacho
536966e848
gdk/wayland: Look for font settings in gsettings-desktop-schemas
...
Prefer this location, but also look for the old location in
settings-daemon for backwards compatibility. This applies to both
direct settings lookups and via the settings portal.
2020-08-27 00:18:09 +02:00
Matthias Clasen
1c44910dfe
gdk: Drop an unused vfunc
2020-08-26 18:09:47 -04:00
Matthias Clasen
bf9bb71813
gdk: Cosmetics
2020-08-26 17:56:41 -04:00
Matthias Clasen
75915bc782
broadway: Fix up surface_at_position
2020-08-26 17:56:41 -04:00
Matthias Clasen
618891a41a
win32: Fix return value of get_device_state
...
We need to look a the position, not the child surface.
2020-08-26 17:56:41 -04:00
Matthias Clasen
0d82fcf76f
wayland: Drop unused argument from query_state
...
Now that this is backend-only api, we can just
drop unused arguments.
2020-08-26 17:56:41 -04:00
Matthias Clasen
0091de63b4
wayland: Fix return value of get_device_state
...
We need to look a the position, not the child surface.
2020-08-26 17:56:41 -04:00
Matthias Clasen
338d6adb10
broadway: Drop unused argument from query_state
...
Now that this is backend-only api, we can just
drop unused arguments.
2020-08-26 17:56:41 -04:00
Matthias Clasen
c4c155d698
broadway: Fix return value of get_device_state
...
We need to look a the position, not the child surface.
2020-08-26 17:56:41 -04:00
Matthias Clasen
b9016229c1
x11: Drop unused argument from query_state
...
Now that this is backend-only api, we can just
drop unused arguments.
2020-08-26 17:56:41 -04:00
Matthias Clasen
cf257e6676
x11: Fix return value of get_device_state
...
We need to look a the position, not the child surface.
2020-08-26 17:56:41 -04:00
Matthias Clasen
62ed769e74
gdk: Drop the query_state vfunc
...
It is no longer used.
2020-08-26 17:56:41 -04:00
Matthias Clasen
f3a0357ab0
x11: Stop setting the query_state vfunc
2020-08-26 17:56:41 -04:00
Matthias Clasen
1d8ac79296
win32: Stop using the query_state vfunc
2020-08-26 17:56:41 -04:00
Matthias Clasen
374c776749
macos: Stop setting the query_state vfunc
2020-08-26 17:56:41 -04:00
Matthias Clasen
8c9e1e7444
wayland: Stop using the query_state vfunc
...
Just call the backend implementation directly.
2020-08-26 17:56:41 -04:00
Matthias Clasen
73d81d7178
broadway: Stop using the query_state vfunc
...
Just call the backend implementation directly.
2020-08-26 17:56:41 -04:00
Matthias Clasen
84355ccbff
Drop _gdk_device_query_state
...
It is now unused.
2020-08-26 17:56:41 -04:00
Matthias Clasen
b2c92392fc
macos: Stop using _gdk_device_query_state
...
Directly use the backend implementation.
2020-08-26 17:56:41 -04:00
Matthias Clasen
9e06e830b7
win32: Stop using _gdk_device_query_state
...
Directly use the backend implementation.
2020-08-26 17:56:41 -04:00
Matthias Clasen
62a4a356c9
x11: Stop using _gdk_device_query_state
...
Directly use the backend implementation.
2020-08-26 15:31:07 -04:00
Matthias Clasen
1e4c6cde10
Merge branch 'matthiasc/for-master' into 'master'
...
Matthiasc/for master
Closes #3090
See merge request GNOME/gtk!2485
2020-08-26 18:02:18 +00:00
Matthias Clasen
372db8d239
Merge branch 'broadway-prune' into 'master'
...
broadway: Prune fully clipped render nodes
Closes #3086
See merge request GNOME/gtk!2487
2020-08-26 17:52:57 +00:00
Alexander Larsson
d57e6b754f
broadway: Prune fully clipped render nodes
...
If some node is fully outside the clip region we don't send it to the daemon.
This helps a lot in how much data we send for scrolling viewports.
However, sending partial trees makes node reuse a bit more tricky. We
can't save for reuse any node that could possibly clip different depending on
the clip region, as that could be different next frame. So, unless the
node is fully contained in the current clip (and we thus know it is not
parial) we don't allow reusing that next frame.
This fixes #3086
2020-08-26 18:08:00 +02:00
nana-4
59e0959186
Adwaita: Add border-spacing to some container widgets and style classes
...
This commit adds border-spacing to actionbar, searchbar, .toolbar and
.app-notification, so their child widgets won't appear to be connected
even without margin.
2020-08-27 00:47:08 +09:00
Fran Dieguez
3b1300632d
Update Galician translation
2020-08-26 15:42:23 +00:00
nana-4
738f5f4523
Adwaita: Fix border-spacing for headerbar
...
GtkHeaderBar uses GtkCenterBox internally nowadays, so the theme needs
to correspond to it.
2020-08-27 00:38:17 +09:00
Alexander Larsson
4b1ea7c4a1
broadway: Track the clip region in the renderer
...
If we know what can't possibly be visible we may can later decide to
not expose a node.
2020-08-26 16:55:56 +02:00
Matthias Clasen
74a452df6c
Make gdk_surface_get_device_position return a boolean
...
A year ago, we make this function not return the child
surface anymore. But the information whether the device
is actually over the surface is still useful, and we
should not loose it.
2020-08-26 09:11:28 -04:00
Timm Bäder
45046a53eb
Merge branch 'broadway-debug-nodes' into 'master'
...
Broadway: Fix handling of debug nodes
See merge request GNOME/gtk!2486
2020-08-26 12:38:09 +00:00
Alexander Larsson
918996b047
Broadway: Fix handling of debug nodes
...
The debug nodes have id BROADWAY_NODE_DEBUG, which happens to be "12".
So, don't hardcode the wrong number "14".
2020-08-26 14:01:00 +02:00
Matthias Clasen
b6eb85ee72
main: Avoid a crash with crossing event handling
...
We are reusing the GtkCrossingData struct for multiple
calls here, so we need to make sure that the targets
stay alive from beginning to end.
Fixes : #3090
2020-08-26 07:27:38 -04:00
Matthias Clasen
44741e1b77
widget: Avoid a crash in crossing event handling
...
We need to make sure that the crossing data stays
alive until we are done handling it, so take references
on all the widgets in it.
2020-08-26 07:26:49 -04:00
Emmanuele Bassi
eef1818cee
Merge branch 'broadway-alpha-colors' into 'master'
...
broadway: Correct handling of opaque colors
See merge request GNOME/gtk!2484
2020-08-26 11:20:03 +00:00
Alexander Larsson
fcaa6e98d0
broadway: Correct handling of opaque colors
...
If alpha is 255, we use rgb() instead of rgba(), not if alpha is 0.
This makes the title bar gradient go from fully transparent to blue
rather than black to blue..
2020-08-26 12:18:28 +02:00
Matthias Clasen
f48a1e4069
Merge branch 'matthiasc/for-master' into 'master'
...
fontchooser: Populate the list incrementally
See merge request GNOME/gtk!2483
2020-08-25 20:53:02 +00:00
Emmanuele Bassi
c21b9bec95
Merge branch 'ebassi/for-master' into 'master'
...
Ebassi/for master
See merge request GNOME/gtk!2480
2020-08-25 20:34:18 +00:00
Aurimas Černius
659ec97456
Updated Lithuanian translation
2020-08-25 23:23:57 +03:00
Matthias Clasen
42cc15bb74
Merge branch 'demo-double-border-fixes' into 'master'
...
gtk-demo: Avoid double borders
See merge request GNOME/gtk!2478
2020-08-25 20:19:49 +00:00
Matthias Clasen
8e452b2b54
Merge branch 'inspector-double-border-fixes' into 'master'
...
inspector: Avoid double borders
See merge request GNOME/gtk!2477
2020-08-25 20:18:47 +00:00
Matthias Clasen
740559a54f
fontchooser: Populate the list incrementally
...
By adding 20 fonts / frame to the font list, we can
get the font chooser dialog to show up much faster.
This change gets the font chooser up in 265ms here.
2020-08-25 15:51:04 -04:00
Matthias Clasen
75cf990f74
Merge branch 'matthiasc/for-master' into 'master'
...
Revert unintentional calendar change
See merge request GNOME/gtk!2482
2020-08-25 18:29:27 +00:00
Matthias Clasen
612d2ea1f0
Revert unintentional calendar change
...
This was unintentionally included in c0efadc0f3
.
2020-08-25 14:12:35 -04:00
Emmanuele Bassi
d58136e23d
a11y: Simplify the ATContext::state-change signal
...
We cannot pass all the data we pass to the virtual function, because the
types are private, but the class and the signal are public API.
The signal is just a notification, so we can decouple the virtual
function (which stays the same, for internal types that implement the
ATContext API contract) from the signal.
2020-08-25 16:36:08 +01:00
Emmanuele Bassi
256c9c9873
Annotate GValue-variants methods of GtkAccessible
...
The variadic arguments methods cannot be used by language bindings,
which means we can let them use their names when calling the
GValue-based methods.
2020-08-25 16:36:08 +01:00
Emmanuele Bassi
fd568e63c2
Properly document GtkAccessible:accessible-role
...
Use a gtk-doc stanza, instead of the GParamSpec strings.
2020-08-25 16:36:08 +01:00
Emmanuele Bassi
797b3bd1b1
a11y: Do not notify of empty state changes
...
If the ATContext state hasn't changed—for instance, if the accessible
attributes have been set to their default value, or have been set to the
same value—do not emit an accessible state change. State changes can be
arbitrarily expensive, so we want to ensure that they are meaningful.
2020-08-25 16:36:08 +01:00