Commit Graph

46697 Commits

Author SHA1 Message Date
Siarzhuk Zharski
81cdbc6ae6 ListView: More safe ScrollToSelection implementation
The Problem was observed in the Time Preferences Zone view - the
selection was set inside of TimeZoneView::DoLayout() call on
the OutlineListView control that had zero-sized Bounds. After
the control was resized the selection stay mainly hidden "under"
the upper edge. The Problem looks like generic so should be fixed
in the interface kit code. Proposed fix introduces additional check
for the scroll position to not cross the top edge of control.
2013-09-16 00:05:28 +02:00
Stephan Aßmus
83f9d3c431 HaikuDepot: Added some listener support to PackageInfo 2013-09-15 17:47:35 +02:00
Jerome Duval
a07d888425 hdaudio: check pin sense on init, don't wait for a switch event
with headphones plugged on boot, sound was still enabled on speakers.
see #9956
2013-09-15 15:39:01 +02:00
Rene Gollent
396a3d082f Merge branch 'debugger_report_add_disassembly' 2013-09-15 15:35:38 +02:00
Stephan Aßmus
d1d48f6483 HaikuDepot: Add interface for PackageInfoListener.
Also defines PackageInfoEvent.
2013-09-15 17:24:15 +02:00
Stephan Aßmus
d2c9f2e651 HaikuDepot: Use PackageInfoRefs instead of PackageInfos
Instead of storing PackageInfo objects directly in the
 PackageLists, store PackageInfoRefs instead. This makes a
 lot of operations much cheaper, and it also allows making
 changes to a PackageInfo (which now exists only once)
 and have those changes reflect everywhere. In particular,
 it will be easier to populate some information of the
 PackageInfo lazily, and to listen for changes on a
 PackageInfo object.
2013-09-15 17:21:11 +02:00
Rene Gollent
92d6655640 Debugger: Implement #9960.
- DebugReportGenerator now retrieves and dumps disassembly for the crashing
  function up to the crashing line.
