Commit Graph

57227 Commits

Author SHA1 Message Date
Humdinger
edbb68258b Adding notification icons
I added 5 notification icons. They are flat icons that appear a bit bland at
larger sizes, but are nice when smaller like in the Deskbar or in lists.

Here's a PNG of them: https://lut.im/EtRvHPsMNC/T5wXFapUOkej68B9.png

Notify_Notice	- your normal info
Notify_Achtung	- slightly more interesting than a notice
Notify_Caution	- 1st level of escalation, "Odd..."
Notify_Warning	- 2nd level of escalation, "Something's not right at all..."
Notify_Danger	- 3rd level of escalation, "I smell smoke..."
2017-01-16 09:40:29 +01:00
Jessica Hamilton
9f4c8d3b74 desklink: set the status of fMuted in _ConnectMixer().
* This fixes the volume icon not showing as muted, despite
  media preflet saying otherwise.
2017-01-16 18:54:02 +00:00
Axel Dörfler
83b4b8937b bfs: Attribute creation now honors O_EXCL.
* This fixes ticket #8532.
2017-01-16 00:45:17 +01:00
Axel Dörfler
a2703be2fc bfs: Update old modified time if index is missing.
* This is required to avoid spurious last modified time change
  notifications on file systems without index.
* This closes ticket #9834.
2017-01-16 00:44:53 +01:00
Axel Dörfler
add77fd637 bfs: The disk clean/dirty flags were written with host endian.
* Not crucial, though, as this field is not actually used for anything.
2017-01-16 00:44:10 +01:00
Jessica Hamilton
79b9bd9f37 desklink: use media_server notifications instead of polling.
* This removes Pulse(), which would constantly reconnect to
  the mixer. With the previous changes to the
  DefaultMediaTheme, this also makes changes to the muted
  state instaneous when modified by some other app.
2017-01-16 12:28:49 +13:00
Jessica Hamilton
9c7d2b4668 DefaultMediaTheme: improve watching for parameter value changes.
* Addresses TODO of sub-classing controls, registering with the
  media roster for parameter changes.
* Also adds support for discrete parameter controls, which didn't
  have this functionality.
* With this change, the controls no longer need to be focused or
  modified for the parameter changes to register.
2017-01-16 12:28:49 +13:00
Jessica Hamilton
939b40d65c Media preflet: fix runtime warning about incorrect flag usage. 2017-01-16 12:28:48 +13:00
Dario Casalinuovo
fdfd8a502e General MediaClient cleanup
* Avoid setting fRunning in different places.
* Fix SimpleMediaOutput kind mismatch.
* Other minor fixes.
2017-01-15 19:28:14 +01:00
Dario Casalinuovo
550e05af20 MediaClient: Start/Stop force argument doesn't make sense 2017-01-15 19:28:14 +01:00
Dario Casalinuovo
728c730c45 MediaClientNode: Fix little night's mixup 2017-01-15 19:28:14 +01:00
Adrien Destugues
d63ed5844d People: revert window spacing changes
Revert changes from d0ac609964

The People window include a dark grey stripe, which must be next to the
window border with no spacing. The spacing was properly done inside the
main view.

Thanks to Diver for noticing the issue.
2017-01-15 14:59:54 +01:00
Dario Casalinuovo
2c9fa0f278 MediaClientNode: Schedule outgoing connections on start
* Add preliminary binding support.
2017-01-15 14:45:24 +01:00
Adrien Destugues
86e8c37605 usb_modeswitch: apply changes suggested by korli
Didn't notice them in the ticket comments.
2017-01-15 12:53:48 +01:00
Adrien Destugues
7118f1582e ScreenSaver: redraw background of "active corner" screen in more cases.
Fixes #10027
2017-01-15 12:48:09 +01:00
Murai Takashi
a1fdbe5bb2 usb_modeswitch.cpp: fix use after free.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13185
2017-01-15 12:33:10 +01:00
Sean Healy
baf9ae1d47 Input_server: fix archiving of input method replicants
- Make sure the archive contains the replicant pop-up menu
- Make sure said menu is properly re-targetted when instanciating

Fixes #13138

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-01-15 12:31:13 +01:00
Brian Hill
856ecc7b19 Repository preferences: style fixes and use BUrl
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13194
2017-01-15 12:11:05 +01:00
Adrien Destugues
fd7a786b06 qt5: update to 5.6, a package which can be installed. 2017-01-14 17:10:19 +01:00
John Scipione
26d4164481 AbstractSpinner: Make TextView resizable
Fixes #13168
2017-01-12 14:16:43 -08:00
John Scipione
5973288e11 BSpinner: Fix copy-pasta bug, min=>min, max=>max
fMinValue was getting set to INT32_MAX then set to INT32_MIN
fMaxValue was not getting set

now set fMinValue to INT32_MIN, fMaxValue to INT32_MAX

also in _InitObject()
2017-01-12 14:16:42 -08:00
John Scipione
3705d40cd9 BSpinner: Set min value then max value
... reverse this to avoid confusion, you'll see why in next commit.

No functional change intended in this commit, functional change is in the
next commit.
2017-01-12 14:15:44 -08:00
Adrien Destugues
bdd02e0d9d BString: rename SetCharAt to SetByteAt
Makes it clear that it operates on bytes, not unicode codepoints.
Thanks to mmlr for remembering me of this subtlety.
2017-01-12 22:03:51 +01:00
Jérôme Duval
0c5219a1d6 Restore missing symbol _ZN7BStringixEi on x86 and x86_64.
* Vision and others were broken after 3eac8208df.
* this adds BStringRef in the backward compatibility section.
* fixes #13199.
2017-01-12 21:23:50 +01:00
Jessica Hamilton
e3c6ca6589 gpt: add pointer to the GPT header for child partitions.
* This fixes odd behaviour in devices.cpp for the UEFI loader,
  which I had forgotten to commit at that time.
