Commit Graph

62642 Commits

Author SHA1 Message Date
Alexander von Gluck IV
ce5993fdb7 version: add BETA_3 and PRE_BETA_4 constraints.
Change-Id: I65b4889042c4c92086fade535622ef12b368a968
2021-06-21 11:38:54 -05:00
Adrien Destugues
303187e29b Revert "Media Kit: use the B_WRITABLE flag in plugins"
This reverts hrev54422.

I'm not sure what I was trying to fix with this change. The way the
media kit is currently designed, the list of supported formats
(including for reading) comes only from writer plugins. This means it is
impossible to have a decode-only plugin currently. And the list is
called "fWriterFileFormats" but in fact is the only list used to
implement get_next_file_formats, so it should contain all formats.

This current setup works for the ffmpeg plugin, but it should be
cleaned.

This fixes Youtube playback. The problem was simply that we were not
reporting support for any of the Youtube video formats anymore.
Unfortunately, the app_server crashes when playing Youtube videos are
still there.

Change-Id: Ie5025cd48e2ab23b616bad49eec1401331ffb0ed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4103
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-21 12:33:28 +00:00
Jérôme Duval
ddffdd2506 C11: define __STDC_NO_THREADS__ as threads.h is not provided
Theorically we could define __STDC_NO_THREADS__ internally in GCC, but
threads.h probably will be added in the future, and the compiler won't
notice.
Using this stdc-predef.h header and including it in GCC would solve this
nicely, and saves us from hardcoding.
The header can eventually be removed when obsolete.

Change-Id: I29aa58686e3c45449dc63e02e5a9e13a960b9090
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4097
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-21 12:31:53 +00:00
Pascal Abresch
325ab89b90 ControlLook: fix minor code style violation
Change-Id: I0b3e80e7ba4418f06c20fd02f96cb2932623fd71
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4102
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-20 19:55:44 +00:00
John Scipione
7912dad947 BTextView: Fix Tracker edit name
Don't resize text view in FrameResized() if resizable, this is done
in _AutoResize() instead. Set text rect width to width of max line when
word-wrap is off. Text rect width shrinks to the width of the text
matching behavior of BeOS R5 and previous Haiku. This fixes Tracker
Edit name.

Limit max width to column width in list mode or 30em in icon mode.
Filter paste messages limiting to max width in Tracker Edit name.

General BTextView fixes:

As a consequence of the text rect shrinking to fit the text, adjust
highlighting to go at least to edge of the view even if text rect width
is narrower. Extend the invalidation area beyond text rect when
redrawing to include highlighted areas.

Text views behave properly when overflow occurs i.e. when you type
text off the end of the text view. The text is nudged over as you
type/scroll so that the previous text is visible. This sorta worked
before but now works better.

Fix text rect centering by replacing switch with
BLayoutUtils::AlignOnRect().

Coalesce consecutive draw calls when inserting and deleting text to
prevent flashing for example when resizing the window. Redraw text
when the text view scrolls fixing a bug I noticed in StyledEdit.

Workaround negative height Beezer bug.

Fixes #16642, #16476

Change-Id: I2d32d6039944d2dc3218ce4de71f2966cc98c866
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3642
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-20 14:46:53 +00:00
Jérôme Duval
7d961f9746 sys/resource.h: add rusage compatibility fields, set to zero
POSIX defines this structure but specifies only two fields (which we
already implement). However, both the *BSD and Linux have agreed on
some more fields, which are often assumed to be there by applications.

The benefice of having compatibility fields is
greater as having to patch every other software at HaikuPorts.

Change-Id: Ie28ca2e348aa16b4c57eb3498eb62175100d9b9d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4083
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-06-20 12:50:24 +00:00
Rudolf Cornelissen
0d1016f023 intel_extreme: assign ports a pipe just once. 2021-06-19 21:10:24 +00:00
Jérôme Duval
c6fe367365 POSIX: introduce ppoll
will appear in the next version: https://www.opengroup.org/austin/docs/austin_1110.pdf

Change-Id: I38014ad910881df260f0ec762831491e143328c4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4099
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-19 18:09:25 +00:00
Rudolf Cornelissen
0af04dccaa intel_extreme: only access ports pipe if it has one assigned. 2021-06-19 13:53:18 +00:00
Máximo Castañeda
1aca853fc9 BMenu: fix menu items width in column layout
Change-Id: Ia16d51ff31760fef28bcceeab7b5c26a05cfbdad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4092
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-19 09:28:06 +00:00
CodeforEvolution
65f4a22735 registrar: Shutdown Icon Animation
In the case that an application is blocked by a model panel during shutdown, the icon will now show a "waiting" animation
like in BeOS R5.

Fixes #7980

