Commit Graph

30302 Commits

Author SHA1 Message Date
Axel Dörfler
6ef35ef770 * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 17:23:59 +00:00
Axel Dörfler
d219b1fcfc * Let AddMimeMenu() check if the MIME type is valid, otherwise BMimeType::Type()
could return NULL. This fixes the crashing part of #4037.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 16:46:05 +00:00
Ingo Weinhold
64ccb6b58a Synced the different definitions of BUFSIZ with the internal one. What a mess...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 15:28:33 +00:00
Axel Dörfler
6def1a637b * In order to resolve mount points, fix_dirents() retrieved all vnodes from
disk; but since mount points are always kept in memory, it makes much more
  sense to use lookup_vnode() instead.
* As a side effect, directory listings are no longer aborted when they contain
  broken files that could not be retrieved anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 15:07:27 +00:00
Axel Dörfler
b5a51254dc * Don't use Inode::Remove() when the inode could not be opened, because it
actually relies on that.
* Instead, _RemoveInvalidNode() now manipulates the parent tree manually.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 14:29:05 +00:00
Axel Dörfler
e66295e5e5 * The inode may actually not be known when calling _RemoveInvalidNode(), this
could cause a KDL.
* Added a "force" argument to Inode::Remove() which should make it remove inodes
  more reliably for checkfs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 14:01:27 +00:00
Stephan Aßmus
d29e4565b7 When the gradient finished ealier than the to be filled area,
the remaining part with the solid color of the last stop was
filled with red and blue swapped. In the current GUI, it would
only be visible with BTabViews. I am pretty sure there was a
bug report about it (by julun if memory serves), but I cannot
find it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:53:52 +00:00
Axel Dörfler
84ce48c248 * checkfs should now also remove unaccessible files. Not yet tested.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:45:12 +00:00
Axel Dörfler
71e439ea3e * Moved most utility functions from bfs.h to Utility.h.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:44:31 +00:00
Joachim Seemer
0043d232d3 * Put "number_overlay" as PNG and wonderbrush file into data/artwork/userguide.
It's supposed to be used when adding a legend to a screenshot. I think we
  should try to avoid using it too much.
  If anyone wants to improve it, you're very welcome. Right now it's only used
  in queries-images/basic-query.png and apps-images/i-o-m-overview.png.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:32:55 +00:00
Axel Dörfler
450a9b8e7e * AllocateBlocks() now guarantees that the returned allocation size is a
multiple of "minimum".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:30:05 +00:00
Axel Dörfler
a4f9af2a40 Fixed a number of issues with double indirect blocks:
* The "index" was not correctly updated when the next indirect block was about
  to be used, which lead the code to write the runs to a wrong block, causing
  slight corruption, as well as the known invalid block_run(0,0,0) problem.
* blocksRequested is now always a multiple of "minimum" as well.
* When the file size grew beyond the max_double_indirect_range, the minimum was
  not adjusted, leading to too many extra allocations that had to be reverted
  afterwards again.
* If an allocation was not a multiple of NUM_ARRAY_BLOCKS, but also smaller than
  this limit (could happen due to the bug above), an endless loop could be
  entered. This was actually a regression introduced in r974.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:28:43 +00:00
