56982 Commits

Author SHA1 Message Date
Axel Dörfler
e9843da357 KPath: Added LAZY_ALLOC flag.
* This allows KPath to not allocate a buffer when initialized
  without path.
* Added test cases for this.
* Added test for LockBuffer().
* Enhanced tests to allow building them in debug mode.
* Moved calling vfs_normalize_path() into own private method.
* Improved error codes; B_NO_MEMORY is now only returned if the
  allocation actually failed.
* If used with LAZY_ALLOC, Path() and LockBuffer() are now allowed
  to return a NULL path.
2017-04-30 17:14:45 +02:00
Axel Dörfler
f94671c33d KPath.Adopt(): Fixed path length.
* Issue was hidden due to inappropriate test values; changed test
  to uncover it.
2017-04-30 17:13:45 +02:00
Axel Dörfler
eac83fb33e KPath: Replaced booleans with flags field.
* No functional change intended; I chose the flags in a way that it
  should still work even if I missed a reference.
2017-04-30 17:13:39 +02:00
Axel Dörfler
e1b4aed0cb KPath: Fixed Normalize() return code, changed Leaf().
* Normalize() now returns the error code that vfs_normalize_path()
  returns.
* Leaf() now returns "" instead of "/" for the root. It's not used
  outside of KPath.
* Adapted RemoveLeaf() to deal with this correctly.
* "KPath = string" no longer changes the buffer size.
* Added missing operator tests for =, ==, and !=.
2017-04-30 17:13:33 +02:00
Adrien Destugues
ec407447c9 Build fix.
SetCopyright != SetCopyrights.
hrev51144
2017-04-30 14:36:05 +02:00
luroh
a09b074d3e Cleanup app_server built-in fonts
We bundle bitstream charter as a default font to use when nothing else
is available. We also used to bundle a Courier font, but it does not
work properly.

- Fix the license for Bitstream Charter, to include just the license and
no extra text.
- Add said license to AboutSystem
- Remove the Courier font from the package and from the source tree.

Fixes #11696.
hrev51143
2017-04-30 13:55:36 +02:00
Adrien Destugues
4e09cc66e2 DataTranslations: try to fix x86_64 build. hrev51142 2017-04-30 12:00:13 +02:00
Adrien Destugues
0702f3b191 DataTranslations: fix formatting of localized text
The about window relied on two sets of strings to be translated exactly
the same way and used lengths from one set to do things in the other.

Several translations got this wrong, and as a reult, the bold text in
the window was not at the expected places.

Fix by having only one set of translated strings, and build the dialog
from it.

Fixes #10559.
hrev51141
2017-04-30 11:00:08 +02:00
Brian Hill
b8a6139981 Fix glitch in Screen prefs when changing background color.
When both Backgrounds and Screen are open, if the workspace color is changed
in Backgrounds the monitor preview in Screen will now refresh to the new color.

Also added a BAlert in BackgroundsView.cpp when failing to change the
background image.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13286.
hrev51140
2017-04-30 10:29:39 +02:00
Axel Dörfler
4c3f62c894 cppunit: Fixed build with gcc 5 on Haiku. hrev51139 2017-04-29 21:55:23 +02:00
Axel Dörfler
afd07b5621 KPathTest: Fixed build with gcc 5. 2017-04-29 21:55:23 +02:00
Owen
2d8adbdd85 Tracker: Fix Shift+click multi-selection not being disabled.
Using BFilePanel with multi-selection turned off does not prevent
multi-selection by SHIFT-click. Traced the bug to
BPoseView::AddRemoveSelectionRange(), and the safest fix is to not
touching the boolean extendSelection but to just add the test for
fMultipleSelection to the if block that handles B_SHIFT_KEY.

Fixes #13462.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
hrev51138
2017-04-29 15:21:38 -04:00
Augustin Cavalier
a8ae893bc3 Tracker: Fix B_UNDO/B_REDO forwarding to a focused BTextView. 2017-04-29 15:09:05 -04:00
Augustin Cavalier
56f9e8b759 Tracker: If a BTextView is focused, do not force-forward clipboard events to it.
In its original state this code just forwarded all clipboard messages to the
focused view, which sometimes was a BTextView or the like which knows nothing
about Tracker's custom clipboard events, and thus would wind up in an infinite
loop.

