summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* placesview: Open location even if mount was not foundwip/oholy/placesview-default-location-regressionOndrej Holy2021-04-131-0/+9
| | | | | | | | | | | | | Some locations have to be mounted, but their mounts are not user-visible (e.g. smb-browse). Though this is maybe a bit weird, it is how it works for years. The problem is that the commit 267ea755, which tries to get the default location for opening, caused regression as it doesn't expect such possibility. Before this commit, such locations were opened without any issue, but nothing happens currently after clicking to "Connect" except of clearing the "Connect to Server" entry. Let's fallback to the original location if the mount was not found to fix this regression. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1811
* 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
| * | ngl: Allow passing bounds to update_clipMatthias Clasen2021-04-111-5/+5
| | | | | | | | | | | | | | | | | | update_clip only uses the bounds of the node that we are currently passing. This opens the door to updating the clip while handling a single node.
| * | ngl: Small optimization for shadowsMatthias Clasen2021-04-111-46/+54
| | | | | | | | | | | | | | | | | | When 9-slicing shadows, omit the center tile when it is entirely contained in the outline (that is not always the case, depending on corners and offsets).
| * | roundedrect: Speed up contains_rect and friendsMatthias Clasen2021-04-111-51/+77
| | | | | | | | | | | | | | | | | | | | | | | | gsk_rounded_rect_contains_rect was calling gsk_rounded_rect_contains_point, which potentially checks all four corners, for a total of up to 16 corner/point checks. But there is no need to do more than 4 such checks to answer the question.
| * | ngl: Small optimizationMatthias Clasen2021-04-111-2/+9
| | | | | | | | | | | | We really want equality here.
| * | nodeeditor: Make the help window wide enoughMatthias Clasen2021-04-111-2/+2
|/ / | | | | | | | | Make the help window wide enough to show the tables without wrapping.
* | Merge branch 'media-memory-leak' into 'master'Matthias Clasen2021-04-101-0/+2
|\ \ | | | | | | | | | | | | media: Fix a memory leak See merge request GNOME/gtk!3420
| * | media: Fix a memory leakMatthias Clasen2021-04-101-0/+2
| | | | | | | | | | | | This was introduced in e7dc82fa32f9c115607.
* | | Merge branch 'popover-list-lockup' into 'master'Matthias Clasen2021-04-101-3/+28
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | window: Defer focus setting until after paint Closes #3725 See merge request GNOME/gtk!3417