Commit Graph

67278 Commits

Author SHA1 Message Date
JackBurton79
06fdc2e30f Terminal: Initialize fore and back color to sane defaults.
Fixes missing / random colors when using Terminal as replicant and does not have side effects

Change-Id: I839098cf95298c729eac9f68c4d6de9308a47d39
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8710
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-24 16:30:52 +00:00
PulkoMandy
a087f310d1 vesa: enable bios_patching by default on cards where it is known to work
Change-Id: If2da4847ab2a10fcae53472d7f863f5397cd2f07
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8633
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-12-24 09:48:00 +00:00
Augustin Cavalier
ce14c3c0f1 build: Remove the profile from the JAM_TARGETS.
The DefineBuildProfile logic implicitly removes it later on
when it replaces JAM_TARGETS entirely. But in some cases it
may not do that, and so if we want it to be removed in all cases,
we have to do that here.

Fixes commands like "jam -q -jN @nightly-anyboot haiku.hpkg"
giving a "don't know how to make @nightly-anyboot" message.
2024-12-23 15:54:49 -05:00
Augustin Cavalier
1aabdb2b8d build: De-indent CommandLineArguments.
If no targets are specified, exit with an error. But this should
never happen, since jam implicitly specifies "all" even if
nothing specific is given.
2024-12-23 15:52:30 -05:00
Augustin Cavalier
8b67e745eb build: Add check that a value was specified in SetConfigVar.
e.g. if one merely has "SetConfigVar DEBUG : HAIKU_TOP src system kernel ;"
this won't actually set a value for DEBUG, and thus it won't use one
of the pre-set debug objects directories, and so all the objects will
wind up in the root of wherever jam is run.
2024-12-23 15:33:03 -05:00
John Scipione
fdd7a7acf2 Network Status: Compose notification icon
... also in Media and Mail servers.

Change-Id: I9a95dc289446ba0dbf138e29cbd6d0b75e6b5ddc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8707
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-23 17:38:33 +00:00
John Scipione
7e317d9b51 Notifications: Compose size based on font size
Make arrow and close button size font-sensitive.

Compose default window width based on font size.

Eliminate kCloseSize, kEdgePadding, kSmallPadding, kExpandSize
and kPenSize.

Eliminate NotificationView::_DrawCloseButton() in favor of calling
AppGroupView::DrawCloseButton().

AppGroupView::CloseButtonSize() method used in NotificationView.

Eliminate IconSize() from window and view parameter, get icon (and size)
from notification in the view.

Only move text down a line if title is set.

Change-Id: I53654c117bee634d3d8bddf6bf766577bd55b9a3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8706
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-23 17:38:33 +00:00
Niklas Poslovski
2705a2ae66 Media: Improve readability of label in AudioMixer using mix_color
Part of #18970

Change-Id: I98b13103ffffba129b45357d78ec49b7c21ad827
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7947
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-12-23 10:24:37 +00:00
John Scipione
8e29e4e3e3 Tracker: Change "multiple selections" => "# selected" in Find window
... for example "2 selected" instead of "multiple selections".
Set minimum volume menu field width to "99 selected".

Refactor ShowVolumeMenuLabel() to have multiple selections once.

Change-Id: I5a2126972d3b93e7dd98ca631606302a59546f53
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8151
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-12-23 09:44:41 +00:00
Pascal Abresch
059a86da75 Appearence: remove dead code from FontPreferences
No functional change Intended

Change-Id: I1c61f5d0ed30678bce1d94feda8e0cd3744ab51e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8430
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-12-23 09:42:14 +00:00
Alexander von Gluck
796bd00681 network/route: accept an empty network address as the destination.
* linux + BSD accept 0.0.0.0 or :: as the default route identifier
* openvpn passes 0.0.0.0 as the default route
* our own route command shows "0.0.0.0" for the default route

Lets not be special here, and do what everyone else does. default
still works for backwards compat.

This uncovered a potental bug in BNetworkAddress. See #19296

