Commit Graph

27384 Commits

Author SHA1 Message Date
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
Rene Gollent c068350a89 Temporarily symlink m4 and perl to their new locations until the other dev packages are updated. This unbreaks bison and a few other things.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 04:22:56 +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
Axel Dörfler 96e19c19fc * The first functions now handle the "discard" flag correctly (namely
cache_end_transaction(), and cache_start_sub_transaction()).
* Further work on the test application, it's now actually usable, first test
  passes.
* dump_block() did erroneously print 'B' for the dirty flag; now both dirty and
  discard have the 'D' (3rd and 5th column).
* block_cache::LowMemoryHandler() is now private (and got an underscore prefix).
* Minor cleanup, shuffled some methods around.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 22:40:11 +00:00
Jérôme Duval 9467d1448c fix a style violation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 21:52:57 +00:00
Stephan Aßmus 8443d21cf8 Included "Mike's Arbitrary Precision Math Library" in DeskCalc (BSD style
license) and rebased the ExpressionParser from double on the MAPM data type.
Currently, the binary operators are not supported anymore, but the imprecise
calculations were getting on my nerves. I think a lot more neat functions
could now be supported, but I have not looked into it further. I also didn't
dare look closer at the C code of the library, but it seems to be well
tested. It's portable by all means, I guess even if the target platform has
8.3 char file names to hold the code... Luckily, the library inclused a C++
wrapper class for the data type (MAPM) which makes it fairly comfortable to
use and hides the ugly C stuff and messy memory management.

The result seems to be quite nice so far. Previously, I couldn't even calculate
my finances without eventually getting some rounding errors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 20:47:41 +00:00
Jérôme Duval 07db0c6fd0 remove the length limit control, it simplifies the UI.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 20:36:57 +00:00
Jérôme Duval 94f41556bf we need to allocate more than sizeof(direct_buffer_info), we use B_PAGE_SIZE
this should fix bug #3001 hopefully


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 20:17:02 +00:00
Jérôme Duval d2184e65c1 * whitespace cleanup
* implemented the disabled look and color ramping


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 19:08:26 +00:00
Axel Dörfler 167460c123 * Brought libkernelland_emu.so up-to-date again.
* Added Slab stubs (from tcp_shell).
* Added (yet untested) support for anonymous condition variables.
* Added low resource manager functions.
* Allows including thread.h now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 16:46:08 +00:00
Stefano Ceccherini 7f1f15f775 "char string[9]; string[9] = 0;" -> not nice. Enabled getting the device hid again, as it works correctly now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 16:27:49 +00:00
Axel Dörfler 77817877ce * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 16:05:38 +00:00
Axel Dörfler 21b2687fab * No need to keep Michael's old VM stuff around.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 15:32:02 +00:00
Stephan Aßmus ca89b8ff59 * The app_server implementation of BView::GetClippingRegion() was using the
wrong check to see if the view was currently visible. This fixes the problem
  that tool tips would popup for windows that are located on other workspaces.
* Removed commented out code that is no longer needed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 15:27:56 +00:00
Axel Dörfler f69f65ec96 * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 15:02:09 +00:00
Axel Dörfler 5b812019b4 * Added function block_cache_discard() that flushes blocks from the block cache,
discarding their changes. This functionality currently only works correctly
  when no transactions are used.
* Started test application for the block cache, doesn't do anything yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 14:49:33 +00:00
Stephan Aßmus 5ae0bbaad0 Added test for BWindow::FindView(BPoint).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 14:47:18 +00:00
Stephan Aßmus a5a4ec57c5 Fixed two more problems with BWindow::FindView(BPoint):
* The function is not supposed to return hidden views.
* After iterating over the child views, the "view" variable was clobbered,
  so it didn't work to return the current view if none of it's child views
  were hit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 14:45:58 +00:00
Stefano Ceccherini 6427c2e3fc the last read() call would never return. Fixed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 14:40:30 +00:00
Stefano Ceccherini 7730c1fb0a this situation should never occur anymore, and anyway, the language used wasn't really safe....
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 14:27:21 +00:00
Stefano Ceccherini d0406f388a found out the problem with the endless loop, or at least, worked around it: get_device_hid() was screwing the tree enumeration in some way, so I commented it out for the time being. Some snprintf -> strlcpy changes, reduced debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 14:22:55 +00:00
Stefano Ceccherini 3ece3174bf more work on the acpi dumper: I had to limit the amount of returned data to 200 iterations, because it seems that the acpi dumping method enters an endless loop (after the device _AMR it goes back to the parent). There are still some issues, but it's still better than now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 12:53:36 +00:00
Stephan Aßmus c1513476b3 SetWordWrap() did not work when the BTextView was not (yet) attached to a
window this fixes the tool tip size/layout in apps that use BubbleHelper
(Beam, WonderBrush, ...). Thanks to Rene and Stefano for sending me a test
application.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 10:54:34 +00:00
Ryan Leavengood c0e0210a03 Fixing a typo from my last commit, thanks Urias.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 07:16:52 +00:00
Ryan Leavengood c095606e75 Fixed #3043, which was listed as a ShowImage bug but really was a bug in
several translators which used the incorrect MIME type for the base Be Bitmap
Format. Please when adding translators use image/x-be-bitmap, not just
x-be-bitmap. Though I suppose the if statement in ShowImage could be changed to
only look for x-be-bitmap at the end of the string when filtering, I think this
is the proper fix.

