Commit Graph

24013 Commits

Author SHA1 Message Date
Jérôme Duval
30ca128ee5 merge correctly while keeping Haiku specifics. Thanks Siarzhuk!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-20 23:07:41 +00:00
Stephan Aßmus
e401039efa Patch by Artur Wyszynski:
* The BTabView can now be used with layout management. In this setup, children
  views are managed by a BCardLayout and are hidden/shown instead of removed/
  added when (de)activated.

Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-20 21:51:43 +00:00
Stephan Aßmus
5ebeee561a Turned off the Synaptics driver again, as it seems to give some people
problems still.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-20 13:00:06 +00:00
Jérôme Duval
311781dfcc * uses the default output stream on all audio outputs (and all output paths)
* enable trace to debug mixer controls build


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 23:14:54 +00:00
Jérôme Duval
0e1e3de535 correctly identify the beeper for AD1988 codecs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 22:48:32 +00:00
Jérôme Duval
34bda3ae2d introduced a widget inside the audio function group to extract widget node attributes and reuse functions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 20:24:47 +00:00
Rene Gollent
52a7c90673 Position-based binary searching can only be used if the view has been attached
to a window already. If not, we fall back to using the BList-based search.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 06:04:53 +00:00
Rene Gollent
4e0a1b40ad Temporarily revert that last change since it breaks the IM Kit's preflet for reasons I don't yet understand. Investigating.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 05:11:37 +00:00
Rene Gollent
128cb2f6f3 Minor optimization: since our list items cache their position information,
take advantage of this fact to make use of binary search in 
IndexOf(BListItem *), rather than using BList's linear search. 
Also use this mechanism to speed up HasItem(BListItem *).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 04:41:51 +00:00
Rene Gollent
633645bca9 Fix a potential race condition in BPopUpMenu: if Go() is called on an async
popup menu that hasn't yet been completely dismissed, it's possible to hit a
debugger call because the menu's view tries to add itself to the menu window
before the previous menu instance has removed it. This was quite easy to
hit with things like BColumnListView's column title context menu, since there
is no notification for when the menu was dismissed without invoking an item, 
and thus double right clicking quickly enough would hit the debugger. Go()
now checks if the menu's tracking thread is still up, and if it is, waits for
it to go away before trying to start another instance. Fixes ticket #3146.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 04:01:05 +00:00
Rene Gollent
6826c30a25 When an item is added to the list, we must immediately set its top,
otherwise if it tries to make use of any positional information in the
subsequent call to Update() (i.e. calls to ItemFrame(), or Top(), it will
get back bogus coordinates. This should correctly fix the problems seen with
Themes, possibly amongst others.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 03:54:59 +00:00
Axel Dörfler
c58463ff10 * Seek() must always fail when the resulting offset would be smaller than 0
- "correcting" the offset to 0 is not what should happen.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-18 21:29:04 +00:00
Axel Dörfler
578dac0cf3 * tty_select() did not check for ICANON and therefore notified the select
listeners immediately if there was already something in the queue. Factored
  out a tty_readable() out of tty_notify_if_available() that tty_select()
  now uses.
* This fixes bug #3148.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-18 21:07:18 +00:00
François Revol
7613c6c7ca Add a boot menu option to disable using the IO APIC for IRQ handling and fallback to PIC.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-18 14:40:40 +00:00
François Revol
54cea88338 Fix m68k build. Please always have a fallback case in arch dependant code!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-17 23:49:14 +00:00
Jérôme Duval
3fa33c82a4 * store vendor, revision, stepping, revision, minor, major in the codec struct
* check specific node ids for nodes declared as inputs which are really beepers
* when unmuting/setting amp on the input amplifier, iterate on each input instead of only the first one
* also unmute/set amp on the output and input amplifiers for the input and output paths, respectively


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-17 22:45:04 +00:00
Jérôme Duval
f12491c7f9 added Headphones and SPDIF string constants
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-17 19:44:36 +00:00
Ryan Leavengood
c12ae03c86 Missing backslash, thanks to Joseph Prostko for pointing this out.
I'm not sure how this affects the build as I still got a valid image and only
saw the MIME error after Joseph pointed it out. In fact I am quite sure the SGI
MIME type was still in the build. I assume that only the broken sniffer rule
was missing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-17 15:54:17 +00:00
Ryan Leavengood
f76ca56d6c Bug #3045: Added MIME types for SGI and PPM images, which we have translators
for. This allows snippets from ShowImage made in these formats to be opened.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-17 05:09:07 +00:00
Rene Gollent
6cf3a9ebf7 The previous commit exposed another bug: BWindow::Zoom() incorrectly calculated the max height of the window by only including the border width once. This was previously masked by the fact that the (by default 5) extra pixels were included in its hardcoded default for the height of the tab. Also add the border width to the message returned by GetDecoratorSettings() so Zoom can use the actual value instead of hardcoding it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-17 04:15:51 +00:00
Rene Gollent
ca9a61313a Resolved a small todo thanks to r28664:
We now ask the app_server for the window tab's height instead of
hardcoding it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-17 00:47:23 +00:00
Jérôme Duval
8c3da8dd2c added a mixer interface
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 23:41:14 +00:00
Stephan Aßmus
63d618eebc * Fixed wrong usage of Seek(). The return type is off_t, not status_t. It only
worked because (status_t)B_OK == (off_t)0.
* The translator_id version of Translate() does a (probably unnecessary?)
  Identify(), but then forgets to seek the source BPositionIO back to 0
  before calling translator's Translate(). This was the reason for none of
  the WonderBrush Translation Kit export formats to work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:52:22 +00:00
Stephan Aßmus
133c37e41e Embed "Haiku" instead of "OpenBeOS" in created images.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:42:47 +00:00
Stephan Aßmus
0147f45ad7 Simplified the code, style improvement (brackets for multi-line if/else).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:41:54 +00:00
Stephan Aßmus
4bae262f06 This should be the correct MIME type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:40:43 +00:00
Stephan Aßmus
783d616d08 Minor style fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:36:42 +00:00
Stephan Aßmus
fa6cd8ad6a * The previous change to reorder item->Update() and _RecalcItemTops() obviously
broke everything. If the added item has no chance to calculate it's height,
  _RecalcItemTops() won't work of course. Whatever this was supposed to fix,
  there has to be a correct way.
* Override BView::SetFont() to update all the items. I remember wanting to
  implement this, that's why I refactored a _FontChanged() method, but I
  obviousy never did...
* Moved the AttachedToWindow() and FrameMoved() implementations to a more
  logical position in the file.
* Implement B_PAGE_UP/DOWN key presses. Don't know if that's what the BeOS
  implementation did, will check later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:34:11 +00:00
Stephan Aßmus
231cbd908e Actually restore the "dragger" settings. So the system remember your "Show
Replicants" setting after reboot.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:23:15 +00:00
Stephan Aßmus
6e094221e8 * Fixed the mouse movement when speed or acceleration where below default
values. The implementation needs to sum up fractional movement, not
  truncate to zero. Before this change, the mouse would be pretty much unusable
  at lower speeds/acceleration. Now it is guaranteed to move.
* No need to memset() before ioctl(), the driver does that anyways.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:21:34 +00:00
Stephan Aßmus
8d267d142a Fixed the "power" operator (^).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:15:13 +00:00
Stephan Aßmus
34ef8378c5 Fixed the problem that icon buttons are too small when creating new ones.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:14:10 +00:00
Stephan Aßmus
f1d4302878 Small style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:13:21 +00:00
Stephan Aßmus
cfb03bacfc There is a bug report about Home/End and Page Up/Down not working in the
DataTranslations list view. This should fix it. MessageReceived() was not
forwarding to the immediate inherited class.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:12:29 +00:00
Axel Dörfler
0a3f410f30 * Added a Desktop::BroadcastToAllWindows() method that sends all ServerWindows
a message.
* The DesktopSettings class is now using that to send the new
  AS_SYSTEM_FONT_CHANGED message to all windows.
* The ServerWindow now propagates font changes to its decorator, causing it
  to update its drawing. That means changing the bold font in the "Fonts"
  preferences application will instantly change all window titles.
* Factored out a _RebuildAndRedrawAfterWindowChange() out of several Desktop
  methods, simplifying some code.
* The DefaultDecorator no longer calls _DoLayout() twice (through SetLook()),
  but instead calls the new _UpdateFont() method now also called by
  FontsChanged(), and SetLook().
* BWindow::GetDecoratorSettings() now also includes "tab frame" BRect with the
  exact footprint of the tab, allowing apps to know the size of the tab to
  position itself accordingly.
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 21:59:05 +00:00
Axel Dörfler
554bfd699c * Use buffered I/O instead of stream directly since you cannot know the
caller does it for you (ShowImage apparently does).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 21:25:07 +00:00
Axel Dörfler
1b21be7091 * BBufferIO did not implement Seek() and Position() correctly; it just passed
it to the stream. This caused Read()/Write() to need two syscalls for nothing
  (this only caused the actual stream to share the same position with the
  BBufferIO, something you just cannot rely on when using buffered I/O).
* Anyway, this reduces the time VirtualBox needs to open some RAW test images
  from over 4 minutes to less than 15 seconds...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 21:23:45 +00:00
Axel Dörfler
5d029ca0bd * Renamed settings file (removed the "pinc" part of it).
* Removed BeOS compatible flag from the subdir.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 21:19:58 +00:00
Jérôme Duval
4eebe02c1d check one more frame as we were detecting ActivityMonitor as an MP3 file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 14:09:02 +00:00
François Revol
4eb5ec0805 Fix typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 00:24:47 +00:00
Rene Gollent
d27b24661d Fix a few minor problems that resulted in the sound column not being drawn until clicked. Also changed CLV to use B_PLAIN_BORDER. This fixes the redraw issues in ticket #2980.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-15 16:38:54 +00:00
François Revol
1c532eedf1 Make the tgz archive offset in floppy image settable. Set it to 270k for now, until zbeos gets some diet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28657 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-15 03:30:00 +00:00
Rene Gollent
e02ed691ca Patch by Adrian Panasiuk: fix broken TRACE macro definitions (ticket #3133). Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-15 02:42:56 +00:00
François Revol
38875083b2 Fix build with old gawk versions (BeOS & Haiku). this version didn't like passing an undefined variable as reference to a function...
Also fixed warning on $.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-14 23:18:50 +00:00
Ingo Weinhold
6730553ae0 * Already set tty::lock() in init_driver(). This makes it always safe to
be used.
* Added tty::ref_count. Each cookie keeps a reference. Only when a
  cookie is freed the reference is surrendered. A tty is considered used
  as long as it is still referenced. This allows to access a tty through
  the cookie, even if it already has been closed.
* Fixed tty_deselect(). It was keeping registered select events when
  called after the cookie has been closed. The referenced select_sync
  structure would become invalid and later attempts to send select
  notifications for the tty could crash. Fixes #3126.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-14 16:29:40 +00:00
Axel Dörfler
0c9593acdc * Minor simplification and clarification.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-14 13:44:25 +00:00
Axel Dörfler
d02835660f * Added a method Desktop::_LastFocusSubsetWindow() which returns the last
window being the focus window that is a subset of the specified window.
* This is now used to bring the window to front belonging to a floating
  or modal window (if on another workspace), ie. Desktop::ActivateWindow()
  should now work with modal and floating windows.
* Fixed typo (in Window.cpp).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-14 13:37:27 +00:00
Axel Dörfler
55ddbd7bca * When a file system reports -1 offsets in its fs_get_file_map() function, this
will now accepted and regarded as sparse file data. FileMap::_Add() also
  correctly joins multiple vecs with that offset together, FileMap::Translate()
  will always report offset -1 even for offsets into that extent.
* read_file_io_vec_pages() (or rather, its backend common_file_io_vec_pages())
  now supports sparse files, and will just clear the memory it should read from
  offset -1 instead of passing a request to the vnode.
* ext2 now correctly reports sparse files. This should close bug #2889, as well
  as #975.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-14 12:06:44 +00:00
Stephan Aßmus
167f43a24c Merged touchpad input_server device into mouse. This gets rid of a lot of
code duplication and will make maintaining it much easier.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-14 10:41:22 +00:00
Axel Dörfler
eaccfb9dd0 * Replaced some "new" with new(std::nothrow) where appropriate in our base
classes (BView, BWindow, BAlert, BButton - BTextView should be part of this,
  too, to make BAlerts work).
* However, it's not that simple, because there is often no way to return an
  error. Most of that code obviously assumes to be able to throw exceptions
  (it's just not communicated to the caller). Maybe we should just start
  documenting exceptions for R1 (and properly use exceptions later on).
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-14 10:23:38 +00:00
Axel Dörfler
d662196ed0 * Removed a superfluous allocation (even without nothrow!), and a superfluous
const_cast.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-14 09:58:18 +00:00
Ingo Weinhold
f8d77bfb1c * The deferred_deleter() kernel daemon dropped out, if the list with
memory to free was empty, but didn't check the list with objects to
  delete. So those were queued until someone used deferred_free().
  Should fix #3128.
* Run the daemon once a second instead of every five seconds, so memory
  is recycled a little quicker.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-14 01:50:13 +00:00
Stephan Aßmus
5c197c7546 * Implemented setting the "click count" correctly in the Synaptics driver.
* I feel the Synaptics driver is now good enough to give it more exposure
  and turned it on again. If it gives you trouble for some reason, you can
  turn it off again in ps2_dev.c, line 105.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-13 23:37:03 +00:00
Stephan Aßmus
9195fe6efe * Don't return B_OK from Start() if opening the device failed. Then Stop()
won't be called, the control thread will remove the device anyways.
* Turned off the debug output I left on accidentally in KeyboardInputDevice.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-13 22:14:40 +00:00
Stephan Aßmus
b419343e89 Do not set fSent to true in SaveAsDraft() already, since it is correctly set
in Send(), which uses SaveAsDraft(). This fixes #1020. Thanks to kaoutsis and
ksmith for their investigation!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-13 20:07:32 +00:00
Oliver Tappe
fa00c3c3ff * renamed libiconv_config.h back to config.h - now that it no longer triggers
building of regex.c

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-13 16:24:33 +00:00
Oliver Tappe
b898cc3709 solved build dependency puzzle in regex.c:
* removed superfluous #include <config.h> which was protected by an #ifdef
  that evaluated to false - so the file never got included, but jam tried
  to locate it and usually failed, unless there happens to be a config.h
  in the current working directory. 
  This fixes a spurious dependency from regex.c to the config.h in 
  src/libs/iconv.h if you invoked jam from there.
* fixed two warnings by always including stdlib.h

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-13 16:23:04 +00:00
Stefano Ceccherini
429f245650 log an error in case the passed buffer is too small. This happens with the acpi_thermal driver and also with the acpi_battery driver by Francesco Piccinno (not yet committed), but it's a design flaw of the api
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-13 15:40:38 +00:00
Jérôme Duval
e35981a931 fix the build and added a dependency on brgphy
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 22:36:48 +00:00
Jérôme Duval
be1f32a73c * removed miidevs.h as it's now generated
* added brgphy.c it seems to be useful for bcm570x


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 22:21:13 +00:00
Jérôme Duval
86c86537bc * generates miidevs.h with the freebsd awk script
* update net/if_media.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 22:08:56 +00:00
Oliver Tappe
7a5a9c48f6 * small cleanup after Jerome has already fixed the build broken by my last
commit - thanks!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 20:49:12 +00:00
Jérôme Duval
cef90ab7ee iconv lib headers are needed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28632 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 20:11:21 +00:00
Oliver Tappe
02f81b0253 switched libtextencoding to use the new standalone libiconv:
* adjusted libtextencoding's Jamfile
* added libiconv.so to image
* added iconv headers to optional package Development (under 3rdparty)
* removed old private version of libiconv from textencoding


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 19:40:03 +00:00
Oliver Tappe
01025e2856 worked standalone libiconv into a working state that is compatible with
the libiconv that was available for R5
* cleaned up iconv.h
* moved public libiconv headers (iconv.h and localcharset.h) into a
  specific folder in headers/libs
* renamed config.h to libiconv_config.h in order to circumvent strange
  problems with regex.c from glibc picking it up
  

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 19:34:35 +00:00
Oliver Tappe
aef5731f38 * bring in relevant parts of libiconv from vendor branch
(config.h, iconv.h and localcharset.h were created by running 'configure'
  on haiku)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 17:34:47 +00:00
Axel Dörfler
114d7934a7 * Added "info" command that prints the information of the fs_info structure.
* Shuffled functions around to separate command functions from their support
  functions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 12:03:58 +00:00
François Revol
fd19697e68 Make use of hack-coff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 02:36:03 +00:00
François Revol
21c478525f Add to the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 00:15:50 +00:00
François Revol
f080e026b9 Merge in all .text.Z* sections back to .text...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-12 00:14:07 +00:00
François Revol
098dbd2216 A little tool to hack COFF image to make them edible by oldworld OF (seems BFD forgets to set some fields...), that was mentionned on some NetBSD mailing lists, let's see if it works...
Taken from ftp://mir1.ovh.net/lv0/ftp.kernel.org/pub/scm/linux/kernel/git/jejb/merge-tree/arch/powerpc/boot/hack-coff.c


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 23:53:59 +00:00
Axel Dörfler
8f1cb8fca2 * Brought the fs_shell block_cache implementation up to date, and incorporate
the fixes applied to the kernel version of it (most notably a correctly
  working block_cache_discard(), and cache_detach_sub_transaction()).
  Also switched to the new notification functions, even though it still works
  synchronously in the fs_shell.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 22:19:46 +00:00
Axel Dörfler
e6e76e14dd * elf_find_symbol() now checks if the hashtable section is greater than 0.
* Whatever is the cause of #2733, this should at least not make it crash.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 21:24:09 +00:00
Jérôme Duval
c6f8aa29f2 * better handling of dropped files
* dragging now uses the mime type icon


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 19:24:33 +00:00
François Revol
11a47de374 Support creating a COFF bootloader from the ELF one, at least for ppc.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28611 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 19:08:51 +00:00
Stefano Ceccherini
176ecb2f37 use '=""' to initialize the empty strings
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 15:33:42 +00:00
Stefano Ceccherini
8f21745055 fix dos endlines
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 15:28:46 +00:00
Stefano Ceccherini
cf585ce00f fix typo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 14:17:09 +00:00
Jérôme Duval
d8d2506553 filled glue holes to have broadcom570x compiles, reusing part of patches posted on bug #1590. Obviously untested.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 13:31:28 +00:00
Jérôme Duval
1dc9113089 added m_cljget() with support for jumbo9 size: it should help with broadcom570x
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 12:26:07 +00:00
Jérôme Duval
11d2eeb7eb updated bge to current
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 12:20:21 +00:00
Axel Dörfler
59795d428e * Applied patch by Adrian: compat_read() was broken as it only considered the
first chunk of a possibly multi-buffer mbuf. This fixes #2840, thanks a lot!
* Fixed warning in _bus_dmamap_load_buffer().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 09:10:45 +00:00
Jérôme Duval
08de01cdab Added Broadcom BCM440x from FreeBSD (bfe). Compiles and even works.
I just added a check in bmtphy_probe() as ENXIO is negative on Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 23:03:18 +00:00
Ryan Leavengood
ade73e8c85 Make the BObjectList member for font families a non-pointer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 17:07:47 +00:00
Axel Dörfler
73991edfcd * Removed marge artifacts as found by kaliber in ticket #3114, thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 16:01:37 +00:00
Rene Gollent
dfdca9b67f Remove.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 13:47:58 +00:00
Rene Gollent
eb40d3eb59 Restore accidentally removed comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 13:45:21 +00:00
Stephan Aßmus
cc44241143 Prepend the mouse name with "Extended " if the device path contains "intelli". This makes
sure that you can have an old style mouse without scroll wheel and one with attached at the
same time. For example, when I hot-plug my PS/2 mouse with wheel, the IBM trackpoint will
otherwise already use up the "PS/2 Mouse 1" name.

Unfortunately, hot-plugging the PS/2 mouse on my T60 docking station still does not work
quite right. The PS/2 driver detects everything correctly, the node monitoring works and I end
up with the correct device threads in the input_server. (The notebook is automatically removing
the touchpad and trackpoint devices in this event, which cannot be turned off in the BIOS.)
However, the mouse does not move. In the syslog, I see one message
"ps2: strange mouse data, x/y overflow, trying resync" after the the output from the add-on
manager in the input_server that it has added the new device. When I restart the input_server,
it works fine, even though the same devices are detected and polling threads are running.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 12:33:16 +00:00
Stephan Aßmus
5125eae25d * Cleanup and refactoring, made several Mouse-/Keyboard-/TouchpadDevice
functions private and moved them accordingly in the file.
* I forgot to initialize the BObjectList to own the items in
  TouchpadInputDevice.
* Changed the methods that read and apply settings in all three addons to be
  executed from the control threads only, which fixes race conditions.
* The success of opening a device is no longer checked in the Start() method
  of the *Devices. Instead, the control thread checks the device before it
  enters the polling loop and cleans up if there was an error. This fixes
  non-running devices in the input_server because the PS/2 driver publishes
  devices which is has not checked yet for other reasons. It is important,
  however, to open() the devices in the Start() hook and not the control
  thread, otherwise there are unwanted race conditions in case node monitoring
  events are received more than once for the same device. That's the case
  for some reason on one of my computers for the AT 0 keyboard.

TODO:
* Combine the Touchpad and Mouse device addon into one, it's almost the
  same code except the Touchpad knows more settings and one more control
  message.
* Refactor a common base class for Keyboard and Mouse device addon.
* Fix the mouse speed/acceleration. If the speed is lowered from the default
  in the preflet, the mouse becomes almost unusable. To fix this, the same
  trick should be used as I used in the touchpad kernel driver, which is to
  sum up previous mouse moved fractional offsets.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 11:16:02 +00:00
Rene Gollent
577fe1f9a1 Implement missing B_CREATE_PROPERTY.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 05:52:43 +00:00
Rene Gollent
433cc8bc0f Resolved some more misunderstandings in how this is supposed to work. Ticket #3087 should finally be fixed now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 04:54:47 +00:00
François Revol
3b148e533f This gets the bootloader further on, but it still breaks... OpenHackware seems worse than Pegasos OF :^)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 02:03:58 +00:00
Ryan Leavengood
8a33d61123 Use BObjectList instead of BList.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 22:50:26 +00:00
Rene Gollent
f871c6f737 Reset the drawing state to that of the client view after we finish drawing the workspaces replicant. This fixes artifacts like fonts occasionally appearing tiny when selecting/deselecting items on the Desktop if the Workspaces replicant was also embedded.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 22:04:51 +00:00
Axel Dörfler
186c8af1e4 * The large page mapper did not invalidate the TLBs of the other CPUs for the
generic page mapping mechanism. This should fix #2902 (will test in a minute).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 21:49:33 +00:00
Ingo Weinhold
2374c3d59e * Use a temporary buffer to create the output for function invocation.
* Replaced debug_printf() invocations by a macro, which is set to
  ktrace_printf() by default.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 18:21:31 +00:00
Rene Gollent
c02466e6ee Alter the order in which we updated our cached items. This fixes things like mmu_man's Themes app which has somewhat unusual list items that embed BViews.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 18:20:01 +00:00
Ingo Weinhold
aa22a3cfda dlclose() also set the static error variable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 18:19:46 +00:00
Ingo Weinhold
df30098d91 unload_library() invoked from dlclose() might not have deleted images
correctly and it returned an error on success.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 18:18:51 +00:00
Jérôme Duval
39dbc363ef clearer error messages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 16:37:19 +00:00
Jérôme Duval
aea6792976 Scrolling up/down above Volume Control in deskbar's shelf now changes volume (bug #2323).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 16:13:41 +00:00
Jérôme Duval
019ed09bee * cancel rendering if selection changed
* update track slider borders if selection changed
* added drag'n drop from ScopeView


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 14:37:18 +00:00
Stephan Aßmus
59251feadc More realistic file size restriction. UINT32_MAX is not defined on some
target platforms, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 11:08:19 +00:00
Rene Gollent
00c3e84a23 When previously fixing shelf scripting for BSnow, I accidentally broke nested specifiers (i.e. Get ID of Replicant).
This should fix ticket #3087.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 22:59:22 +00:00
Jérôme Duval
dbbc34b6b2 resets fPlayFile once deleted
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 22:41:20 +00:00
Ingo Weinhold
0c85bd054e * Reworked undefined symbol resolution in the runtime loader. Got rid of
the per-root-image breadth-first sorted image array. Instead we have a
  per-image hook function to resolve the symbols. The default function
  uses the sLoadedImages list directly, which is breadth-first sorted
  anyway. There's also a BeOS function for old-style symbol resolution
  and one for add-ons, which lacks a proper implementation yet (just
  uses old-style ATM).
* Made the dl*() functions POSIX compliant:
  - dlopen() does no longer use load_add_on(), but loads the object as a
    library. It also properly supports a NULL name, now -- the previous
    "_APP_" work-around did only work, if this soname was set on the
    program (unlikely for programs using this API).
  - Implemented RTLD_{GLOBAL,LOCAL}.
  - dlsym() looks up symbols properly now, i.e. not just in the given
    image, but breadth-first for an actual image or in load order for
    the global scope. It also supports the not-quite POSIX RTLD_DEFAULT
    and RTLD_NEXT extensions. Our RTLD_NEXT finds more symbols than in
    Linux (also in later dlopen()ed libraries), but that should be fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 22:40:56 +00:00
Ingo Weinhold
e10b4cace5 Added __arch_get_caller(). Correctly implemented for x86 only.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 22:09:28 +00:00
Ingo Weinhold
e30bbad2c2 Added tests for RTLD_NEXT.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 21:58:06 +00:00
Jérôme Duval
6cd5f90f73 StyledEdit now alerts with "unsupported format" instead of "Bad argument type passed to function" (bug #3071)
OpenFile() now returns early when the format is unsupported (don't add the document to recent documents, don't allow to save the document) (bug #3072)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 15:58:06 +00:00
Stephan Aßmus
52de6dce94 Moved the gradient_type and color_step structs into the BGradient
class/namespace. Renamed the B_GRADIENT_* types to TYPE_* as the context
is already given.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 14:56:56 +00:00
Stephan Aßmus
3bd8c2318f * Fixed a warning.
* fStyleMap could be deleted more than once in certain situations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 13:22:33 +00:00
Stephan Aßmus
3d198cd3ae Do no export unsupported accelerant hooks. Hopefully fixes #3088.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 13:15:02 +00:00
Jérôme Duval
8c123e120d no need for this tool
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 11:52:00 +00:00
Stephan Aßmus
8b62d2f0e5 That the core system code of Haiku is distributed under the terms of the MIT
license was nowhere mentioned. I added an explaination to the copyrights section
and also mentioned that clicking a license name will open the respective
license for reading.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 10:31:52 +00:00
Ingo Weinhold
67ef7f5678 Added a small test suite for the runtime loader. The tests are designed
to succeed on Linux. FreeBSD fails some tests since it seems to have a
different load order (depth-first instead of breadth-first). Haiku fails
a lot of tests due to its POSIX non-compliant dlopen().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 02:04:53 +00:00
Ryan Leavengood
59a6355098 Adding missing header, thanks for fixing the build Axel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-07 20:39:18 +00:00
Axel Dörfler
9a2cfc4ab1 * BaseDevice::InitDevice() and UninitDevice() must not be called with the devfs
lock held - that was a relict of the past.
* This fixes bug #2535.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-07 13:23:24 +00:00
Axel Dörfler
d4b5a9b14e * The kernel daemon now uses a recursive lock instead of a mutex. This fixes
bug #3082.
* Also, it now allows to remove daemons in their hook function.
* Added a "daemons" KDL command that dumps all registered kernel daemons, and
  resource resizers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-07 12:22:05 +00:00
Axel Dörfler
c73be1e843 * When switching to a workspace a window is on in ActivateWindow(), only
consider the workspaces in the configured count.
* If the window is not on the current workspace after the workspace check,
  always move it to the current instead. This lets windows on workspaces
  outside of the ones currently configured show up on the current workspace
  as if they had the B_NOT_ANCHORED_ON_ACTIVATE flag set.
* This fixes bug #3003.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-07 11:36:22 +00:00
Ryan Leavengood
8726f754cc Adding the jpegtran command and needed source files for part of Bug #1099.
These were copied from the same code that originally was used for libjpeg
(jpegsrc.v6b.tar.gz) in the JPEGTranslator with a few small changes.

This will be used to implement JPEG lossless transformations in ShowImage in
the way suggested by Michael Lotz in the email linked from the bug.

Next up is changes to ShowImage.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-07 03:53:18 +00:00
Ryan Leavengood
2b0feeea60 Removed now unused constants as suggested by Marcus. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-07 00:11:57 +00:00
François Revol
da7dce9b35 This seems to fix building libroot on ppc... the *l versions aren't used.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 23:24:41 +00:00
Stephan Aßmus
bf5a91e2ff Added Adrian Panasiuk for his very good bug reporting work and helpful
patches. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 22:52:50 +00:00
Axel Dörfler
ca8c99dd8f * Renamed broadcom_bcm570x driver to broadcom570x.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 22:51:31 +00:00
Stephan Aßmus
f7c8477593 * Don't invalidate anything in offscreen windows. NetPositive is doing
slightly strange redrawing, including scrolling the offscreen view
  that it uses in "flicker free" mode (which is the default). Invalidation
  does not work in offscreen windows, since the client thread is not running
  and certainly won't redraw anything. But that will leave a non-drawable
  region on the app_server side of things. Simply don't invalidate in
  this case. From what I have seen, redrawing in NetPositive seems to
  work fine now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 19:19:54 +00:00
Stephan Aßmus
e98ee1410a * big cleanup of the tracing support, output useful information
for most messages, use debug_printf(), cleanup line breaks
* check return code of last link method in a lot more places
* changed some printf() and fprintf() into debug_printf()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 19:16:56 +00:00
Axel Dörfler
5d8428e023 * Changed to use Volume::InodeSize() over sizeof(ext2_inode) as described
in ticket #2707. Thanks Adrian!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 15:21:16 +00:00
Rene Gollent
a418aa5f4f Fix function spacing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 13:56:11 +00:00
Axel Dörfler
33309cb5fc * BWindowScreen::_InitClone() was broken, it called the "get clone info" method
on uninitialized accelerant, but that's what AS_GET_DRIVER_PATH is for.
* This should fix #2847.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 12:44:26 +00:00
Stephan Aßmus
3005b1d6f5 Always retrieve the "would be mount point" of the partition
in AutoMounter::InitialMountVisitor::Visit(), otherwise restoring
mount options, like read-only mounting, would never work. This
kind of mixes the options of the mount settings, since it partially
remembers the settings even if the option is not "only previously
mounted disks", but it should not hurt anyways. As a side effect,
this should also fix the mount notification sent to Tracker, as
the path should only have been correct for the "mount previous disks"
setting.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 11:50:38 +00:00
Stephan Aßmus
b545073f08 * Moved the global BPrivate::WidthBuffer from BTextView into BPrivate as
gWidthBuffer.
* Tracker PoseView now uses BPrivate::gWidthBuffer instead of it's own
  instance.
* TextView.h and PoseView.h are now a little cleaner.
* InterfaceDefs.cpp now deletes gWidthBuffer in _fini_interface_kit_().
* Added binary compatibility support for NetPositive in WidthBuffer.h and .cpp.
  Obviously it kind of defeats the purpose of having WidthBuffer neatly tucked
  away in the BPrivate namespace, but Haiku should run NetPositive, I guess.
  Fixes #2879.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 11:31:40 +00:00
Axel Dörfler
5074333ded * Updating glob() actually broke it, since Haiku does have broken mbrtowc(),
and wcrtomb() functions. I worked around the issue, and added a build
  warning so that we don't forget to change it back once we have working
  versions of those.
* This lets apps like "ftp", and "sftp" work again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 11:26:01 +00:00
Stephan Aßmus
ef367a8a81 Small coding style fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 11:18:26 +00:00
Stephan Aßmus
53bc794334 Free buffer in error case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 11:18:01 +00:00
Rene Gollent
01406f374d Rework this a bit to handle ctrl+clicking and ctrl+alt+clicking for right and middle mouse button.
Fixes ticket #3061.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 03:07:38 +00:00
Jérôme Duval
bda802b259 now uses DIRECT_BUFFER_INFO_AREA_SIZE as the direct_buffer_info area size
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 23:44:14 +00:00
Jérôme Duval
03d1f00c86 now uses DIRECT_BUFFER_INFO_AREA_SIZE as the direct_buffer_info area size
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 23:40:29 +00:00
Karsten Heimrich
ff693eba44 * fix wrong cast in Minute()
* fix _SetTime(), was using the wrong * operator, resulting in
  an overflow at some point that lead to the mentioned jumping

 fixes 2878 and 3057



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 23:23:02 +00:00
Axel Dörfler
d6db242bbd Brought ToDo file more or less up to date again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 21:37:28 +00:00
Axel Dörfler
2c1e463c7e * Removed B_{MIN|MAX}_PRIORITY from OS.h - they were never really intended
as public defines. They are now called THREAD_{MIN|MAX}_SET_PRIORITY to
  better reflect what they are for. Minimum priority is now 1, ie. you no
  longer can set another thread to the idle priority. This fixes part of
  ticket #2959.
* set_thread_priority() will no longer allow to change the priority of the
  idle thread to something else. This fixes the rest of ticket #2959.
* Automatic whitespace cleanup in OS.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 18:11:58 +00:00
Stephan Aßmus
de36f71531 More or less applied patch by anxiety that implements showing a file
icon in the MediaPlayer Info window. I changed it a bit, so that the
icon retrieval only happens at the file change notification (quite
important, since the info window receives playback position notifications).
I also changed it to take the icon from the file first, if there is one.
Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 16:46:59 +00:00
Stephan Aßmus
19b75ed8a8 Small cleanup. Use BitmapFlags() also in the other condition (don't
hardcode overlay color space).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 16:10:59 +00:00
Axel Dörfler
897a2e2113 * The block allocator now uses block_cache_discard() to make sure the file
and the block cache don't interfere when working on the same blocks.
* This has fixed all kinds of file corruptions I could reproduce before,
  therefore likely also bug #3010.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 16:09:47 +00:00
Axel Dörfler
fbc2cd83dc * wait_for_notifications() must make sure that the order of the notifications
in the cache is the same as in the condition variable. It now uses the
  low-contention sCachesLock to accomplish this.
* Also added an ASSERT to make sure the notification is no longer part of the
  list at this point.
* Improved KDL command output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 15:22:58 +00:00
Axel Dörfler
7e621f16d0 * Use parse_expression() for argument parsing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 14:07:33 +00:00
Axel Dörfler
a26045b7a6 * cache_detach_sub_transaction(), and cache_abort_sub_transaction() now support
discarded blocks correctly as well.
* cache_detach_sub_transaction() left cached_block::original_data unchanged even
  if the parent data was to become current (in case the sub transaction didn't
  change the block yet). This could cause outdated blocks to be written back.
* cache_detach_sub_transaction() also set cached_block::previous_transaction
  for all blocks, not just the ones with a previous transaction. This could
  cause blocks to be written twice for no reason.
* cache_start_sub_transaction() did not change the num_blocks count for
  discarded blocks.
* block_cache_discard() now panics if the block was already changed in the
  current transaction.
* Improved test application, added more tests, revealing the above bugs in
  cache_detach_sub_transaction().
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 13:52:34 +00:00
Axel Dörfler
2ecc2162bb * Now also sets the mutex::holder field (only present when KDEBUG is defind),
to make ASSERT_LOCKED_MUTEX() work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 11:54:09 +00:00
Axel Dörfler
ddd20af422 * Fixed a potential race condition: when wait_for_notifications() is called
from the block notifier, the cache could be deleted before we have the chance
  to lock it. We now lock the sCachesLock, and see if this cache is still valid.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 11:16:04 +00:00
Axel Dörfler
11ab7172d9 * Make static initializers sort of work in the test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 11:05:02 +00:00
Ryan Leavengood
02c774cbd2 Bug #1571: I think diver is right, the Info tab is pretty useless on the
mixer's controls, so I am removing it.

If someone disagrees, this code can be added back easily.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 23:47:54 +00:00