Change-Id: I3aea99cae4cf9c52142cb97e2a06b8432de294b9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8592
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-12-23 09:38:36 +00:00
Pascal Abresch
3b8cfd27cc mail_daemon: Error log improvements
This should fix the colors in the dark mode, and will also properly size the scrollbar

The initial window is still quite small however, and skips deskbar.

Change-Id: I9181095cd44cc2b24cddcbd96754fb04a7ac2cfd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7882
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
2024-12-22 19:30:53 +00:00
John Scipione
4b27f67f1a Appearance: Redo FontSelectionView to update text color
FontSelectionView was not getting added to the view hierarchy and
thus was not receiving the B_COLORS_UPDATED message when the colors
changed. This was because we wanted to build the grid all at once.
Instead build the grid inside each of the FontSelectionView's and
set the first column to the longest string afterwords so everything
lines up.

This updates the text view colors when the font changes. The rest
of the changes are to fix the view hierarchy so that we don't need
to explicitly call MessageReceived() on the FontSelectionView to
get receive B_COLORS_UPDATED.

Change-Id: Ice6ff0b8a95d522c9994b6b873fac10cf5f71ea4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8246
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-12-22 19:22:44 +00:00
John Scipione
c7c5de0f79 Appearance: Use BLayoutBuilder instead of BGroupLayoutBuilder
Rename GetPreviewBox() to just PreviewBox() matching WebPositive.

Change-Id: I378a76bc3d2742273cb5cfad4863e377103786cd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8245
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-12-22 19:22:44 +00:00
PulkoMandy
1b6f159e88 neomagic: enable -Werror, fix compiler warnings
Change-Id: I176a316c6cb18d3684cf6166c4a2fe74f816d0d8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8702
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-12-22 14:27:47 +00:00
PulkoMandy
1fd7b2f396 3dfx driver: enable -Werror and fix warnings
Change-Id: I8278dab0456dbad86c27e483fcb91a9c21d3f517
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8701
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-12-22 14:27:47 +00:00
cafeina
102726ea26 Haiku Book: Added GameSound, Shelf
Change-Id: I1377ab80e7128a5406bf9f0523564e5e7f9e9f1b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8624
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-12-22 08:40:35 +00:00
PulkoMandy
a4d7ac5b5f ArchitectureRules: enable -Werror for more video drivers
Change-Id: I446716f1b767f390dc589715f8bd41f50de325f2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8699
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-12-22 08:38:02 +00:00
PulkoMandy
3b119ad9e1 ps2: check error bit behavior before enabling active multiplexing
The synaptics specification changes the meaning of the system bit when
there is incoming data from the AUX (mouse) port, to indicate that the
incoming byte is an error. This also allows to detect if the active
multiplexing is not enabled correctly or has been reset.

Use this as an additional check so that active multiplexing is disabled
on my laptop, where it doesn't work.

Keeps #19266 fixed while avoiding the long timeout on my machine.

Change-Id: Ia8277e135a149cfa25a2a3022c87c3e05aacb6d5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8632
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-12-22 08:34:43 +00:00
John Scipione
512a94bc18 BTextView docs: Document GetFontAndColor() and SetFontAndColor()
Change-Id: Ie284c63690e955d7cfae7e9e66949a63205e8e31
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8270
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-12-21 17:32:52 +00:00
Augustin Cavalier
5ac9e49426 SCSI: Ensure the condition variable is idle before freeing the CCB.
If the completion was just notified by another thread, it's possible
we were awoken and are trying to free this CCB before the other thread
released the condition variable's lock. So, call NotifyAll again
to serialize.

Should fix #17522.
2024-12-21 12:18:22 -05:00
Augustin Cavalier
18443c583a Drivers.h: Add B_SOCKET_IO_BASE declaration.
All the SIO... codes are in the 8900 range.