While I was editing the translators I also made the naming more consistant by
adding the translator name in parenthesis after Be Bitmap Format for those that
did not have it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 06:10:14 +00:00
Ingo Weinhold 01db1fe902 * Removed GNU M4 sources from the tree.
* Added GNU M4 1.4.12 package to the Development optional package.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 23:33:15 +00:00
Stephan Aßmus 1e1d598f0f Updated several optional packages:
* Firefox -> 2.0.0.17, includes new HVIF icon
* VLC -> renamed VLC to "VLC media player" which is what the official name is
* Pe -> updated to most recent version (called it RC2) which includes a few
  fixes and new HVIF icons for most of it's supported document types. Renamed
  the application folder to "Pe" and removed the "Drag lpe here to install"
  link. Renamed the application itself to "Pe".

Hope these changes are alright with everyone.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 22:26:37 +00:00
Jérôme Duval 0827d6c78f don't accept clicks when disabled
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 20:06:19 +00:00
Stephan Aßmus 40fa49e7b8 Oversight: When FFM is turned off, don't focus the window under the mouse
on mouse up if there was a focus-locked window.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 19:57:05 +00:00
Rudolf Cornelissen 2644e08b78 (re)enabled settings file just like it ac97, modified es1370_play_inth to be same as ac97 auich to remove stuttering sound.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 19:36:31 +00:00
Stephan Aßmus 21b40edd75 Implemented respecting B_LOCK_WINDOW_FOCUS that a view can set using
SetMouseEventMask() from within it's mouse hooks. Among other things,
scroll bars won't stop scrolling in FFM mode now if you accidentally
leave the window with the mouse, something which is very likely.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 19:34:13 +00:00
Stephan Aßmus 6198dc0e17 To allow testing the ViewHWInterface (used in the test environment) with
both double buffering and single buffering, Invalidate() needs to be
virtual and ViewHWInterface needs to decide where to invalidate it's host
window.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 19:31:26 +00:00
Ingo Weinhold 3cbd4a09f7 system() is supposed to return a waitpid() style exit status value.
wait_for_thread() doesn't provide that; use waitpid() instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 16:35:09 +00:00
Axel Dörfler 44e4ddfdc1 * "checkfs" would run into a panic (transaction still open) when trying to
write back the bitmap.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 13:39:33 +00:00
Axel Dörfler 624d93479a * Improved output of "bfs" command.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 13:37:53 +00:00
Ingo Weinhold 2600324b57 The beginnings of an ltrace command. Currently merely a proof of concept
for the runtime loader add-on interface. There's a small library
(libltrace_stub.so) that when preloaded reroutes all library calls
through a stub that prints the function name and some of its arguments
to the debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 13:36:57 +00:00
Ingo Weinhold 10b4b5d175 * Added an "add-on" interface for the runtime loader. Pre-loaded images
can export a structure containing callback hooks invoked by the
  runtime loader when certain image events occur (image loaded,
  relocated, initialized, etc.).
* Also added a mechanism to patch image symbols. For an image callback
  functions can be installed that patch symbols exported or imported by
  the image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 13:27:14 +00:00
Ingo Weinhold 56eb43e3ca * Made kernel_cpp.h usable in the runtime loader.
* Added new(mynothrow) operators which avoid clashes when also linking
  against libgcc.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 13:15:12 +00:00
Axel Dörfler bfc607d44f * "devfs_node" now also dumps the partition info, if any.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 11:02:02 +00:00
François Revol ac3a539c97 Fix comment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 22:00:43 +00:00
Stephan Aßmus c470027d27 Tracked down a busy loop that I could reproduce pretty reliably with
tool tips in WonderBrush. The reason was that the text rect is getting
smaller and smaller each time the tool tip is shown (even though there
is only one word), and the line break moves one char towards the beginning
each time. After four times, the busy loop would kick in reliably. I cannot
really say that I understand the code, though. But that's the spot anyways.
Stefano, could you have a look?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 21:40:44 +00:00
Stephan Aßmus f9f1555066 These values feel slightly more like running without Synaptics driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 20:08:27 +00:00
Stephan Aßmus 8f924a8469 Forgot to disable debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 19:46:54 +00:00
Stephan Aßmus eab5a0f231 Experimented with the way the absolute touchpad coordinates are translated into
relative mouse movements. Removed the "history" and replaced it with a method
to accumulate the deltas. Very small deltas are somewhat suppressed, but still
accumulate. Overall, this improves the touchpad sensitivity for small movements
without introducing unwanted jitter. This also keeps the direction of slightly
"non-straight" movements better. I also changed the scale somewhat so that
the acceleration does not feel too little anymore.

These are the remaining problems I have:
* Tap-clicks are sometimes not recognized
* releasing the finger from the pad (which is pressure sensitive) sometimes
  still injects unwanted mouse movement, which may be possible to be supressed
  when looking at the pressure change and recognizing the release.
* scrolling has changed a bit due to my changes and feels a bit too sensitive
  now

Please check it out if you like (ps2_dev.c:105) and tell me what you think.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 19:43:08 +00:00
Rene Gollent 9db8c2f7bd Add BeBook to optional packages for pre-alpha image.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 18:19:27 +00:00
Jérôme Duval 554ff457ee * imported m_collapse()
* added an expected header dependency in rman.h 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 17:45:22 +00:00
Rudolf Cornelissen 9fb04b9066 added a few registerdefines for codec, added unmute mixer output. ES1370, SB PCI128 now produces sound on haiku over here.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 16:29:20 +00:00
Stephan Aßmus bff51d943a Recursive scanning of already existing touchpad devices in the devfs never
worked, because the root scanning directory was declared without "/dev/".
This makes restarting the input_server work with the touchpad driver.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 13:15:47 +00:00