2017-01-13 00:53:12 +00:00
Automatic Committer
bcf11b8a24 Update pci.ids from pciids.sourceforge.net 2017-01-12 05:20:15 +01:00
Adrien Destugues
7556ae845b Fix unit tests for BString API change. 2017-01-11 21:54:31 +01:00
Adrien Destugues
3eac8208df Remove BStringRef and users.
As discussed in 2008
(http://www.freelists.org/post/haiku-development/BString-on-GCC4,1),
this class was not efficient because of lack of inlining. Implement the
suggested solution of a SetCharAt method instead. Also add a CompareAt
which covers a specific use case in KeyboardLayout.cpp.

Adjust all places which were using this feature to safer APIs.

Also fixes a copypaste error in FormattingConventions.cpp.
2017-01-11 20:50:41 +01:00
Jessica Hamilton
92b9c8649b MultibyteToWchar: correctly handle UTF-16 surrogate pairs.
* Whilst in WcharToMultibyte, we correctly convert our UTF-32
  wchar characters to multibyte, the same wasn't done in
  MultibyteToWchar. Now, if we detect a leading surrogate,
  we'll re-read the multibyte sequence with space for a UTF-16
  pair, which allows U16_GET to correctly convert the UTF-16
  byte sequence into the needed UTF-32 codepoint.

Fixes #13184.
2017-01-12 06:39:55 +13:00
Jessica Hamilton
d2423e4b3c ICUCtypeData.cpp: format string fixes for tracing. 2017-01-12 03:33:11 +13:00
Jessica Hamilton
079ab7f0b1 ICU add-on: validate mbState->converter before attempting to close.
This resolves crashes in gawk with multibyte support.

Fixes #12515, #13103.
2017-01-12 03:33:04 +13:00
Kacper Kasper
4d83a710f5 makefile-engine: Fix catkey generation.
Fixes #13146.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2017-01-10 17:21:39 -05:00
Murai Takashi
7cfdd9242c h2generic.cpp: fix use after free.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2017-01-10 17:17:41 -05:00
Dario Casalinuovo
e6004b7729 MediaClient: Move WIP min/max functions into BMediaConnection 2017-01-10 22:54:53 +01:00
Dario Casalinuovo
e7aa210bca MediaClient: IsRunning() status is set at handle time 2017-01-10 22:44:16 +01:00
Dario Casalinuovo
3dbb4ff62d Fix SoundRecorder build 2017-01-10 22:36:20 +01:00
Dario Casalinuovo
3ef4b20086 Make BMediaRecorder public
* Fills a functionality lack of the classic media_kit.
2017-01-10 21:34:20 +01:00
Humdinger
a325242d7f Fix CodyCam layout
Fixes #13174.

* Add the layout to a BView and add that to the BBox.
* Make the window correctly resize (horizontally only).
2017-01-10 16:22:13 +01:00
Humdinger
5e1e245be8 Updated NetPulse package 2017-01-10 10:52:00 +01:00
Axel Dörfler
44c76b26e8 bfs: Made updating the boot block more secure.
* It now also checks the length/offset indepdently from each other,
  so that they cannot benefit from integer overflow.
* This fixes bug #12943.
2017-01-10 09:07:21 +01:00
John Scipione
d5b6133b93 App Server: style fixes
80 char limit
spaces => tabs
fix spelling/grammar problems in comment
2017-01-09 23:11:34 -08:00
John Scipione
b1967b1012 Revert "Deskbar: Scale cut-off leaf icon in horizontal mode"
This reverts commit 066137eb05.

Reverting while I figure out what is causing Deskbar to crash.
2017-01-09 02:32:56 -08:00
John Scipione
2154128845 Revert "Deskbar: Avoid leaking leaf bitmap's memory"
This reverts commit 223ea4329f.
2017-01-09 02:31:38 -08:00
John Scipione
da6286856f Revert "Deskbar: Inital FetchIcon() in AttachedToWindow()"
This reverts commit 52e243a7d1.
2017-01-09 02:31:32 -08:00
John Scipione
cce67d76ad Revert "Deskbar: Call parent AttachedToWindow() first"
This reverts commit bea76b8aa1.
2017-01-09 02:31:23 -08:00
Adrien Destugues
f36df2f6fc Update sdl_image and dfu_util to fix dependencies. 2017-01-08 23:25:38 +01:00
Tsimblist
5f8edc9c51 Fix for ticket #12978 - Tracker GetInfo window layout problem
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2017-01-08 23:20:57 +01:00
John Scipione
bea76b8aa1 Deskbar: Call parent AttachedToWindow() first
must have connection to App Server before FetchIcon()

Hopefully fixes #13172
2017-01-08 13:08:25 -08:00
Humdinger
ee7da1af0a Mail and Notification prefs: use B_WIDTH_FROM_WIDEST
Spotted by Diver: missing B_WIDTH_FROM_WIDEST for the BTabViews
resulted in labels being vut off with bigger font settings.
2017-01-08 20:47:19 +01:00
John Scipione
52e243a7d1 Deskbar: Inital FetchIcon() in AttachedToWindow()
This ensures that we have a connection to App Server at the
time we are fetching the icon.

Hopefully fixes #13172
2017-01-08 11:02:59 -08:00