Axel Dörfler
f1d9ec9840 * Always drop into the debugger if KDEBUG is used when BFS detects a corruption
that causes it switch to read-only mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:15:26 +00:00
Jérôme Duval
6eec9d2552 * avoids some divisions by zero
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 12:35:05 +00:00
Axel Dörfler
813d9285bf * Fixed a number of problems of the "block_cache_data" command.
* Also added stack traces to each BlockData entry.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 12:18:11 +00:00
Axel Dörfler
27a88ee6b2 * Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 12:13:20 +00:00
Axel Dörfler
2a26c91105 * Fixed typo in usage text.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 11:56:02 +00:00
Jérôme Duval
ad0c65ea97 * now supports several audio formats for VUView and ScopeView
* cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 11:54:38 +00:00
Axel Dörfler
63c07622f6 * Some style cleanups, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 11:25:14 +00:00
Stefano Ceccherini
40265acfb3 Fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 08:04:13 +00:00
Stefano Ceccherini
ab53bb2086 Export get_bytes_per_row() from InterfacePrivate.h, and use it in ServerBitmap
in place of the own rolled implementation. Comment typo fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 07:59:16 +00:00
Stephan Aßmus
329189542a Patch by idefix: Allow spaces in volume names. Thanks a lot!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 21:15:27 +00:00
Michael Lotz
07ff9929e5 Add missing newline in debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 20:03:21 +00:00
Stephan Aßmus
1915b0384c Added the GSoC and HCD students to the credits, who have patches already
in the tree.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 19:10:30 +00:00
Stephan Aßmus
ce3c3c9937 * Added Jeroen Oortwijn to list of contributers, I've commited a couple of patches
already...
* Moved Michele Frau to correctly sorted spot.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 16:56:34 +00:00
Stephan Aßmus
64a8eb7a02 Patch by Jeroen Oortwijn: Remove additional space from error message.
Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 16:51:27 +00:00
Stephan Aßmus
821d6af079 Patch by Jeroen Oortwijn: Use the validated name instead of the original one.
Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31750 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 16:50:17 +00:00
Axel Dörfler
2990bea766 * The bitmap size was computed incorrectly, and thus, StopChecking() could
access the block bitmap out of bounds (which usually resulted in a crash).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 16:46:57 +00:00
Rudolf Cornelissen
3b5534fdd9 added 1366x768 mode support, modeline fetched and tested on packard bell viseo 190W monitor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 11:50:28 +00:00
Rene Gollent
bd4b1ce4f7 Clear selection on file change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 00:42:38 +00:00
Ingo Weinhold
c31af1b060 Turned the view into a tree view. Still only the top level is shown, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 00:22:41 +00:00
Ingo Weinhold
20e4297b61 Added TreeTablePath::RemoveLastComponent().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 00:21:14 +00:00
Ingo Weinhold
d8c41ef38f Added support for containing BReferenceables of arbitrary actual type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 00:20:53 +00:00
Ingo Weinhold
6feb776265 Alias Referenceable as BReferenceable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 00:20:06 +00:00
Rene Gollent
34c6797ed4 Remove no longer needed hack.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 20:53:41 +00:00
Stefano Ceccherini
e0826ec8d8 fixed gcc 4 warning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 18:34:41 +00:00
Stefano Ceccherini
ba823bcb17 fBuffer was allocated with new and freed with "free()". Fixedx
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 18:34:05 +00:00
Stephan Aßmus
1b98cebd7a Turn off the optimization to skip calling Flush() when an invalidate request
was already sent by this or another view. This was already the case for the
BRect version of Invalidate(), but was forgotten in the BRegion version. I
just had an idea what the problem could be, but I think it's bogus. Needs some
investigation. Should fix ticket #4119 for the time being.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 15:44:15 +00:00
Stephan Aßmus
a5339f65c3 Fix a GCC4 warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 15:40:43 +00:00
Axel Dörfler
6102f0788a * file_cache_set_size() now clears the last page of its cache if needed. This
fixes #4106 for good.
* Also removed a bit of dead code in that function.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 09:19:24 +00:00
Stephan Aßmus
0d8ab1c4c1 When the display aspect values were large enough, the calculations in
MainWin::_GetUnscaledVideoSize() would result in 0 width/height. Fixes ticket
#4114.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 08:09:41 +00:00
Ingo Weinhold
2bf55b39a5 * Made FunctionID abstract. There are now two implementing subclasses,
SourceFunctionID (where we know the souce location of the function) and
  ImageFunctionID (where we don't know the source location). Made the
  classes archivable.
* Added support to find functions by ID.
* Improved user breakpoint handling. We can now "install" a breakpoint before we
  even know the function instances in which to install it. Whenever image debug
  information become available, breakpoints are installed in the concerned
  function instances of the respective image.
* Always trigger loading image debug info as soon as we become aware of an
  image.
* Implemented a settings management mechanism. ATM only the breakpoint
  locations for debugged teams are persisted. This seriously improves the
  debugging fun, though. :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 02:35:30 +00:00
Rene Gollent
79a9dc4460 Implement missing horizontal drag scrolling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 02:21:20 +00:00
Ingo Weinhold
2d350c1010 Utility functionality for archiving/unarchiving.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 02:21:06 +00:00
Rene Gollent
a63980d9b7 Inlined _NextTabStop as suggested by Ingo (thanks!).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-24 01:26:39 +00:00
Rene Gollent
21931c6b49 * Factor out _NextTabStop() for use by the mouse position and text formatting functions.
* Use _NextTabStop() to correctly determine what character the mouse is clicking on for a line containing tabs. This fixes ticket #4110.
* Sync() after updating the selection region when moving the mouse so the visual feedback is immediate instead of the app_server trying to batch it. This fixes the random delays in the selection highlight updating itself.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-23 23:19:56 +00:00
Stephan Aßmus
3ecab110e7 Fixed typo in comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-23 15:46:53 +00:00
Oliver Tappe
5c454bb4ce * added another tiny glibc-test, testmb.c, which covers a couple of mb-/wc-related
functions (in a failed attempt to reproduce #4113)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-23 13:57:38 +00:00
Stephan Aßmus
130e0a69f8 Patch by Jens Arm with cleanup by myself:
Implemented the statfs operation which helps to get
information like used and free blocks on the volume.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-23 13:47:29 +00:00
Axel Dörfler
d0ed3c5f45 * On second thought, ignoring those characters make more sense than writing
basically garbage to the name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-23 13:38:11 +00:00