Carlos Garnacho
0a5d21ca9e
gtkwindow: Rename function
...
With gtk_grab_notify_foreach() just taking care of emitting crossing
notifications due to the GTK grab change, rename it to a more apt
gtk_synthesize_grab_crossing().
2021-05-18 00:16:48 +02:00
Carlos Garnacho
f003a4c6cc
gtkwindow: Simplify GTK grab notification
...
The _gtk_widget_grab_notify() function just (maybe) did a) reset
controllers and b) hide toplevels. The second part was a testing
remnant introduced in commit 024d832d94
, not part of the original
fix.
Do the former more concisely, called from the place where we figure
out whether a widget's ability to receive events changed due to
GTK grabs. It's across those changes that we are interested in
resetting the controllers.
With the gestures being reset both ways, GtkWindowHandle (and
probably other) gestures are now able to reset after a GTK grab
takes input away (e.g. GtkMenuButton). This could be seen as
a sudden jump the next time they'd be dragged with the mouse,
as the gesture would "resume" the previous interaction.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3942
2021-05-18 00:16:48 +02:00
Matthias Clasen
8670034c86
Merge branch 'ebassi/rev-parse-fallback' into 'master'
...
build: Check CI envvars before rev-parse
See merge request GNOME/gtk!3559
2021-05-17 21:13:04 +00:00
Emmanuele Bassi
c1fbf654a0
build: Check CI envvars before rev-parse
...
The CI pipeline does not do a full clone, so we cannot use `git
rev-parse` to get the short SHA checksum for the current commit.
Of course, since nothing's ever easy, we cannot use vcs_tag() with a
custom command, so we need to generate our out `demo_conf.h` header
straight from a script.
2021-05-17 21:34:13 +01:00
Matthias Clasen
9066078928
Merge branch 'wip/exalm/activatable2' into 'master'
...
theme: Specificity bump for dropdowns
See merge request GNOME/gtk!3558
2021-05-17 20:10:12 +00:00
Alexander Mikhaylenko
4f16e661cf
theme: Specificity bump for dropdowns
...
Fix a fallout from d56711b5d8
2021-05-17 23:26:08 +05:00
Matthias Clasen
45b85767c4
Merge branch 'wip/exalm/activatable' into 'master'
...
listitemwidget: Have .activatable style class if the item is activatable
See merge request GNOME/gtk!3557
2021-05-17 15:56:02 +00:00
Alexander Mikhaylenko
d56711b5d8
listitemwidget: Have .activatable style class if the item is activatable
...
Match GtkListBox, so it's possible to use the same styles for them.
Update GtkListView and GtkGridView docs to reflect that, fix a few gtk-doc
formatting leftovers along the way.
2021-05-17 18:10:35 +05:00
Matthias Clasen
df28a57ae3
Merge branch 'matthiasc/for-master' into 'master'
...
ngl: Add padding between cached glyphs
See merge request GNOME/gtk!3555
2021-05-17 12:12:22 +00:00
Matthias Clasen
04bac8ef2a
testsuite: Run some installed tests exclusively
...
My suspicion is that the clipboard (and some other)
installed test interferes with others, because the
clipboard is a shared resource.
2021-05-17 07:16:42 -04:00
Matthias Clasen
7ad193787e
Merge branch 'wip/exalm/emojichooser' into 'master'
...
emojichooser: Set selection-mode=none on the toolbar flowbox
See merge request GNOME/gtk!3556
2021-05-17 11:10:33 +00:00
Alexander Mikhaylenko
27e662cfd1
emojichooser: Set selection-mode=none on the toolbar flowbox
...
Selection is never used there, avoid unwanted selected states if clicking
outside the buttons.
2021-05-17 14:09:03 +05:00
Pawan Chitrakar
661a572d82
Update Nepali translation
...
(cherry picked from commit 597a624fc5
)
2021-05-16 07:41:56 +00:00
Matthias Clasen
66b4f0cac4
ngl: Reuse texture coordinates
...
When uploading glyphs, reuse the position that
we get from gsk_ngl_texture_library_pack, instead
of recomputing it.
2021-05-15 22:23:14 -04:00
Matthias Clasen
81e0206465
ngl: Be consistent about padding
...
Make gsk_ngl_texture_library_pack always return
the position including the padding. And compute
texture coordinates accurately in all cases (we
were fudging the padding for standalone textures.
2021-05-15 22:21:26 -04:00
Matthias Clasen
cb1babeeba
ngl: Add padding between cached glyphs
...
Without this, adjacent items in the cache sometimes
bleed into the texture for a glyph.
2021-05-15 22:15:05 -04:00
Matthias Clasen
67dc778b8f
Merge branch 'gst-egl-optional' into 'master'
...
meson: Do not enforce GStreamer EGL lib
See merge request GNOME/gtk!3554
2021-05-15 14:21:09 +00:00
Rafał Dzięgiel
bbd4ee2986
meson: Do not enforce GStreamer EGL lib
...
GStreamer EGL headers are handled by GstGL lib.
No need to additionally import them.
2021-05-15 14:03:23 +02:00
Kjartan Maraas
42b2eae532
Update Norwegian Bokmål translation
...
(cherry picked from commit d952fa48e7
)
2021-05-15 07:35:38 +00:00
Matthias Clasen
0902f45d71
Merge branch 'gst-x11-egl' into 'master'
...
gtkgstsink: Support EGL under x11
See merge request GNOME/gtk!3553
2021-05-14 19:57:05 +00:00
Rafał Dzięgiel
c51eb7665e
gtkgstsink: Support EGL under x11
...
Add support for EGL under x11 windowing system to GStreamer sink
2021-05-14 19:29:00 +02:00
Matthias Clasen
1a426d6fff
Merge branch 'ebassi/issue-3948' into 'master'
...
x11: Loosen the match for the NVIDIA driver
Closes #3948
See merge request GNOME/gtk!3549
2021-05-14 10:50:59 +00:00
Matthias Clasen
07b5072c9c
Merge branch 'matthiasc/for-master' into 'master'
...
inspector: Use new get_egl_display apis
See merge request GNOME/gtk!3546
2021-05-14 00:40:05 +00:00
Matthias Clasen
3a0febfe79
Merge branch 'offscreen-fixes' into 'master'
...
Add some more transform tests
See merge request GNOME/gtk!3551
2021-05-14 00:38:52 +00:00
Matthias Clasen
8e7bc8d742
Improve transformed offscreen rendering
...
Preserve the scale for 2D transforms to
avoid a pixellated appearance.
2021-05-13 19:37:16 -04:00
Matthias Clasen
809299f9e4
Add some more transform tests
...
Test that gsk_transform_to_affine works.
2021-05-13 19:37:16 -04:00
Matthias Clasen
c391cf38e2
testzoom: Fix the in-place rotate
2021-05-13 19:37:16 -04:00
Matthias Clasen
8c75e6896e
inspector: Use new get_egl_display apis
...
This makes the code a bit more concise.
Also, get WGL information when we are using it.
2021-05-13 15:25:18 -04:00
Emmanuele Bassi
b3d6928f35
x11: Pair eglInitialize with eglTerminate
...
If we bail out after EGL initialization we want to go back to a stable
state and not leave EGL hanging.
2021-05-13 18:23:50 +01:00
Emmanuele Bassi
3d8ba93f59
x11: Loosen the match for the NVIDIA driver
...
It seems nVidia puts a different string in the GL_VENDOR than the one it
uses for GLX.
2021-05-13 18:22:30 +01:00
Emmanuele Bassi
889bf83020
Merge branch 'ebassi/boost-url' into 'master'
...
Update the URL for the Boost archive
See merge request GNOME/gtk!3548
2021-05-13 11:47:28 +00:00
Emmanuele Bassi
6c63f7b0e2
Update the URL for the Boost archive
...
The old URL seems to have failed, and now it returns 301.
Use the URL from the Boost website.
2021-05-13 11:29:22 +01:00
Matthias Clasen
3872c3a127
Merge branch 'fix-picking-with-transforms' into 'master'
...
Fix picking with transforms
See merge request GNOME/gtk!3547
2021-05-13 10:09:37 +00:00
Matthias Clasen
5be785bff8
Add a transform test
...
This reveals some issues with scale handling.
2021-05-12 21:50:32 -04:00
Matthias Clasen
bf454e948d
Fix picking with transforms
...
When transforms include scales, we weren't picking
children properly. The special-case in gtk_widget_do_pick
only applies to 2D translations.
2021-05-12 20:58:16 -04:00
Emmanuele Bassi
e66ec84c1e
Merge branch 'ebassi/issue-3945' into 'master'
...
docs: Fix indentation of the arguments
Closes #3945
See merge request GNOME/gtk!3544
2021-05-12 20:12:13 +00:00
Matthias Clasen
6537728c7b
Merge branch 'wip/chergert/fix-gi-typo' into 'master'
...
gdk: fix typo in G-I attribute
See merge request GNOME/gtk!3545
2021-05-12 18:43:33 +00:00
Matthias Clasen
95f3f8f3c4
Merge branch 'win32.egl.getter' into 'master'
...
Win32: Add EGLDisplay getter
See merge request GNOME/gtk!3543
2021-05-12 18:42:35 +00:00
Christian Hergert
ae9b4f8940
gdk: fix typo in G-I attribute
2021-05-12 10:53:56 -07:00
Emmanuele Bassi
8ef353a970
docs: Fix indentation of the arguments
...
The indentation of new lines inside documentation blurbs must be smaller
than 4 spaces, otherwise the Markdown parser will consider the line to
be part of a pre-formatted code block.
Fixes : #3945
2021-05-12 17:38:07 +01:00
Chun-wei Fan
6d33e9058c
Win32: Add EGLDisplay getter
...
Like what was done for Wayland and X11, add an API to retrieve the EGLDisplay
if one is being used in place of WGL.
2021-05-12 22:16:56 +08:00
Matthias Clasen
78852b181a
Merge branch 'ebassi/egl-display-get' into 'master'
...
Add backend-specific getter for the EGLDisplay
See merge request GNOME/gtk!3542
2021-05-11 12:42:50 +00:00
Emmanuele Bassi
2588f9cee6
wayland: Add EGLDisplay getter
...
Getting an EGLDisplay object is messy; might as well expose the function
we use internally to save some time, just like we did for the X11
backend.
2021-05-11 12:46:03 +01:00
Emmanuele Bassi
abc2d7e4a9
x11: Add EGLDisplay getter
...
Getting an EGLDisplay object is messy; might as well expose the function
we use internally to save some time.
2021-05-11 12:42:16 +01:00
Emmanuele Bassi
6189e343f3
build: Do not use C arguments with C++
...
Otherwise the C++ compiler will start to complain.
The C++ keyword test does not need additional warnings.
2021-05-11 12:24:34 +01:00
Matthias Clasen
8bfa182ed9
Merge branch 'misc-inspector-things' into 'master'
...
inspector: Show text direction
See merge request GNOME/gtk!3541
2021-05-11 10:51:31 +00:00
Matthias Clasen
ea162ed016
inspector: Avoid a crash with GL variants
...
When configuring the inspector display, preserve
debug flags that affect which GL variant we pick.
Otherwise, we may end up with a GLX context on the
default display, and an EGL context on the inspector
one. This hopelessly confuses libepoxy, and things
don't go well when that happens.
2021-05-10 21:25:08 -04:00
Matthias Clasen
e2aa161590
inspector: Show EGL info for X11 as well
2021-05-10 21:24:50 -04:00
Matthias Clasen
a723baec4b
inspector: Show text direction
...
This is not a property, so show it on the misc tab.
2021-05-10 20:55:43 -04:00
Emmanuele Bassi
6120519e8e
Merge branch 'ebassi/egl-x11' into 'master'
...
Prefer EGL to GLX for the GL support on X11
See merge request GNOME/gtk!3540
2021-05-10 22:51:11 +00:00