Change-Id: I7b319877d2430eba2573a0c8fd68cb7fc3b221d8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8693
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-21 17:00:00 +00:00
PulkoMandy
1ad0f6ade6 via graphics: fix compiler warnings
Change-Id: I4ac406b2024acc85feff41c2c702b1ba49fca1fb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8698
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-21 15:26:23 +00:00
PulkoMandy
63c2738059 radeon: fix compiler warnings
Change-Id: I952abcec52bd00a05193cf4a96b1b2a63947080c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8697
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-21 15:26:23 +00:00
PulkoMandy
e0d66c025d nvidia: fix compiler warnings
Change-Id: I49acd914c2f0a67dc2f4cbe7abd0ee0111db5309
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8696
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-21 15:26:23 +00:00
PulkoMandy
bed6017a15 matrox: fix compiler warnings
Change-Id: I5dce7230fcf5098bd361b459fc77e2be0af4f5d2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8695
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-21 15:26:23 +00:00
PulkoMandy
53143b25da hda: missing const
Change-Id: I0af1c02beaa18a7a0b17cf76632abde96685895e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8694
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-21 15:26:23 +00:00
Lt-Henry
d3f6f52ffc intel graphics: Added new device
Added the ID for Haswell ULT GT3 Mobile, also known as Iris 5100

Change-Id: If340b0ce200b385ddd8ec4f0f03cf2f1ae450cd4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8700
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-12-21 12:40:19 +00:00
Autocomitter
978a931ea9 Update translations from Pootle 2024-12-21 08:10:01 +00:00
Anarchos
4d3a68fb7d netboot: bump size for tar decompression
Add network add-ons drivers to the archive for x86_64 architecture too.

Change-Id: I8296586d5f2b1f3d4c08250e28aefd32428b21b9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8522
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-12-21 07:46:10 +00:00
Augustin Cavalier
d40db83a6c kernel/vm: Clean up vm_clone_area (and wait_if_address_range_is_wired).
* Put variable declarations near use.

 * Use AreaCacheLocker, which calls vm_area_get_locked_cache for us.

 * De-branchify now that a Locker is being used.

No functional changes intended.
2024-12-20 16:02:05 -05:00
Augustin Cavalier
2f7bf3b339 virtio_net: Don't print a message on SIOCGIFSTATS.
Fixes #19304, reduces syslog spam.

Change-Id: I219709645d516134f0e4948e662bd90ee00ab183
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8692
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-20 16:22:51 +00:00
Augustin Cavalier
01e97ff280 KPartition: Drop SetParent().
A comment indicated it "must" only be called in Add/RemoveChild only.
So the field is just modified there now.
2024-12-19 17:21:04 -05:00
Augustin Cavalier
74ae79fed9 kernel/fs: Don't store the mount cookie in the KPartition.
Nothing uses it. If needed, it can be retrieved through the volume
(mount) ID.
2024-12-19 17:17:18 -05:00
Augustin Cavalier
46a1eb7da5 btrfs: Drop get_supported_operations.
Nothing ever calls it. The actually important method is the
file_system_module_info's DDM flags.
2024-12-19 16:59:35 -05:00
Augustin Cavalier
2164b5e177 NTFS: Fix new identification logic, and add needed flag to fix initialization. 2024-12-19 16:51:32 -05:00
Augustin Cavalier
59aafb9f3f btrfs: Don't pretend to support initializing or writing, yet.
We always mount read-only for the moment.
2024-12-19 16:39:01 -05:00
Augustin Cavalier
04c8e27efa BDiskSystemAddOn: Remove the Flags field.
Nothing used it. Instead the kernel addons' flags are used instead,
except in the case of PartitionDelegate, which calls SupportedOperations().
2024-12-19 16:34:16 -05:00
Augustin Cavalier
f48a542cf4 file_systems: Split checking of superblock magic and superblock data.
This way, we can avoid printing anything if the superblock magic
doesn't match (i.e. the partition doesn't look like it's of the
filesystem), but print an error if the magic values match but the
rest of the data doesn't.

Reduces syslog spam.
2024-12-19 16:30:29 -05:00
Augustin Cavalier
afe86e25ed partitioning_systems/intel: Code cleanup and logging improvements.
* Use more standard TRACE macro setup.

 * Log more errors to the syslog.

 * Log fewer debug messages to the syslog.
