Commit Graph

47187 Commits

Author SHA1 Message Date
Augustin Cavalier
4f39c58818 Deskbar: Get rid of the "Restart Tracker" menu item.
Now that launch_daemon automatically restarts Tracker and Deskbar
when they crash, this is not needed anymore.
2016-01-12 12:12:07 -05:00
Axel Dörfler
90fd6af0b6 launch_daemon: Added ability to enable/disable a job.
* Instead of just starting/stopping it.
* Also available via the launch_roster command.
2016-01-12 16:22:47 +01:00
Axel Dörfler
270f0f2f4a launch_daemon: Don't get the token from the registrar.
* It doesn't work, and BMessenger also only uses the preferred token.
* I haven't investigated why it doesn't work yet, though.
2016-01-12 15:57:18 +01:00
looncraz
79a091e7dd Correct Tracker QueryPoseView Column Resize Appearance
PoseView's ColumnRedraw fills exposed areas in manually in an offscreen view
using the PoseView's LowColor.  As QueryPoseView uses a custom view color it
is necessary for the low color to match, otherwise resizing a column will
draw the untinted document background color.

Fixes #12569.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-01-11 09:27:04 +13:00
looncraz
d2d239f4c4 Improve BButton Color Adaptability
View color now shows through, so we keep the view color in sync with the
parent to act as the button background color.  The low color is used to
determine the button color.  The high color is used to determine the
button label color.

The default low and high colors are the control background and text colors,
respectfully. To maintain the identical appearance as before, the default
control background color is tinted to match the default panel background
color. As the color has a gradient applied anyway, no one will notice a
difference while playing with custom control colors.

Fixes #12568.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-01-11 09:27:04 +13:00
looncraz
405208a782 PowerStatus background tint
Recent changes require us to adopt the tint value for PowerStatus's
low color as well as the ViewUIColor.

This repairs the issue where the replicant's background color was lighter
than the Deskbar's tray color.

Fixes #12566.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-01-11 09:27:04 +13:00
looncraz
f9f16ddb2c BAbstractSpinner Colors
Adopted parent colors for the text view - should not have done so.
Disabled colors were incorrect, so I also corrected those in this patch.

Fixes #12574.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-01-10 18:51:04 +13:00
looncraz
5bc6713473 DiskProbe DataView Color
Previously the DataView relied on the default colors, which layout now
overrides more uniformly.  The document colors are more appropriate.

After the addition of the layout changes, the DataView would adopt
system panel colors.

Fixes #12572.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-01-10 18:50:59 +13:00
Jessica Hamilton
5d7e699ade package_daemon: fix regressions from Set*UIColor merge.
Also use Set*UIColor where appropriate.
2016-01-10 17:51:43 +13:00
Jessica Hamilton
ed749c6221 BView::AdoptViewColors: handle not yet attached to a Window.
As per API documentation, a BView caches the configured view
colours when not yet attached to the app_server via its
window. So check if we're attached to a window, and if we are,
then and only then do we attempt to lock/unlock our looper.

This fixes uses of AdoptViewColors and AdoptParentColors when
the view isn't yet attached to a window.
2016-01-10 17:51:43 +13:00
François Revol
1150f8cbd4 screeninfo: fix warning 2016-01-10 00:18:59 +01:00
François Revol
0e15d112ea screeninfo: iterate using BScreen::SetToNext()
Note it leaves the current object valid on error, so you can't use
IsValid() as the for loop test.
2016-01-10 00:18:59 +01:00
looncraz
054c81664a MediaPlayer PositionToolTip Color
Previously the layout would crush the default colors of BStringView preventing
BStringView from calling AdoptParentColors() on its own, so we must call it
manually.

In addition, the default tooltip view should fully adopt tooltip colors so
that any colors will default to the desired foreground color (which is the
same as the tooltip text color).

Fixes #12573.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-01-10 11:39:35 +13:00
Alexander von Gluck IV
b979c66c86 intel_extreme: Move rest of pipe control into pipe class 2016-01-08 22:43:59 -06:00
Viktor Muntzing
fd5d0900da index_server: Fix obvious memory leak in CLuceneDataBase
Signed-off-by: Alexander von Gluck IV <kallisti5@unixzen.com>
2016-01-08 16:26:44 -06:00
Axel Dörfler
59b0036e71 Printers: Workaround for broken print server connection.
* The actual problem is that the launch_daemon does not notice the
  manual launch of system services (because of the missing registrar
  that provides that service).
* So not checking if the print server is running actually solves the
  issue; otherwise the launch_daemon starts its own server, that will
  then get shut down, as there already is a print server (the one
  launched by the Printers preferences).
* Closes ticket #12531.
2016-01-08 21:40:19 +01:00
Humdinger
2a390953d3 Fixing WonderBrush MIME type.
...and the build. Sorry about that.
2016-01-08 17:16:44 +01:00
Humdinger
316ac9de9f Added MIME tpe for WonderBrush images
The MIME type that's created by WonderBrush contains an out-of-date
sniffer rule. Archived BMessages used to start with '1BOF', now it's
'HMF1'. That's why newer WonderBrush images aren't identified as such.

The new sniffer rule should detect both old and new files.
2016-01-08 16:46:46 +01:00
François Revol
5692356be2 usb_disk: add the Zip icon
not used yet, my USB Zip drive seems to have gone to the mechanical valhalla.
2016-01-07 21:38:19 +01:00
François Revol
dc422da1a5 WindowShade: fix build 2016-01-07 21:10:50 +01:00
Markus Himmel
ecec5d0e7c MediaPlayer: Playlist window visual fixes
Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-01-07 20:33:20 +01:00
Markus Himmel
b5387eff2b MediaPlayer: Show individual track length in playlist window
Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-01-07 20:33:19 +01:00
Automatic Committer
8c63feccbb Update pci.ids from pciids.sourceforge.net 2016-01-07 05:20:25 +01:00
looncraz
c9bd4d84b9 Interface Kit: Correct button colors.
What appeared to be multiple issues was just one issue: BButton was drawing the
control background color for its border, whereas the previous system drew the
control low color, which was the parent's view color.

Neither is correct, no border should be drawn at all.

This made it appear that the default button was larger than it was and also
made it appear that some apps had a "white" border around the buttons.

In addition, BButton can now use the default BControl color behavior and
BButton exclusively adopt either parental or system colors without worrying
about the case in which another view has set the button's view color manually.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-01-06 16:55:14 -05:00
Dario Casalinuovo
8487f27d5b PlaylistWindow: Add missing NULL check 2016-01-07 02:59:48 +01:00
François Revol
5dc097412d dragger: use EXIT_SUCCESS/EXIT_FAILURE macros for clarity 2016-01-07 02:13:41 +01:00
François Revol
82af81ac2e draggers: fix header 2016-01-07 02:13:41 +01:00
François Revol
be1b88453c draggers: print usage on unknown arguments
also handle on/off as arguments.
2016-01-07 02:13:41 +01:00
Dario Casalinuovo
ec02769a58 media_server: Replace ping/pong with notifications 2016-01-06 22:40:28 +01:00
Augustin Cavalier
1d11475790 BAboutWindow: Put the AboutView and StripeView into BPrivate.
To avoid name clashes. Possibly fixes the HaikuDepot crashes.
2016-01-06 15:08:34 -05:00
looncraz
cef0a7b262 Deskbar: Correct StatusView colors following Set*UIColor merge.
Previous colors matched the menu background color, but should have been
darkened.

The tint value was not being updated for the SetViewUIColor call construction,
therefore the tint parameter was still B_NO_TINT.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-01-06 14:55:46 -05:00
looncraz
678f8a7b5d Tracker: Fix column title colors following Set*UIColor merge.
Repair regression where low color for text drawing was not set properly.
Do not use tinted color for default color state.

Prior to this, the hinting font would not respond to being pressed and the
column title background was the wrong color initially, but correct after
resizing (but then wrong again after a redraw on exposure).

In addition, the initial tint values used for the view color were unused,
so I removed them.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-01-06 14:54:33 -05:00
Dario Casalinuovo
135a195875 InterfaceAddress: The real fix. 2016-01-06 14:35:12 +01:00
Dario Casalinuovo
ab1adabf14 Revert "Follow-up fix for #12152 from axeld suggestions"
This reverts commit 6f5971cf52.

* Sorry there was a misunderstanding in the Ticket and IRC.
2016-01-06 14:35:12 +01:00
Dario Casalinuovo
6f5971cf52 Follow-up fix for #12152 from axeld suggestions 2016-01-06 13:17:40 +01:00
Phil Costin
466081d08a When realloc(address, size) returns NULL, address must be freed manually.
Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-01-06 13:17:40 +01:00
Markus Himmel
1c68b67a36 MediaPlayer: Show total playlist length
Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-01-06 13:17:40 +01:00
Markus Himmel
beddc8eefa MediaPlayer: Add missing null check
Signed-off-by: Dario Casalinuovo <b.vitruvio@gmail.com>
2016-01-06 13:17:39 +01:00
Rudolf Cornelissen
b0c69e8490 nVidia driver: added option to block EDID resolution restrictions (check_edid) 2016-01-05 23:49:00 +01:00
Rudolf Cornelissen
32276e7762 via driver: fixed kerneldriver crashing system because of failing area mapping 2016-01-05 21:21:55 +01:00
Axel Dörfler
8180539313 IMAP: setting flags, and body fetching works now.
* The direct methods in BMailProtocol now forward the request to the
  looper; it's no longer the mail_daemon's responsibility to know
  anything about that protocol.
* It's in desperate need of refactoring, but it doesn't hurt to add
  it to the repository as is.
2016-01-05 20:12:26 +01:00
Augustin Cavalier
3592932936 BApplication: Remove added PrintToStream().
Another missed debugging snippet from the merge.
2016-01-04 18:52:41 -05:00
RudolfC
063436816d nVidia driver: Added basic dualhead support for native Haiku ScreenPrefs app 2016-01-04 22:17:48 +00:00
Augustin Cavalier
153b2eeace APRWindow: Delete another missed <stdio.h> include. 2016-01-04 13:56:51 -05:00
Augustin Cavalier
36cbd68b37 Various Jamfiles: Remove added "UsePrivateHeaders interface".
Added by looncraz in previous commits, and not needed.
2016-01-04 13:45:44 -05:00
looncraz
2567fac21d app_server: Fix for LinkReciever.
LinkReceiver would spin endlessly when given a timeout value which prevented
DelayedMessageSender from being operational.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patch 0002 from looncraz, unmodified.
2016-01-04 13:37:33 -05:00
looncraz
16c1051785 Deskbar: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0076 from looncraz, unmodified.
2016-01-04 13:35:12 -05:00
Augustin Cavalier
e8a15cb354 Mail preferences: Delete added code to resize the window.
Breaks the build, and shouldn't be needed anyway.
2016-01-04 13:32:22 -05:00
Augustin Cavalier
673b9591b2 app_server: Remove include looncraz forgot to remove. 2016-01-04 12:42:59 -05:00
looncraz
fa19dd4470 apps: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.
2016-01-04 07:33:09 -05:00
looncraz
f696e88a2c Convert various more things to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0038, 0040, 0042-0044 from looncraz, unmodified.
2016-01-04 07:29:14 -05:00
looncraz
f56d45ced4 BToolBar: Convert to using Set*UIColor.
This was a bigger change than many others as BButton now defaults to using
control background colors, and we can not do that here without the buttons
not appearing as we desire (blending in with the toolbar).

Using the control background color for the toolbar would be unacceptable.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patch 0041 from looncraz, unmodified.
2016-01-04 07:27:25 -05:00
looncraz
c5b4dc4007 Tracker: Use Set*UIColor, improved font awareness.
InfoWindow now uses the font size to determine the window size and
placement of elements. Also uses system colors, including link
colors. Permissions view not font sensitive yet.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patch 0039 from looncraz, unmodified.
2016-01-04 07:24:41 -05:00
looncraz
f0650dc98f preferences: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0023-0037 from looncraz, unmodified.
2016-01-04 07:21:14 -05:00
looncraz
1a8c00c14b servers: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0020-0022 from looncraz, unmodified.
2016-01-04 07:18:48 -05:00
looncraz
d231c2a7a5 tests: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0018-0019 from looncraz.
2016-01-04 07:15:57 -05:00
Augustin Cavalier
d8ca833a35 SliderTest: dos2unix. 2016-01-04 07:10:54 -05:00
Augustin Cavalier
3199cff322 kits/interface: Convert the new BCardView over as well. 2016-01-04 07:08:24 -05:00
Augustin Cavalier
a4f254fa49 Remove printf() definition added in previous commit. 2016-01-04 07:06:55 -05:00
looncraz
7a96554cb3 kits/interface: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0003-0017 from looncraz, unmodified.
2016-01-04 07:04:45 -05:00
looncraz
7f9368cae5 Set*UIColor, etc.
The inseparable changes necessary to support live color updating across the
system in a sane, safe, and performant manner.

BView gains:

HasSystemColors()
HasDefaultColors()
AdoptSystemColors()
AdoptParentColors()
AdoptViewColor(BView*)
SetViewUIColor(color_which, float tint)
SetHighUIColor(...
SetLowUIColor(...
ViewUIColor(float* tint)
HighUIColor(...
LowUIColor(...
DelayedInvalidate()

BWindow gains a simple helper method:
IsOffscreenWindow()

BMessage gains:

AddColor()
FindColor()
GetColor()
HasColor()            * allegedly this API is deprecated, but I implemented it anyway
ReplaceColor()
SetColor()

Previous private ColorTools methods are made public and moved into GraphicsDefs:

mix_color, blend_color, disable_color

These are fully compatible with BeOS dan0 R5.1 methods and are just code cleanup
of BeOS example code under the OpenTracker license.

In addition, four new colors are created:
B_LINK_TEXT_COLOR
B_LINK_HOVER_COLOR
B_LINK_ACTIVE_COLOR
B_LINK_VISITED_COLOR

These changes are documented in their proper user documentation files.

In addition, due to a history rewrite, B_FOLLOW_LEFT_TOP has been defined and
used in lieu of B_FOLLOW_TOP | B_FOLLOW_LEFT and is included in this commit.

On the app_server side, the following has changed:

Add DelayedMessage - a system by which messages can be sent at a scheduled time,
and can also be merged according to set rules.  A single thread is used to service the
message queue and multiple recipients can be set for each message.
Desktop gains the ability to add message ports to a DelayedMessage so that
said messages can target either all applications or all windows, as needed.

Desktop maintains a BMessage which is used to queue up all pending color changes
and the delayed messaging system is used to enact these changes after a short
period of time has passed.  This prevents abuse and allows the system to merge
repeated set_ui_color events into one event for client applications, improving
performance drastically.

In addition, B_COLORS_UPDATED is sent to the BApplication, which forwards the message
to each BWindow.  This is done to improve performance over having the app_server
independently informing each window.

Decorator changes are live now, which required some reworking.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-01-04 06:48:22 -05:00
Alexander von Gluck IV
72dbe9d2ce intel_extreme: Fix pull of current timing 2016-01-03 16:35:00 -06:00
Alexander von Gluck IV
5b0b486be4 intel_extreme: Correct LVDS DPLL mode on gen 3 2016-01-03 15:22:38 -06:00
Alexander von Gluck IV
2bf16c66b5 intel_extreme: Fix pll divisors on gen 3 cards
* Likely a regression from my card generation rework
2016-01-03 15:21:20 -06:00
Alexander von Gluck IV
af0dad4771 intel_extreme: Fix DPLL mode selection on gen 3
* Gen 3 chipsets also have this DPLL mode. 0 is reserved.
2016-01-03 14:50:23 -06:00
Alexander von Gluck IV
d35a52e8e2 intel_extreme: Fix i965 LVDS panel programming
* polarity regs move on LVDS vs analog
* add knowledge or transcoder registers, they
  exist seperately on PCH-split
* Native resolutions now work on LVDS under i965
2016-01-03 10:46:13 -06:00
DarkmatterVale
e1474dd440 BSnow: Remove from tree.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
It now lives at HaikuArchives.
2016-01-03 08:33:25 -05:00
Julian Harnath
85e034e479 app_server: lock previous alpha mask when generating mask
* Also, regenerate masks from bottom to top to make sure all
  of the lower mask is generated before masks higher in the
  stack are rendered.
2016-01-03 16:42:48 +01:00
Julian Harnath
e532264bcb app_server: attach correct rendering buffer to cloned mask
* When cloning a cached mask, we have to attach the
  AGG rendering buffer of the new instance to the AGG clipped
  mask object. Before, it was using the buffer description from
  the clone source.. which can later disappear at any time.

* Fixes bug #12478
2016-01-03 16:42:40 +01:00
Dario Casalinuovo
6f5c753d12 MediaPlayer: Show tip with current time when seeking.
* Rework of the patch from dburkart, Thanks!
* Fixes #8567.
2016-01-02 19:26:33 +01:00
Augustin Cavalier
4dfbf1d04c network/stack: #if 0 out ppp_frame datalink protocol.
Forgot to do this in previous push.
2016-01-02 12:28:00 -05:00
mshlyn
e3724c38cb PPP: Port to the new stack.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>

This is a squash of the 42 commits by @mshlyn, as I couldn't find a
way to break them into logical chunks. I did not include these in the build,
as it appears that they only partially work anyway, and much more cleanup is
still needed. However, this is a huge improvement on what was in the tree
before, which looked horrendous and didn't even compile (as it was designed
for the old stack).

Mostly fixes #812.
2016-01-02 07:22:13 -05:00
DarkmatterVale
6511a06111 Add help option to RemoteDesktop 2016-01-01 21:03:33 +01:00
DarkmatterVale
8de8a927ee Fix white screen of death in remotedesktop
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2016-01-01 21:03:30 +01:00
Augustin Cavalier
599289f2f3 ACPI: Revert the upgrade.
I don't have any hardware that reproduces the KDLs, and the developers
that do don't seem to have time to test / debug it, so I'm just reverting.
2016-01-01 07:51:56 -05:00
Augustin Cavalier
3c85734188 BTextView: Don't crash if the file supplied is zero-length.
Fixes #12551.
2015-12-31 20:54:27 -05:00
Augustin Cavalier
aa89e2de03 ACPI: Use AcpiGbl_OverrideDefaultRegionHandlers and do the init ourselves.
May help with the recent boot failures, according to a post on the ACPICA-dev
mailing list.
2015-12-31 16:36:38 -05:00
Adrien Destugues
2c49943980 Use the existing ffmpeg function to decide if a format is planar. 2015-12-31 16:19:59 +01:00
Jessica Hamilton
8113bbfe40 ffmpeg addon: only use swresample for planar audio.
Fixes #12547.
2015-12-31 16:19:57 +01:00
Automatic Committer
ccb3f7e7a0 Update pci.ids from pciids.sourceforge.net 2015-12-31 05:20:29 +01:00
François Revol
57346752bb listfont: remove (broken) check for R5 bug 2015-12-30 19:56:01 +01:00
Augustin Cavalier
2839ab9cda ACPICA: Exclude from build & delete utclib.c.
ACPI_USE_SYSTEM_CLIBRARY is/has been defined, so it isn't used.
2015-12-30 08:06:52 -05:00
Akshay Jaggi
f91361e0db XHCI: Even more fixes.
* Fix Endpoint Context Initialisation (Refer xHCI v1.1 - 6.2.3)
 * Fix Interval Calculation (Refer xHCI v1.1 - 6.2.3.6 , USB 2.0 - 9.6.6 page 271)
 * Fix MaxBurst, MaxPacketSize Calculation (Refer xHCI v1.1 - 6.2.3.5, USB 2.0 - 9.6.6 page 271)
 * Fix MaxESITPayload Calculation (Refer xHCI v1.1 - 4.14.2)
 * Remove Link TRBs as they were never being used
 * Increase Number of TRBs per endpoint (to utilise the whole area allocated for Device TRBs)
 * Fix usage of XHCI_MAX_ENDPOINTS (most of the checks were failing at corner cases)
 * Some coding style fixes.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Before this patch, writes to USB disks on XHCI in VirtualBox (which emulates
an Intel C210) stalled or failed. After this patch, they apparently work,
although I got mixed results - a BFS disk seemed to work perfectly, a FAT32
one also seemed to work OK but after a reboot there was data corruption. USB
mouse is still as busted as ever.
2015-12-29 13:06:33 -05:00
Augustin Cavalier
3cc632615c busses/usb: Trim trailing whitespace. 2015-12-29 12:09:56 -05:00
Augustin Cavalier
d4fb4ebd67 ACPI: Remove manual address space handler initialization.
These are now done in AcpiInitializeSubsystem(), as part of the
early init so they can be present when the tables are loaded.

Should fix ACPI not working since the merge.
2015-12-29 11:29:52 -05:00
Adrien Destugues
9ec8a1e4d9 Kernel POSIX: add stpcpy.
- Required by new GCC versions, which are able to optimize string
  appends using it.
- Fixes build of ACPICA for x86/gcc4.
2015-12-29 10:24:06 +01:00
Augustin Cavalier
4dffc0abb9 ACPICA: Update to 20151218 from 20150818.
Requested by RudolfC. Apparently there was a regression which prevented
ACPI battery/power from working on his system, which was fixed by
https://github.com/acpica/acpica/commit/a3267967c.

The only testing I did with this was confirm it compiles and boots
in a VM, so apologies if this breaks something else.
2015-12-28 23:05:46 -05:00
Michael Lotz
28d3c8ca50 runtime_loader: Resync heap impl with the one of the bootloader.
The heap implementation of the runtime_loader was switched to the one
of the bootloader in 6f0994d but was since updated independently.

To keep the diff between the two implementations as small as possible,
the bootloader implementation was first copied to the runtime_loader
and then some features not relevant in the runtime_loader (like the
special large allocation handling) have been removed and the
runtime_loader specific features (grow_heap, add_area) have been
reintegrated. But basically this applies 96689a5..HEAD of
src/system/boot/loader/heap.cpp to the runtime_loader heap.

This brings in the switch from a linked list to a splay tree based
free chunk management. Since the allocation counts in the runtime_loader
are rather small, this does not perceptibly affect performance in either
direction though.
2015-12-27 13:54:48 +01:00
Michael Lotz
8bbfae7b05 runtime_loader: Fix endless rld heap grow loop in edge case.
The needed storage space for tracking the allocation size was not
accounted for when growing the heap. Since the growth size is always
rounded up to a multiple of 32KiB, this did almost never matter as the
new allocation wouldn't need the full size. If the allocation did
happen to need the full size however, the newly added area would always
be too small. As the allocation attempt was simply restarted after each
successful growth, this lead to an endless loop creating small new
areas, which would then quickly starve the system for memory.
2015-12-27 13:54:47 +01:00
Markus Himmel
5f2db70ffb Interface Kit: Add BCardView
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-12-26 20:13:22 -05:00
RudolfC
c09a549146 nVidia driver: Doc update, no functional change 2015-12-26 12:03:14 +00:00
Automatic Committer
3ac1bac8e3 Update usb.ids from www.linux-usb.org 2015-12-24 05:20:25 +01:00
Automatic Committer
7d9bcf3e7e Update pci.ids from pciids.sourceforge.net 2015-12-24 05:20:23 +01:00
Alexander von Gluck IV
e28962a280 intel_extreme: Fix pci index mappings on i9xx < i96x 2015-12-23 21:08:05 -06:00
Alexander von Gluck IV
c302a243e1 Merge remote-tracking branch 'upstream/master' into intel-extreme 2015-12-23 16:41:23 -06:00
Axel Dörfler
29871039d7 IMAP: Use BStringList instead of STL vector. 2015-12-22 19:35:09 +01:00
Axel Dörfler
e69a3a86fc strace: Added option to dump syscall stats.
* Use -c/-C (same as in Linux's strace) to enable the stat output.
* Former -c to turn of colored output is now --no-color.
2015-12-22 19:35:09 +01:00
Axel Dörfler
30ac5550f1 mail_daemon: Only show new message count for new messages.
* Ie. do not show it always when the new message count changes,
  only show it when it increases.
2015-12-22 19:35:09 +01:00
Axel Dörfler
184619e625 IMAP: removed superfluous files from the old implementation. 2015-12-22 19:35:08 +01:00
Adrien Destugues
3c5c6990bb Really fix swr_convert usage for gcc2. 2015-12-21 22:48:23 +01:00
Augustin Cavalier
6984b8554c Revert "libroot: Undefine constants for unsupported POSIX features"
This reverts commit 7aebec8db1.
As per the discussion on the mailing list.
2015-12-21 12:16:33 -05:00
Simon South
7aebec8db1 libroot: Undefine constants for unsupported POSIX features
Haiku does not yet support certain features related to POSIX threads.
Constants used to test for the presence of these features should
therefore be left undefined, according to the POSIX spec, but are
currently set to -1. This can cause software built on Haiku to
incorrectly detect the presence of these features.

* unistd.h: Undefine _POSIX_THREAD_ATTR_STACKADDR,
  _POSIX_THREAD_PRIORITY_SCHEDULING feature constants.
* conf.cpp: __sysconf: Return -1 for unsupported features.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-12-21 11:09:34 -05:00
Adrien Destugues
9dd9b45436 Use swresample to rematrix audio channels, try 2
This code is closer to what we used before for gcc2, and should not
crash there anymore. I could not get exactly the same code to work, but
reduced the difference to a single statement (which makes gcc2 work and
breaks gcc4). This is protected under a guard with appropriate ffmpeg
version test.

This code works for both gcc2 and gcc4 (tested with mp3 and aac files as
well as youtube videos). It still gets the timestamps wrong with ffmpeg
2.4, but I'll try to solve that another time.
2015-12-19 21:55:10 +01:00
Augustin Cavalier
8a822b7c85 Revert "AVCodecDecoder: use swresample to interleave audio channels."
Commit 856cc59e58 didn't really "fix"
anything; it just broke audio pretty much everywhere but YouTube,
and there videos play at 2x speed so it wasn't really worth it.

Stopgap solution for #12509.
2015-12-18 20:42:29 -05:00
Humdinger
128efd5eae Added application/xhtml+xml as supported type for TextSearch 2015-12-18 18:17:56 +01:00
Guillermo Bonvehi
937aabf5a1 MediaPlayer: Added simple shortcuts to playlist.
Fixes #6562.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
I tweaked some coding style and added back the missing
B_BACKSPACE shortcut.
2015-12-17 16:52:38 -05:00
Markus Himmel
a89ac5a653 Tracker: Add dragged poses to the drag message in the correct order
The function EachPoseAndModel iterates through poses in reverse order.
This fixes #12333.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-12-17 16:25:16 -05:00
Jérôme Duval
33840df504 app_server: declare jam dependency for BitmapPainter to freetype 2015-12-17 21:51:08 +01:00
Automatic Committer
381c562bc4 Update usb.ids from www.linux-usb.org 2015-12-17 05:20:33 +01:00
Augustin Cavalier
928081790f WebPositive: Fix typo in SettingsWindow.
Thanks Anarchos!
2015-12-16 16:16:35 -05:00
Dariusz Knociński
c0349163fd Preferences/VirtualMemory: fixed crash when exiting from not fully initialized application.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-12-15 21:21:23 -05:00
Augustin Cavalier
485f533935 RWLocker: Move to kits/shared.
As requested by looncraz. A lot of stuff in IOM/MediaPlayer's
'support' directories probably should be moved to 'shared' anyway.
2015-12-15 21:15:06 -05:00
Alexander von Gluck IV
0ea662e5e9 intel_extreme: Correct panel control register on non-pch 2015-12-15 07:23:21 -06:00
Alexander von Gluck IV
471bc81038 intel_extreme: Fix LVDS pll DAC timing 2015-12-12 00:11:30 -06:00
Alexander von Gluck IV
5202e45a52 intel_extreme: Improve LVDS CLKB desire detection 2015-12-05 11:47:15 -06:00
Alexander von Gluck IV
e587aa9fa3 pll: Cleanup PLL post dividers, add VLV and CHV limits 2015-12-05 11:26:14 -06:00
Alexander von Gluck IV
3cfe299798 intel_extreme: Rework PLL and id PineView as PIN 2015-12-04 13:34:33 -06:00
Alexander von Gluck IV
77b8386d56 intel_extreme: Tweak pll limits on 9xx 2015-11-26 23:43:59 -06:00
Alexander von Gluck IV
f6623f4d99 intel_extreme: program both pll divisors 2015-11-26 22:57:57 -06:00
Alexander von Gluck IV
7217bb117b intel_extreme: Take a register dump for intel_reg 2015-11-24 16:47:02 -06:00
Alexander von Gluck IV
d7a8a21fa5 intel_extreme: Style fix, no functional change 2015-11-24 12:15:06 -06:00
Alexander von Gluck IV
b01aed8310 intel_extreme: Don't store pipes within ports
* Store pipes within accelerant, and tell ports
  about them.
* Rebrand DisplayPipe class to Pipe
2015-11-24 12:11:31 -06:00
Alexander von Gluck IV
864275121f intel_extreme: Fix LVDS polarity flags 2015-11-24 09:41:18 -06:00
Alexander von Gluck IV
bc98dc421e intel_extreme: Improve LVDS panel control
* Disable panel before modification
* Properly wait for panel power
2015-11-23 17:32:40 -06:00
Alexander von Gluck IV
cc891135c8 intel_extreme: return after proper FDI auto-train 2015-11-20 19:21:44 -06:00
Alexander von Gluck IV
874b248894 intel_extreme: Enable FDI PLL's before FDI training 2015-11-20 10:12:30 -06:00
Alexander von Gluck IV
e6fefa6cbf intel_extreme: More FDI training work
* IvyBridge or higher can auto-train.
* Linux doesn't use this feature, however
  manual FDI link training is *really*
  complex... lets try auto-training first.
2015-11-19 17:49:51 -06:00
Alexander von Gluck IV
aa06863ccd intel_extreme: Enable / Disable FDI TX/RX 2015-11-19 13:26:55 -06:00
Alexander von Gluck IV
00e0982f68 intel_extreme: First work at programming FDI 2015-11-17 23:28:09 -06:00
Alexander von Gluck IV
32807945aa intel_extreme: Some basic pipe cleanup 2015-11-17 20:12:41 -06:00
Alexander von Gluck IV
e5494f1bb2 intel_extreme: Fix DP / HDMI gpu register location mixup on die 2015-11-16 20:41:14 -06:00
Alexander von Gluck IV
202ffc8cca intel_extreme: Bump the VLV offset back a bit and fix port defines 2015-11-16 19:58:51 -06:00
Alexander von Gluck IV
21e840d154 intel_extreme: Cleanup pipe enablement ordering 2015-11-13 14:56:12 -06:00
Alexander von Gluck IV
fa45565eb7 intel_extreme: Add missing vlv offset to south shared 2015-11-13 10:10:54 -06:00
Alexander von Gluck IV
f482afbc22 intel-extreme: Fix N pll limits on 9xx 2015-11-12 19:03:46 -06:00
Alexander von Gluck IV
f979e62e54 intel_extreme: Program more LVDS regs. Set +/- @ lvds port 2015-11-12 18:30:21 -06:00
Alexander von Gluck IV
39f61d2190 intel_extreme: Store current display mode on each port 2015-11-12 16:44:04 -06:00
Alexander von Gluck IV
eb56837dfb intel_extreme: Disable lvds panel_fitter for now 2015-11-12 16:18:45 -06:00
Alexander von Gluck IV
c7c3bcda8c intel_extreme: Revert unintended change in 222f5929 2015-11-12 15:43:25 -06:00
Alexander von Gluck IV
222f5929cf intel_extreme: Make sure we power up the panel after modesetting 2015-11-11 17:25:46 -06:00
Alexander von Gluck IV
de04810814 intel_extreme: Program multiplier divisors 2015-11-10 17:50:54 -06:00
Alexander von Gluck IV
be3f7a8fc5 intel_extreme: tracing cleanup; no functional change 2015-11-10 16:23:37 -06:00
Alexander von Gluck IV
a5a2bf727c intel_extreme: Let ports pick a pipe if required 2015-11-10 16:00:26 -06:00
Alexander von Gluck IV
4f2b258c32 intel_extreme: Fix LVDS head mode (we'll remove it soon) 2015-11-09 22:26:47 -06:00
Alexander von Gluck IV
92bcdd7935 intel_extreme: Add initial TMDS modesetting code 2015-11-09 09:26:07 -06:00
Alexander von Gluck IV
328d66d5f0 intel_extreme: Fix ordering of fb set. Uses current_mode 2015-11-08 23:29:56 -06:00
Alexander von Gluck IV
61fbdb0667 intel_extreme: Set mode and pll via pipe-aware class functions 2015-11-08 23:14:46 -06:00
Alexander von Gluck IV
72cecf8765 intel_extreme: Add missing DisplayPipe destructor 2015-11-08 13:58:50 -06:00
Alexander von Gluck IV
6e1ff82f45 intel_extreme: Begin using new DisplayPipe class 2015-11-08 11:58:49 -06:00
Alexander von Gluck IV
37b903fbc8 intel_extreme: Add pipe selection for ports 2015-11-08 10:39:07 -06:00
Alexander von Gluck IV
c9117774b2 intel_extreme: Improve generation tracing 2015-11-04 17:24:27 -06:00
Alexander von Gluck IV
fb255821eb intel_extreme: Correct generations based on some Intel help 2015-11-04 16:11:22 -06:00
Alexander von Gluck IV
fa1d593323 intel_gart: Clean up trace code, break apart gtt probe functions 2015-11-03 17:18:58 -06:00
Alexander von Gluck IV
c86f3dba23 intel_extreme: LVDS cleanup and fixes for later gens 2015-11-02 18:01:18 -06:00
Alexander von Gluck IV
4b6d5b8427 intel_extreme: Drop fatal error on no monitors. 2015-11-02 16:28:04 -06:00
Alexander von Gluck IV
e2e5daf25b intel_extreme: Add generation index + begin to use in gart 2015-11-02 15:55:05 -06:00
Alexander von Gluck IV
53f5bffe84 intel_gart: Fix gart detection and begin using DeviceType
* Correctly identify newly re-assigned cards families
* Begin using new DeviceType class in intel gart code
2015-11-01 20:17:20 -06:00
Alexander von Gluck IV
84b7116da8 intel_extreme: Rework card identification defines
* Be more verbose on flag type
* Add additional groups
* Add additional families
* Correctly assign later models
2015-11-01 12:20:10 -06:00
Alexander von Gluck IV
b0f591a7e9 intel_extreme: Fix DPMS modesetting dance 2015-11-01 08:52:23 -06:00
Alexander von Gluck IV
62fbfdaa79 intel_extreme: Undo a suspect PLL change from mmlr's branch 2015-11-01 08:35:11 -06:00
Alexander von Gluck IV
f142870c84 intel_extreme: Break port probe logic into own function for later HPD 2015-10-28 14:58:33 -05:00
Alexander von Gluck IV
9e631adad6 intel_extreme accelerant: Cleanup VLV InGroup 2015-10-26 00:19:34 -05:00
Alexander von Gluck IV
b3f14fb7c7 intel_extreme: Start doing mode-setting at port level
* I really hope we can kill head_mode some day
* Break pll code out from mode code
* The LVDS and Digital are smooshed together and
  likely need broken apart.
2015-10-25 20:56:08 -05:00
Alexander von Gluck IV
e747cbe116 intel_extreme: Fix regs, remove PCH for VLV, Expand Type
* Fix some incorrect HDMI reg locations
* PCH goes away on later Intel chips
* Add more mask room for Intel Groups
2015-10-24 09:53:14 -05:00
Alexander von Gluck IV
c7af18fd9c drivers/intel_extreme: Fix ValleyView block offsets 2015-10-22 14:48:56 -05:00
Alexander von Gluck IV
bc5cad7395 intel_extreme: Correct card identification, add gen4 hdmi regs 2015-10-22 14:48:53 -05:00
Alexander von Gluck IV
27134c6697 intel_extreme: Dump more info on ports found. Build fixes. 2015-10-22 14:48:49 -05:00
Alexander von Gluck IV
50f0b3fe76 intel_extreme: Rebase and refactor mmlr's work from 2013
* New port storage classes and cleaner logic
2015-10-22 14:48:45 -05:00
John Scipione
c06aefa0ee HaikuDepot: Reset package state on failure
* Save the package state before attempting to install/uninstall the package.
* In the case of failure set the package state back to what it was.
* Use the synchronous version of BAlert so that the package state won't
  change until the user clicks the Close button on the dialog.

Fixes #10838
2015-10-22 10:44:27 -07:00
John Scipione
ae557b7951 HaikuDepot: Style fix, whitespace only 2015-10-22 10:42:21 -07:00
John Scipione
6075d7d09d HaikuDepot: Indentation style fix 2015-10-22 10:27:58 -07:00
John Scipione
95ad2c7563 HaikuDepot: Remove extra ; 2015-10-22 10:27:27 -07:00
John Scipione
7cc5d1688d HaikuDepot: Set B_STOP_ALERT on fatal error BAlerts 2015-10-22 09:57:29 -07:00
Automatic Committer
6d574ebd1b Update pci.ids from pciids.sourceforge.net 2015-10-22 05:20:23 +02:00
Augustin Cavalier
4cb401968e Tracker: Remove needless NULL check before delete.
Thanks John!
2015-10-21 12:55:07 -04:00
Augustin Cavalier
c746acc289 Tracker: Delete own BTextWidgets in BPose destructor.
Fixes a memory leak, and #12393.
2015-10-21 12:01:04 -04:00
John Scipione
d4e348b08e Mail: Implement select all hook for subject
This allows the Cmd+A key shortcut to select all text on
the subject control.  You could already Select All from the
View menu but this is more convinient.

Fixes #12361
2015-10-19 14:13:30 -07:00
John Scipione
b32f138231 Mail: Make AddressTextControl B_NAVIGABLE 2015-10-19 14:13:29 -07:00
John Scipione
a0242c53e2 Mail: Update background color to use setting
Fixes #12360
2015-10-19 14:13:28 -07:00
Axel Dörfler
d9bb9513c5 launch_daemon: "file_exists" now resolves $HOME, and '~'. 2015-10-19 21:22:21 +02:00
Axel Dörfler
4e8fc45146 Deskbar: converted to BServer. 2015-10-19 21:21:56 +02:00
Axel Dörfler
cfe6baf62f cddb_daemon: renamed to cddb_lookup, moved to /src/bin.
* It's now a standard command line tool that is launched automatically
  via the launch_daemon whenver a volume is mounted.
2015-10-19 21:21:21 +02:00
Axel Dörfler
a1406a012e launch_daemon: Increased the number of worker threads.
* Since we're disk bound, and not CPU bound, it doesn't make much sense
  to restrict the number of threads on the number of CPUs.
* It's still not completely independent of the number of CPUs now,
  though: we'll have 3 * CPU count worker threads.
2015-10-18 13:11:26 +02:00
Axel Dörfler
4ae4b3ff57 launch_daemon: Fixed the remaining "operation not allowed" bug.
* This was the harmless part: a job was been requeued that already was
  being launched.
* I was already aware of this one, and only accidentally stumbled over
  the non-harmless case in the JobQueue code when I tried to fix that
  little issue... (ie. never ignore warnings, even if you think you
  know what's going on).
2015-10-18 13:11:26 +02:00
Axel Dörfler
c80084b025 JobQueue: fixed incorrect requeuing.
* A dependent job was requeued even if it wasn't part of the queue
  before. The code relied on dependent jobs being already enqueued;
  but that cannot be guaranteed.
* If a job failed, its dependent jobs are now also set to failed, so
  that they won't be requeued at a later point.
* This caused some of the "Launching xxx failed: Operation not allowed"
  messages in the boot process. Those actually weren't harmless, and
  could mess up the natural job order.
2015-10-18 13:11:26 +02:00
Jérôme Duval
86e23e81b0 midi_server: fix debug build. 2015-10-18 11:42:03 +02:00
Jérôme Duval
d43720add9 Switch to tiff4 as system dependency. 2015-10-18 10:00:02 +02:00
Jérôme Duval
5b3c88f1da Switch to ncurses 6 as system dependency.
* remove traces from libpng (as opposed to libpng16).
2015-10-18 00:44:30 +02:00
Axel Dörfler
0f3fcbe437 launch_daemon: Added volume_mounted event.
* Triggered whenever a volume is mounted (surprise!).
* There is no way to specify which volume you are interested in for now
  (if someone knows a good use case, I'd be willing to add that,
  though :-)).
2015-10-17 14:24:57 +02:00
Axel Dörfler
7cd19b7e5c launch_daemon: Implemented sticky events, and registration.
* Sticky events are events that keep their signal raised, ie. even if
  a job is initialized afterwards, it will still be triggered.
* Consolidated naming for external events.
* Events are now registered once they are actually being used. This
  allows them to allocate the resources they need to do their thing.
2015-10-17 14:16:26 +02:00
Axel Dörfler
5ab2b1457b BJob: Added SetState() method. 2015-10-17 14:16:26 +02:00
Axel Dörfler
e96f5c3330 launch_daemon: Renamed RegisteredEvent to ExternalEventSource.
* With events being registered, this proved to be confusing, and it also
  helps to differentiate between event objects within the daemon, and
  events coming from external sources.
2015-10-17 14:16:25 +02:00
Axel Dörfler
1034412d56 notification_server: Fixed include order. 2015-10-17 14:16:13 +02:00
Alexander von Gluck IV
97aa078ef4 intel_extreme: Intial work for ValleyView support
* No impact to non-ValleyView chipsets
* Bump some register locations for VLV
* Only have HDMI port to test with on my ValleyView GPU
  and our driver seems to be missing all HDMI and
  sideband functionality.
* As ValleyView chipsets seem to be UEFI only, we don't
  have VESA fallback, so this shouldn't cause regressions.
  (unless we get UEFI framebuffer support)
2015-10-15 23:39:31 -05:00
John Scipione
e01bbf955f Tracker: Fix issue with vertical scroll bar border
This issue only manifested itself when the navigation toolbar was shown.

The scrollbar appeared to have no border while the rest did. This issue
manifested when the scrollbar insets were adjusted in hrev49654. The
scroll bar insets were really hiding the bug underlying bug though.

I'll try to explain what was happening and how I fixed it. The PoseView
container, called BorderedView, was showing its top border when the
navigation bar was hidden, and hiding its top border when the navigation
bar was shown.  This (almost) worked because the menu bar provided a
bottom border while the navigation toolbar didn't. However hiding
BorderedView's top border also hid the scroll bar border.

My solution was to draw a bottom border on the navigation toolbar and
then remove the top border from BorderedView unconditionally. So either
the menu bar or the navigation toolbar provides a bottom border and the
BorderedView has no top border.

Fixes #12392
2015-10-14 22:29:52 -07:00
Automatic Committer
e345b60486 Update pci.ids from pciids.sourceforge.net 2015-10-15 05:20:21 +02:00
Alexander von Gluck IV
fc20d30ed6 Notification Server: Build fix, missing stdlib.h for EXIT_ 2015-10-14 18:06:32 -05:00
Alexander von Gluck IV
c6475ba15c ahci: Minor trace cleanup; No functional change 2015-10-14 16:48:16 -05:00
Axel Dörfler
b5e496b575 notification_server: Converted to BServer, launch on demand. 2015-10-14 22:24:19 +02:00
Axel Dörfler
8f27961801 midi_server: Converted to BServer, launched on demand. 2015-10-14 22:24:01 +02:00
Axel Dörfler
83f803c6ff midi_server: cleanup.
* Style cleanup.
* Moved documentation to source file.
* Improved variable/member naming, added '_' prefix for private methods.
2015-10-14 22:23:28 +02:00
John Scipione
8a3ae7a49d Restore the BMenuField label background
Highlighting was added in hrev45983, stopped working in hrev49614, specifically
d891923650.

Add comment to explain what is happening and hopefully deter this from being
removed again in the future.

Fixes #12359
2015-10-14 11:06:55 -07:00
Alexander von Gluck IV
2f6a9c685a ahci: Fix delays with large numbers of empty ports
* Properly flag missing devices
* Do away with shifts and define ssts and sctl masks
* Tested working on 6 different systems with a
  combination of drive configurations.
* Empty media on AHCI devices still cause port change
  storms. (the issue that was attempted fixed in
  5584c22fdd)
2015-10-14 00:06:27 -05:00
Axel Dörfler
37e5a03660 print_server: Converted to launch_daemon, run on demand only.
* Seems to work fine, although it should probably also be triggered when
  there are still jobs in the queue -- someone more knowledgeable might
  want to chime in here, please :-)
* If this turns out to be problematic, we can just drop the "on_demand"
  job config again.
2015-10-13 16:37:38 +02:00
Axel Dörfler
e048384d77 launch_daemon: launching on demand now actually works.
* Was broken in two ways: if only the shortcut "on_demand" was used,
  the event didn't get created at all due to a bug in
  Events::AddOnDemand().
* Furthermore, _LaunchJob() always triggered a demand, but it should
  only do this when not called from a target.
2015-10-13 16:36:58 +02:00
Axel Dörfler
74b10f8e82 print_server: No need to build on BeOS. 2015-10-13 16:36:19 +02:00
Axel Dörfler
6c3e186ceb print_server: minor coding style cleanup. 2015-10-13 16:35:47 +02:00
Dario Casalinuovo
46098852b4 Revert code which got mixed in 782ebbdf93
* Sorry about that.
2015-10-12 13:20:31 +02:00
Dario Casalinuovo
782ebbdf93 Cortex: Check retrieved timesource, fixes #11391 2015-10-12 13:07:53 +02:00
Adrien Destugues
1388211503 Implement stat.st_rdev for block and character devices.
* devfs: set st_rdev to the inode number of the node being queried. This
  may not be the best thing to do, as it does not match what is set in
  st_dev for other files, so it can't be used to find which device
  stores a particular file. I'm not sure if st_rdev is actually used that
  way anywhere, however.
* vfs: do not clobber st_rdev with -1 for "special" (device) files.
  Refactor the code a little so setting the common attributes is done in
  a single place.

Fixes #12390.
2015-10-11 18:26:21 +02:00
Jessica Hamilton
fcad732fcd Revert "makebootable: Add in needed GPT libuuid on cross-platform builds"
This reverts commit 832f090ea8.
2015-10-08 23:37:28 +00:00
Jessica Hamilton
f217aa879b gpt/Header.cpp: also disable UUID code when _USER_MODE defined.
src/tools/makebootable defines _USER_MODE, which we can check
for in gpt/Header.cpp to remove the dependency on libuuid, as
makebootable only needs read-only access to partition maps
anyway.
2015-10-08 23:37:28 +00:00
Jessica Hamilton
f052cd0cce gpt partitioning: properly delete partition entries.
Previously, deleting a partition was lazy and only changed
the partition type to an invalid UUID, and would still
show up as a partition in many partitioning tools.
2015-10-08 23:37:27 +00:00
Simon South
5df5223b4b kernel: Don't send SIGTTOU if calling thread is blocking it
POSIX requires SIGTTOU to be sent to a process in a background process
group that tries to change the foreground process group ID associated
with its controlling terminal, unless the process is ignoring SIGTTOU or
the calling thread is blocking it. Previously the code checked the
former condition but not the latter, making it possible for calls to
tcsetpgrp() to get stuck in a loop and never return.

Should fix #3417.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-10-08 19:25:31 -04:00
Simon South
338fd73327 Debugger: Fix TRACE_LOCALS statement.
- Correct a TRACE_LOCALS statement in ValueWriter.cpp and update it to
  match the current definition of ValuePieceLocation.

Fixes #12411.

Signed-off-by: Rene Gollent <rene@gollent.com>
2015-10-08 18:59:54 -04:00
Rene Gollent
c5271e6b51 makebootable: Fix various build problems.
- Add jamfile for a build variant of libuuid.
- Adjust the build version of makebootable to link to that instead, as it would
  otherwise link in the target platform's version of libuuid_kernel, which
  wasn't necessarily compatible with the build platform's objects (i.e. when
  building a 32-bit Haiku image on a 64-bit host OS), and would consequently
  fail.
2015-10-08 18:57:21 -04:00
Alexander von Gluck IV
832f090ea8 makebootable: Add in needed GPT libuuid on cross-platform builds 2015-10-08 00:09:30 -05:00
Automatic Committer
228e5c39f5 Update pci.ids from pciids.sourceforge.net 2015-10-08 05:20:22 +02:00
Jessica Hamilton
0baf9d8d8d gpt partitioning: generate uuids for disks & partitions.
Also added src/libs/uuid to tree, sources adapted from
http://git.kernel.org/cgit/fs/ext2/e2fsprogs.git/tree/lib/uuid.
2015-10-08 02:12:14 +00:00
Jessica Hamilton
2346363b23 gpt partitioning: fix writing of partition entries.
When writing an individual entry to disk, the offset of the entry
was omitted, which resulted in entries not block-aligned to
overwrite previously valid entries. This in turn resulted in the
stored entries CRC no longer matching what was on disk, causing
the partitioning system to fail to identify it as a valid GPT
when read from disk later (e.g. after a reboot).

E.g. if the first entry is the ESP (which it typically is), and
then the second being an entry for a BFS partition, updating the
BFS partition entry would overwrite the entry for the ESP, thus
corrupting the entries table.
2015-10-08 02:12:13 +00:00
Alexander von Gluck IV
a1ed294ff9 AHCI: Rework port reset and control
* Move to more standardized functions matching AHCI spec
* Don't perform unnecessary double port resets
* Begin implementing a software reset to try first per spec.
  Software reset needs more work, falls through to port reset
  for the moment which is stable.
* Don't duplicate ATA defines, use what we already provide.
* Tested working on VirtualBox 1-16 AHCI ports, Intel C200,
  and AMD FCH.
2015-10-05 19:46:03 -05:00
Automatic Committer
8f5fd0d35d Update usb.ids from www.linux-usb.org 2015-10-01 05:20:27 +02:00
Automatic Committer
6d3006b031 Update pci.ids from pciids.sourceforge.net 2015-10-01 05:20:25 +02:00
Dario Casalinuovo
5e726ed442 BMediaEventLooper: Finally fix some lateness problems
* For the moment i still remain with the classic lateness calculus.
My code wasn't perfect, but this commit fix the remaining
problems from my perspective.
* The first reason is that if we have a patologic latency
such as adding for experimental reasons a snooze() before a SendBuffer or
in the BufferReceived callback, we still can't do anything about it.
If we use enqueue_time and don't send a LateProducer notice, this latency
will never be detected by the API client. We can't do anything about it,
and it's even better that systems with such problems are recognized as
soon as possible IMO.
* The second reason is that the lateness calculus described in the BeBook
is done this way because the media_kit want us to adjust our timing in both
early and late situations.
* Realtime expect that things are always delivered under a certain time
limit, if the software at the bottom doesn't meet with this requirement,
it's just not realtime and things can't work in realtime.
* enqueue_time has nothing to do with the performance_time. But we can
still add this to the media_timed_event struct so that applications can
make use of it.
* Lateness was probably not used a lot in BeOS programs as it looks like
a relatively new feature but i have the concern to complete our API
implementation to be close to what i see was reasonably the designers aim.
2015-09-26 13:23:49 +02:00
Dario Casalinuovo
8bffda1633 media_kit: Allow to set a NULL buffer group. Fixes #12305. 2015-09-26 13:23:48 +02:00
Stephan Aßmus
3da9a05272 TextDocumentTest: Embed text view into scroll view
Work in progress... text view does not yet control the scroll bars
properly when the contents change.
2015-09-26 01:48:41 +02:00
Stephan Aßmus
da16a92894 Model: Pull changelogs from the package infos 2015-09-26 01:48:36 +02:00
Stephan Aßmus
17dd011a5f WebAppInterface: Request to receive changelogs 2015-09-26 01:48:31 +02:00
Stephan Aßmus
16f524c59b PackageInfoView: Update on changelog changes
Also re-order the bitfield test such that each sub-view is only
updated once per package changed message.
2015-09-26 01:48:27 +02:00
Automatic Committer
8533039abf Update usb.ids from www.linux-usb.org 2015-09-24 05:20:23 +02:00
Automatic Committer
4534f55930 Update pci.ids from pciids.sourceforge.net 2015-09-24 05:20:21 +02:00
Stephan Aßmus
5f80d48a76 TextDocument: Extended comment in _Insert(). 2015-09-20 22:18:10 +02:00
Stephan Aßmus
f890fab65b TextDocument: Change _Insert() to use TextDocument
In preparation for implementing Undo/Redo support, we need _Insert() to
take a TextDocument instead of a BString, CharacterStyle and ParagraphStyle.
When a chunk of the TextDocument has been removed, we need to be able to
Insert() that as part of the Undo operation. Not well tested, but typing
still works.
2015-09-20 22:17:26 +02:00
Stephan Aßmus
2e2ff27a92 Paragraph: Added EndsWith(BString) 2015-09-20 22:17:21 +02:00
Stephan Aßmus
9a8dd79cc2 TextDocumentLayout: Use Invalidate() instead of InvalidateParagraphs()
Added TODO about which data the TextChangedEvent should have in order to
know how to respond in the TextDocumentLayout. For now, update all paragraphs
in the layout, add new ones as necessary, and remove the ones we have in
excess by using Invalidate().
2015-09-20 22:17:17 +02:00
Stephan Aßmus
1fa37d5af8 HaikuDepot: Text: Fix regression for B_SELECT_ALL
An Invalidate() was removed, since I originally planned to remove the need
to invalidate on selection changes, but then saved it for later.
2015-09-20 22:17:12 +02:00
Jessica Hamilton
2d34b65ec2 Tracker: fix insets of vertical scrollbar. 2015-09-20 00:14:31 +00:00
Stefano Ceccherini
e5f9dfebd7 FlattenPictureTest: Add FillTriangle() with gradients test 2015-09-18 23:20:09 +02:00
Stefano Ceccherini
00c573d643 FlattenPictureTest: Add tests for FillRoundRect with gradients 2015-09-18 23:20:09 +02:00
Stefano Ceccherini
b8c65995cd FlattenPictureTest: Add tests for FillRegion with gradients 2015-09-18 23:20:08 +02:00
Stefano Ceccherini
7cf26360d9 FlattenPictureTest: Add failing test
InvertRect, when mixed with SetDrawingMode calls, fails to draw correctly
to a BPicture.
2015-09-18 23:20:08 +02:00
François Revol
594187ade2 glibc/ppc: add missing math stuff
hopefully fixing the build for the 53rd time...
2015-09-18 03:59:56 +02:00
François Revol
bbdf4c27fa glibc: avoid linking long double math stuff on PPC and M68K 2015-09-18 03:59:56 +02:00
François Revol
dab2aa8189 complex.h: fix __NO_LONG_DOUBLE_MATH test
PPC doesn't support long double yet...
2015-09-18 03:59:55 +02:00
Stefano Ceccherini
abf565b12b FlattenPictureTest: add tests for Gradients.
None of the tests pass. BPicture currently doesn't have support for gradients.
Also add DrawString with offsets test.
2015-09-17 22:54:05 +02:00
Automatic Committer
ccff90f597 Update pci.ids from pciids.sourceforge.net 2015-09-17 05:21:31 +02:00
François Revol
045af160e7 df: silently accept -h
Traditional Unix 'df' use -h for human readable units.
I always end up typing 'df -h' so it's frustrating to see the usage there.
2015-09-17 00:29:50 +02:00
François Revol
490dc7aa16 keymap: avoid showing usage twice 2015-09-17 00:22:13 +02:00
Axel Dörfler
90ec3fc165 AHCI: disable interrupt reset for unsolicited COMINIT for now. 2015-09-15 10:23:24 +02:00
Jessica Hamilton
8927348ef1 Boot menu: change colours of sub-menu headers. Fixes #12371.
Changed from white on red background, to yellow on black
(neutral) background. Red on black made it look like a
warning, whereas yellow feels more informative.
2015-09-15 01:32:07 +00:00
Jessica Hamilton
31b0eb9f53 BWindow::MoveOnScreen(), fix parentheses warning. 2015-09-15 00:51:07 +00:00
Jessica Hamilton
93244a65e6 BScrollView: _ComputeFrame(BRect,...) used incorrect insets.
Previously, the BRect would be expanded by the call to
InsetBy(), but the replacement _InsetBorders() forgot to
take this into account.

Fixes #12380.
2015-09-15 00:39:23 +00:00
Fredrik Holmqvist
c8bd1b0ad0 Set ACPI io and physical address to 32 bit on 32 bit arch.
This is temporary fix, our ACPI.h header needs a review, and perhaps
a better approach.
2015-09-14 22:18:02 +02:00
Axel Dörfler
268e4ea27d ScreenSaver: Make preview relative to font size.
* This commit got somehow eaten by git rebase :-/
2015-09-14 20:54:26 +02:00
Axel Dörfler
64ee9242db Time: properly center the window.
* The previous code was broken, and did not take the actual window
  size into account; it's now using BWindow::MoveOnScreen().
* Also, make the width of the time zone list relative to the font size.
2015-09-14 20:46:02 +02:00
Axel Dörfler
8d46a99fe9 Sounds: Center initial window.
* Now uses BWindow::MoveOnScreen().
2015-09-14 20:46:00 +02:00
Axel Dörfler
8bf216d6dd Screen: improved window position, fixed empty line.
* The monitor size now scales with the font size.
* It now uses BWindow::MoveOnScreen() to find a good position on screen.
* The monitor info is now properly hidden when there is no info (this
  removes a blank line at the top of the left box).
2015-09-14 20:45:58 +02:00
Axel Dörfler
4d9fc65ec7 Mouse: let the mouse scale with the font size.
* It's really confusing that SetOrigin() ignores the current
  scaling.
2015-09-14 20:45:55 +02:00
Axel Dörfler
881325a06e Keymap: improve initial window size, and position.
* By making it scale with the font size, and by using
  BWindow::MoveOnScreen().
2015-09-14 20:45:53 +02:00
Axel Dörfler
3f772f525b Backgrounds: let the preview scale with the font size. 2015-09-14 20:45:51 +02:00
Axel Dörfler
b11399ff60 BAlert: fixed missing initialization of fAlertSem.
* Fixes bug #12372.
2015-09-14 20:45:49 +02:00
Axel Dörfler
4df20b63c0 Sudoku: improve initial window size, and position.
* By making it scale with the font size, and by using
  BWindow::MoveOnScreen().
2015-09-14 20:45:47 +02:00
Axel Dörfler
adcbc17bf5 DeskCalc: improve initial window size.
* By making it scale with the font size.
2015-09-14 20:45:45 +02:00
Axel Dörfler
0342049e48 CharacterMap: improved initial window size, and position.
* By making it scale with the font size, and by using
  BWindow::CenterOnScreen().
* Minor cleanup.
2015-09-14 20:45:43 +02:00
Axel Dörfler
2603848d7d ActivityMonitor: improve initial window size, and position.
* By making it scale with the font size, and by using
  BWindow::CenterOnScreen().
2015-09-14 20:45:40 +02:00
Axel Dörfler
8e96ec340b BWindow::MoveOnScreen() now has a flags field.
* You can now specify whether or not you want to resize the window,
  and move it on screen, or center it.
* Removed PulseWindow::MoveOnScreen() method.
2015-09-14 20:45:38 +02:00
Fredrik Holmqvist
65ecbac0dc Switch from ACPI_SIZE to ACPI_PHYSICAL_ADDRESS.
Should fix build bustage on 32 bit builds.
2015-09-13 22:16:19 +02:00
Fredrik Holmqvist
e226d1d04f Update ACPICA to 20150818.
Previous update was 20140724.
    Changes at:
    https://acpica.org/sites/acpica/files/changes_25.txt
2015-09-13 21:12:49 +02:00
Axel Dörfler
41082c87ac AHCI: only perform the reset when ST is not set.
* As the specs say, this causes undefined behavior.
* Should help with the recently introduced boot issues, but cannot
  be considered a full fix -- as mmlr pointed out, one has to detect
  unsolicited COMINITs.
2015-09-11 17:34:27 +02:00
Axel Dörfler
eb62d3337b VFS: Slight rework of the FD disconnect feature.
* This should fix ticket #4157, although I probably have missed
  something.
* In any case, it no longer messes with the ref counts of the
  file descriptor, and the race condition in put_fd() should be
  gone.
* It's still rather messy all in all.
2015-09-11 17:25:01 +02:00
Axel Dörfler
6adf7a0c75 VFS: prevent FD inheritance for the kernel completely.
* Each io_context now has a "inherit_fds" member that decides whether
  or not this context allows to inherit FDs to its children.
* This replaces the former O_CLOEXEC mechanism.
2015-09-11 17:08:35 +02:00
Axel Dörfler
16844b92fc launch_daemon: Open stdin/out/err FDs.
* As with the boot script, point them to /dev/null.
* This should fix #12298.
2015-09-11 09:01:26 +02:00
Axel Dörfler
e668e80db0 VFS: Always open kernel FDs with O_CLOEXEC.
* Avoids leaking them into userland.
2015-09-11 08:57:15 +02:00
Stephan Aßmus
8d611f17a7 TextDocumentView: Fixed leak of BMessageRunner. 2015-09-10 21:56:38 +02:00
Stephan Aßmus
81f55cc896 HaikuDepot, text framework: Rework blinking the caret
Make sure that the caret starts blinking half a second after it last moved.
The previous solution using Pulse() had a number of problems:
 * The caret could be hidden during moving it or during typing. It would then
   be shown again very soon after, i.e. when typing the next character or
   when moving it to the next offset. But it looks bad anyway.
 * When the caret stopped moving, it started blinking a random amount of
   time afterwards, getting back into the rhythm of Pulse() messages.
   However, starting to blink a constant time after the caret last moved,
   looks much more satisfying.
2015-09-10 21:56:33 +02:00
Automatic Committer
877d731e03 Update usb.ids from www.linux-usb.org 2015-09-10 05:20:36 +02:00
Automatic Committer
6f7ee12593 Update pci.ids from pciids.sourceforge.net 2015-09-10 05:20:34 +02:00
Axel Dörfler
ac9ec47d27 BMenu: made left side padding font size relative.
* Also changed BMenuItem to make better use of that size.
2015-09-09 21:06:19 +02:00
Axel Dörfler
d8b517b50f Tracker: made title view height depend on font size.
* It now uses a font that's 3/4 the size of the plain font; ie. there
  shouldn't be any change with the default font size.
* Also cleaned up some weird layout code on the way.
2015-09-09 21:05:10 +02:00
Axel Dörfler
46dd7d5077 Tracker: Fixed vertical list icon position.
* Instead of drawing it at the bottom of the line, draw it in the
  middle of it.
2015-09-09 21:03:58 +02:00
Axel Dörfler
bf5480299e Tracker: Made list element spacing relative to font size.
* Instead of always adding two pixels, we now multiply the size with 1.1.
2015-09-09 21:02:15 +02:00
Axel Dörfler
f0b3691d10 Tracker: Removed extra border next to the draggable icon.
* Also removed extraneous call to BMenuBar::SetBorder(); B_BORDER_FRAME
  is the default, anyway.
2015-09-09 21:00:13 +02:00
Axel Dörfler
14cc5b4c44 BMenuBar::SetBorders() added.
* This allows you to only draw some of the borders.
2015-09-09 20:58:57 +02:00
Axel Dörfler
f74aab0a2e Appearance: Added font sizes 19, and 20 to the set.
* We might want to find a better solution for this, and also use it
  for the Terminal then.
2015-09-09 20:56:11 +02:00
Axel Dörfler
fd79684a5f BScrollView::SetBorders() added to disable borders.
* You can specify which borders will be drawn using the
  BControlLook::B_TOP_BORDER, ... constants.
* Adapted Mail to no longer need the SetInsets() hack.
2015-09-09 20:51:49 +02:00
Axel Dörfler
fb956f2561 Deskbar: scale better with the font size.
* This makes it much more usable with a larger font size.
2015-09-08 18:01:10 +02:00
Axel Dörfler
6612ea4f29 HaikuDepot: use better min/max widths for columns.
* Use a scale factor depending on the font size.
* Be more generous when it comes to the max width.
* Use StringWidth() for the default size of the size and status columns.
2015-09-08 17:59:17 +02:00
Axel Dörfler
f7c2983edc HaikuDepot: change window frame setting.
* Moved entirely into MainWindow.
* Moved duplicated code into separate methods.
* Resize the main window on larger screens by default, as we can make
  use of the extra space.
* Use BWindow::MoveOnScreen() instead of make_sure_frame_is_on_screen()
  as the former has more info. And is even smarter now as it can
  optionally resize windows to fit on screen.
* Center window on screen by default (ie. when there are no settings).
2015-09-08 17:58:02 +02:00
Axel Dörfler
bafcf01610 DiskProbe: improved layout scaling.
* Don't use a fixed size font for the header controls, but one that
  depends on the default plain font size.
* Minor cleanup.
2015-09-08 17:56:22 +02:00
Stephan Aßmus
7d8d7785c1 Text framework: Added TextEditor::Replace()
Call Replace() on TextDocument, so that there are not two edits later
on once UndoableEdit stuff is supported.
2015-09-06 23:09:36 +02:00
Stephan Aßmus
41bd20b06b Text framework: Add TextListener in TextDocumentLayout...
... and invalidate based on TextChangedEvents. I am not yet sure whether
TextChangeEvent needs separate counts for removed and changed paragraphs.
It is most likely not yet correct and may either update too many paragraph
layouts or miss updating some at the end.
2015-09-06 23:07:09 +02:00
Stephan Aßmus
4a96bcdafa Text frame work: Implement sending TextChangedEvents
TextDocument:
 * Moved implementation of Remove() and Insert() into private methods.
 * Reimplement all public Insert() methods and Remove() on top of Replace().
 * In Replace(), send a TextChangedEvent. Added TODO for sending a
   TextChangingEvent, although at this point, I am not sure if it will be
   needed at all.
2015-09-06 23:03:34 +02:00
Stephan Aßmus
f6e5131227 TextDocumentTest: Make document editable. 2015-09-06 23:02:51 +02:00
Stephan Aßmus
87136732d0 HaikuDepot: Fixed wording in a comment. 2015-09-06 21:51:24 +02:00
Stefano Ceccherini
ce27f9612e Implement ClipToPicture inside a BPicture. Not working yet.
BView::ClipToPicture doesn't work anymore, when nested inside a BPicture,
This happened when its implementation was moved server-side.
2015-09-05 21:35:54 +02:00
Michael Lotz
83dc74af93 BPicture: Fix archive constructor on 64 bit.
The int32 was cast to a ssize_t which has a different size on 64 bit,
therefore clobbering the stack.

Also remove the use of basic type references in arguments, which
probably was the reason for doing the above in the first place.
2015-09-05 18:13:34 +02:00
Michael Lotz
d64c7086d5 Various whitespace cleanup only. 2015-09-05 16:09:33 +02:00
Michael Lotz
8b9ec55606 BPicture: Fix archive constructor.
The cleanup commit df48d3f9a8 broke
constructing a BPicture from an archive due to an incomplete rename.
The passed in BMessage was used as the data buffer instead of the
extracted data field.

Fixes the application side crash of #12340. Seeing how long this was
broken without anyone noticing, the feature doesn't seem to be very
popular.
2015-09-05 16:09:32 +02:00
Michael Lotz
4176076be1 app_server: Port ServerPicture to the new PicturePlayer API.
This allows for bounds checks on strings and bitmap data to avoid
crashing due to corrupted user data. It also avoids copying the data
where possible.
2015-09-05 16:09:32 +02:00
Michael Lotz
eec73693e0 PicturePlayer: Rework to be more safe against corrupted data.
This introduces a more sane API (currently private) that allows for
safer and possibly more efficient implementations:

* It uses a struct of named and typed function pointers instead of just
  a void pointer array. This adds type safety to the callbacks so the
  compiler can figure out if things match up before subtle bugs get
  introduced.
* It provides bounds for all strings/buffers passed to the callbacks.
* It uses const references instead of implicitly copying arguments.
* It folds stroke_x/fill_x pairs into draw_x functions with a fill
  argument to reduce the amount of functions needed.
* It uses unsigned values where negative values make no sense.

The old API has been implemented on top of the new one using adapter
functions. It makes copies of all data passed to the callbacks which
effectively keeps the picture data from being modified. This matches
with the R5 behaviour.

This also reimplements the buffer parsing to be safe against corrupted
data by validating that the types actually fit in the provided sizes
and buffers (using a templated reader).

Since this class is used from the app_server with user provided data,
making it more safe is important even though it comes with a slight
overhead (replicating R5 behaviour, i.e. crashing the app_server when
corrupted data is fed, doesn't seem very appropriate here).
2015-09-05 16:09:31 +02:00
Adrien Destugues
5a87d490f5 Fix implementation of _res.
While not thread-safe, it should still be possible to use it in
non-threaded programs, or with locking on the application side.

The "thread-safe" implementation we got from NetBSD called abort(),
which is not a good solution. Restore the non-thread-safe
implementation, which should still work.

Fixes issues in openssh and mtr, and possibly other ported apps.
2015-09-05 12:17:46 +02:00
Alexander von Gluck IV
8248d96a06 AHCI: Begin simulating SCSI Inquiry with VPD data
* Needed for SCSI level access to trim maximum block sizes.
2015-09-04 19:30:34 -05:00
Rene Gollent
a1e25f862c Mail: Fix gcc4 build.
- Fix typo in forward declaration.
- Add missing include for snprintf.
- Add missing virtual destructor on QueryListener abstract class.
2015-09-04 16:57:06 -04:00
Axel Dörfler
9ed8f48498 Mail: show icons only setting works again.
* It will show the label as tool tip when the labels are hidden.
2015-09-04 17:33:51 +02:00
Axel Dörfler
6b8712663a BToolBar: made FindButton() public. 2015-09-04 17:33:46 +02:00
Axel Dörfler
50d381e862 Mail: use layout version of BMenuBar.
* Fixes layout issue: the minimal size was incorrect.
* Moved variable declaration to where it is actually used.
2015-09-04 17:33:41 +02:00
Axel Dörfler
31c65be109 Mail: fixed crash on resend.
* Seems to have been there for quite some time. Probably a good
  reason to remove that feature altogether.
2015-09-04 17:33:36 +02:00
Axel Dörfler
15c1056242 BMailSettings: removed debug message dump. 2015-09-04 17:33:32 +02:00
Axel Dörfler
62c1b01661 Mail: temporary workaround for the label placing issue.
* Does not work for all font sizes.
2015-09-04 17:33:27 +02:00
Axel Dörfler
4182c53bc4 Mail: change look of disabled text controls.
* Added HeaderTextControl that draws the text in black, and uses the
  panel background without a frame when it's disabled. Only the label
  is still drawn as disabled.
* Changed AddressTextControl to behave in the same way.
* The date view is now a HeaderTextControl, too.
* Unfortunately, the label is not vertically aligned with the contents.
2015-09-04 17:33:22 +02:00
Axel Dörfler
7bdee8beab BEmailMessage: added missing const, Date() returns time_t.
* Added missing const to some getter methods.
* Date() now tries to parse the date of the mail, and return it as
  a time_t; you can still retrieve the actual string via
  HeaderField("Date") if you have to.
* Mail now shows the time in the local time zone, and with the
  current locale.
2015-09-04 17:33:17 +02:00
Axel Dörfler
66078c7911 BMailComponent: made a few methods const. 2015-09-04 17:33:12 +02:00
Axel Dörfler
19d8cb703c BDate: added time_t constructor.
* This class is pretty much useless as it is.
2015-09-04 17:33:07 +02:00
Axel Dörfler
cc7e5aac40 Mail: fAccount text control is no longer used. 2015-09-04 17:33:03 +02:00
Axel Dörfler
8b1aaf348c Mail: properly disable prev/next buttons without Tracker.
* The prev/next buttons will only work when invoked via an actual
  mail file from Tracker.
2015-09-04 17:32:58 +02:00
Axel Dörfler
d891923650 BMenuField: use layout rect for the label.
* Instead of just laying it out as without the layout API.
2015-09-04 17:32:53 +02:00
Axel Dörfler
df946869a1 Mail: work in progress to use the layout API. 2015-09-04 17:32:48 +02:00
Axel Dörfler
e047b40a2f Interface Kit: use different spacing constants.
* While this breaks binary compatibility with earlier Haiku releases,
  use values that are less likely to clash with actual use cases.
* Specifically, using a negative spacing is one way to get rid of the
  border of BScrollViews, to put them into a window neatly.
* Also, BControlLook now uses a switch to resolve them.
2015-09-04 17:32:44 +02:00
Axel Dörfler
fa89878a70 Terminal: renamed some variables for clarity.
* Unless they really have no meaning beyond serving as an index, you
  should avoid naming your variables just i, j, k, l.
2015-09-03 21:30:43 +02:00
Axel Dörfler
52e43a20be Terminal: replaced positioning with BWindow::MoveOnScreen().
* The previous mechanism was pretty crude, and didn't work that well.
2015-09-03 21:30:40 +02:00
Axel Dörfler
ebf4cbe6e7 Incredibly smart BWindow::MoveOnScreen() method added.
* Makes sure that the window is as complete as possible on screen.
2015-09-03 21:30:37 +02:00
Axel Dörfler
b7d0120074 Terminal: Added "Save as defaults" back.
* It's still convenient to have.
* Furthermore, the distinction between when settings are stored is hard
  to grasp otherwise.
* Plus, adopting the current window size is now much more straight forward.
2015-09-03 21:30:34 +02:00
Automatic Committer
db3fda16ea Update pci.ids from pciids.sourceforge.net 2015-09-03 05:20:31 +02:00
miqlas
c3dfa1d9d0 Solarized Dark and Light color scheme for Terminal
Signed-off-by: Alexander von Gluck IV <kallisti5@unixzen.com>
2015-09-01 17:29:19 -05:00
Alexander von Gluck IV
0cd624b89c AHCI: Begin adding SCSI VPD query support. 2015-09-01 17:13:04 -05:00
Dario Casalinuovo
38e3fbe389 BMediaRoster: Remove possibly confusing debug prints
* Thanks to Axel and Rene for reviewing!
2015-09-01 15:08:57 +02:00
Dario Casalinuovo
7d337b23b7 BMediaRoster: Reintroduce the undertaker class
* This has been necessary due to the undefined call order of
of static objects. Fixes #12315.
* The bug has been caused by the linker which free unused resources,
making the BMediaRoster to run in a zombie state. In this state
anything such as a message could make the looper to crash.
* The class is reintroduced with some differences though, we are
going to protect it from another thread calling Roster() while the
BMediaRoster is quitting and implement BMediaRosterEx::Quit.
* Unregister registrar notifications before we quit our thread. Avoid
to uninitialize anything from QuitRequested as it may cause problems.
2015-09-01 15:08:57 +02:00
Adrien Destugues
278af8e281 ffmpeg: check against correct version constants.
54.23.x is ffmpeg 0.11, which still has "CodecID" (and x>0).
2015-08-30 18:00:08 +02:00
Adrien Destugues
f618c89e17 ffmpeg: detect the library version the right way.
* Fixes the build by detecting the library version using the provided
constants, instead of guessing from the compiler version.
2015-08-30 17:33:00 +02:00
Adrien Destugues
9e5c694668 ffmpeg plugin: remove more deprecated functions.
These were all deprecated between releases 0.6 and 0.10 of ffmpeg,
except for one change (renaming of CodecID to AVCodecID) which we can
work around with a typedef. The deprecated functions were still
available in 0.11, but were removed later on after several years of
deprecation.

This makes it possible to build our plugin with any ffmpeg version
between 0.10 and 2.7, so we can now experiment with updating to 2.7 at
least for the gcc4 builds.
2015-08-30 16:36:08 +02:00
Adrien Destugues
0f7e19ce7e ffmpeg plugin: add support for MOD and other "tracked music"
* ffmpeg can handle these through ModPlug
* By default, ffmpoeg will not try these formats because the way to
detect them are a bit unsafe (4 bytes at a particular offset in the file
serve as an identifier). So, hint the sniffing by giving it a filename
of ".mod" to get modplug to be used. This does not affect sniffing in
the regular way for other formats.
* Add some common tracked music formats to the muxer table.
* Fix some tracing to use current (as of ffmpeg 0.10) function names and
because some variables were renamed.
2015-08-30 16:36:06 +02:00
Michael Lotz
cccf804d96 ahci: Replace use of bit field with shifts and masks.
It's a 32 bit register which needs properly aligned 32 bit writes. Using
a bit field does not guarantee that, so replace it with shifts and
masks. Should fix #12338.
2015-08-30 11:17:47 +02:00
Michael Lotz
d316ccc7e3 ahci: Whitespace and line length cleanup only. 2015-08-30 10:50:32 +02:00
Jessica Hamilton
8f3d6d192f Revert "BPrintJob: fixed crash."
This reverts commit 1805bbf29b.
2015-08-30 14:41:16 +12:00
Jessica Hamilton
d7a9cbde91 BAlert: don't center ourselves if we've already been positioned. 2015-08-30 14:39:36 +12:00
Jessica Hamilton
21c3286b62 BAlert: make SetShortcut() work again.
In hrev49481, the call to AddCommonFilter was accidentally
removed, preventing SetShortcut() from working. The filter
has also been updated to enumerate all buttons, rather than
a maximum of the first three.
2015-08-30 14:06:58 +12:00
Jessica Hamilton
a84dc7543a BAlert: move setting default button into AddButton().
This properly fixes the crash in #12271, introduced by
hrev49481.
2015-08-30 14:06:57 +12:00
Adrien Destugues
0717601a7f ffmpeg encoder: do not use deprecatred function
Replace avcodec_encode_audio with avcodec_encode_audio2. The latter
provides us with more information on the encoded data, so we can avoid
guessing things on our own. It also handles memory allocations on its
own, which fix some cases where we would provide a too small buffer.
2015-08-29 23:14:04 +02:00
Michael Lotz
0a6d595951 Add system_time to the Jamfile, missed in hrev49598. 2015-08-29 19:33:27 +02:00
Michael Lotz
5ce7069d15 Add script that prints the uptime after waiting for all servers.
It waits for the message port of each application to become available
using waitfor and then waits for the application to actually reply
using hey. This establishes the criterion of the boot process being
complete as "all servers (and Tracker & Deskbar) are started and
respond to messages".
2015-08-29 19:15:47 +02:00
Michael Lotz
b11eb89c2d Add system_time bin command which just prints system_time().
This can be used by scripts to do verious performance measurements.
Specifically it can be used to measure the boot time since it represents
the uptime.
2015-08-29 19:15:47 +02:00
Dario Casalinuovo
48b2cb3771 BMediaRoster: Pass unhandled messages to the base class
* While it shouldn't be a big problem, the bebook states
that it's very important to do so.
2015-08-29 16:13:44 +02:00
Stefano Ceccherini
1805bbf29b BPrintJob: fixed crash.
Since hrev49481, BAlert sets its default button in Go(), and not in the
constructor. So DefaultButton() will return NULL if Go() hasn't been called
yet.
Moreover, BAlert now centers itself on screen in Go() and not in the costructor,
so move it away from screen after the Go() call.
Fixes #12271, although there should be a nicer way to implement this.
2015-08-29 15:18:59 +02:00
Stefano Ceccherini
e2eb9b7baf Removed empty line 2015-08-29 15:18:59 +02:00
Michael Lotz
c0c883cf8e BMessage: Fix precedence of KMessage vs. size check.
A KMessage request always needs to be honoured, regardless of the data
size.

KMessage does not currently protect against messages that are too large,
but this needs to be solved in KMessage when it becomes a problem.
2015-08-29 11:25:46 +02:00
Michael Lotz
bc5a7a3749 keystore_server: Fix crash on request window close.
The outside waiting mechanism is responsible for quitting the dialog so
prevent it from quitting itself.
2015-08-29 10:53:28 +02:00
Michael Lotz
515e648d7b keystore_server: Use B_CLOSE_ON_ESCAPE in request dialogs.
Instead of doing it manually.
2015-08-29 10:53:27 +02:00
Michael Lotz
b92e2c086f keystore_server: Resize request windows to preferred size.
Long application signatures and paths could previously take up too much
space, causing the buttons to be cut off or become completely invisible.

Actually fixes #11367.
2015-08-29 10:53:27 +02:00
Humdinger
e10d416e69 Improved warning alert. Spaces were missing. 2015-08-29 08:27:20 +02:00
Michael Lotz
5cf6c0fd3b launch_daemon: Create/inject ports on launch instead of upfront.
The application is now launched suspended and the ports are created
and transferred to the launched team before its main thread is
resumed.

The ports are therefore owned by the launched team instead of the
launch_daemon. This is important when sending messages by area, as
the port owner is used to determine where the data area needs to be
transferred to. This commit therefore fixes #12285.

Note that it is still possible to get at the ports with find_port()
while they are still owned by the launch_daemon. This should not be a
problem however, as these ports are not supposed to be found this way
but only through BLaunchRoster::GetData(), which is synchronized with
the above process.

Creating the ports in the launch_daemon still has the benefit of
returning valid communication ports earlier, i.e. without having to
wait for the launched application to actually become ready.
2015-08-28 22:52:50 +02:00
Michael Lotz
5b9f6b5485 BRoster: Add launchSuspended option to _LaunchApp().
It allows to launch the app, but keep its main thread suspended instead
of automatically resuming it.

Also add appThread argument which allows to retrieve the main thread of
the launched team.
2015-08-28 22:52:50 +02:00
Axel Dörfler
df5aeb6dda AHCI: fixed constant mixup, minor cleanup.
* TRANSITION_... was incorrectly changed from the original patch.
* Divided it into two constants, and also prefixed the new constants with
  the register fields they are valid for.
* Fixed incorrect usage of |= and removed the corresponding TODO comments.
* Moved some reoccurring code into their own methods.
* Added check for the ST bit in the command register for the interrupt
  hard reset, too.
* This closes ticket #12295, thanks Anarchos!
2015-08-28 19:26:14 +02:00
Sylvian Kerjean
5584c22fdd AHCI: Fix boot failures due to "Port Connect Change" IRQ storm.
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2015-08-28 19:26:14 +02:00
Dario Casalinuovo
8a28f84965 Media: Fix restart button alignment 2015-08-28 18:27:16 +02:00
Dario Casalinuovo
5d8765c0af media_server: No need to call Roster() every time 2015-08-28 18:27:16 +02:00
Dario Casalinuovo
1c3d7e0c68 MixerControl: Add more safeness for Roster() errors 2015-08-28 18:27:16 +02:00
Dario Casalinuovo
d15321ff90 BMediaRoster::Roster Use BAutolock 2015-08-28 18:27:16 +02:00
Dario Casalinuovo
be7d9d3f5d BMediaEventLooper: With B_WOULD_BLOCK we may still handle an event 2015-08-27 19:45:11 +02:00
Dario Casalinuovo
90cdf5e42e BMediaNode::WaitForMessage: protect it over negative timeouts 2015-08-27 19:45:10 +02:00
Stefano Ceccherini
d6039d2b23 Midi: Remove some duplicated code
Introduced new private read/write_midi_settings() and used them
in MidiSettingsView and SoftSynth.
2015-08-27 11:51:57 +02:00
Augustin Cavalier
281409fdc0 Revert accidental addition to Jamfile. 2015-08-26 15:54:15 -04:00
Augustin Cavalier
41f43d568f Screen: Rework AlertView to just use BAlert.
Fixes #12330.
2015-08-26 14:42:14 -04:00
Dario Casalinuovo
da18151469 Revert "MediaNode: Wait for 0 time if the absolute timeout is in the past"
This reverts commit ae9cbf9c4e.

* Thanks to Pawel Dziepak for reporting!
2015-08-26 22:54:01 +02:00
Michael Lotz
14156a33ac launch_daemon: Delegate launch data replies to Job.
Previously the LaunchDaemon would send out its own team id when a given
job was not yet launched, leading to invalid BMessengers once the port
owner changed to the actually launched team.

The launch of the target team and the launch data replies were also not
synchronized, which could lead to the launched team getting a reply
pointing to the launch_daemon when requesting data for itself. This is
the case for the BRoster init of the registrar. The fix in hrev49561
therefore didn't always work, because the registrar would sometimes get
the launch_daemon team id instead of the id of itself. It would later
try talking to the launch_daemon, which obviously never replied, leading
to #12237.

The LaunchDaemon now delegates the launch data reply to the Job instead.
The Job either replies directly, in case it has already been launched,
or queues the reply for when the launch completes. This causes launch
data requesters to block until the launch attempt is completed, but
won't block the LaunchDaemon message loop.

This commit introduces the seperate fLaunchStatus to properly handle the
ambiguity of fTeam being < 0, which is the case for both, when no launch
was attempted and when the launch failed. This new field now determines
what IsLaunched() returns and how launch data replies are handled.

The new launch status is additionally protected by the launch status
lock, which will later probably be made broader in scope to protect
against race conditions once service monitoring is implemented.
2015-08-26 22:24:00 +02:00
Michael Lotz
ee5575d9b3 BRoster: Apply no-registrar mode in a few more cases.
Avoids some more attempts at communicating with the registrar if the
no-registrar flag has been set.
2015-08-26 22:23:59 +02:00
Dario Casalinuovo
ae9cbf9c4e MediaNode: Wait for 0 time if the absolute timeout is in the past 2015-08-26 17:22:13 +02:00
Dario Casalinuovo
dfe056fd6a BMediaEventLooper: Continue code improvements. 2015-08-26 17:22:10 +02:00
Dario Casalinuovo
d9971ae7aa Media: Show alert while media services restart 2015-08-26 16:39:42 +02:00
Dario Casalinuovo
9a36e655d7 radeon_hd: Add missing id for Radeon HD 8490 2015-08-25 12:43:53 +02:00
Stefano Ceccherini
3ffaf5c263 MidiSettingsView: renamed box label
Renamed box label from "SoundFont" to "Available SoundFonts", hopefully
improves the user experience by making it clearer that this is a list
of the available soundfonts.
2015-08-24 10:23:28 +02:00
Stefano Ceccherini
2f41383c3b BBitmap: Archive the data also if "deep" is not set
Fixes #12326
2015-08-24 10:21:31 +02:00
Stefano Ceccherini
65b4405ecc BSoftSynth: Fixed auto selection of soundfont.
When no midi settings file was available, BSoftSynth should use the well known
TimGM6mb.sf2 soundfont. This wasn't working, since the code looked in the wrong
path (we have to append "synth" to the path returned by find_directory).
In case this SF is not present, now we try harder not to fail, and look for any
soundfont available in the system and user directories.
Fixes ticket #12325 although the selected soundfont is not written to the
user settings file.
2015-08-24 10:04:17 +02:00
Stefano Ceccherini
a6fb27a3f6 Improved comment. Added TODO 2015-08-24 10:03:54 +02:00
Stefano Ceccherini
7ed2a44376 Fix naming 2015-08-24 09:34:02 +02:00
Jessica Hamilton
579efee783 package server: fix off-by-one error in RemoveLastComponent() 2015-08-24 15:53:56 +12:00
Michael Lotz
f11d686c96 launch_daemon: Remove extra quoting around env variables.
The extra quotes aren't needed and cause problems when not parsed
through a shell. For example LD_PRELOAD which is handled by the
runtime_loader directly failed to work as there was no way to remove
the extra single quotes.

Note that quotes and single quotes can still be added to the variables
through respective quoting in the driver settings syntax.
2015-08-23 15:17:39 +02:00
Michael Lotz
8b9bb054f4 libroot_debug: Replace two more uses of printf in guarded heap.
Use the internal print_stdout() instead as done when printing the
stack traces.
2015-08-23 13:19:12 +02:00
Michael Lotz
5dbea46970 libroot_debug: Track freeing thread in guarded heap separatley.
Previously the thread member was overwritten with the freeing thread
when a page was freed, leading to confusion when hitting unallocated
pages due to the debugger message still stating "allocated by thread".

Track the freeing thread separately as it might be interesting to know
both, which thread initially allocated and which thread eventually freed
an allocation.
2015-08-23 13:10:12 +02:00
Michael Lotz
8074f0b94b launch_daemon: Replace the remaining putenv() calls by setenv(). 2015-08-23 12:36:12 +02:00
Michael Lotz
71cc01b2b1 registrar: Use the safer strlcpy instead of strcpy. 2015-08-23 12:35:25 +02:00
Michael Lotz
462bfeede0 registrar: Fix race condition on MimeUpdateThread termination.
When the MimeUpdateThread is done, it marks itself as finished and
notifies the thread manager to clean up finished threads. Since multiple
such threads might finish at the same time and trigger the cleanup
notification, other threads that already marked themselves finished but
haven't actually exited yet might already be deleted and removed. This
would then lead to a use-after-free when they subsequently tried to send
their own cleanup message.

To solve the race condition, the thread manager will now wait for the
thread to actually exit before cleaning it up.

The introduction of the launch_daemon has made this race condition more
likely due to more applications starting in parallel, each triggering a
CreateAppMetaMimeThread which is a subclass of MimeUpdateThread. This
commit might therefore fix #12237.
2015-08-23 12:30:35 +02:00
Michael Lotz
dfb3208fa3 registrar: Whitespace and style cleanup only.
Generally this code still looks horrible (both from a style and from a
complexity point of view) and should eventually be reworked.
2015-08-23 12:30:35 +02:00
Adrien Destugues
1deb22eb4b PowerStatus: style fixes. 2015-08-23 09:19:35 +02:00
John Scipione
25af167e8f Spinner: Tweak the spinner button colors
* Tint the button text 1.777f which yields #303030 for the text color
  which produces a nice dark grey but-not-quite-black color. In testing
  black text is too dark and B_DARKEN_4_TINT (1.555f) yields #606060
  which is too light. #303030 is a compromise between the two.
* The button text gets darkened to black on mouse down and the button
  background gets darkened to B_DARKEN_1_TINT on hover as before, but
  the frame color is no longer affected --- the button frame tinted by
  B_DARKEN_1_TINT always (yielding standard Haiku button frame color).
2015-08-22 15:15:08 -07:00
John Scipione
a0ba79fbff Split BSpinner into BAbstractSpinner and...
2 concrete classes which are currently implemented:
* BSpinner (works on int32s)
* BDecimalSpinner (works on doubles)

In addition BAbstractSpinner now inherits from BControl instead of
BView/BInvoker. This allowed for code simplification at the cost of needing to
cast for the decimal version because SetValue(int32 value) comes from BControl.

Also, add a spinner_button_style enum with 3 options:
* SPINNER_BUTTON_HORIZONTAL_ARROWS
* SPINNER_BUTTON_VERTICAL_ARROWS
* SPINNER_BUTTON_PLUS_MINUS

which sets the spinner arrows to either use horizontal arrows (left/right)
vertical arrows, (up/down), or +/- symbols (the default).

If the spinner button is using horizontal arrows you can decrement and increment
the spinner value by pushing control+left/right, otherwise you can increment and
decrement by pushing up or down. The reason for needing control is so that you
can move the cursor in the textbox otherwise.

Switch the 3 apps that are currently using BSpinners to use the integer variety
in Deskbar preferences, WebPostive preferences, and Screen preferences.
2015-08-22 15:15:08 -07:00
John Scipione
d122938346 Spinner: Generalize actions into methods
Add an Increment(), Decrement(), and SetValueFromText() method.

These can be overridden by derived classes.
2015-08-22 15:15:07 -07:00
John Scipione
a9385e8e2e Spinner: Move ValueChanged up
... along with the other hook methods
2015-08-22 15:15:06 -07:00
John Scipione
e4df9afe58 Spinner: Use plus/minus instead of arrows
Eliminate the border between the buttons
2015-08-22 15:15:06 -07:00
John Scipione
963d585e35 Spinner: Improve look and feel
This arranges the buttons to the right of the text box horizontally and also
updates the background color and arrow cool to give feed back when moused over
the button, disabled, and pressed. Used be_control_look arrows to match arrows
used elsewhere (such as scrollbars).

The background darkens on mouse over if enabled, the arrow is drawn darker when
the mouse is down, and lighter if disabled.
2015-08-22 15:15:05 -07:00
John Scipione
49a4e7f685 WebPositive: Use BSpinner to set days of history setting
Also rename fDaysInHistoryMenuControl to just fDaysInHistory
2015-08-22 15:15:04 -07:00
John Scipione
4f11457556 Deskbar: Add spinners to preferences 2015-08-22 15:15:04 -07:00
John Scipione
a3fa81bd03 Update Screen prefs to use BSpinner class 2015-08-22 15:15:03 -07:00
John Scipione
adba4ce988 Add BSpinner class based on GCI2013 work 2015-08-22 15:15:03 -07:00
Michael Lotz
f6b2da0a71 launch_daemon: Add env vars from sourced files to correct list.
The environment variables were always added to the static environment
list instead of the one supplied as argument. This worked for targets,
as there the scripts are evaluated before the static environment is
used. For services and jobs this isn't the case, causing sourced
environment variables to be missing.
2015-08-22 17:23:35 +02:00
Adrien Destugues
4b26da642b PowerStatus: show when the battery is charging. 2015-08-22 15:11:39 +02:00
Rene Gollent
2d9d01e2e8 Debugger: Refactor non-interactive report handling.
- Add dedicated ReportDebugger application class for the case where we're
  asked to do nothing more than save a report. Also add a corresponding
  UserInterface subclass whose sole purpose is to take those necessary
  actions and then exit.
- When the debugger is invoked via the --save-report option, we now start
  via the aforementioned report/interface rather than piggybacking on the
  CLI.
- Clean up CommandLineUserInterface/CliContext to remove handling for the
  report saving option.

Should hopefully resolve #12155.
2015-08-22 00:21:07 -04:00
Michael Lotz
3667f6efdb BApplication: Avoid create_app_meta_mime() for the registrar.
BApplication::_InitData() already avoided the use of BRoster from the
registrar (and launch_daemon) where it isn't available. Since
create_app_meta_mime() indirectly just sends a message to the registrar
using BRoster, it too cannot work when the registrar isn't available.
2015-08-21 23:23:26 +02:00
Michael Lotz
811f0164a0 BRoster: Make sure we aren't the registrar when initializing.
This fixes a regression introduced in 9bfc833, where the old way of
getting the roster port was replaced with its launch_daemon counterpart.

The previous method of finding the roster did always fail when running
from the registrar, as at the time of initialization (initialize_before
of libbe) the registrar looper doesn't exist yet. This commit restores
the previous behaviour by checking if the returned registrar team is the
current team and avoiding initialization in that case.

The regression caused a 5 second boot delay when later BApplication
initialization of the registrar tried to communicate with itself with a
reply timeout of that length.

Fixes #12258 at least partially and might affect #12237.
2015-08-21 23:03:37 +02:00
Michael Lotz
c4a9344a11 libroot_debug: Support alignments > B_PAGE_SIZE in guarded heap.
These are always allocated using an area. The allocation size is
increased as to guarantee the availability of a suitable address. The
pages between the allocation info and the actual, aligned start address
and the pages past the allocation end are then protected.

This commit also fixes corruption of the allocation info for large
allocations that used areas. The alignment wasn't taken into account
when calculating the amount of space needed. The alignment could then
lead to rounding down the allocation start such that it would overlap
with the allocation info.
2015-08-20 21:59:41 +02:00
Michael Lotz
5d4501aa01 Assorted whitespace cleanup and typo fixes. 2015-08-20 21:54:41 +02:00
Michael Lotz
44b69ccbdb bfs: Use negative caching on directory lookup failures. 2015-08-20 21:25:56 +02:00
Michael Lotz
efb0a3a853 EntryCache: Add entry_cache_add_missing() for negative caching.
It provides a way for filesystems to cache a lookup failure and
therefore prevents repeated lookups of missing entries. This is a
common scenario for example in command lookup and compiling, where
each directory in PATH or each include directory is searched for the
given entry.
2015-08-20 21:25:56 +02:00
Michael Lotz
883b3e1d5c DebugAnalyzer: Fix 64 bit build. 2015-08-20 21:25:55 +02:00
Stephan Aßmus
36ab52c74e HaikuDepot: Adapt package contents when package status changes
Based on a patch in ticket #11886 by TwoFx, but with checks for
packageRef.Get() != NULL and better member name for the package status.
2015-08-20 16:25:07 +02:00
Axel Dörfler
b20d210d5a Mail: minor cleanup. 2015-08-17 21:12:42 +02:00
Axel Dörfler
f8300bd979 Tracker: Added a "Skip all" functionality.
* Also, the copy prompt gets a missing "Replace" button (instead of
  only offering "Replace all").
2015-08-17 21:11:51 +02:00
Axel Dörfler
0104e6facb Tracker: Use BEntry::Name(), minor cleanup.
* Use BEntry::Name() over GetName() where appropriate.
* Fixed some weird indentation.
* Simplified some constructs.
2015-08-17 21:09:46 +02:00
Axel Dörfler
103adddb37 BTextView: do not restrict max size in GetHeightForWidth(). 2015-08-17 21:08:16 +02:00
Rene Gollent
9d9c74ecdb Debugger: Cleanups and improvements for status notification.
Worker/Job:
- Add job listener hooks for when work actually begins for a job,
  and when a job is suspended to wait for user input.
- Add hook for setting a job description string, and implement in several
  subclasses.

LoadImageDebugInfoJob:
- Get rid of ImageDebugInfoJobListener since its functionality can be
  handled via the more general job wait for user input hook. Refactor
  accordingly.

TeamDebugger:
- Adjust to use new job hooks. When a worker job is initiated, we now
  check if the job has a description, and if so pass it on to the UI
  to display a notification.

DwarfLoadingStateHandler:
- Notify the UI when a package download is in progress.

With these changes, the status bar now notifies the user if any of the
following actions are in flight:

1) Loading/parsing debug information
2) Stack trace retrieval
3) Source code retrieval
4) Downloading a debug info package
2015-08-15 16:47:26 -04:00
Alexander von Gluck IV
5d91a421b9 glibc/arm: More generic math functions 2015-08-15 00:00:26 -05:00
Alexander von Gluck IV
76cc2d8f45 glibc/arm: Filling in more ARM gaps 2015-08-14 21:06:40 -05:00
Rene Gollent
36a43c9d51 Debugger: Implement notifications for debug info loading.
TeamDebugger:
- When notified that an image debug info job has started loading,
  notify the user interface accordingly. Also reset status to a ready
  state whenever all in-flight jobs are complete. This allows the
  user to know when then debug subsystem is still in the process
  of parsing debug information, as this can be time consuming for
  larger programs/libraries.
2015-08-14 20:53:06 -04:00
Rene Gollent
674e0424f7 Debugger: Extend ImageDebugInfoJobListener.
ImageDebugInfoJobListener:
- Add hook for notification that the loading job is in progress. Call
  as appropriate when the job actually starts.
2015-08-14 20:53:05 -04:00
Rene Gollent
7f77789d5b Debugger: Add work notification hook to UserInterface.
UserInterface:
- Add new hook function used to notify the UI that some form of
  background work is taking place for informational purposes,
  i.e. no interaction required. Implement accordingly in
  GraphicalUserInterface.
2015-08-14 20:53:03 -04:00
Rene Gollent
0324fc408c Debugger: Add status bar to main team window.
TeamWindow:
- Add a status bar in the form of a string view to the bottom of the
  window, along with a helper function to request updating it.
2015-08-14 20:53:02 -04:00
Rene Gollent
667361d71f Debugger: Add worker helper function.
Worker:
- Add helper to check if the background worker thread has any unfinished
  jobs in its queue.
2015-08-14 20:49:23 -04:00
Alexander von Gluck IV
17ddd6c09d libroot/arm: Add in some missing math functions
* Using native assembly functions would be a lot faster,
  but would require quite a bit of changes to glibc.
* This gets arm linking for now... I'd personally like
  to see musl in here in the future for gcc4 images. (pre-R2)
2015-08-14 13:46:05 -05:00
Alexander von Gluck IV
ab341b9d63 kernel/arm: Correct platform id on ARM 2015-08-14 12:50:05 -05:00
Michael Lotz
dfcf52c9f1 leak_analyser: Update excludes with more generic regex for ICU.
Also add initialize_before of libroot to the default excludes.
2015-08-13 22:34:51 +02:00
Michael Lotz
1748116d1c libroot_debug.so: Fix missing alignment in guarded realloc. 2015-08-13 22:33:55 +02:00
Michael Lotz
8fa441bf5c libroot_debug: Revert to a legacy default alignment of 8.
This reverts the legacy default alignment (in absence of max_align_t)
to 8, as it was before.
2015-08-13 22:12:19 +02:00
Michael Lotz
f474606ee9 libroot_debug: Merge guarded heap into libroot_debug.
The individual debug heap implementations are now exposed via a
structure of function pointers and a common frontend dispatches the
malloc and malloc_debug APIs through them.

The MALLOC_DEBUG environment variable can be used to select the guarded
heap by adding 'g', otherwise the debug heap is used as the default.
Consequently the separate libroot_guarded is not needed anymore and has
been removed.

To allow the use of environment variables this early, init_env_post_heap
has been added and the heap dependent atfork() moved there. This allowed
to fold the code of init_heap_post_env into init_heap so the former has
been removed.
2015-08-13 22:12:18 +02:00
Jérôme Duval
827cdc0134 ftp: declares header dependencies on libedit. 2015-08-13 18:58:35 +02:00
Adrien Destugues
0a02f8c287 LaunchDaemon: use setenv to set HOME env variable.
* The API is saner: no need to build a string with var=value
* It is safer: putenv requires the string passed to it to stay
allocated, although most implementations (Haiku, Linux, BSD, OSX) do not
follow POSIX on this,
* Fix a problem reported in #12298 comments because the variable was set
with extra quotes (putenv does not escape them), leading to Qupzilla not
finding the home dir.
2015-08-12 18:08:32 +02:00
Stefano Ceccherini
ff8c8dfc17 Improve patch in ticket #9377
Instead of locking the interface lock, set it busy and then unlock the
interface list lock.
2015-08-12 15:22:42 +02:00
Stefano Ceccherini
a48ef9e817 AppServer: check for NULL bitmap.
Consistently check for NULL the ServerBitmap pointer.
There seems to be cases where BView::DragMessage could pass an invalid
Bitmap token to app_server.
Maybe it's when a client only bitmap is passed, I don't know.
Anyway, this is defensive programming, and at least we check for NULL
consistently now.
This fixes #11681.
Note that SuperFreeCell still crashes, but at least app_server doesn't crash.
2015-08-12 00:40:06 +02:00
Stefano Ceccherini
f2de125b8c Removed code path for be_control_look == NULL.
Adjusted TODO comment.
2015-08-11 23:24:46 +02:00
Humdinger
26cc9e9e07 Small cosmetics for the preference panel
* Prevent the scrollview from jumping vertically when selecting a service
* Glue the services view to the top
2015-08-11 19:05:04 +02:00
Rene Gollent
422b0ec754 libroot: Fix issue reported in ticket #12291.
fts.c:
- Our fts functions were imported from FreeBSD and consequently did not
  use the same weak alias methodology that most of our glibc-derived
  POSIX functions do. These subsequently wound up clashing with the
  implementation of said functions in current versions of coreutils,
  resulting in assertion failures when e.g. running a program through
  stdbuf, since the BSD-derived functions had different flag constraints
  than their GNU peers. Consequently, this change adjusts the fts_*
  family of functions to similarly be exported as weak symbols so they
  can be preempted.
2015-08-10 17:01:35 -04:00
Michael Lotz
7cef8ca2fe Tracker: Fix regression introduced in hrev49011.
If the view fails to lock because it is actually gone, we obviously
can't use it to return the container, so delete it directly in that
case.

Fixes #12072 and probably #11982 which would then be a duplicate.
2015-08-10 21:48:26 +02:00
Adrien Destugues
23efd95ed7 French keymap: add some missing symbols.
Most of the changes inspired from the "fr-latin9" map from Linux, but I
went with a different mapping because we also want some symbols later
introduced in Unicode, and also because we already had a different (and
I think better) mapping for some of the extra symbols in latin-9.

The keymap now features:
* Uppercase accented vowels, cedilla, spanish n with tilde
* Mathematical symbols for multiplication/division
* Spanish reverse exclamation and interrogation points, and interrobang
* Various other symbols from the latin-9 character set
2015-08-09 12:05:57 +02:00
Dario Casalinuovo
d796a63b4f MediaKit: Other style fixes
* Thanks to Marcus for reviewing, this is what happen when
  you mess out with the TODO list.
2015-08-08 20:26:28 +02:00
Augustin Cavalier
7d407a1e99 BLooper: Fix inverted check that was causing a port leak.
Fixes #12286. Thanks to ttcoder & jackburton for investigating!
2015-08-08 11:38:16 -04:00
Dario Casalinuovo
6ca16f31cb MediaKit: Style fixes 2015-08-08 15:25:52 +02:00
Augustin Cavalier
f79c173b42 HaikuDepot: Fix 64-bit build. 2015-08-07 21:53:46 -04:00
Andrew Lindesay
b8d10c6dc6 HaikuDepot: Enhancements to the User-Agent header to include the version.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #12262.
2015-08-07 21:17:14 -04:00
Rene Gollent
08c57f1d3b Debugger: Fix #12291.
UiUtils:
- Fix incorrect check to see if we had hit the bounds of the current memory
  block that would cause us to overflow the block's data buffer if incorrect
  length values were passed in.
2015-08-06 17:51:15 -04:00
Automatic Committer
33c0e857dc Update usb.ids from www.linux-usb.org 2015-08-06 05:20:31 +02:00
Automatic Committer
e2bb78c206 Update pci.ids from pciids.sourceforge.net 2015-08-06 05:20:30 +02:00
Augustin Cavalier
3e50787c0e BCommandPipe: Fix memory leak.
CID 600866. Both the header and the source of the argv getter
clearly indicate that the caller must free the memory.
2015-08-04 10:59:05 -04:00
Augustin Cavalier
fb4ea396e3 BMenu: Check return value of LockLooper().
CIDs 602450-602452.
2015-08-04 10:59:00 -04:00
Dario Casalinuovo
b0ed323924 BMediaEventLooper::ControlLoop: Review style/logic, no functional change
* The code is just reversed to be better organized.
* Since the first event will be handled after a port write, at thread
  spawn we just wait with infinite timeout for new messages.
* Remove goto which then become a continue.
* This permitted to remove the double waitUntil assignment which
  was in different braces.
* lateness var become tempLateness, so it become more obvious than
  before that it's a cached value and we are doing this to avoid
  double calculus.
2015-08-04 12:05:09 +02:00
Augustin Cavalier
2ffa9f8e54 Revert "Revert "BTwoDimensionalLayout: Removed duplicated code.""
This reverts commit c2e9a9227e. I
misunderstood what Diver meant -- apparently whe he said "revert",
he meant the whole changeset, not this specific commit. So the culprit
is probably BTextView then.
2015-08-03 13:07:06 -04:00
Augustin Cavalier
bd35a040a5 rman: Delete from tree. Unused, and recipe exists. 2015-08-03 11:47:25 -04:00
Augustin Cavalier
e9c7257afb BAlert: Use half-item spacing for layouts. Restores the old "compact" look.
Fixes #12273.
2015-08-03 11:39:32 -04:00
Augustin Cavalier
a4db376caa Tracker: Fix crash when the VirtualDirectoryWindow can't create the PoseView.
Fixes #11859. We may want to show an error message rather than failing
silently, but at least that is better than crashing.
2015-08-03 11:32:15 -04:00
Augustin Cavalier
c2e9a9227e Revert "BTwoDimensionalLayout: Removed duplicated code."
This reverts commit fd3e3e7bfb.
Apparently this code wasn't duplicated, as it caused all sorts of
problems in applications (e.g. Debugger was blank).

Fixes #12269.
2015-08-03 10:56:40 -04:00
Augustin Cavalier
eae0eccd2e services_daemon: Delete from tree.
Superseded by launch_daemon.
2015-08-03 10:21:52 -04:00
Ingo Weinhold
52100b0c0e Terminal: Support paths starting with '~' in hyperlink mode
Implements #12282.
2015-08-03 13:15:59 +02:00
Dario Casalinuovo
7771139cdf BMediaEventLooper: Rewrite ControlLoop()
* The first problem was the O(n^2) complexity of the algorithm, it's
  now linear and try to act in a circular way by dispatching
  events and reading the port in a balanced way. This exclude
  a certain degree of possible deadlocks.
* Add detection and escape when the system try to kill the
  thread. This solve some blocking issues on exit et similia
  that i had with libjackcompat.
* The algorithm choose soon which event to focus on.
* Lateness is calculated just before the event is dispatched
  as it is the more appropriate place, otherwise we would be
  calculating something imprecise/guessed.
* Remove timed_event_queue::queued_time. It's more precise to
  just use the RealTime() before to Dispatch the event.
* It should solve the BSoundPlayer lateness problems.
* With those improvements the media_kit is not going to lock
  completely under stress conditions, instead it try to work
  in a best effort shape.
* There's still room for improvements, for example i'm considering some
  strategies in lateness situations such as update scheduling latency,
  try to decrease waiting time and detect when we are too early on
  the other hand to recover when the load go down.
* Thanks to Julian Harnath for sharing his WIP patch which helped
  with some controls such as avoiding negative lateness.
* Comments are welcome!
2015-08-03 01:35:09 +02:00