Commit Graph

46816 Commits

Author SHA1 Message Date
Axel Dörfler
de4b1dede1 BMailProtocol: Removed delete/append methods.
* The mail system is file based which makes these methods pretty much
  superfluous.
2016-01-26 16:01:03 +01:00
Adrien Destugues
f9fe8e12c3 Style fixes as suggested by Axel. 2016-01-24 17:04:06 +01:00
Adrien Destugues
be1537b41a BBox: tolerate non-layouted child in layouted mode
While mixing layouted and non-layouted views is not supported, we are
doing it in some cases, including translator preferences (which uses
layout, but the views may come from a translator add-on which doesn't).

So, try to handle that case and at least avoid crashes by calling
MinSize/MaxSize and other unsupported layout code on views which won't
handle it.

Fixes #12610.
2016-01-24 13:42:11 +01:00
looncraz
37f9a29216 Improve Default BButton Appearance
Change control border color to 172, 172, 172 and use for default button
indicator drawing.

People doing an in-place upgrade will need to modify the border color from
its previous default manually or by pressing "Default" in the Appearance
preflet.  This is a one-time annoyance.

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

Fixes: #12589
2016-01-24 11:22:52 +01:00
Adrien Destugues
efc430eaf3 Remove unused code. 2016-01-24 11:22:52 +01:00
Rudolf Cornelissen
0fa7d5c4df VIA gfx driver: overlay engine on K8M800 responds now, wip. 2016-01-23 23:46:22 +01:00
Hannah
8376bc1bc1 screeninfo:also print all supported bitmap overlay colorspaces 2016-01-23 22:33:01 +01:00
Dario Casalinuovo
9b8f9f7a2e Revert "SystemTimeSource: Exit loop when the port is closed"
This reverts commit c21a2c7fed.
2016-01-21 16:21:44 +01:00
Automatic Committer
3565a24b44 Update pci.ids from pciids.sourceforge.net 2016-01-21 05:20:24 +01:00
Augustin Cavalier
83082f2e9c mail_utils/mail: Reformat & fix a few error handling problems. 2016-01-20 13:28:46 -05:00
Augustin Cavalier
2037db1489 bin/mail: move to 'mail_utils' subdir. 2016-01-20 13:28:46 -05:00
Dario Casalinuovo
c21a2c7fed SystemTimeSource: Exit loop when the port is closed 2016-01-20 01:14:42 +01:00
Dario Casalinuovo
08a65695bb AudioMixer: Replace debug_printf with TRACE 2016-01-19 22:43:25 +01:00
Dario Casalinuovo
1fe3cb8742 AudioMixer: Notify the producer basing on latency variation
* Since the producer may take an undefined amount of buffers to
process the latency increase, possibly depending on it's queue,
the consumer will notify only the difference between the old latency
and the new. While not solving completely, this improves the situation
under virtual box (and slow systems) making the sound more stable.
2016-01-19 22:43:25 +01:00
Fredrik Holmqvist
b64e8511cd Update ACPICA to 20160108, removed common.
Changelog: https://acpica.org/sites/acpica/files/changes_29.txt

 * This is based on the upgrade waddlesplash aborted due to a bug
in ACPICA which has since been fixed.
 * Some ACPICA code is excluded until needed. (You may want to
   compare our acpica dir to ACPICA if you are missing functions.)
2016-01-17 21:55:44 +01:00
Kostadin Damyanov
bb0ca427df unittests: link libcppunit.so to the unittests directory
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #12595.
2016-01-17 09:29:37 +01:00
looncraz
9909ce416d BSlider - Don't Use Control Mark Color
This returns BSlider to its original appearance.

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

Fixes #12578.
2016-01-17 09:27:34 +01:00
Alexander von Gluck IV
b8dd04e428 ahci: Handle FBS on soft reset (unused still)
* Report FBS cap for #9098
* Should be 0-impact for now
2016-01-16 23:22:54 -06:00
Adrien Destugues
69f2466090 IMAP: Fix exception message. 2016-01-16 18:56:40 +01:00
Jessica Hamilton
b8878f83ca Build: adjust Jamfiles in unittests for libshared.a change. 2016-01-16 15:44:26 +13:00
Rene Gollent
8028ede7db Build: Add architecture rule for libshared.a.
- As suggested by Ingo, add libshared.a to the architecture name map.
  This allows it to be linked by its short name like other frequently
  used libraries.
- Adjust all Jamfiles referencing the lib accordingly.
2016-01-15 21:12:24 -05:00
Rene Gollent
7a3892f439 BWindow: Fix keyboard handling bug.
- In the case of certain messages that are dispatched from the
  app_server with multiple target tokens (i.e. due to an attached
  view that has a mouse or keyboard event mask set), we need to
  strip the focus flag from the message before passing it to the
  non-focus views. Fixes a bug observed via Clipdinger where the
  aforementioned circumstance would result in all keyboard shortcuts
  being invoked multiple times.
2016-01-15 20:31:26 -05:00
Rene Gollent
2eb5cc49ab libmail: Fix build on secondary architecture. 2016-01-14 16:38:51 -05:00
Viktor Müntzing
e280cbdb93 virtio_net: Obvious mistake in comparison for NULL
Signed-off-by: PulkoMandy <pulkomandy@pulkomandy.tk>
2016-01-14 21:17:53 +01:00
Viktor Müntzing
39002b213b radeon CP_setup: Fixed probable copy/paste mistake
- No hardware so can't verify myself.
2016-01-14 21:17:22 +01:00
Viktor Müntzing
cc9a637eb0 acpi NamespaceDump: "unsigned <= 0" comparison, better check of byte length 2016-01-14 21:16:46 +01:00
Viktor Müntzing
81b134d33c intel_extreme: Incorrect paranthesis in overlay 2016-01-14 21:16:19 +01:00
Axel Dörfler
aeaf68cf4b IMAP: Extra local messages are now deleted.
* When a message on the server is deleted, it will now be deleted
  locally, too.
2016-01-14 21:03:46 +01:00
Axel Dörfler
618cc43b64 IMAP: New folders will now adopt default mail attributes.
* Added a function CopyMailFolderAttributes() that copies the attribute
  layout from the text/x-email default query folder.
* This using the new CopyAttributes() method in libshared that is pretty
  much a copy of a similar method from copyattr. However, I did not
  replace the latter, as that one allows for more fine grained error
  reporting (and attribute filtering).
* Closes ticket #3498.
2016-01-14 21:00:38 +01:00
Axel Dörfler
4681e405ef MatchHeader: Fixed crash with action, use tooltips.
* When an action was already set, a menu item was being selected before
  the menu had been created -- must have happened on some refactoring.
* Use tooltips rather than fill the header/value text controls with some
  help texts.
2016-01-14 20:53:51 +01:00
Axel Dörfler
ecd3b5d5f1 E-mail: Fixed view deletion order.
* The FiltersConfigView now ensures that its current filter is deleted
  before itself, as the filter's add-in would already be unloaded at
  that point.
* This fixes crashing when leaving the filter config view.
2016-01-14 20:51:43 +01:00
Axel Dörfler
94834e20a8 E-mail: Use BPathFinder to collect add-ons. 2016-01-14 20:50:18 +01:00
Axel Dörfler
7e267cd3b5 StyledEdit: Make default window size depend on font size. 2016-01-14 20:44:43 +01:00
Automatic Committer
85ff70f435 Update pci.ids from pciids.sourceforge.net 2016-01-14 05:20:26 +01:00
Julian Harnath
0ccd1db15c app_server: fix lines which are pixel dots, in layers
* Painter::StrokeLine() has an optimization for lines which are
  single pixel dots, i.e. identical start and end point and pen
  size 1: it sets the pixel directly in the buffer, completely
  bypassing the AGG base renderer.

  This is a problem when inside a layer since this also bypasses
  the low-level offset in the base renderer (which moves drawing
  coordinates into the layer bitmap), causing an out-of-bounds
  access.

* Fixes #12587
2016-01-13 23:56:48 +01:00
Augustin Cavalier
cf78be3fd1 TouchpadPrefView: Remove debugging message from destructor. 2016-01-13 16:02:59 -05:00
Augustin Cavalier
56af4c7c2b BShelf: Use strcmp(). 2016-01-13 10:14:03 -05:00
Rudolf Cornelissen
14de50bad7 VIA gfx driver:K8M800 now works (fixed PLL), fixed info in GetDeviceInfo 2016-01-13 01:01:32 +01:00
looncraz
faf00c7fa8 ControlLook - Desktop Labels
Enforce use of proper colors in DrawLabel() when on the desktop.

This repairs an issue where the text looks wrong in ActivityMonitor when it is a
desktop replicant and likely other unreported issues.

Fixes #12576.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-01-13 09:25:01 +13:00
looncraz
a99deff476 Tracker Desktop Icons Using Wrong Text Color
Was using the panel color without checking if we were the desktop view.
This corrects the reported issue where icon label outlines would look
incorrect.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-01-13 09:25:00 +13:00
Augustin Cavalier
d3fc049b78 BShelf: Use BString for comparing strings.
Recommended by Jessica on the Commits ML.
2016-01-12 14:58:26 -05:00
Augustin Cavalier
e2dfcf7094 BShelf: Fix crash in the case that view is NULL.
Also correct some formatting.
Fixes #12584.
2016-01-12 14:30:13 -05:00
Augustin Cavalier
03b1819c04 Tracker: Get rid of the "Restart Deskbar" menu item.
Now that launch_daemon automatically restarts Tracker and Deskbar
when they crash, this is not needed anymore.
2016-01-12 12:19:31 -05:00
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
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