2024-12-19 15:19:05 -05:00
Augustin Cavalier
f168963c18 Tracker: Clear filtered pose list in ClearPoses().
Fixes #19300.
2024-12-19 14:48:56 -05:00
Augustin Cavalier
4fa1556978 Tracker: Fix build under DEBUG. 2024-12-19 14:48:01 -05:00
Augustin Cavalier
03bec531f9 PowerStatus: Numerous improvements to battery display.
* Remove the "pause" indicator; it adds too much noise at small
   sizes and seems confusing at large ones. Instead, draw the
   battery in a blue color when it's not in use.

 * Reverse the direction of the battery bar. It now has the capacity
   on the right and the empty on the left, the opposite of the way
   regular progress bars are, but more in line with how this is
   displayed on other OSes (and smartphones.)

 * Tweak ratios to make the icon display larger in the deskbar.
   It now displays closer to the size that regular icon views do.

 * Tweak the lightning indicator to be a little larger, also for
   legibility at smaller sizes.

 * Other misc. cleanups.

Change-Id: I229fe120e769e43e17eeb87638b832418f5e7aaf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8690
Reviewed-by: Sen Nordstrom <haiku@sen.cx>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-19 04:20:29 +00:00
Augustin Cavalier
ae96a596c1 pkgman: Drop unused ResolvableExpressionComparator. 2024-12-18 21:12:16 -05:00
Augustin Cavalier
aaa81469a5 pkgman: Add "search --not-required".
List only the packages that are not required by any other package.

Most useful then used as "pkgman search --installed-only --non-required",
but works for non-installed packages too.

Based on OscarL's initial version, rewritten by me to use the real
dependency resolution system instead. One tweak from madmax to get
it to actually work properly.

Co-authored-by: Oscar Lesta <oscar.lesta@gmail.com>
2024-12-18 17:08:23 -05:00
Augustin Cavalier
f664cdc7e0 kernel/vm: Allow private mappings beyond the end of files
It appears GCC uses this for precompiled headers.

Update the test expectations to match.

Fixes #19296.
2024-12-18 13:58:12 -05:00
John Scipione
10b1abbfde Tracker: Cancel type-ahead filtering on esc
Otherwise esc closes the file panel.

Differentiate between type-ahead and ref filtering in pose view
which is why this was not working in e.g. Expander a ref filter
was set so filtering was also set. We only want to cancel
type-ahead filtering on esc, not ref filtering.

Refer to 'ref filtering' as simply filtering e.g. IsFiltering()
and refer to type-ahead filtering explicity when that is meant.
Rename methods and variables to make it clear whether we're
referring to ref filtering or type-ahead filtering.

If we are ref filtering fill out the filtered pose list again
after stopping type-ahead filtering so that we don't get an empty
file panel in e.g. Expander on esc.

Fixes #13151

Change-Id: I96faf98c3b68d3bcb3d3892c3511ae2449c2f8a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8689
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-12-18 18:55:05 +00:00
Augustin Cavalier
c95edc2ba1 app_server: Get rid of RenderingBuffer::IsGraphicsMemory().
It was introduced in 778706215d
for DrawingEngine's sake, but it actually isn't needed even there
and was removed in the previous commit.
2024-12-18 12:28:26 -05:00
X512
aa453612ef app_server: remove GPU->GPU rect shifting code
It is not used anymore and is very slow on real hardware because it read
GPU memory by CPU.

Change-Id: I06f7ca072220b758d849921e844bb2aa75342e2c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8680
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-18 17:26:41 +00:00
John Scipione
bd01f3f156 Tracker: Style fixes related to #13151
Some 100 char fixes
Put looper in a variable and use it a few times
Remove ASSERT statements, we B_DISPATCH_MESSAGE if NULL.
Refactor command modifier key code to use a nested switch
Explict comparisons to NULL

Change-Id: I068a0123461290731b4b5388b802bb4cc7bb2455
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8688
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-12-18 04:24:26 +00:00