Commit Graph

16151 Commits

Author SHA1 Message Date
Axel Dörfler
311bcf391f Fixed a possible deadlock I've introduced earlier (since create_sem() calls
vfs_free_unused_vnodes()); the vnode mutex is now hold for much shorter times
only:
* Rewrote advisory_locking creation/maintenance to hold the vnode mutex only
  for very short times.
* the vnode mutex is no longer held during file cache construction; instead,
  the vnode is marked busy.
* Implemented an (incorrect for now) get_advisory_lock()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16635 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 20:40:38 +00:00
Stefano Ceccherini
8edede9f83 The menu window's rect was never initialized, it worked by pure luck if launched from the terminal. Fixes bug 263. Other changes. Not yet finished
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 20:11:13 +00:00
Axel Dörfler
33cec98da1 The new file type add-on. It just starts the FileTypes application for
the files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 16:31:01 +00:00
Axel Dörfler
507514408c Beginnings of the application type window - doesn't do anything yet, but at
least it looks more or less okay (long description border isn't right yet)
and is font sensitive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16632 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 16:30:09 +00:00
Axel Dörfler
14fb2b690b * A double click on the window border now minimizes the window - has a fixed
double click time, though.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 15:23:35 +00:00
Marcus Overhagen
9b9d1e82f4 modified to allow handling of messages without data
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 14:47:45 +00:00
Marcus Overhagen
3bb81a4239 Fixed deadlock that occured when quitting media applications.
I don't know why this never happened on R5. Haiku close_port() 
works as documented in BeBook, but might possibly different in R5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 14:37:17 +00:00
Axel Dörfler
9638d4c877 * Fixed a font sensitivity issue not visible under BeOS.
* IconView now draws a rectangle in case there is no icon to let the
  user know there is something he could click on.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 14:09:30 +00:00
Marcus Overhagen
0c4d975c52 build media kit with debug enabled, even for release builds
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16627 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 13:24:19 +00:00
Marcus Overhagen
75daf5566e fixed reversed source and destination node ids, by using the new BMedisRoster::Disconnect function.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 12:54:02 +00:00
Marcus Overhagen
65b73ae4f2 Added a Disconnect() method with simpler parameter list.
Added more error checking to Connect() and Input/Output publishing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 12:52:19 +00:00
Axel Dörfler
67e33e3e70 get_tty_index() did not work correctly, this fixes bug #265 (included the fixed
version, thanks barber).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 12:11:04 +00:00
Axel Dörfler
91d4f7a30a * Added "Select..." functionality to the file type window, ie. you can now
choose the file type from a list, too.
* Several windows did not forward unknown messages to their parent, and thus
  scripting did not work properly for them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 12:09:13 +00:00
Axel Dörfler
678a32a0ae Build fix (could be compiled under BeOS as is, sorry).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 11:05:54 +00:00
Stefano Ceccherini
1b7f16543c Draw the small hand in the right bottom corner
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 08:43:25 +00:00
Axel Dörfler
4987d47a56 The FileType window now filters out application drops, and make them the preferred
app for the file(s).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 02:44:03 +00:00
Axel Dörfler
a051f66681 * Changed the way file panels are created, there is now only a single message
the FileType application understands.
* The FileTypeWindow now has support for setting the type via "Same As...",
  also by dropping a file over the window.
* The preferred application of a file can now also be specified via "Select...",
  and "Same As...".
* Moved FileTypesWindow::_AdoptPreferredApplication() to PreferredAppMenu.cpp;
  FileTypeWindow is now using it as well.
* Shuffled some functions around a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 02:26:31 +00:00
Axel Dörfler
f793ebf4db * Added an icon view to the file type window.
* Renamed the IconView class in the FileTypesWindow to TypeIconView.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 01:25:21 +00:00
Marcus Overhagen
831c32452b trimmed debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 00:56:03 +00:00
Marcus Overhagen
2a53684921 trimmed debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 00:51:42 +00:00
Marcus Overhagen
85da6de360 removed superfluous copyright notice from debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 00:40:23 +00:00
Marcus Overhagen
e42681bd61 this makes multiaudio.media-addon recognize this driver
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-07 00:20:45 +00:00
Axel Dörfler
b4499305c7 vm_cache_resize() could remove one page too many, and thus eventually free
a modified page that mustn't be removed. This fixes bug #110.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 22:28:40 +00:00
Axel Dörfler
0353f98bc3 * Beginnings of the file type window, ie. the functionality of the
FileType Tracker add-on.
* You can now drop files over the FileTypes window, and their file
  types window is opened.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 21:54:54 +00:00