2013-09-15 15:32:19 +02:00
Jerome Duval
c11cdf8d88 dpc: fix comments spelling. 2013-09-15 14:41:43 +02:00
Ithamar R. Adema
4ace94e6b1 beos_mime: add sniffer rule for .mp3 files
Patch from markh (ticket #9790), thanks!
2013-09-15 11:45:40 +02:00
Ithamar R. Adema
b9f280cb8c ntfs: make sure our confidence is higher then the intel partition add-on
This as the intel partition addon just does a very weak test, and the
NTFS test is much safer. This prevents NTFS filesystems that have a
valid boot sector signature but no partition table, from being
picked up by the intel partition table add-on instead of the ntfs
add-on.

Patch provided by markh, thanks!
2013-09-15 11:35:31 +02:00
Jerome Duval
b119365b21 usb_disk: returns B_DEV_NOT_READY for SCSI_SENSE_KEY_NOT_READY
...instead of B_DEV_NO_MEDIA. The latter seems to imply we stop testing
the unit is ready in usb_disk_device_added().
Based on a patch provided by markh in #9589.
2013-09-15 11:21:01 +02:00
Ithamar R. Adema
b9fa914d1e norflash: Add hack to hide start of NOR flash
This is a workaround for hiding U-Boot that is stored in the first 2
128k blocks, so we can put a BFS image into NOR to boot from (since
we do not have support for SD/MMC yet in Haiku).

When manually putting a BFS filesystem at block 3 we actually get
right up to the point where BootScript is attempted to be executed!
2013-09-15 07:26:02 +02:00
Ithamar R. Adema
c00e42d577 u-boot: make sure host makebootable builds too
Somehow missed these few lines in my last commit.
2013-09-15 04:55:07 +02:00
Ithamar R. Adema
a1d6968848 ARM: stub out makebootable so we can build a full haiku-image 2013-09-15 04:39:37 +02:00
Ithamar R. Adema
ef5e0ba938 ARM: stub out missing int64 atomic functions
Also, add an item to the TODO list for this. Really need to figure it out soon...
2013-09-15 04:22:04 +02:00
Ithamar R. Adema
20d9063c36 debugger/debuganalyzer: Remove the explicit -Werror from Jamfile
Specifying -Werror in the Jamfiles directly prevents the build
system from disabling error-on-warning for some arch specific
warnings (or even globally), breaking the ARM build.

The "src/apps" directory is already setup to compile with -Werror
by the build system anyway, so remove the explicit setting here.
2013-09-15 04:21:39 +02:00
Ithamar R. Adema
90742b59be ARM: boot: pass boot disk identifier
This to stop the vfs_boot.cpp code from complaining.
2013-09-15 04:18:31 +02:00
Jorma Karvonen
9d79ce816b Localize tgainfo
Closes ticket #7168
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-14 22:52:43 +02:00
Jorma Karvonen
ba4746794a Localize bmpinfo
Closes ticket #7164
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-14 22:47:58 +02:00
Jorma Karvonen
d05bb5a8e6 Localize bitsinfo
Closes ticket #7162.
Signed-off-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2013-09-14 22:43:44 +02:00
John Scipione
eeb345aa17 Use uname -s instead of uname -o
...since BSD uname (on OS X at least) doesn't have a -o param, only a -s,
Haiku has both, and both print "Haiku".
2013-09-14 14:55:53 -04:00
Ithamar R. Adema
cfa8ecbc86 ARM: boot: Make dd on MacOS happy
Turns out dd on MacOS does not like '1M' as size descriptor, but
wants '1m'. To prevent us breaking Linux builds (as it does not
accept 1m), just use the actual number of bytes explicitely instead.
2013-09-14 20:15:33 +02:00
Jérôme Duval
b31f2d53e0 add a constant for 10G base T ethernet. 2013-09-14 18:11:43 +02:00
Jérôme Duval
4b308f30ca virtio_net: allocate queues, read macaddress, handle ioctl. 2013-09-14 18:05:54 +02:00
Jérôme Duval
d038239669 virtio_net: add feature labels. 2013-09-14 18:05:54 +02:00
Rene Gollent
729075a5e8 Debugger: add Inspect context item to Registers view.
- Allows one to treat the value of a register as a memory
  address and jump directly to inspecting said address.
2013-09-14 17:55:33 +02:00
Rene Gollent
20c5fc4aa6 Debugger: Add missing std::nothrow. 2013-09-14 17:55:32 +02:00
Ithamar R. Adema
fda9d308e1 ARM: kernel: Fix compilation issue with new gas.
Turns out the new gas does not like spaces :(
2013-09-14 17:27:17 +02:00
Rene Gollent
74e89b3446 Fix accidentally truncated addresses in call frame unwind. 2013-09-14 17:07:55 +02:00
Jérôme Duval
b5082c11cc virtio_net: initial skeleton driver. 2013-09-14 11:48:37 +02:00
Jérôme Duval
0ce7ab1ebe ext2: access the parent variable once checked it's non null
* cleanup
* add some inode flags we don't use
2013-09-14 11:00:07 +02:00
Niels Sascha Reedijk
aba841d810 Update translations from Pootle 2013-09-14 06:14:15 +02:00
Pawel Dziepak
b8dc812f3e x86[_64]: Enable NX on non-boot CPUs as soon as possible 2013-09-14 05:28:50 +02:00
François Revol
c14bca2958 Merge branch 'master' into sam460ex 2013-09-14 01:16:51 +02:00
Rene Gollent
426f721b81 Fix default alignment on BCheckBox.
Was most readily noticeable in WebPositive's Find pane, where the
CheckBox was incorrectly top-aligned. Thanks to Humdinger for reporting.
2013-09-11 18:23:07 -04:00
Pete Goodeve
78e450554e Fix to std dev calculation in ping 2013-09-11 14:30:47 +02:00
John Scipione
fb90f7ffe4 ScreenSaver: ScrollToSelection off-by-one
For some reason calling PopulateScreenSaver() list in AllAttached()
scrolls the selection off-by-one, so, call PopulateScreenSaverList()
in AttachedToWindow() and then call ScrollToSelection() again in
AllAttached() which seems to fix the problem.
2013-09-10 18:46:09 -04:00
John Scipione
5041c8ae6e ScreenSaver: Set min window height by font height
...rather than font spacing which only scales linearly in the horizontal
direction. This sets the min window height nicely at 11pt font while
continuing to work at 12pt, 8pt, and 18pt.
2013-09-10 18:09:50 -04:00
John Scipione
c8e6af02f2 ScreenSaver: Open screensaver initially via message
..instead of calling _OpenSaver() directly.

At least one screensaver, Message, depended on the Bounds() of the
preview to be set when run, which wasn't established when you first
started the app causing the app to quit while trying to draw.

Also call PopulateSaverList() in AllAttached()  so that ScrollToSelection()
works without having to be called again.

Also, fix pointer style in ScreenSaverWindow::MessageReceived()
2013-09-10 18:09:50 -04:00
John Scipione
e73001dc80 ScreenSaver: Refactor list item selection
Split out the list emptying into an EmptyScreenSaverList() method and use it in
various places where it should happen.

Call PopulateScreenSaverList() in ModulesView::AttachedToWindow() instead
of in the constructor because some of the methods depend on the view being
attached.

Don't try to select Blackness saver by name, instead if no other selection
is located select it as the default. Also, a tiny optimization, once we've found a
selection there's no reason to continue to keep looking for another one.
2013-09-10 18:09:49 -04:00
John Scipione
b3aa1c10f5 ScreenSaverApp: Style fixes
Update copyright info
2013-09-10 18:09:49 -04:00
John Scipione
4843382d02 ScreenSaver: Convert ScreenSaverItem.h to utf-8 encoding
For some reason this file was encoded as a MacRoman or some sort
of high ASCII non utf-8 encoding that made my editor sad.

Also, update the copyright and style while I'm at it.
2013-09-10 18:09:48 -04:00
Siarzhuk Zharski
726e47bb80 vfs:Remove extra put_vnode call on error B_LINK_LIMIT exit
Fixing the autoconf test: attempt to create file in place of already
existing symlink. On error exit put_vnode was called explicitly before
returning error. The second, implicit call to put_vnode was issued on
destroying the VNodePutter instance that references the same vnode. At
this time the vnode has references count equal to 0 so corresponding
panic was executed. Great thanks to Ingo for pointing it out!

Fixes #9140.
2013-09-10 19:47:36 +02:00
Jerome Duval
378a2b8580 updated usbdevs from NetBSD revision 1.653 2013-09-09 21:35:01 +02:00
Siarzhuk Zharski
c68e172312 usb_audio:fix parameters web compilation logic
* parameters web compilation improved - harvest the feature units
  assigned to non-streaming output terminals in the same way as ones
  assigned to streaming output terminals.

Fixes #9950
2013-09-09 08:56:20 +02:00
Stephan Aßmus
2520ac68a8 HaikuDepot: Introduced LinkView utility class
* Inherits BStringView
 * Highlights string on hover and changes cursor shape.
 * Sends message when clicked.
2013-09-08 19:09:14 +02:00
Stephan Aßmus
d6bd4f068d HaikuDepot: TextDocument-Layout and -View optimize drawing...
... by drawing only the paragraphs that intersect with the
 update rect.
2013-09-08 19:08:26 +02:00
Stephan Aßmus
375dff4eaa HaikuDepot: Use TextDocumentView for package description.
* The rating items are also justified for consistency.
 * Refactored usages of TextDocumentView and MarkupParser into
   MarkupTextView.
2013-09-08 18:41:45 +02:00
Stephan Aßmus
6c5c4d8437 HaikuDepot: Added TextView::ParagraphStyle() ...
... to get the initial/default paragraph style.
2013-09-08 18:41:08 +02:00
Stephan Aßmus
cb97f2349f HaikuDepot: Make MarkupParser a bit more flexible...
... by allowing to append markup to an existing document.
2013-09-08 18:39:56 +02:00