summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gsubprocess: ensure we test fd remapping on the posix_spawn codepathmcatanzaro/posix-spawn2Michael Catanzaro2021-09-201-2/+28
| | | | | | | | | | | We should run test_pass_fd twice, once using gspawn's fork/exec codepath and once attempting to use its posix_spawn codepath. There's no guarantee we'll actually get the posix_spawn codepath, but it works for now on Linux. This causes the test to fail if I break the fd remapping implementation in my previous commit. Without this, we fail to test fd remapping on the optimized codepath.
* gspawn: Implement fd remapping for posix_spawn codepathMichael Catanzaro2021-09-201-5/+62
| | | | | | This means that GSubprocess will (sometimes) be able to use the optimized posix_spawn codepath instead of having to fall back to fork/exec.
* Merge branch 'prop-set-speedups' into 'main'Philip Withnall2021-09-201-15/+6
|\ | | | | | | | | Small optimization for g_object_set See merge request GNOME/glib!2254
| * Small optimization for g_object_setvprop-set-speedupsMatthias Clasen2021-09-201-6/+3
| | | | | | | | | | | | | | | | No need to call memset in the loop, we can just initialize all the values in one go. GtkBuilder is now using g_object_setv, so this may improve application start times a bit.
| * Small optimization for g_object_setMatthias Clasen2021-09-201-9/+3
| | | | | | | | | | | | We've already followed the redirection, no need to check for that again - just avoid notifying non-readable properties.
* | Merge branch 'always-cleanup-weak-locations' into 'main'Philip Withnall2021-09-203-10/+269
|\ \ | |/ |/| | | | | | | | | gobject: Cleanup GWeakRef locations on object finalization Closes #2390 and #865 See merge request GNOME/glib!2064
| * gobject: Cleanup weak locations data as part of disposeMarco Trevisan (Treviño)2021-09-172-1/+28
| | | | | | | | | | | | | | Weak locations were not fully cleaned on run_dispose() and after dispose vfunc was called, so ensure that this is the case. Fixes: #865
| * gobject: Cleanup weak locations when the last one has been removedMarco Trevisan (Treviño)2021-09-172-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As per the previous change, an object that had weak locations set may need to lock again the weak locations mutex during qdata cleanup, but we can avoid this when we know we're removing the last location, by removing the qdata entry and freeing the data. In case a new location is needed for the same object, new data will be added. However, by doing this the weak locations during dispose may be invalidated once the weak locations lock is passed, so check again if this is the case while removing them.
| * gobject: Cleanup GWeakRef locations on object finalizationMarco Trevisan (Treviño)2021-09-173-8/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It can happen that a GWeakRef is added to an object while it's disposing (or even during finalizing) and this may happen in a thread that (weak) references an object while the disposal isn't completed yet or when using toggle references and switching to GWeakRef on notification (as the API suggests). In such scenario the weak locations are not cleaned up when the object is finalized, and will point to a free'd area. So, during finalization and when we're sure that the object will be destroyed for sure, check again if there are new weak locations and unset them if any as part of the qdata destruction. Do this adding a new utility function so that we can avoid duplicating code to free the weak locations. Added various tests simulating this case. Fixes: #2390
* | Merge branch 'gstring-min-size' into 'main'Philip Withnall2021-09-201-1/+1
|\ \ | | | | | | | | | | | | GString: Bump minimum size See merge request GNOME/glib!2251
| * | GString: Bump minimum sizegstring-min-sizeMatthias Clasen2021-09-181-1/+1
|/ / | | | | | | | | | | GString starts out at a size of 2, which is just not useful. Bump the minimum size to 64 to cut down on the number of tiny reallocations we do.
* | Merge branch 'main' into 'main'Philip Withnall2021-09-171-2/+5
|\ \ | | | | | | | | | | | | gdesktopappinfo: Do not call xterm when it does not exist, inform the caller the launch failed See merge request GNOME/glib!2245
| * | gdesktopappinfo: Return failure rather than blindly call xtermshironeko2021-09-091-2/+5
| | | | | | | | | | | | | | | Instead of calling xterm when it clearly does not exist and causes a silent error, inform the user that the launch failed so they can take the right action.
* | | 2.70.02.70.0Philip Withnall2021-09-172-1/+19
| | | | | | | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | | Update British English translationZander Brown2021-09-161-347/+353
| |/ |/|
* | Merge branch 'wip/lantw/ci-Replace-FreeBSD-11-with-FreeBSD-13' into 'main'Philip Withnall2021-09-151-7/+8
|\ \ | | | | | | | | | | | | ci: Replace FreeBSD 11 with FreeBSD 13 See merge request GNOME/glib!2248
| * | ci: Replace FreeBSD 11 with FreeBSD 13Ting-Wei Lan2021-09-131-7/+8
|/ / | | | | | | | | FreeBSD 11 will go EOL in a month, and FreeBSD 13 was released several months ago. Remove the FreeBSD 11 job and add a FreeBSD 13 job.
* | Update Polish translationPiotr Drąg2021-09-111-377/+383
| |
* | Updated Danish translationAlan Mortensen2021-09-111-6237/+6253
| |
* | Update Hungarian translationBalázs Úr2021-09-101-378/+384
| |
* | Update Croatian translationGoran Vidović2021-09-101-801/+927
| |
* | Update German translationPhilipp Kiemle2021-09-091-366/+372
| |
* | Update Turkish translationEmin Tufan Çetin2021-09-091-365/+371
|/
* Update French translationCharles Monzat2021-09-091-367/+374
|
* Update Swedish translationAnders Jonsson2021-09-071-76/+80
|
* 2.69.32.69.3Philip Withnall2021-09-072-1/+24
| | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* Merge branch 'readme-release-signing' into 'main'Philip Withnall2021-09-071-0/+11
|\ | | | | | | | | docs: Add a note about git-evtag to SECURITY.md See merge request GNOME/glib!2110
| * docs: Add a note about git-evtag to SECURITY.mdPhilip Withnall2021-09-071-0/+11
|/
* Merge branch '2425-settings-schema-range-check' into 'main'Emmanuele Bassi2021-09-071-2/+2
|\ | | | | | | | | | | | | gsettingsschema: Fix docs for g_settings_schema_key_range_check() Closes #2425 See merge request GNOME/glib!2160
| * gsettingsschema: Fix docs for g_settings_schema_key_range_check()Philip Withnall2021-06-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The first sentence incorrectly said that it checked the type of the value, and then the second sentence explicitly said it was a programmer error to give a value of the wrong type. According to the code, the second sentence is correct. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #2425
* | Merge branch 'gcc-suppress-deprecated-2' into 'main'Philip Withnall2021-09-072-2/+13
|\ \ | | | | | | | | | | | | | | | | | | Fix false deprecation warnings on old GCC/MSVC Closes #2472 See merge request GNOME/glib!2234
| * | Fix false deprecation warnings on old GCC/MSVCEvan Miller2021-09-072-2/+13
| | | | | | | | | | | | Closes #2472
* | | Merge branch '2481-power-profile-default-value' into 'main'Philip Withnall2021-09-073-1/+26
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | gpowerprofilemonitorportal: Set property value by default Closes #2481 See merge request GNOME/glib!2241
| * | | tests: Fix subsequent tests after first power-profile test failurePhilip Withnall2021-09-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the first power-profile installed test fails (for example, because xdg-desktop-portal isn’t available), correctly tear down the dbusmock object, or it will cause setUp() to fail when the next test in the suite is run. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2481
| * | | gpowerprofilemonitorportal: Set property value by defaultPhilip Withnall2021-09-062-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When first creating the monitor, correctly set its property value to the value from the portal, rather than waiting for the portal value to change to set it. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #2481
| * | | gpowerprofilemonitordbus: Fix a crash if no property is cachedPhilip Withnall2021-09-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It’s not always guaranteed that a property is cached, so handle the case when it isn’t. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
| * | | gpowerprofilemonitordbus: Fix a memory leakPhilip Withnall2021-09-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | get_cached_property() returns a new reference. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | | | Merge branch 'revert-cd93c350' into 'main'Philip Withnall2021-09-061-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Revert "Merge branch 'fix/gclosure-invoke-type-annotation' into 'main'" Closes #2477 See merge request GNOME/glib!2237
| * | | Revert "Merge branch 'fix/gclosure-invoke-type-annotation' into 'main'"revert-cd93c350Evan Welsh2021-08-291-1/+1
| | | | | | | | | | | | This reverts merge request !2181
* | | | Merge branch 'wip/hadess/fix-assert-eventually' into 'main'Philip Withnall2021-09-062-4/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | gio: Fix conditions in memory-monitor test See merge request GNOME/glib!2240
| * | | | gio: Fix conditions in memory-monitor testBastien Nocera2021-09-062-4/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were lucky that this worked in some cases (the test is racy), but we should actually run the condition check each loop, rather than when the function is called. Spotted by Martin Pitt: https://github.com/GNOME/glib/commit/96a8c02d240d7c9ae366c63771291413384bdfb7#r54773831
* | | | Merge branch 'wip/lantw/ci-Use-C.UTF-8-locale-on-FreeBSD-12' into 'main'Philip Withnall2021-09-061-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | ci: Use C.UTF-8 locale on FreeBSD 12 See merge request GNOME/glib!2238
| * | | | ci: Use C.UTF-8 locale on FreeBSD 12wip/lantw/ci-Use-C.UTF-8-locale-on-FreeBSD-12Ting-Wei Lan2021-09-031-1/+2
| | | | |
* | | | | Merge branch 'DarkTrick-main-patch-43422' into 'main'Philip Withnall2021-09-061-1/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | doc: Explicitly said, that no null term. is needed See merge request GNOME/glib!2219
| * | | | | doc: Explicitly said, that no null term. is neededDarkTrick2021-09-061-1/+2
|/ / / / /
* | | | | Update Romanian translationDaniel Șerbănescu2021-09-051-365/+371
| | | | |
* | | | | Update Chinese (China) translationBoyuan Yang2021-09-041-383/+389
| | | | |
* | | | | Update Korean translationChangwoo Ryu2021-09-041-364/+370
|/ / / /
* | | | Updated Lithuanian translationAurimas Černius2021-09-021-366/+372
| | | |
* | | | Update Catalan translationJordi Mas2021-08-311-379/+385
|/ / /