Stefano Ceccherini
b820da1a25 Restyled Menu preflet, it's still very ugly but at least I can
understand where's things.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16611 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 17:15:16 +00:00
Axel Dörfler
9f6376a0c7 * get_vnode() did not decrease the sUnusedVnodes counter when taking one node
of that list.
* Added a vfs_free_unused_vnodes() function that calls the low memory handler
  directly.
* create_sem_etc() now calls the above function in case there are no semaphores
  available anymore; this usually frees up to 2 semaphores per node (one from
  the cache if there is a file cache attached, and eventually one from the
  file system).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 16:18:52 +00:00
Stefano Ceccherini
9c2db284a8 Now BTextView::AutoResize() resizes also the textrect as it should
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 15:50:51 +00:00
Axel Dörfler
d3fbce573c * Added a debugger command "info" that dumps some basic system usage info.
* Renamed OBOS_ARCH macro to HAIKU_ARCH.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 13:40:36 +00:00
Axel Dörfler
d98d96e9e5 Added debugger command that dumps info about the vnode usage.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 13:39:04 +00:00
Axel Dörfler
611b96cd42 Fixed "strange" debugger commands in help listing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 13:38:16 +00:00
Stefano Ceccherini
1407220dcf use B_OP_OVER to draw the arrow, due to anti-aliasing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 13:30:20 +00:00
Stefano Ceccherini
66188b6676 pulled check out of the loop
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 13:29:29 +00:00
Stefano Ceccherini
6d87a14258 Take the max content width into account in BMenu::ComputeLayout(). This fixes bug 188. IOW the deskbar expander arrow is now shown
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 13:19:01 +00:00
Axel Dörfler
b420ef6461 * Many VM area creation functions just panicked when a vm_store, vm_cache,
or vm_cache_ref couldn't be created, instead of cleaning up and returning
  an appropriate error.
* vm_cache_ref_create() no returns a status_t instead of the vm_cache_ref
  (as that's part of the vm_cache anyway).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 13:06:10 +00:00
Stefano Ceccherini
8013da5719 Replaced ceil with ceilf in a number of places
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 11:15:53 +00:00
Stefano Ceccherini
ace32536d4 ActualTabWidth() takes a location parameter, not an offset. Fixed bug 249 for real
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 11:03:53 +00:00
Axel Dörfler
0cf867048b Imported InfoWindow.cpp 1.14 from the OT repository: the "Disks" info window no
longer calculates the size by iterating over all files - it now just adds up the
disk capacities.
This fixes the userland part of bug #210 - the kernel part has already been
fixed earlier.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 10:58:05 +00:00
Stefano Ceccherini
3e3c4ddcce fFontHeight and fFontWidth weren't initialized in the TermView constructor, could cause some problems. Might fix bug 201, although I could never reproduce it consistently
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 10:51:13 +00:00
Stefano Ceccherini
a073611bbc BTextView::OffsetAt() wasn't working with TAB charachters. Fixes bug 249
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 10:45:18 +00:00
Stefano Ceccherini
bdd0629138 Fixed extra days in a month bug
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 09:22:57 +00:00
Michael Lotz
404ccd1a92 Added extended ImportBits() to BBitmap to allow the use of BPoint offsets.
Is this too much feature creep?

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 01:05:47 +00:00
Michael Lotz
2a6e97186b Actually commit the change to ReadBitmap()...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 00:23:16 +00:00
Michael Lotz
ee18c3ccff Added an extended ImportBits() to ServerBitmap to allow the use of offsets and made ReadBitmap() use it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-06 00:18:26 +00:00
Michael Lotz
bdc6f9e7ef * Fixed a swapping bug for 16 bit colorspaces
* Added some comments
* Added some checking to avoid noop shifts
* Added buffer length checks
* Implemented (as Stephan suggested) a version of ConvertBits() that takes offsets.
This new version allows to move a region of the source into a region (possibly not at the same point) on the dest while converting colorspaces on the fly.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-05 23:53:33 +00:00
Axel Dörfler
8413da2383 Like the comment above said, vfs_lookup_vnode() doesn't grab a ref to the vnode,
so we better shouldn't release it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-05 20:55:35 +00:00
Axel Dörfler
0254f09df2 It's not so problematic if a busy vnode was released; what is problematic is
if that was the last ref.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-05 20:54:17 +00:00
Axel Dörfler
ecc6684dca Now uses thread_yield() instead of snooze(5), patch by Danny Robson.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-05 20:06:44 +00:00
Axel Dörfler
9e3f619722 We don't have floating point support for dprintf() in the kernel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-05 19:42:40 +00:00
Axel Dörfler
59cd24b7db __HAIKU__ is now also defined for the test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-05 19:41:17 +00:00
Oliver Tappe
94a055c10d * fixed broken FindLast() taking a char and an offset
* added two more tests that exhibit the (now fixed) problem in FindLast()



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-05 18:27:50 +00:00