Commit Graph

60698 Commits

Author SHA1 Message Date
Autocomitter
7f634d790b Update translations from Pootle 2019-09-28 08:46:19 +00:00
Kacper Kasper
14c3e38739 Discard column info in Debugger
* With them Debugger doesn't allow setting breakpoints inside functions.
* Workaround for #15159. Further explanation by anevilyak is also there.

Change-Id: I661b7dcb28a4c02f671b85cb5c26fa0bd5a53078
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1892
Reviewed-by: Rene Gollent <rene@gollent.com>
2019-09-28 01:27:42 +00:00
Adrien Destugues
07838f4cd3 BTextView: preserve ViewUIColor when unarchiving
When unarchiving, we can rely on BView to properly restore the colors,
and we should not alter them. So move the code doing that outside of
_InitObject, and into all non-unarchiving constructors instead.

Change-Id: I98050c69bb3b8edf6e77ad0498e2dade5eaadb1d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1887
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-27 22:53:42 +00:00
Kacper Kasper
2d85a5644b Fix SMAP violation when running profile
* Fixes #15379.

Change-Id: I3d5672ec0ffd4c09a35535f641e433d3d714412a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1890
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2019-09-27 22:52:49 +00:00
Humdinger
db6fcb750a People: fix aspect ratio for square images
If you dropped a square image onto the image well, it was
squashed horizontally.

Change-Id: Ie5637fc242a1c5b7313234a87822bc43556cbe4d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1886
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-25 23:44:04 +00:00
Andrew Lindesay
d2d4866dd4 HaikuDepot: Display User's Usage Conditions
A HaikuDepotServer may have previously agreed to
user usage conditions.  If this is the case then
they are now able to view those conditions.  There
were some problems with date formatting in this
change and so the date formatting logic has moved
into the HaikuDepot source code temporarily until
issues with the BDateTime class can be resolved;
most likely as a separate piece of work.

Relates to 15209

Change-Id: Ic3e5413d9139f410d7f7e8b566d4c56352dd2778
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1870
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-09-24 10:33:43 +00:00
Adrien Destugues
23d6916acd Tracker InfoWindow: cleanup of size string invalidation code
Should fix #15351.
2019-09-23 20:25:33 +02:00
Adrien Destugues
79e2e1b971 Fix accidental code removal in tracker infowindow refactoring
Should fix #15322 and #15352
2019-09-23 20:08:46 +02:00
Autocomitter
aa597cd40c Update translations from Pootle 2019-09-22 12:05:34 +00:00
Augustin Cavalier
e89efea747 ipro1000: Synchronize with FreeBSD trunk.
Up through Sep. 20th (yesterday.) Includes changes around IGB
device initialization.
2019-09-21 18:45:06 -04:00
Augustin Cavalier
6ad99cdddf freebsd_iflib: Synchronize with FreeBSD trunk.
Up through Sep. 20th (yesterday.) Includes some pretty substantial
fixes around MSI interrupts, among other things.
2019-09-21 18:38:35 -04:00
Augustin Cavalier
453027c1c3 kernel/scheduler: Add missing initializations to ThreadData::_InitBase().
fQuantumStart and fLastInterruptTime were not set to 0 here, so they
would default to the "malloc-cleared" data and then always overflow
the first time the interrupt time was tracked. I can't find any
reason that was supposed to be the behavior, so just set them to 0.

Also reorder the field initializations to be the same as the class
definition, which should allow some store merging optimizations.

Spotted by KUBSAN.
2019-09-21 16:30:43 -04:00
Augustin Cavalier
e6ee730269 kernel/disk_device_manager: Use addr_t in UserDataWriter.
This code was not touched since 2005, and even then, that was just
a file rename. So it seems it simply predates addr_t.
2019-09-21 16:13:51 -04:00
Augustin Cavalier
0af21102ef kernel: Fix compiling the debug heap on x86_64. 2019-09-21 14:59:52 -04:00
Murai Takashi
863eb82bca preferences/sounds: Fix mismatching malloc/delete
fType is allocated by strdup() in SetType(), buf freed by delete.
Pointed out by LGTM.

Change-Id: Id9e900863bf6921fd29f2c8abbd21da182f9055c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1884
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-09-21 16:11:10 +00:00
Murai Takashi
04a1ee9750 libnetapi: Fix 'new[]' array freed with 'delete'
sMutexBuf is allocated by new[] in SSL::SSL(), but freed by delete.
Pointed by LGTM.

Change-Id: Ic16501883be4e3b7ca5fe24e1585b6e14ae3ff36
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1883
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-09-21 16:09:51 +00:00
Murai Takashi
7ddb9624b2 Terminal: Fix mismatching malloc/delete
fAlternateScreen is allocated by malloc() in
BasicTerminalBuffer::_AllocateLines(), but freed by delete.
Pointed out by LGTM.

Change-Id: I526ecd7e570caf7d5ed90c715bbbfaf40e7e4be6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1882
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-09-21 16:09:27 +00:00
Murai Takashi
36bf86d2b6 Pulse: Fix 'new[]' array freed with 'delete'
cpu_menu_items is allocated by new[] in Init(), but freed by delete.
Pointed out by LGTM.

