summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* imcontext: Eat key events during preeditim-context-event-leakMatthias Clasen2021-04-151-7/+22
| | | | | | | | | Avoid passing through random key press or release events while we are showing preedit. That prevents 'accidents' like typing Ctrl-. bringing up the Emoji chooser during preedit, or hitting Ctrl-a after the Compose key moving the 'dot' around in vim in terminals.
* Merge branch 'demo-manpages' into 'master'Matthias Clasen2021-04-151-4/+9
|\ | | | | | | | | meson: only build demo manpages when demos are enabled See merge request GNOME/gtk!3438
| * meson: only build demo manpages when demos are enabledEli Schwartz2021-04-131-4/+9
| | | | | | | | | | Installing them even when manpages are enabled, but the demos are disabled, produces manpages for unavailable programs...
* | Merge branch 'theme-icon-filter-fixes' into 'master'Matthias Clasen2021-04-151-14/+6
|\ \ | |/ |/| | | | | theme: Use -gtk-icon-filter for full-color icons See merge request GNOME/gtk!1990
| * theme: Use -gtk-icon-filter for full-color iconsnana-42021-04-151-14/+6
|/ | | | | | | | | | Not for symbolic icons. Don't apply `-gtk-icon-filter: opacity(0.5);` to the symbolic icons as they already have the "gray" colors indicating the disabled state. Symbolic icons can be styled using the `color` property. Also remove the obsolete comment.
* Merge branch 'x11-quiet-exit' into 'master'Matthias Clasen2021-04-141-17/+6
|\ | | | | | | | | x11: Be quiet on exit by default See merge request GNOME/gtk!3436
| * x11: Be quiet on exit by defaultx11-quiet-exitMatthias Clasen2021-04-131-17/+6
| | | | | | | | | | | | | | The condition we check for to catch X servers going away may not be accurate anymore, and the warning shows up in logs, causing customers to be concerned. So, be quiet by default, unless the user explicitly asked for a message.
* | Merge branch 'ngl-crash' into 'master'Matthias Clasen2021-04-131-1/+11
|\ \ | | | | | | | | | | | | | | | | | | ngl: Fix a rare assertion violation Closes #3853 See merge request GNOME/gtk!3434
| * | ngl: Fix a rare assertion violationngl-crashMatthias Clasen2021-04-121-1/+11
| |/ | | | | | | | | | | | | | | | | | | | | When we clean up the uniform allocations after a frame, it can happen that our space requirements actually increase, due to padding that depends on the order of allocations. Instead of asserting that it doesn't happen, just make it work by growing our allocation. Fixes: #3853
* | Merge branch 'flatpak-highlight' into 'master'Matthias Clasen2021-04-132-0/+114
|\ \ | | | | | | | | | | | | | | | | | | flatpak: Include highlight in gtk4-demo flatpak Closes #3867 See merge request GNOME/gtk!3433
| * | flatpak: Include highlight in gtk4-demo flatpakflatpak-highlightMatthias Clasen2021-04-122-0/+114
| |/ | | | | | | | | | | Include the highlight utility to make syntax highlighting work in gtk4-demo. This requires building its dependencies as well, boost and lua.
* | Merge branch 'testsuite-asserts' into 'master'Matthias Clasen2021-04-1392-1506/+1546
|\ \ | |/ |/| | | | | | | | | testsuite: Reduce the use of g_assert Closes #3864 See merge request GNOME/gtk!3432
| * build: Quiet the compilerMatthias Clasen2021-04-121-1/+4
| | | | | | | | | | | | Don't use -Wnull-dereference when assertions are disabled, since that causes the compiler to see NULL everywhere.
| * wayland: Build with G_DISABLE_ASSERTEmmanuele Bassi2021-04-122-0/+35
| |
| * build: Don't append multiple flags as a stringEmmanuele Bassi2021-04-121-1/+1
| | | | | | | | | | | | | | | | The gtk_debug_cflags variable is an array, with each argument stored in a separate string; if we add multiple arguments inside the same string we break the escaping rules. Fixes: #3864
| * gsk/ngl: Build with G_DISABLE_ASSERT enabledEmmanuele Bassi2021-04-121-1/+1
| |
| * Force g_test_init to cooperateMatthias Clasen2021-04-1243-43/+43
| | | | | | | | | | | | Change all g_test_init calls in the testsuite to avoid the macro, so they work regardless of G_DISABLE_ASSERT.
| * Make gtk_test_init work without assertionsMatthias Clasen2021-04-121-1/+4
| | | | | | | | | | The g_test_init macro 'helpfully' refuses to work when assertions are disabled. So we just use the function.
| * Remove assertions in testsMatthias Clasen2021-04-121-10/+10
| |
| * Inspector: Fix a possible undefined useMatthias Clasen2021-04-121-0/+1
| |
| * Fix unused variable warningsMatthias Clasen2021-04-127-9/+9
| | | | | | | | | | These happen for variables which are only used in assertions, when assertions are disabled.
| * gtk-demo: Avoid compiler warnings without assertionsMatthias Clasen2021-04-121-2/+1
| | | | | | | | Avoid an unused variable warning.
| * gsk: Avoid compiler warnings without assertionsMatthias Clasen2021-04-122-5/+2
| | | | | | | | | | Disabling assertions was provoking some unused variable warnings from the compiler. Avoid these.
| * testsuite: Reduce the use of g_assertMatthias Clasen2021-04-1247-1425/+1423
| | | | | | | | Stop using g_assert() in the gtk tests.
| * testsuite: Reduce the use of g_assertMatthias Clasen2021-04-123-8/+12
|/ | | | Stop using g_assert() in the gsk tests.
* Merge branch 'f16c.msvc' into 'master'Matthias Clasen2021-04-122-6/+63
|\ | | | | | | | | Fix F16C build/runtime detection on Visual Studio See merge request GNOME/gtk!3429
| * meson.build: Check for F16C on 32-bit Visual Studiof16c.msvcChun-wei Fan2021-04-121-3/+1
| | | | | | | | | | | | It is also possible to enable F16C instructions on 32-bit Visual Studio builds, so also check for the compiler's ability to build F16C code on Visual Studio 32-bit instead of just bailing out.
| * gsk/ngl/fp16.c: Implement runtime F16C detection on MSVCChun-wei Fan2021-04-121-3/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to use __cpuid() to check for the presence of F16C instructions on Visual Studio builds, and call the half_to_float4() or float_to_half4() implementation accordingly, as the __builtin_cpu...() functions are strictly for GCC or CLang only. Also, since __m128i_u is not a standard intrisics type across the board, just use __m128i on Visual Studio as it is safe to do so there for use for _mm_loadl_epi64(). Like running on Darwin, we cannot use the alias __attribute__ as __attribute__ is also for GCC and CLang only.
| * meson.build: Improve F16C detection on Visual StudioChun-wei Fan2021-04-121-0/+2
| | | | | | | | | | | | The __builtin_cpu...() intrisics are strictly for GCC/CLang-based compilers, so don't use them in the checking code on Visual Studio. The test code will still compile without this change, but will certainly fail if we want it to link.
* | Merge branch 'testsuite-asserts' into 'master'Matthias Clasen2021-04-1212-52/+54
|\ \ | |/ |/| | | | | testsuite: Reduce use of g_assert See merge request GNOME/gtk!3431
| * testsuite: Reduce use of g_assertMatthias Clasen2021-04-124-7/+7
| | | | | | | | Stop using g_assert() in the css tests.
| * testsuite: Reduce use of g_assertMatthias Clasen2021-04-123-9/+11
| | | | | | | | Stop using g_assert() in the reftests.
| * testsuite: Reduce use of g_assertMatthias Clasen2021-04-125-36/+36
| | | | | | | | Stop using g_assert() in the gdk tests.
* | Merge branch 'ngl-shadow-fixes' into 'master'Matthias Clasen2021-04-125-62/+110
|\ \ | |/ |/| | | | | ngl: Fix outset blurred shadows See merge request GNOME/gtk!3427
| * ngl: Fix unevenly scaled shadowsngl-shadow-fixesMatthias Clasen2021-04-114-60/+65
| | | | | | | | Ensure that we don't cut them off at the edges.
| * ngl: Don't slice unsliceable shadowsMatthias Clasen2021-04-111-1/+11
| | | | | | | | | | When the corners are too big to make slicing work, don't do it, since it leads to broken results.
| * ngl: Fix a case of flipped shadowMatthias Clasen2021-04-111-1/+1
| | | | | | | | | | In the non-sliced case, we were rendering the shadow upside down.
| * ngl: Add code to dump shadowsMatthias Clasen2021-04-111-0/+33
| | | | | | | | This can be helpful in understanding shadow bugs.
* | Merge branch 'grouped-toggle-fix' into 'master'Matthias Clasen2021-04-121-0/+3
|\ \ | | | | | | | | | | | | togglebutton: Fix expected group behavior See merge request GNOME/gtk!3425
| * | togglebutton: Fix expected group behaviorgrouped-toggle-fixMatthias Clasen2021-04-111-0/+3
| |/ | | | | | | | | | | | | The expectation is that a grouped button stays active when you click it. Grouped check buttons behave this way, and grouped toggle buttons should too.
* | Merge branch 'shadow-reduction' into 'master'Matthias Clasen2021-04-121-12/+18
|\ \ | | | | | | | | | | | | gsk: Don't overshadow See merge request GNOME/gtk!3419
| * | gsk: Don't overshadowshadow-reductionMatthias Clasen2021-04-091-12/+18
| | | | | | | | | | | | Reduce the cairo shadows to the same size as their GL brethren.
* | | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-04-115-0/+32
|\ \ \ | |_|/ |/| | | | | | | | menubutton: Propagate focus-on-click See merge request GNOME/gtk!3424
| * | node-editor: Make header buttons not steal focusMatthias Clasen2021-04-111-0/+7
| | | | | | | | | | | | | | | This is rarely useful, and is confusing when it happens as side-effect of dragging the window.
| * | icon browser: Make header buttons not steal focusMatthias Clasen2021-04-111-0/+4
| | | | | | | | | | | | | | | This is rarely useful, and is confusing when it happens as side-effect of dragging the window.
| * | widget-factory: Make header buttons not steal focusMatthias Clasen2021-04-111-0/+1
| | | | | | | | | | | | | | | This is rarely useful, and is confusing when it happens as side-effect of dragging the window.
| * | gtk-demo: Make header buttons not steal focusMatthias Clasen2021-04-111-0/+3
| | | | | | | | | | | | | | | This is rarely useful, and is confusing when it happens as side-effect of dragging the window.
| * | menubutton: Propagate focus-on-clickMatthias Clasen2021-04-111-0/+17
|/ / | | | | | | | | | | | | | | Propagate the focus-on-click setting to the button inside, so that setting menubuttons as !focus-on-click works as expected. This helps for menubuttons in header bars, where dragging on the button will otherwise steal focus from the content.
* | Update Ukrainian translationYuri Chornoivan2021-04-111-77/+74
| |
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-04-113-106/+147
|\ \ | | | | | | | | | | | | some small optimizations See merge request GNOME/gtk!3423