summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ngl: Improve glyph cachingbetter-glyph-cachingMatthias Clasen2021-05-131-1/+7
| | | | | | Avoid creating duplicate cache entries with miniscule scale differences. It does not cost us much to use a slightly larger texture for a glyph.
* Improve transformed offscreen renderingMatthias Clasen2021-05-131-7/+40
| | | | | Preserve the scale for 2D transforms to avoid a pixellated appearance.
* Add some more transform testsMatthias Clasen2021-05-131-0/+44
| | | | Test that gsk_transform_to_affine works.
* testzoom: Fix the in-place rotateMatthias Clasen2021-05-131-10/+35
|
* Merge branch 'ebassi/boost-url' into 'master'Emmanuele Bassi2021-05-131-1/+1
|\ | | | | | | | | Update the URL for the Boost archive See merge request GNOME/gtk!3548
| * Update the URL for the Boost archiveEmmanuele Bassi2021-05-131-1/+1
| | | | | | | | | | | | The old URL seems to have failed, and now it returns 301. Use the URL from the Boost website.
* | Merge branch 'fix-picking-with-transforms' into 'master'Matthias Clasen2021-05-133-1/+278
|\ \ | | | | | | | | | | | | Fix picking with transforms See merge request GNOME/gtk!3547
| * | Add a transform testMatthias Clasen2021-05-122-0/+277
| | | | | | | | | | | | This reveals some issues with scale handling.
| * | Fix picking with transformsMatthias Clasen2021-05-121-1/+1
|/ / | | | | | | | | | | When transforms include scales, we weren't picking children properly. The special-case in gtk_widget_do_pick only applies to 2D translations.
* | Merge branch 'ebassi/issue-3945' into 'master'Emmanuele Bassi2021-05-121-8/+8
|\ \ | | | | | | | | | | | | | | | | | | docs: Fix indentation of the arguments Closes #3945 See merge request GNOME/gtk!3544
| * | docs: Fix indentation of the argumentsEmmanuele Bassi2021-05-121-8/+8
| |/ | | | | | | | | | | | | | | 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
* | Merge branch 'wip/chergert/fix-gi-typo' into 'master'Matthias Clasen2021-05-121-2/+2
|\ \ | | | | | | | | | | | | gdk: fix typo in G-I attribute See merge request GNOME/gtk!3545
| * | gdk: fix typo in G-I attributeChristian Hergert2021-05-121-2/+2
| |/
* | Merge branch 'win32.egl.getter' into 'master'Matthias Clasen2021-05-122-1/+34
|\ \ | |/ |/| | | | | Win32: Add EGLDisplay getter See merge request GNOME/gtk!3543
| * Win32: Add EGLDisplay getterChun-wei Fan2021-05-122-1/+34
|/ | | | | Like what was done for Wayland and X11, add an API to retrieve the EGLDisplay if one is being used in place of WGL.
* Merge branch 'ebassi/egl-display-get' into 'master'Matthias Clasen2021-05-115-11/+59
|\ | | | | | | | | Add backend-specific getter for the EGLDisplay See merge request GNOME/gtk!3542
| * wayland: Add EGLDisplay getterEmmanuele Bassi2021-05-112-9/+38
| | | | | | | | | | | | 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.
| * x11: Add EGLDisplay getterEmmanuele Bassi2021-05-112-1/+21
| | | | | | | | | | Getting an EGLDisplay object is messy; might as well expose the function we use internally to save some time.
| * build: Do not use C arguments with C++Emmanuele Bassi2021-05-111-1/+0
| | | | | | | | | | | | Otherwise the C++ compiler will start to complain. The C++ keyword test does not need additional warnings.
* | Merge branch 'misc-inspector-things' into 'master'Matthias Clasen2021-05-114-32/+143
|\ \ | |/ |/| | | | | inspector: Show text direction See merge request GNOME/gtk!3541
| * inspector: Avoid a crash with GL variantsMatthias Clasen2021-05-101-1/+4
| | | | | | | | | | | | | | | | | | 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.
| * inspector: Show EGL info for X11 as wellMatthias Clasen2021-05-101-29/+74
| |
| * inspector: Show text directionMatthias Clasen2021-05-102-2/+65
|/ | | | This is not a property, so show it on the misc tab.
* Merge branch 'ebassi/egl-x11' into 'master'Emmanuele Bassi2021-05-1011-1224/+2227
|\ | | | | | | | | Prefer EGL to GLX for the GL support on X11 See merge request GNOME/gtk!3540
| * x11: Don't update GLX visuals with EGLEmmanuele Bassi2021-05-101-0/+3
| | | | | | | | | | | | | | We're going to get into a messy situation, with both GLX and EGL initialized. If we're already using EGL, skip the whole cache.
| * x11: Always fall back to GLX on NVIDIAEmmanuele Bassi2021-05-101-0/+9
| | | | | | | | At least until we can guarantee that EGL-X11 works fine there.
| * x11: Move the damage fences into the GLX codeEmmanuele Bassi2021-05-104-246/+196
| | | | | | | | | | It's GLX-specific anyway, there's no need to complicate things by having half the code in the generic path, and half in the GLX one.
| * x11: Add debug toggle for preferring GLXEmmanuele Bassi2021-05-103-6/+11
| | | | | | | | Mostly as a way to compare the EGL and GLX implementations.
| * x11: Add profiler marks for SwapBuffersEmmanuele Bassi2021-05-102-2/+5
| |
| * x11: Use EGL for GL supportEmmanuele Bassi2021-05-109-20/+865
| | | | | | | | | | | | | | This makes the X11 backend similar to the Wayland one, when it comes to OpenGL. Fall back to GLX only if EGL support is not available.
| * x11: Decouple GLX from GdkX11GLContextEmmanuele Bassi2021-05-104-1056/+1244
| | | | | | | | | | | | | | | | If we want to add an EGL implementation for the X11 backend, we are going to need to move the GLX bits into their own class. The first step is to declare GdkX11GLContext as an abstract type, and then subclass it into a GdkX11GLContextGLX type, which includes the whole GLX implementation.
* | Merge branch 'broadway-display-scale' into 'master'Matthias Clasen2021-05-104-5/+66
|\ \ | |/ |/| | | | | | | | | broadway: Add a setter for display scale Closes #3934 See merge request GNOME/gtk!3538
| * inspector: Support scale changes on BroadwayMatthias Clasen2021-05-101-2/+24
| |
| * broadway: Add a setter for display scaleMatthias Clasen2021-05-103-2/+40
| | | | | | | | | | | | | | This is useful when using Broadway as a headless display server. Fixes: #3934
| * CosmeticsMatthias Clasen2021-05-091-1/+2
| |
* | Merge branch 'ci-more-clang' into 'master'Matthias Clasen2021-05-102-2/+3
|\ \ | | | | | | | | | | | | ci: Add clang-extra-tools to the image See merge request GNOME/gtk!3539
| * | ci: Add clang-extra-tools to the imageMatthias Clasen2021-05-102-2/+3
|/ / | | | | | | | | Hurray for bite-size packages! Splitting this off broke our style check in ci.
* | Merge branch 'file-replace-trap' into 'master'Matthias Clasen2021-05-092-2/+2
|\ \ | | | | | | | | | | | | print-editor: Fix saving See merge request GNOME/gtk!3536
| * | inspector: Fix saving cssMatthias Clasen2021-05-091-1/+1
| | | | | | | | | | | | | | | g_file_replace_contents() does not accept -1 as length, unlike similar apis.
| * | print-editor: Fix savingMatthias Clasen2021-05-091-1/+1
| | | | | | | | | | | | | | | g_file_replace_contents() does not accept -1 as length, unlike similar apis.
* | | Merge branch 'wip/exalm/image-button' into 'master'Matthias Clasen2021-05-098-29/+14
|\ \ \ | |_|/ |/| | | | | | | | Ensure consistent header bar buttons in the demo and tests See merge request GNOME/gtk!3537
| * | test: Ensure .image-button on header bar buttonsAlexander Mikhaylenko2021-05-091-4/+1
| | |
| * | demo: Ensure .image-button on header bar buttonsAlexander Mikhaylenko2021-05-092-16/+4
| | |
| * | test: Use more appropriate back/forward iconsAlexander Mikhaylenko2021-05-092-3/+3
| | |
| * | demo: Use more appropriate back/forward iconsAlexander Mikhaylenko2021-05-094-8/+8
|/ /
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-05-091-2/+2
|\ \ | | | | | | | | | | | | fontbutton: Quote font family names See merge request GNOME/gtk!3534
| * | fontbutton: Quote font family namesMatthias Clasen2021-05-081-2/+2
| | | | | | | | | | | | | | | Otherwise, spaces in family names will trip up the css parser.
* | | Merge branch 'wip/exalm/actionbar' into 'master'Matthias Clasen2021-05-092-2/+24
|\ \ \ | |_|/ |/| | | | | | | | GtkActionBar spacing fixes See merge request GNOME/gtk!3535
| * | theme: Fix GtkActionBar spacingAlexander Mikhaylenko2021-05-091-1/+4
| | |
| * | actionbar: Fix the css node docsAlexander Mikhaylenko2021-05-091-1/+17
| | |