Change-Id: I4cc669c519cc4ea3e170cb9f421d6b4ff77df8a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1881
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-09-21 16:06:08 +00:00
Murai Takashi
931aec2b6c Mandelbrot: Fix 'new[]' array freed with 'delete'
fRenderBuffer is allocated by new[] in MessageReceived(),
buf freed by delete.
Pointed out by LGTM.

Change-Id: I06efc1c8075a421e7f2983e8a0d817a1bf43b026
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1880
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-09-21 16:04:57 +00:00
Murai Takashi
dfb3c928f8 Deskcalc: Fix 'new[]' array freed with 'delete'
fKeypad is allocated by new[] in _ParseCalcDesc(), but freed by delete.
Pointed out by LGTM.

Change-Id: Iac81d3cc6bfcf003ddf9146415a4400c34a1b7f2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1879
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-09-21 16:03:09 +00:00
Murai Takashi
7abf1b6fba media-add-ons/mixer: Fix 'new[]' array freed with 'delete'
fMixBufferChannelTypes is allocated by new[] in _ApplyOutputFormat(),
but freed by delete.
Pointed out by LGTM.

Change-Id: I07b85801e0103094c5751306ea2c50ca9354ddb9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1877
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-09-21 16:01:37 +00:00
Murai Takashi
7fd9865ec6 translators/gif: Fix mismatching malloc/delete
fHeadMemblock is allocated by malloc() in MemblockAllocate(),
but freed by delete.
Pointed out by LGTM.

Change-Id: I5019c2c3e4d240051e6f8a1ac70a9738f6f97131
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1878
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-09-21 16:00:15 +00:00
Niels Sascha Reedijk
88dc9ee1b1 Remove MultiChannelControl.h
This class is not implemented in our code. It is not documented in the BeBook.

Change-Id: Id3a48dbd2039005f69998567dcc26548612f3e9f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1876
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-20 23:59:30 +00:00
Niels Sascha Reedijk
d450c75ca7 HaikuBook: Add skeletons for various undocumented interface kit classes
* BAbstractLayoutItem
 * BAffineTransform
 * BCardLayout
 * BCardView
 * BChannelControl
 * BChannelSlider
 * BDeskbar
 * BGridLayoutBuilder
 * BGridView
 * BGroupLayoutBuilder
 * BGroupView
 * BInput
 * BOptionControl
 * BSeparatorView
 * BSpaceLayoutItem
 * BSplitLayoutBuilder
 * BSplitView
 * BStatusBar
2019-09-20 21:03:54 +01:00
Humdinger
1448ced00b HaikuDepot: sentence casing notification titles
* We generally use sentence casing, even for alerts and notification
  titles

* Using "User usage conditions" uses a bit too many 'users' for my
  taste. How about dropping the "User" and distinguish possible future
  additions with e.g. "Developer usage conditions"?

Change-Id: Iff2473ec193515b960d3da45bbd590c95413f99f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1869
Reviewed-by: Andrew Lindesay <apl@lindesay.co.nz>
2019-09-20 16:58:57 +00:00
Niels Sascha Reedijk
4679af2788 API Docs: add various missing elements to support kit.
* Adds missing methods to BArchivable, BList and BString.
* Add missing defines to SupportDefs.h
2019-09-19 21:57:13 +01:00
Niels Sascha Reedijk
2afda31c8f API Docs: add skeletons for BBufferedDataIO, BStringList and BStackOrHeapArray 2019-09-19 21:57:13 +01:00
Niels Sascha Reedijk
eaf8dff073 API Docs: add skeletons for BUrl and BAlignment and complete BAlert 2019-09-19 21:57:12 +01:00
Niels Sascha Reedijk
97ae75c75b API Docs: add missing methods of class BView 2019-09-19 21:57:11 +01:00
Niels Sascha Reedijk
f6be862fc5 API Docs: small fix for InterfaceDefs.dox 2019-09-19 21:57:11 +01:00
Jessica Hamilton
19017f3f47 Initial version of lgtm.com configuration file.
* Ideally, should download a pre-built cross-compiler, but it
  finishes within the allowed run-time for now.
2019-09-19 04:03:09 +00:00
Kacper Kasper
827f75a766 Add missing include in bsd/sys/link_elf.h
* Doesn't build without it.

Change-Id: Ia8671f1545fee6684278e688d0a16a1147e78842
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1866
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-18 03:40:47 +00:00
Jérôme Duval
63ec1f9ae2 libroot: check API version to enable B_CLONEABLE_AREA on R1Beta1.
If at least one image is older than B_HAIKU_VERSION_1_PRE_BETA_2, new areas are
marked as cloneable.
Should fix #15244.

Change-Id: I82d7cad969102679084d0ad73430790278e3d15c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1849
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-18 03:34:02 +00:00
Humdinger
66d438d128 Mail: change keyboard shortcuts / labels
1) People normally don't change their email account and Mail settings
   often after the initial setup and short tweaking period. Using
   keyboard shortcuts on those menu items is wasteful. Let's remove
   them.

