Matthias Clasen
74a68a5803
Merge branch 'theme-fallback-fix' into 'master'
...
themes: Make fallback work a bit better
See merge request GNOME/gtk!3441
2021-04-15 21:31:09 +00:00
Matthias Clasen
9f6b3e179f
themes: Make fallback work a bit better
...
One case we did not include in fd329e0ec5
is
Adwaita-dark -> Default:dark
It turns out that it is needed.
2021-04-15 17:09:46 -04:00
Matthias Clasen
9b7f927b3c
Merge branch 'demo-manpages' into 'master'
...
meson: only build demo manpages when demos are enabled
See merge request GNOME/gtk!3438
2021-04-15 11:15:24 +00:00
Matthias Clasen
eb3df6a2e8
Merge branch 'theme-icon-filter-fixes' into 'master'
...
theme: Use -gtk-icon-filter for full-color icons
See merge request GNOME/gtk!1990
2021-04-15 11:12:28 +00:00
nana-4
c6483d431f
theme: Use -gtk-icon-filter for full-color icons
...
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.
2021-04-15 18:39:08 +09:00
Eli Schwartz
e5b0d225de
meson: only build demo manpages when demos are enabled
...
Installing them even when manpages are enabled, but the demos are
disabled, produces manpages for unavailable programs...
2021-04-13 22:55:03 -04:00
Matthias Clasen
d1d009b491
Merge branch 'x11-quiet-exit' into 'master'
...
x11: Be quiet on exit by default
See merge request GNOME/gtk!3436
2021-04-14 00:32:05 +00:00
Matthias Clasen
4465ee5414
Merge branch 'ngl-crash' into 'master'
...
ngl: Fix a rare assertion violation
Closes #3853
See merge request GNOME/gtk!3434
2021-04-13 22:02:44 +00:00
Matthias Clasen
6f11165dd1
x11: Be quiet on exit by default
...
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.
2021-04-13 14:52:48 -04:00
Matthias Clasen
f5d90826f3
Merge branch 'flatpak-highlight' into 'master'
...
flatpak: Include highlight in gtk4-demo flatpak
Closes #3867
See merge request GNOME/gtk!3433
2021-04-13 11:38:45 +00:00
Matthias Clasen
11154ba119
flatpak: Include highlight in gtk4-demo flatpak
...
Include the highlight utility to make syntax
highlighting work in gtk4-demo. This requires
building its dependencies as well, boost and lua.
2021-04-12 23:55:11 -04:00
Matthias Clasen
c66b030427
ngl: Fix a rare assertion violation
...
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
2021-04-12 22:53:48 -04:00
Matthias Clasen
0c3dd0cf30
Merge branch 'testsuite-asserts' into 'master'
...
testsuite: Reduce the use of g_assert
Closes #3864
See merge request GNOME/gtk!3432
2021-04-13 02:46:07 +00:00
Matthias Clasen
4164abd9f7
build: Quiet the compiler
...
Don't use -Wnull-dereference when assertions are
disabled, since that causes the compiler to see
NULL everywhere.
2021-04-12 22:11:05 -04:00
Emmanuele Bassi
b0990aa8e2
wayland: Build with G_DISABLE_ASSERT
2021-04-12 21:26:02 -04:00
Emmanuele Bassi
a871a1bdb5
build: Don't append multiple flags as a string
...
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
2021-04-12 21:23:57 -04:00
Emmanuele Bassi
31e08d4629
gsk/ngl: Build with G_DISABLE_ASSERT enabled
2021-04-12 21:23:18 -04:00
Matthias Clasen
f98353c20b
Force g_test_init to cooperate
...
Change all g_test_init calls in the testsuite
to avoid the macro, so they work regardless of
G_DISABLE_ASSERT.
2021-04-12 21:22:46 -04:00
Matthias Clasen
13ece4ee9b
Make gtk_test_init work without assertions
...
The g_test_init macro 'helpfully' refuses to work when
assertions are disabled. So we just use the function.
2021-04-12 21:22:46 -04:00
Matthias Clasen
6e40f4f357
Remove assertions in tests
2021-04-12 21:22:46 -04:00
Matthias Clasen
ecfba2d31b
Inspector: Fix a possible undefined use
2021-04-12 21:22:46 -04:00
Matthias Clasen
367dfee36e
Fix unused variable warnings
...
These happen for variables which are only used
in assertions, when assertions are disabled.
2021-04-12 21:22:46 -04:00
Matthias Clasen
5e7b5fe085
gtk-demo: Avoid compiler warnings without assertions
...
Avoid an unused variable warning.
2021-04-12 21:22:46 -04:00
Matthias Clasen
9d3aa2cfce
gsk: Avoid compiler warnings without assertions
...
Disabling assertions was provoking some unused variable
warnings from the compiler. Avoid these.
2021-04-12 21:22:46 -04:00
Matthias Clasen
8c156e6b80
testsuite: Reduce the use of g_assert
...
Stop using g_assert() in the gtk tests.
2021-04-12 21:22:46 -04:00
Matthias Clasen
4d1075a082
testsuite: Reduce the use of g_assert
...
Stop using g_assert() in the gsk tests.
2021-04-12 21:22:46 -04:00
Matthias Clasen
442f485591
Merge branch 'f16c.msvc' into 'master'
...
Fix F16C build/runtime detection on Visual Studio
See merge request GNOME/gtk!3429
2021-04-12 20:35:10 +00:00
Matthias Clasen
74238b5429
Merge branch 'testsuite-asserts' into 'master'
...
testsuite: Reduce use of g_assert
See merge request GNOME/gtk!3431
2021-04-12 12:47:09 +00:00
Matthias Clasen
f9fa92766b
testsuite: Reduce use of g_assert
...
Stop using g_assert() in the css tests.
2021-04-12 08:33:41 -04:00
Matthias Clasen
90d187894d
testsuite: Reduce use of g_assert
...
Stop using g_assert() in the reftests.
2021-04-12 08:30:56 -04:00
Matthias Clasen
03db2690e2
testsuite: Reduce use of g_assert
...
Stop using g_assert() in the gdk tests.
2021-04-12 08:18:00 -04:00
Chun-wei Fan
65b35457fd
meson.build: Check for F16C on 32-bit Visual Studio
...
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.
2021-04-12 18:13:42 +08:00
Chun-wei Fan
d5ced21264
gsk/ngl/fp16.c: Implement runtime F16C detection on MSVC
...
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.
2021-04-12 18:13:42 +08:00
Chun-wei Fan
6d6c8c59eb
meson.build: Improve F16C detection on Visual Studio
...
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.
2021-04-12 18:13:42 +08:00
Matthias Clasen
46ed7540b2
Merge branch 'ngl-shadow-fixes' into 'master'
...
ngl: Fix outset blurred shadows
See merge request GNOME/gtk!3427
2021-04-12 05:07:29 +00:00
Matthias Clasen
3ad56a762f
Merge branch 'grouped-toggle-fix' into 'master'
...
togglebutton: Fix expected group behavior
See merge request GNOME/gtk!3425
2021-04-12 02:40:43 +00:00
Matthias Clasen
21a1a40555
Merge branch 'shadow-reduction' into 'master'
...
gsk: Don't overshadow
See merge request GNOME/gtk!3419
2021-04-12 02:39:55 +00:00
Matthias Clasen
849692b24b
ngl: Fix unevenly scaled shadows
...
Ensure that we don't cut them off at the edges.
2021-04-11 22:35:02 -04:00
Matthias Clasen
f3bf4e4876
ngl: Don't slice unsliceable shadows
...
When the corners are too big to make slicing work,
don't do it, since it leads to broken results.
2021-04-11 22:10:33 -04:00
Matthias Clasen
46270d3dcd
ngl: Fix a case of flipped shadow
...
In the non-sliced case, we were rendering the shadow
upside down.
2021-04-11 22:10:33 -04:00
Matthias Clasen
da6096faaf
ngl: Add code to dump shadows
...
This can be helpful in understanding shadow bugs.
2021-04-11 21:13:47 -04:00
Matthias Clasen
2a7b5a5156
Merge branch 'matthiasc/for-master' into 'master'
...
menubutton: Propagate focus-on-click
See merge request GNOME/gtk!3424
2021-04-11 22:41:26 +00:00
Matthias Clasen
233e662294
togglebutton: Fix expected group behavior
...
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.
2021-04-11 18:29:53 -04:00
Matthias Clasen
ae41697d83
node-editor: Make header buttons not steal focus
...
This is rarely useful, and is confusing when it
happens as side-effect of dragging the window.
2021-04-11 15:32:15 -04:00
Matthias Clasen
e2fb59798e
icon browser: Make header buttons not steal focus
...
This is rarely useful, and is confusing when it
happens as side-effect of dragging the window.
2021-04-11 15:32:15 -04:00
Matthias Clasen
d0fc3e166d
widget-factory: Make header buttons not steal focus
...
This is rarely useful, and is confusing when it
happens as side-effect of dragging the window.
2021-04-11 15:32:15 -04:00
Matthias Clasen
e4ce46e75f
gtk-demo: Make header buttons not steal focus
...
This is rarely useful, and is confusing when it
happens as side-effect of dragging the window.
2021-04-11 15:32:15 -04:00
Matthias Clasen
e2420f62fe
menubutton: Propagate focus-on-click
...
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.
2021-04-11 15:32:15 -04:00
Yuri Chornoivan
6712106c25
Update Ukrainian translation
2021-04-11 18:39:40 +00:00
Matthias Clasen
5b55138729
Merge branch 'matthiasc/for-master' into 'master'
...
some small optimizations
See merge request GNOME/gtk!3423
2021-04-11 18:23:54 +00:00