summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* windowhandle: Use drag threshold instead of double click thresholdwip/exalm/consumes-motionAlexander Mikhaylenko2021-01-291-10/+2
| | | | | | | | Now that we have gtk_drag_check_threshold_double(), be consistent with other draggable widgets and make sure we don't take over a drag before a child does. Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3513
* dragsource: Use double coordinates for checking drag thresholdAlexander Mikhaylenko2021-01-2917-45/+98
| | | | | | | | | | | | | | | | | | If multiple nested widgets have drag sources on them, both using bubble phase, we need to reliably pick the inner one. Both of them will try to start dragging, and we need to make sure there are no situations where the outer widget starts drag earlier and cancels the inner one. Currently, this can easily happen via integer rounding: start and current coordinates passed into gtk_drag_check_threshold() are initially doubles (other than in GtkNotebook and GtkIconView), and are casted to ints. Then those rounded values are used to calculate deltas to compare to the drag threshold, losing quite a lot of precision along the way, and often resulting in the outer widget getting larger deltas. To avoid it, just don't round it. Introduce a variant of the function that operates on doubles: gtk_drag_check_threshold_double() and use it instead of the original everywhere.
* entry: Fix drag threshold checkAlexander Mikhaylenko2021-01-291-5/+6
| | | | It was passing offsets as current oordinates.
* windowhandle: Don't drag on capture phaseAlexander Mikhaylenko2021-01-293-84/+4
| | | | | | | | | This was needed to work around widgets claiming event sequences on press, by ignoring them and starting the drag anyway unless they have certain event controllers on them. The most visible offender was GtkButton, but since the last commit it doesn't claim the sequence anymore and we can remove the hack.
* checkbutton: Claim sequence on release instead of pressAlexander Mikhaylenko2021-01-291-2/+2
| | | | Make it possible to drag windows from check buttons in future.
* button: Stop claiming event sequence on pressAlexander Mikhaylenko2021-01-291-4/+0
| | | | | | | | Currently GtkButton claims the sequence both on press and on release. Stop claiming it on press and only do it on release, allowing drags to start from it. This will allow to remove a hack from GtkWindowHandle.
* Merge branch 'pango-glyph-positions' into 'master'Matthias Clasen2021-01-293-9/+13
|\ | | | | | | | | Tell pango not to round glyph positions See merge request GNOME/gtk!2058
| * gsk: Fix render node serializationpango-glyph-positionsMatthias Clasen2021-01-281-5/+7
| | | | | | | | | | When looking for ascii glyphs, we must match the pango shape flags that GTK is using.
| * widget: Use subpixel positioningMatthias Clasen2021-01-281-1/+3
| | | | | | | | | | | | | | Before turning off pangos rounding of glyph positions, we must check if the cairo we are using is new enough to have working subpixel positioning (the relevant cairo commit is 52a7c79fd4ff96bb5fac175f0199819b0f8c18fc).
| * gsk: Fix a thinkoMatthias Clasen2021-01-281-3/+3
| | | | | | | | | | With subpixel positioning, we need to offset the cached glyphs by their phase.
* | Update Swedish translationAnders Jonsson2021-01-281-130/+146
|/ | | | (cherry picked from commit 5a5bb9099e8e8781a307ce3f9f72e52937d3d411)
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-01-2878-197/+46
|\ | | | | | | | | Matthiasc/for master See merge request GNOME/gtk!3127
| * label: Drop some unused includesMatthias Clasen2021-01-281-4/+0
| |
| * Remove vestigial glade supportMatthias Clasen2021-01-284-107/+0
| | | | | | | | | | These files have not been kept up to date, and glade doesn't work with GTK4 currently.
| * Move the gesture icons in the right placeMatthias Clasen2021-01-2817-6/+1
| | | | | | | | Put these images into gtk/icons, where they belong.
| * Drop unused logo resourceMatthias Clasen2021-01-283-2/+1
| | | | | | | | The inspector no longer sets a window icon.
| * Reduce use of GtkStyleContextMatthias Clasen2021-01-2835-62/+26
| | | | | | | | | | | | Remove some unnecessary uses of GtkStyleContext where we can directly go to the GtkCssStyle, and and drop unnnecessary includes.
| * Unify border-spacing handlingMatthias Clasen2021-01-283-7/+8
| | | | | | | | | | Avoid using GtkStyleContext unnecessarily, just go to the css node directly.
| * build: Redo the tools buildMatthias Clasen2021-01-2818-9/+10
| | | | | | | | | | | | Move the tools directory to be toplevel, and instead of recompiling sources twice, link them with the our new static libgtk.a.
* | Merge branch 'wip/fl/gl-renderer-fixes' into 'master'Matthias Clasen2021-01-281-1/+1
|\ \ | |/ |/| | | | | gskglshaderbuilder: bind correct uv location See merge request GNOME/gtk!3128
| * gskglshaderbuilder: bind correct uv locationFabio Lagalla2021-01-281-1/+1
|/
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-01-283-1/+24
|\ | | | | | | | | builder-tool: Translate GtkImage:pixbuf See merge request GNOME/gtk!3126
| * builder-tool: Translate GtkImage:pixbufMatthias Clasen2021-01-273-1/+24
| | | | | | | | | | | | The pixbuf property doesn't exist anymore. It is commonly set to a path in ui files, so translate it to the file property.
* | Merge branch 'wip/fl/gl-gradients' into 'master'Matthias Clasen2021-01-2810-179/+256
|\ \ | | | | | | | | | | | | OpenGL gradient rendering improvements and additions See merge request GNOME/gtk!3105
| * | gskglrenderer: Remove switch fallthrough commentsFabio Lagalla2021-01-271-2/+0
| | |
| * | gskrendernode: Cache angle in conic gradientsFabio Lagalla2021-01-276-14/+36
| | |
| * | gskglrenderer: Use gboolean instead of boolFabio Lagalla2021-01-273-6/+6
| | |
| * | gskglrenderer: First class support of repeating-radial-gradientFabio Lagalla2021-01-275-1/+16
| | |
| * | gskglrenderer: First class support of repeating-linear-gradientFabio Lagalla2021-01-275-1/+15
| | |
| * | gskglrenderer: Optimize conic-gradient shaderFabio Lagalla2021-01-273-51/+64
| | |
| * | gskglrenderer: Optimize radial-gradient shaderFabio Lagalla2021-01-273-68/+54
| | |
| * | gskglrenderer: Optimize linear-gradient shaderFabio Lagalla2021-01-274-54/+83
| | |
* | | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-01-271-0/+5
|\ \ \ | | |/ | |/| | | | | | | docs: Add gtk_widget_grab_default to migration guide See merge request GNOME/gtk!3125
| * | docs: Add gtk_widget_grab_default to migration guideMatthias Clasen2021-01-271-0/+5
|/ / | | | | | | Point out the replacement for this api.
* | Merge branch 'sophie-h-master-patch-47269' into 'master'Timm Bäder2021-01-271-1/+1
|\ \ | |/ |/| | | | | widget: get_name() is not nullable See merge request GNOME/gtk!3124
| * widget: get_name() is not nullableSophie Herold2021-01-271-1/+1
|/ | | Partial revert of !2905
* Merge branch 'fix-can-focus' into 'master'Matthias Clasen2021-01-271-2/+16
|\ | | | | | | | | | | | | widget: Fix can-focus Closes #3610 See merge request GNOME/gtk!3123
| * widget: Fix can-focusMatthias Clasen2021-01-261-2/+16
| | | | | | | | | | | | | | | | | | | | Setting can-focus to FALSE on a widget is supposed to prevent focus from entering the entire subtree. So when we grab focus directly to a widget, we need to check the can-focus flag not just of the widget itself, but all its ancestors. Fixes: #3610
* | Merge branch 'search-entry-capture' into 'master'Matthias Clasen2021-01-272-8/+24
|\ \ | | | | | | | | | | | | | | | | | | Search entry capture Closes #3098 See merge request GNOME/gtk!3115
| * | searchentry: Capture events in the bubble phasesearch-entry-captureMatthias Clasen2021-01-261-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | This is an unfortunate naming clash, but it avoids an event handling clash between the capture widget and its children. Fixes: #3098
| * | searchbar: Capture events in the bubble phaseMatthias Clasen2021-01-251-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | This is an unfortunate naming clash, but it avoids an event handling clash between the capture widget and its children. Fixes: #3098
| * | searchbar: Fix documentation mishapMatthias Clasen2021-01-251-4/+4
| | | | | | | | | | | | | | | The css section was inserted between the example and the sentence referring to it.
* | | Merge branch 'css-crossfade-color' into 'master'Matthias Clasen2021-01-274-13/+40
|\ \ \ | |_|/ |/| | | | | | | | Css crossfade color See merge request GNOME/gtk!3122
| * | css: Support colors in cross fadesMatthias Clasen2021-01-262-4/+18
| | | | | | | | | | | | | | | | | | | | | The CSS Image Spec (Level 4) allows colors in cross-fade expressions to specify solid-color images. Support this.
| * | css: Add a constructor for GtkCssImageFallbackMatthias Clasen2021-01-262-6/+19
| | | | | | | | | | | | Add a way to create a solid color image.
| * | docs: CosmeticsMatthias Clasen2021-01-261-3/+3
|/ / | | | | | | Tweak the css docs slightly.
* | Merge branch 'gst-vaapi-fix-pre' into 'master'Matthias Clasen2021-01-271-33/+32
|\ \ | | | | | | | | | | | | Minor fixes to gtkgstsink See merge request GNOME/gtk!3120
| * | gtkgstsink: Use video_frame_free also for the GL pathJan Alexander Steffens (heftig)2021-01-261-19/+18
| | | | | | | | | | | | | | | | | | The video frame needs to stay mapped while the texture is in use. Avoid using g_memdup because the structure is not supposed to be moved.
| * | gtkgstsink: Report allocation size even if no pool requestedJan Alexander Steffens (heftig)2021-01-261-14/+14
| | | | | | | | | | | | We can do that so we should.
* | | Merge branch 'css-text-decoration' into 'master'Matthias Clasen2021-01-2711-86/+236
|\ \ \ | |/ / |/| | | | | | | | | | | | | | css: Fix text-decoration-line support Closes #3621 See merge request GNOME/gtk!3121