Now, the messages are left to be handled by the focused view if a BTextView
is selected (e.g. in a file panel, or in Tracker's navigator), but otherwise
forwarded directly to the BPoseView.

Fixes #12721.
2017-04-29 15:00:05 -04:00
Augustin Cavalier
0d3051a20b modem: Fix logic errors and some style issues.
Thanks Axel for the review!
2017-04-29 14:08:18 -04:00
Humdinger
8d47f50dc0 Updated youtube-dl package to 2017.04.28 hrev51137 2017-04-29 19:05:11 +02:00
Axel Dörfler
4be518758d KPath.Adopt() fixed incorrect path/buffer length.
* The other object was left in an inconsistent state.
* This lets the unit test for Adopt() pass.
hrev51136
2017-04-29 19:03:16 +02:00
Axel Dörfler
663b800476 Added unit tests for KPath.
* There are a few oddities, and at least one bug.
2017-04-29 19:02:14 +02:00
Owen
41b0595487 Tracker: Fixed shift extension after keyboard selection.
fixes the bug that caused multi-selection by SHIFT-cliking to fail if an
item in the file panel was selected by a key (ticket #13460).

If the user tries to select a single item by pressing a key (Left/Right,
Up/Down, etc.), the BPoseView::KeyDown() function will call the
BPoseView::SelectPose() function, which must set fSelectionPivotPose to
the selected item (or pose) because this item might be the starting (or
pivot) pose of the next multi-selection by SHIFT-click.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
hrev51135
2017-04-29 18:43:55 +02:00
Axel Dörfler
3582d4fe85 Minor style cleanup. 2017-04-29 14:37:56 +02:00
Jérôme Duval
ec39b68443 Mass update for x86.
* Boost and Qt5 left out for now.
hrev51134
2017-04-28 17:48:35 +02:00
Dario Casalinuovo
4263f2570d media_client: Fix Jamfiles to build correctly hrev51133 2017-04-28 02:13:51 +02:00
Dario Casalinuovo
dda3a9c309 Move media_client to bin 2017-04-28 02:13:51 +02:00
Dario Casalinuovo
0d25cdf031 Remove play* commands from bin 2017-04-28 02:13:51 +02:00
Dario Casalinuovo
a34acb8cb6 Remove play* commands from build
* Add media_client as replacement
2017-04-28 02:13:51 +02:00
Dario Casalinuovo
ada4f9788f MediaClient: Add play and test options 2017-04-28 02:13:51 +02:00
Dario Casalinuovo
a33c8f4c2a MediaClient: Some more consistency in args order 2017-04-28 02:13:51 +02:00
Alexander von Gluck IV
a2be272b55 xhci: Clean up command register defines
* Ensure their naming match Intel xhci datasheets
hrev51132
2017-04-27 18:24:46 -05:00
Automatic Committer
58e3bf632f Update pci.ids from pciids.sourceforge.net hrev51131 2017-04-27 05:20:23 +02:00
Alexander von Gluck IV
fb19c096da ppp/modem: Style cleanup hrev51130 2017-04-26 22:13:02 +00:00
Alexander von Gluck IV
a1c76b3ef7 ppp/modem: Fix gcc5 build 2017-04-26 22:05:38 +00:00
Alexander von Gluck IV
859d401d4f libkernelppp: Report fatal problems deep in ppp to syslog 2017-04-26 21:56:21 +00:00
Augustin Cavalier
bef731a331 modem: Adapt to the new network stack.
This is my first time using most of these API calls to the network stack, so,
reviews most welcome.
hrev51129
2017-04-26 22:16:11 -04:00
Alexander von Gluck IV
85a56a9d8e network/ppp_manager: Misc cleanup + tracing improvements hrev51128 2017-04-26 20:28:57 +00:00
Alexander von Gluck IV
facf05b93c network/ppp_mananger: Rename to match rest of stack 2017-04-26 20:06:03 +00:00
Augustin Cavalier
207606e0c9 ppp/modem: Trim trailing spaces. hrev51127 2017-04-25 14:32:47 -04:00
Augustin Cavalier
bf1bf4e9d4 ppp: Cleanup Jamfiles. 2017-04-25 14:29:48 -04:00
Augustin Cavalier
5d614ec377 tracker: We now target only Haiku since the layout merge, so use B_REDO. hrev51126 2017-04-25 11:19:32 -04:00
Augustin Cavalier
df2961ae19 usb_serial: Fix typo Alex made. hrev51125 2017-04-25 11:06:56 -04:00
Augustin Cavalier
3f2162c629 tests/kits/net: Remove old version of the DialUpPreflet.
Hopefully there aren't any more copies of this hiding in the tree....
hrev51124
2017-04-25 10:56:42 -04:00
Augustin Cavalier
5495e4f674 netperf: Remove from tree.
Not actively used and there is a recipe available.
2017-04-25 10:55:29 -04:00
Alexander von Gluck IV
61c3b8c1e7 usb_serial: Fix quirky usb unions on ACM generic hrev51123 2017-04-24 17:34:39 +00:00
Alexander von Gluck IV
a4655eb8f9 SoftwareUpdater: Add to regular image
* Great work Brian!
hrev51122
2017-04-24 09:25:00 -05:00
Jessica Hamilton
10a1d9102e bootloader/efi: use B_PAGE_SIZE hrev51121 2017-04-25 00:06:01 +00:00
Augustin Cavalier
9c80c788c0 HaikuPorts/x86_gcc2: Add the gnuefi any-arch package. hrev51120 2017-04-23 21:16:35 -04:00
Alexander von Gluck IV
162bb429e5 network/ppp: debug trace fixes on x86_64 hrev51119 2017-04-23 17:19:09 +00:00
Alexander von Gluck IV
ff028bd553 ppp: Add install-ppp target
* Enables rapid non-packaged test of the full ppp stack on the
  current Haiku system.
hrev51118
2017-04-23 16:49:54 +00:00
Alexander von Gluck IV
11c835a176 network_settings/dialup: Add missing libbsd.so for libppp.a hrev51117 2017-04-23 16:19:47 +00:00
Alexander von Gluck IV
bba4f90605 bin/ppp_up: undefined new stdlibc++ jamfile fix 2017-04-23 16:14:50 +00:00
Alexander von Gluck IV
740fa31b25 bin/ppp_up: x86_64 type fixes 2017-04-23 16:14:22 +00:00