summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* viewport: Keep scroll position in percentwip/otte/viewport-positionBenjamin Otte2021-12-281-1/+7
| | | | | | | | | | | | | | Previously, the code tried to keep the absolute scroll position unchanged, which meant that when the child or the viewport changed size, the top left of the viewport would keep locked to the same coordinate in the child. With the new code, we keep the point of the viewport unchanged that matches the percentage the scrollbar has been scrolled. In particular, that means a centered child stays centered and a child stays at the bottom (or top) when the scrollbar is scolled to the end (or start, like before).
* inspector: Add dnd inspection supportBenjamin Otte2021-12-272-38/+175
| | | | | | | | | | This has lots of issues: * It randomly crashes when data is loading while the dnd goes away. * The data gets randomly reset at the wrong time * Can't scroll the window on Wayland * ... But it's better than nothing, so better get it committed.
* Merge branch 'wip/otte/for-main' into 'main'Benjamin Otte2021-12-266-2/+10
|\ | | | | | | | | widget: Don't queue an allocate on a nonexisting parent See merge request GNOME/gtk!4288
| * css: Don't crash on invalid rotate3d()Benjamin Otte2021-12-265-1/+8
| |
| * widget: Don't queue an allocate on a nonexisting parentBenjamin Otte2021-12-261-1/+2
| | | | | | | | No test, no idea how to trigger this reliably.
* | Merge branch 'ebassi/build-fixes' into 'main'Emmanuele Bassi2021-12-2510-19/+21
|\ \ | | | | | | | | | | | | build: Replace source_root() See merge request GNOME/gtk!4281
| * | build: Remove deprecated get_pkgconfig_variable()Emmanuele Bassi2021-12-243-11/+13
| | | | | | | | | | | | Replace it with `get_variable(pkgconfig:...)`.
| * | build: Replace deprecated 'gui_app'Emmanuele Bassi2021-12-246-7/+7
| | | | | | | | | | | | Use `win_subsystem: 'windows'` instead.
| * | build: Replace source_root()Emmanuele Bassi2021-12-241-1/+1
| | | | | | | | | | | | Use project_source_root(), which replaces the deprecated source_root().
* | | Merge branch 'wip/otte/gles' into 'main'Benjamin Otte2021-12-255-19/+56
|\ \ \ | |/ / |/| / | |/ | | | | | | Fix GLES Closes #4571 See merge request GNOME/gtk!4285
| * gles: Be picky abpout glGetFramebufferAttachmentParameter()Benjamin Otte2021-12-251-3/+8
| | | | | | | | | | | | | | This function does not at all work like in OpenGL - if it works at all. So make it behave accordingly. Fixes #4571
| * gles: glGetTexLevelParameter() isn't supportedBenjamin Otte2021-12-251-2/+5
| |
| * gles: GLES 2 doesn't have glDrawBuffers()Benjamin Otte2021-12-251-2/+2
| | | | | | | | So don't call it.
| * gl: Change gdk_gl_context_check_version()Benjamin Otte2021-12-253-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | Instead of just passing major/minor, pass them twice, once for GL and once for GLES. This way, we don't need to check for GL and GLES separately. If something is supported unconditionally, passing 0/0 works fine. That said, I'd like to group the arguments somehow, because otherwise it's just a confusing list of numbers - but I have no idea how to do that.
| * glcontext: Use different log levels for GL debugBenjamin Otte2021-12-251-2/+12
| | | | | | | | | | | | | | | | | | | | | | We want critical GL debug messages to be critical, so that the testsuite sudokus itself when they appear. This is relevant in particular for GLES warnings in the GLES runner, because its warnings can cause crashes on GL drivers less forgiving than Mesa. Related: #4571
* | sizerequest: Remove critical warning for nowMatthias Clasen2021-12-231-5/+1
|/ | | | | | | At last as long as widgets like GtkFlowBox and GtkGrid still trigger this, it is not a great idea to have this warning in a stable release. So remove it for 4.6
* Merge branch 'wip/otte/for-main' into 'main'Benjamin Otte2021-12-224-0/+37
|\ | | | | | | | | | | | | gl: Clear current when destroying current's surface Closes #4554 See merge request GNOME/gtk!4279
| * gl: Clear current when destroying current's surfaceBenjamin Otte2021-12-224-0/+37
|/ | | | | | | | | When destroying the EGLSurface or GLXDrawable of a GdkSurface, make sure the current context is not still bound to it. If it is, clear the current context. Fixes #4554
* Merge branch 'wip/baedert/for-master' into 'main'Matthias Clasen2021-12-221-1/+1
|\ | | | | | | | | label: Fix get_natural_wrap_mode() precondition check See merge request GNOME/gtk!4278
| * label: Fix get_natural_wrap_mode() precondition checkTimm Bäder2021-12-221-1/+1
|/
* Update Portuguese translationHugo Carvalho2021-12-221-3/+3
|
* Update Ukrainian translationYuri Chornoivan2021-12-221-6/+6
|
* Merge branch 'fix_typos' into 'main'Timm Bäder2021-12-221-1/+1
|\ | | | | | | | | Fix minor typo See merge request GNOME/gtk!4275
| * Fix minor typoYuri Chornoivan2021-12-211-1/+1
|/
* Update Ukrainian translationYuri Chornoivan2021-12-211-40/+49
|
* Merge branch 'high-contrast-4' into 'main'Matthias Clasen2021-12-211-0/+39
|\ | | | | | | | | gdk/wayland: Support new `high-contrast` key See merge request GNOME/gtk!4271
| * gdk/wayland: Support new `high-contrast` keyFlorian Müllner2021-12-211-0/+39
| | | | | | | | | | | | | | | | | | | | We now have a boolean setting that determines whether the high-contrast theme should be used. Support it by automatically setting the existing `gtk-theme-name` and `gtk-icon-theme-name` properties when enabled. With that, it is no longer necessary to change the regular theme settings for high-contrast, so toggling between high-contrast and a non-default theme finally works reliably.
* | Merge branch 'discrete-scroll' into 'main'Matthias Clasen2021-12-211-1/+2
|\ \ | |/ |/| | | | | Don't keep discrete scroll events in the queue See merge request GNOME/gtk!4274
| * Don't keep discrete scroll events in the queueMatthias Clasen2021-12-201-1/+2
| | | | | | | | We are not going to compress those anyway.
* | Merge branch 'testsuite-introspection-extend-envvars' into 'main'Matthias Clasen2021-12-201-5/+7
|\ \ | | | | | | | | | | | | testsuite: introspection: Do not override environment variables. See merge request GNOME/gtk!4268
| * | testsuite: introspection: Do not override environment variables.Maxim Cournoyer2021-12-201-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Functional package managers such as GNU Guix rely on environment variables such as GI_TYPELIB_PATH to discover the system libraries and resources; extend rather than override them. * testsuite/introspection/meson.build (env): New variable that extends rather than override the GI_TYPELIB_PATH and LD_PRELOAD environment variables. (api): Use the above as the value of the 'env' keyword argument.
* | | Merge branch 'wip/otte/diff' into 'main'Benjamin Otte2021-12-203-21/+39
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Make render node diffing not slow Closes #4560 and #2396 See merge request GNOME/gtk!4269
| * | rendernode: Limit diff regionBenjamin Otte2021-12-201-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Limit the diff region to 30 rectangles (randomly chosen because it looked big enough to not trigger by accident and small enough to not cause performance issues). If the diff region gets more complicated, we abort to the parent node and use its bounds as the diff region instead and then continue diffing the rest of the node tree. Fixes: #4560 Fixes: #2396
| * | gsk: Allow diffing code to abortBenjamin Otte2021-12-203-21/+29
|/ / | | | | | | | | Now the vfuncs can decide they don't want to diff anymore, not just the actual diff function.
* | Update Portuguese translationHugo Carvalho2021-12-201-39/+51
| |
* | Merge branch 'wip/otte/wrapping-is-natural' into 'main'Matthias Clasen2021-12-205-15/+152
|\ \ | | | | | | | | | | | | label: Add gtk_label_set_natural_wrap_mode() See merge request GNOME/gtk!4267
| * | label: Add gtk_label_set_natural_wrap_mode()Benjamin Otte2021-12-205-15/+152
| |/ | | | | | | | | | | | | | | Allows influencing natural size requests so that labels can request more width than necessary for a given height. Related: !4245 Related: #4535
* | Merge branch 'progressbar-queue-allocate' into 'main'Matthias Clasen2021-12-201-0/+1
|\ \ | | | | | | | | | | | | progressbar: Queue allocate when setting "inverted" See merge request GNOME/gtk!4264
| * | progressbar: Queue allocate when setting "inverted"Marco Melorio2021-12-181-0/+1
| | |
* | | Merge branch 'ebassi/find-gi' into 'main'Matthias Clasen2021-12-202-1/+3
|\ \ \ | | | | | | | | | | | | | | | | build: Check for the gi python module See merge request GNOME/gtk!4266
| * | | ci: Add pygobject to the MSYS2 jobEmmanuele Bassi2021-12-191-1/+2
| | | |
| * | | build: Check for the gi python moduleEmmanuele Bassi2021-12-191-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | The introspection tests depend on the pygobject module, but we currently are not checking if it's available at configuration time, which means we can get build failures like: > ModuleNotFoundError: No module named 'gi' when running the test suite.
* | | Update Galician translationFran Dieguez2021-12-201-161/+217
|/ /
* | Update POTFILES.skipPiotr Drąg2021-12-182-0/+2
| |
* | Update Ukrainian translationYuri Chornoivan2021-12-181-31/+39
|/
* Merge branch 'meson-msvc-cleanup' into 'main'Matthias Clasen2021-12-171-18/+1
|\ | | | | | | | | Remove Visual Studio 2013 bits from Meson files See merge request GNOME/gtk!4249
| * Revert "gtk/meson.build: Fix linking on Visual Studio 2013"Chun-wei Fan2021-12-141-18/+1
| | | | | | | | | | | | | | | | We now require a Pango version that requires Visual Studio 2015 or later to build, and non-UCRT-based (VS2013) binaries may not bode well with UCRT-based binaries (VS2015+). Drop the support for VS2013 as a result. This reverts commit e208e0e07886248d4d86118aa5591c9882f0ed5c.
* | Update Portuguese translationHugo Carvalho2021-12-171-18/+22
| |
* | 4.5.14.5.1Matthias Clasen2021-12-162-3/+3
| |
* | Merge branch 'wip/otte/for-main' into 'main'Matthias Clasen2021-12-174-18/+89
|\ \ | | | | | | | | | | | | | | | | | | label: word-char wrapping should word-wrap for natural size Closes #4535 See merge request GNOME/gtk!4245