2) OTOH, I need to in/decrease the quoting level rather often (Mail
   could probably be more intelligent here, too...).
   Also, the current shortcuts for this ALT+' and ALT+SHIFT+' are awkward
   and in some keymaps (German, for example) unreachable.
   With the change in 1), ALT +/- becomes available, which is easily
   reched with many keymaps AFAIK, and the numpad.

3) Rename the menu items "Quote" and "Remove quote" to
   "Increase quote level" and "Decrease quote level", which is much
   more correct. Also ties n nicely with the +/- shortcuts.

4) Rename the BMessage constants for consistency.

Change-Id: I2da21ed3aa465c30d09b2520288b64dea70feeec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1868
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-18 03:33:26 +00:00
Jérôme Duval
0227e84378 fat: add test script using mkdos, fstorture, fsx.
not fully tested, as fstorture crashes with #15357.

Change-Id: If00368f1287af1d46da38fef4c3943956de1db79
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1867
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-17 19:53:40 +00:00
François Revol
96e0ae70d4 dump_windows: off-by-1
Change-Id: Iaa6bd350cbc8b07016f7a73a267107431e173e93
2019-09-17 19:56:34 +02:00
François Revol
f60531661b Add a dump_windows script to help with automating screenshoting
Oddly hey hangs when asking Pe, someone should investigate.

Change-Id: Ic94d0a2600ceae5f73ce11d5666b6a7abd54c0c0
2019-09-17 19:32:32 +02:00
Adrien Destugues
9d87b2c5f8 Revert "Jamrules: Include the UserBuildConfig before processing repositories."
This reverts commit 7115cef989.

It prevents using UserBuildConfig to decide what packages gets included
in the resulting image.
2019-09-15 17:33:36 +02:00
Adrien Destugues
eff7baa89a Revert "kernel/fs: Add missing IS_USER_ADDRESS check in user_vector_io."
This reverts commit 2b5ebfcfd5.

Breaks cmake.
2019-09-15 17:00:39 +02:00
Adrien Destugues
d761df9f70 BMessage: fix NULL pointer dereference in out of memory condition.
Change-Id: I75ba6e5069cda8a92fd88bf7d1e999232359e73c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1864
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-14 20:06:18 +00:00
Humdinger
4015b5877f Mail: Fix 'Leave as 'New'
When closing an unread email via "Close | Leave as 'New'", it's
still set to MAIL:status "Read".
IComparing the BString read from the MAIL:status attribute returns
"0" for a match, which the if-statement turns to false...

Change-Id: I4c3846fd39a6056e4bed8388e41dbf4929798799
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1865
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-14 20:05:52 +00:00
Mikael Konradsson
9b695ae61d ProcessController: Fixed bars so they are aligned in center and scale
with the selected fonts

Change-Id: I016c600d62ea28d4197f94f29ec0c372b5a87169
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1848
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-14 17:31:11 +00:00
Augustin Cavalier
d46af3075e app_server: Catch drawing (AGG) allocation exceptions.
Since _DispatchViewDrawingMessage sends single B_ERROR replies
in a number of generic cases, doing so here is probably fine;
it's much better than crashing, anyway.

This is the generalized case of PulkoMandy's earlier patch,
which only applied to one drawing operation. This now affects
all AGG calls.

Change-Id: I751439e43cc300b964ac4cf41c48c1df30baf0a3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1863
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-09-14 17:25:58 +00:00
Autocomitter
174a50869d Update translations from Pootle 2019-09-14 08:39:05 +00:00
Mikael Konradsson
e5d533fda5 OutLineListView: adjust color of expander arrow when using dark color scheme
Change-Id: I7de7a460111556b7f40565ed0a6110c1f7660a25
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1847
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-14 05:08:06 +00:00
Augustin Cavalier
7ba58efd3a Installer: Skip block, character, FIFO, and socket devices/files.
Fixes #15019.
2019-09-14 00:40:30 -04:00
Augustin Cavalier
b9fc38d9a4 kernel/fs: Automatically tail syslog on "no boot partitions".
The real reason none were found is likely in the syslog.
Even if the last 15 messages do not have the real error, they
may be enough to point towards what the problem is, or at least
uniquely identify the issue.

Fixes #15348.
2019-09-14 00:26:58 -04:00
Augustin Cavalier
2b5ebfcfd5 kernel/fs: Add missing IS_USER_ADDRESS check in user_vector_io.
The iovecs themselves were checked before they were copied,
but the iov_base inside each was not, making it possible
for evil (or just broken) user applications to put kernel
addresses in here.

Part of #14961.
2019-09-13 22:11:27 -04:00
Augustin Cavalier
e315daa9c1 kernel/thread: Clarify permissions checking logic.
No functional change intended; but if I missed a case,
it will now be caught by the "return false" instead of
the "return true", which is a better default.
2019-09-13 22:10:23 -04:00
Augustin Cavalier
750b43405a kernel/device_manager: Add NULL checks before function calls.
Fixes #15175.
2019-09-13 22:09:53 -04:00