Change-Id: Iec79fcaf431407ff51430a1a8e4c8ec41571059d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4001
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-19 09:15:33 +00:00
Autocomitter
8f265e03c9 Update translations from Pootle 2021-06-19 08:55:55 +00:00
Murai Takashi
9be773046a gutenprint: Fix ASSERT expression
Change-Id: I7fb39364fe8cf2b5596764bb4db3bda12295a171
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4096
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Jacob Secunda <secundaja@gmail.com>
2021-06-19 06:44:05 +00:00
Rudolf Cornelissen
5c178f3cbb intel_extreme: fixed pipe-to-port assigning: no second screen yet.. 2021-06-19 00:47:46 +00:00
Rudolf Cornelissen
54ce952dd4 intel_extreme: fixed DP/DDI clk init switch and link det, accept EDID still down. 2021-06-17 21:59:28 +00:00
Niels Sascha Reedijk
bf6a2a2bf1 Cortex: fix the catalog location of the main application
Previously, hrev55011 introduced localization for Cortex, which then
prompted to close #7530. It has then been reopened, when it turns out
that the translations for the container application (RouteApp) did not
work, whereas the individual add-ons/modules were translated.

The cause is that by default BCatalog looks up the translations based on
the subtype part of the signature. This is x-vnd.Cortex.Route (without
the application/ supertype). This change will place the translations in
the right place of the file system.

The add-ons were never affected, since they BCatalog is explicitly told
to find the translations for the entire signature, like:

static BCatalog sCatalog("application/x-vnd.Cortex.InfoView");

Even so, it was chosen to omit the `application` supertype from the
signature for the shared code as well.

This should fix #7530 for good.

Change-Id: Iff18fabef7aba68602e49db1e98cfed2f486f545
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4091
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-17 10:59:18 +00:00
Murai Takashi
324b426da9 libnetservices: Fix DEBUG build
Add iostream header since BUrlProtocolListener::DebugMessage() need it.

Change-Id: I4665d5675b33b1cb5beba123d07a38c3edbbeb6f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4095
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2021-06-16 07:25:36 +00:00
Jessica Tallon
e3fa7914c6 mediaplayer: Support m3u playlists containing urls
fix #6670

Change-Id: I8e15b1a79f1d2a687108c3c2a1fc3fc341b79cc5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4050
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2021-06-16 06:02:48 +00:00
CruxBox
a2603a88fd xfs: coding style fixed, no functional changes
Change-Id: I56a1220abc330ef853cee4bdb9fa9c1b712784a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3143
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Rene Gollent <rene@gollent.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-15 16:52:35 +00:00
Jérôme Duval
3f816b034d TextSearch: only grep files
fix #17012

Change-Id: Id721ec57945d9a57824ae53bf591d0e09a2b53f3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4094
Reviewed-by: Rene Gollent <rene@gollent.com>
2021-06-15 16:22:08 +00:00
Jérôme Duval
7903bfcf8b strace: add signal name tracing
inspired by hrev23436, fix #10944

Change-Id: Ieedace86a6541a4cd1346791146a96e99d09d614
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4093
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-15 14:34:56 +00:00
X512
b0557f6959 kernel/arch/system_info: implement for riscv64
Change-Id: Ifa66859a7f87cd821fe50ca7d26e08472adcf279
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4060
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-15 01:55:56 +00:00
X512
a6a92e3cd5 kernel/arch/elf: implement for riscv64
Change-Id: I919ee4883af780f48385a53e5768eba35dde6423
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4054
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-14 21:49:07 +00:00
Rudolf Cornelissen
7b6ac3b38f intel driver: internal panels need HWtarget for link and fitter 2021-06-14 23:02:04 +00:00
Rudolf Cornelissen
16ea5aac34 intel driver: added panelfitter pgmming. 2021-06-14 22:49:31 +00:00
François Revol
08d7c6e8f3 poke: raise IOPL on x86 when opening the driver
This should allow easier porting of things like flashrom,
as it mimics FreeBSD's /dev/io behaviour.

Change-Id: Iaa6b6342cf7983a9655a7155adfcc46c8a8264f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1077
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-06-13 21:07:28 +00:00
Panagiotis Vasilopoulos
9c5a5bafa4 ReadMe: Add Getting Involved link
- It's a good idea to push interested parties towards the right direction.

Change-Id: Ib2486f981c1abbccf97ac019bee919bdf92279e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4089
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-13 21:06:58 +00:00
François Revol
e5495bf648 poke: allow multiple open()
Not sure why it only ever allowed a single instance.

Change-Id: I972a1d601d93725674a97fb341aa7ffb3625b105
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1075
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-13 21:03:11 +00:00
Alexander von Gluck IV
9918c82954 data/trust_db: Introduce a selection of trusted public keys to our filesystem
Change-Id: I7bf7d5dac5bb576f9ca5fc55680fc369556f4312
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4044
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-13 16:30:14 +00:00
CruxBox
1dcb6c252c xfs: B+Tree GetNext() works
The GetNext() works well for B+Trees and that wraps up the work needed
for all kinds of GetNext().
Change-Id: Ie965d3da273364f8fdbdb8faee5cb3c214881130
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3124
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-13 15:49:15 +00:00
X512
7766b5a136 haiku_loader: add J, K keys support for up/down keys
Arrow keys are not available on some platforms.

