summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* idle sizer: Request a motion event after layoutwip/synthetic-motion2Matthias Clasen2020-08-261-1/+15
| | | | | | When we are reallocating widgets, make sure that we get a motion event in the next frame cycle, so the hover state gets updated.
* Add a function to request motion eventsMatthias Clasen2020-08-263-1/+57
| | | | | | | We want to ensure that the pointer position is reflected when widget geometry changes, so add a function that tells GDK "please create a motion event at the current position on this surface, if one doesn't happen already".
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-08-2625-151/+198
|\ | | | | | | | | Matthiasc/for master See merge request GNOME/gtk!2488
| * gdk: Drop an unused vfuncMatthias Clasen2020-08-261-5/+0
| |
| * gdk: CosmeticsMatthias Clasen2020-08-261-7/+5
| |
| * broadway: Fix up surface_at_positionMatthias Clasen2020-08-261-3/+25
| |
| * win32: Fix return value of get_device_stateMatthias Clasen2020-08-261-10/+7
| | | | | | | | We need to look a the position, not the child surface.
| * wayland: Drop unused argument from query_stateMatthias Clasen2020-08-263-13/+15
| | | | | | | | | | Now that this is backend-only api, we can just drop unused arguments.
| * wayland: Fix return value of get_device_stateMatthias Clasen2020-08-261-13/+4
| | | | | | | | We need to look a the position, not the child surface.
| * broadway: Drop unused argument from query_stateMatthias Clasen2020-08-263-16/+2
| | | | | | | | | | Now that this is backend-only api, we can just drop unused arguments.
| * broadway: Fix return value of get_device_stateMatthias Clasen2020-08-261-4/+3
| | | | | | | | We need to look a the position, not the child surface.
| * x11: Drop unused argument from query_stateMatthias Clasen2020-08-264-9/+4
| | | | | | | | | | Now that this is backend-only api, we can just drop unused arguments.
| * x11: Fix return value of get_device_stateMatthias Clasen2020-08-261-9/+8
| | | | | | | | We need to look a the position, not the child surface.
| * gdk: Drop the query_state vfuncMatthias Clasen2020-08-261-6/+0
| | | | | | | | It is no longer used.
| * x11: Stop setting the query_state vfuncMatthias Clasen2020-08-262-5/+2
| |
| * win32: Stop using the query_state vfuncMatthias Clasen2020-08-264-6/+2
| |
| * macos: Stop setting the query_state vfuncMatthias Clasen2020-08-261-1/+0
| |
| * wayland: Stop using the query_state vfuncMatthias Clasen2020-08-263-5/+18
| | | | | | | | Just call the backend implementation directly.
| * broadway: Stop using the query_state vfuncMatthias Clasen2020-08-263-11/+10
| | | | | | | | Just call the backend implementation directly.
| * Drop _gdk_device_query_stateMatthias Clasen2020-08-262-22/+0
| | | | | | | | It is now unused.
| * macos: Stop using _gdk_device_query_stateMatthias Clasen2020-08-264-4/+42
| | | | | | | | Directly use the backend implementation.
| * win32: Stop using _gdk_device_query_stateMatthias Clasen2020-08-267-9/+52
| | | | | | | | Directly use the backend implementation.
| * x11: Stop using _gdk_device_query_stateMatthias Clasen2020-08-263-9/+15
|/ | | | Directly use the backend implementation.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-08-264-12/+40
|\ | | | | | | | | | | | | Matthiasc/for master Closes #3090 See merge request GNOME/gtk!2485
| * Make gdk_surface_get_device_position return a booleanMatthias Clasen2020-08-262-10/+17
| | | | | | | | | | | | | | 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.
| * main: Avoid a crash with crossing event handlingMatthias Clasen2020-08-261-2/+5
| | | | | | | | | | | | | | | | 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
| * widget: Avoid a crash in crossing event handlingMatthias Clasen2020-08-261-0/+18
| | | | | | | | | | | | 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.
* | Merge branch 'broadway-prune' into 'master'Matthias Clasen2020-08-262-40/+147
|\ \ | | | | | | | | | | | | | | | | | | broadway: Prune fully clipped render nodes Closes #3086 See merge request GNOME/gtk!2487
| * | broadway: Prune fully clipped render nodesAlexander Larsson2020-08-262-27/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | broadway: Track the clip region in the rendererAlexander Larsson2020-08-261-14/+41
| | | | | | | | | | | | | | | If we know what can't possibly be visible we may can later decide to not expose a node.
* | | Update Galician translationFran Dieguez2020-08-261-129/+138
|/ /
* | Merge branch 'broadway-debug-nodes' into 'master'Timm Bäder2020-08-261-1/+1
|\ \ | |/ |/| | | | | Broadway: Fix handling of debug nodes See merge request GNOME/gtk!2486
| * Broadway: Fix handling of debug nodesAlexander Larsson2020-08-261-1/+1
| | | | | | | | | | The debug nodes have id BROADWAY_NODE_DEBUG, which happens to be "12". So, don't hardcode the wrong number "14".
* | Merge branch 'broadway-alpha-colors' into 'master'Emmanuele Bassi2020-08-261-1/+1
|\ \ | |/ |/| | | | | broadway: Correct handling of opaque colors See merge request GNOME/gtk!2484
| * broadway: Correct handling of opaque colorsAlexander Larsson2020-08-261-1/+1
|/ | | | | | 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..
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-08-251-0/+39
|\ | | | | | | | | fontchooser: Populate the list incrementally See merge request GNOME/gtk!2483
| * fontchooser: Populate the list incrementallyMatthias Clasen2020-08-251-0/+39
| | | | | | | | | | | | | | 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.
* | Merge branch 'ebassi/for-master' into 'master'Emmanuele Bassi2020-08-257-103/+185
|\ \ | | | | | | | | | | | | Ebassi/for master See merge request GNOME/gtk!2480
| * | a11y: Simplify the ATContext::state-change signalEmmanuele Bassi2020-08-251-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Annotate GValue-variants methods of GtkAccessibleEmmanuele Bassi2020-08-251-3/+3
| | | | | | | | | | | | | | | | | | 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.
| * | Properly document GtkAccessible:accessible-roleEmmanuele Bassi2020-08-251-0/+7
| | | | | | | | | | | | Use a gtk-doc stanza, instead of the GParamSpec strings.
| * | a11y: Do not notify of empty state changesEmmanuele Bassi2020-08-252-6/+35
| | | | | | | | | | | | | | | | | | | | | 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.
| * | a11y: Notify callers when an attributes set changesEmmanuele Bassi2020-08-252-6/+35
| | | | | | | | | | | | We can use that information inside the ATContext.
| * | a11y: GtkATContext.update_state() was renamed to update()Emmanuele Bassi2020-08-251-3/+3
| | |
| * | a11y: Allow bulk attribute update with the GValue APIEmmanuele Bassi2020-08-252-72/+93
| | | | | | | | | | | | Like we do for the varargs API.
| * | a11y: Different value types cannot be equalEmmanuele Bassi2020-08-251-0/+3
| | | | | | | | | | | | | | | | | | Bail out early, instead of going deep into the GtkAccessibleValue type equal() implementation, where we expect both accessible values to have the same type.
* | | Updated Lithuanian translationAurimas Černius2020-08-252-2967/+2679
| | |
* | | Merge branch 'demo-double-border-fixes' into 'master'Matthias Clasen2020-08-254-24/+37
|\ \ \ | | | | | | | | | | | | | | | | gtk-demo: Avoid double borders See merge request GNOME/gtk!2478
| * | | gtk-demo: Avoid double borders in the blendmodes demonana-42020-08-251-0/+4
| | | |
| * | | gtk-demo: Avoid double borders in the fontrendering demonana-42020-08-251-1/+3
| | | | | | | | | | | | | | | | Replace the frame with a separator.