Change-Id: Ia38797eb12202668a0b0976b31f21f564d140901
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4087
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-06-13 11:34:01 +00:00
Han Pengfei
b7a6ab94c3 boot/arm: fix bootloader build issues without font and font_spleen
Change-Id: Ie9595f79de43bbb155c997bdbcf109e8e971e862
Signed-off-by: Han Pengfei <pengphei@qq.com>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4086
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-06-12 17:45:25 +00:00
Alexander von Gluck IV
35fad4a467 bootloader: Enable GPT partition support in EFI loader
This was enabled per-architecture, but it is reasonable to always
enable GPT support for all EFI systems, no matter which CPU is used.

Change-Id: I53ca2caf048fbc4ead6cfb74c8734ac9ad382224
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4085
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-12 14:04:26 +00:00
Autocomitter
4365774b68 Update translations from Pootle 2021-06-12 08:56:19 +00:00
Murai Takashi
0594775c0f storage kit: fix Wrong type of arguments to formatting function
Pointed out by LGTM.

Change-Id: I802814ef53dd3f46a355db0a57926676037984a7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4080
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-11 10:59:02 +00:00
Murai Takashi
69cd1bde89 keymap: fix value stored to 'flags' is never read
Fix 'flags' was not used in In KeyboardLayoutView::_DrawKeyButton().
Pointed by Clang Static Analyzer.

Change-Id: Ic3b2da856ee410e908eaaf0c5c4b5b3753928c00
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4079
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-11 10:58:35 +00:00
Jérôme Duval
1b0f948ea2 demangler/gcc3+: handle vendor-specific suffix
fix bug #13720

Change-Id: I3363572b88aaa674f5ee7cf69866b9f2bbb4e84c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4084
Reviewed-by: Rene Gollent <rene@gollent.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-11 01:42:54 +00:00
Niels Sascha Reedijk
8c232f164a AboutSystem: remove duplicate 'Copyright'
Reported by translator loic. Thanks!

Change-Id: I2491a02388321338d8ffe3031fa4670877a77a66
2021-06-10 08:28:55 +01:00
Máximo Castañeda
e41899a6fe BMenu: fix scroll activation
Fixes #14932

Change-Id: I72b16a26ea4d3cef0e9518381c583b23bdcadc22
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4078
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: humdinger <humdingerb@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-09 10:58:02 +00:00
Máximo Castañeda
46c95b5d09 BMenu: move menu over the menu bar only if there's more space there
Fixes #16773

Change-Id: I465c2f4366c11b7b0bacaed57c3d8fd33defe8a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4077
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-09 10:58:02 +00:00
Rudolf Cornelissen
63bd351f41 Intel_extreme and some others: replaced 1920x1080 modeline with nVidia one. Fixes out of range for some panels 2021-06-08 09:30:38 +00:00
Rudolf Cornelissen
aca9888e37 Intel_extreme: fixed hrev55115 regression and added FDI data/link M/N programming. 2021-06-08 09:30:38 +00:00
Alexander von Gluck IV
1a5fe94b7a riscv: Fix build, handle .riscv loader
* We accept the riscv loader to build it, but don't really put it
  into the image since for now you'll just want the haiku_loader.riscv
  for things like TinyEMU

Change-Id: I5005dd5063f2a84cf426db4c40635e87e579ad80
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4075
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-06-08 02:19:02 +00:00
X512
d407b17b18 kernel: riscv64 patches
Change-Id: I8ebcbaa395cbccb50af08fd2f1b049b5cbb949c7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3883
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: X512 <danger_mail@list.ru>
2021-06-07 07:14:23 +00:00
X512
b126a077f8 libroot/uname: add riscv64 support
Change-Id: I1753be9d79d6527f6a9b3cceb644b5cd19d8f67e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4070
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-06-06 19:04:47 +00:00
X512
a7ed58868f virtio: add interrupt declarations
Change-Id: Ifd68f69599a8313615c31b85828aa5b96c68c165
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4069
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-06-06 19:03:30 +00:00
John Scipione
830db1095f TextView docs: Add class overview
Change-Id: I4123822548f606812915211cd080c099b7413ef8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4045
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-06 12:44:28 +00:00
Jessica Tallon
1a5b7d9d27 haikudepot: Resize screenshot window on new change
When the screenshot is changed to a new one, it resets the size
before the screenshot begins downloading so the window is not the
same size as the previous screenshot.

Change-Id: I778b241537b3d1eeb1c1f91b60c60f5e8509ee51
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4049
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-06-06 09:23:38 +00:00
Jérôme Duval
addd392113 kernel/x86_64: clear carry, nested task and trap flags on syscall entry
this is what's generally done on other OSes.

Change-Id: I90f1a574172b8e020c9943468d2fd121e14dd062
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4047
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-06-06 07:23:10 +00:00
Autocomitter
55a7cd0a12 Update translations from Pootle 2021-06-05 08:48:53 +00:00