Michael Lotz
e40b5c0d59
Fixed a wrong index that could cause crashes with devices containing generic descriptors
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 14:36:03 +00:00
Axel Dörfler
9dbe170a69
Implemented direct message passing for local targets; this fixes a deadlock
...
with PostMessage() in case the message queue is full.
Some notes:
* for synchronous replies, we don't use this mechanism yet, but it could be
extended to do that as well.
* the code looks so complicated because we need a way to access the looper's
queue without locking it (to prevent deadlocks); like Dano's solution, I've
abused BTokenSpace to store a BDirectMessageTarget with a BHandler.
* we also need to decouple the lifetime of a looper's queue from its target,
as we cannot lock the looper, and therefore, can't guarantee it stays valid
as long as we're accessing it outside of BLooper.
* init_clipboard() now needs to be done after the global constructors have
been called - since sending messages now needs gDefaultTokens to be initialized.
Since this is done per image, it shouldn't cause any troubles, though.
* some minor cleanup, removed unused _msg_cache_cleanup_() and friends.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 13:59:56 +00:00
François Revol
caa76e0da1
Fix some warnings (unused args...). Only bad protos left.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 13:33:53 +00:00
Axel Dörfler
c01f349e6d
Cleanup:
...
* Got rid of unused BLooper members
* renamed fTaskID to fThread
* Removed private and deprecated AddLooper()/RemoveLooper()/... stuff; BLooper is now
directly calling BLooperList methods.
* Got rid of extensive and useless comments
* Made a few TODOs more clear
* Merged InitData() and InitData(...) to _InitData(...)
* BLooper::Team() now uses BPrivate::current_team(), sTeamID is gone now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 12:42:18 +00:00
Axel Dörfler
aa33d0a928
Got rid of the looper ID stuff - it seems nowhere to be used.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 12:11:33 +00:00
Axel Dörfler
88df8322a9
Optimized current_team() - it now uses a static variable to hold the team ID.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 12:05:10 +00:00
Axel Dörfler
fa9e26cdd0
* Fixed warnings.
...
* Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 11:35:25 +00:00
Axel Dörfler
dfd1fe13b8
Fixed some warnings, mostly wrong uses of the ASSERT macro.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 11:24:20 +00:00
François Revol
ab28e0ff2c
For interfaces listed in a domain but without any address we returned {2, AF_UNSPEC}, but we only skipped 1 byte instead of 2... fixed.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-26 11:07:08 +00:00
Jérôme Duval
76b72c03e8
updated freetype to 2.3.0
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-25 19:12:34 +00:00
Jérôme Duval
ca48070032
fix for warnings
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-25 17:50:58 +00:00
Ingo Weinhold
ede02ff526
Cleanup and style fixes. Enforced 80 char line length.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-25 17:24:08 +00:00
Ingo Weinhold
4945683e6f
Fixed generation of header files. Removed generated header files from
...
repository.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-25 17:21:52 +00:00
Axel Dörfler
ca9b91886d
* Added a Dano extension to BMessageQueue: IsNextMessage().
...
* BLooper::AddMessage() is now using this method to determine wether or not to
update its looper thread.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-25 17:08:16 +00:00
François Revol
6181d22fb0
Change IPPROTO_* from enum to #defines. This fixes #992 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-25 16:37:06 +00:00
François Revol
6bc5f9fde1
This should allow switching to previous or next workspace with Workspaces [-|+].
...
Idea taken from http://www.bebits.com/app/3379
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-25 14:36:20 +00:00
Axel Dörfler
4686f4f716
A little oversight made all icons white on BeOS. This fixes bug #990 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-25 12:09:01 +00:00
François Revol
448d2a891a
Make sure strings are 0-terminated. Fix some settings values.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-25 09:30:27 +00:00
Axel Dörfler
d2dec0aafa
file_descriptor::ops is now set to NULL when the file descriptor gets disconnected.
...
This fixes a possible crashing bug when an application with disconnected descriptors
quits.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 21:04:49 +00:00
Waldemar Kornewald
c91c8f1d32
Renamed to index.html because this makes it easier to read it from the
...
build factory folder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 20:46:27 +00:00
Axel Dörfler
d0e8cacc56
Somehow it still looked strange under R5 this time... :-)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 20:02:59 +00:00
Axel Dörfler
69cc7ad640
Fixed a memory leak and the bug that could result in "pick one" menu fields and a
...
white desktop preview background: it happened if the attribute containing the data
couldn't be read or unflattened.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 19:56:56 +00:00
Ryan Leavengood
5f5d917ad1
Your wish is my command: now only removable read-only volumes have their
...
desktops integrated in Tracker.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 19:29:46 +00:00
Jérôme Duval
c3ccb39319
reduce trace from these two
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 18:56:25 +00:00
Jérôme Duval
8ca0de0c89
jam seems to badly handle parenthesis with the B modifier : the workaround is to remove other modifiers
...
fixes ticket #981
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 18:39:22 +00:00
Axel Dörfler
e9eb6bf7b5
Obviously, BMenuField::ResizeToPreferred() has no effect under R5 (does work on Dano) - this fixes bug #954 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 16:49:27 +00:00
François Revol
95ae312c38
Maybe your gcc doesn't caer, but otehr's do: error: virtual outside class declaration
...
Fixed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 16:03:24 +00:00
Axel Dörfler
ac7013d299
It now also centers the window on screen if the settings couldn't be found or at least
...
one corner is not visible on screen.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 14:49:32 +00:00
Axel Dörfler
f0a5326923
* Made all exported safe against NULL pointers, this fixes bug #485 .
...
* Slightly improved error codes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 14:32:05 +00:00
Axel Dörfler
a9dfa85e4e
* DataEditor::SetTo() now checks if the reported block size is zero and then sets
...
it to the 512 byte default - this fixes bug #960 .
* IconView::UpdateIcon() now uses 8-bit icon for get_device_icon(), as B_RGB32 cannot
work in this case.
* Also, in case it couldn't get an icon, it now tries to show the generic icon instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 14:03:21 +00:00
Axel Dörfler
9760e52d0c
Fixed wrong layout under R5.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 11:44:32 +00:00
Stefano Ceccherini
b30e7f31c1
Use BTextView::Copy/FreeRunArray() instead of memcpy() and free()
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 06:11:12 +00:00
Stefano Ceccherini
1a64df767e
BTextView::FreeRunArray() now accepts a NULL pointer too (like free())
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 06:02:58 +00:00
François Revol
113af0e68f
Add release, rescan, mount_nfs and the usb_webcam addon to the image.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 00:28:44 +00:00
François Revol
ea62eb1bc9
This should fix intermitent KDLs (at least with console debug output).
...
Use the size of the struct instead of checking a pointer that is never NULL...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-24 00:24:51 +00:00
DarkWyrm
355260f73b
Removed non-boot desktop integration checkbox.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 23:48:54 +00:00
François Revol
1a4f3a6079
Those headers should be autogenerated but I can't get it to work, put them in for now. Added a note in Jamfile.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 21:20:15 +00:00
Axel Dörfler
7b93487d2d
I accidently prevented the STXTTranslator from adding the styles section to the styled text output.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 21:15:07 +00:00
François Revol
03ce18544b
Include webcam addon as it now builds in Haiku as well.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 21:05:23 +00:00
François Revol
5f0074d66a
Use a different usb lib name for Haiku only
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 21:02:59 +00:00
Axel Dörfler
a9d09fc255
Added _kstatfs_() for binary compatibility with some BeOS apps (most notably, SoftwareValet).
...
We might want to remove it again once we have a replacement for it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 21:01:18 +00:00
François Revol
7b72625fe7
cleaned up includes; removed useless files; switched from Zeta's BVector to BList.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 20:45:25 +00:00
François Revol
8e9a5067ef
more Zeta vs Haiku USB Kit cleanup
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 20:11:56 +00:00
François Revol
fc812aa9ae
if the Jamfile in devices prefs is correct this is supposed to generate the 3 headers listing addons...
...
But it doesn't work yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 19:41:31 +00:00
François Revol
44ece1b56c
I *love* Jam :D
...
still need to autogenerate some headers... (you still need to 'make' it first).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 19:06:18 +00:00
François Revol
634dc81de9
remove zeta-specific stuff from the use of USB Kit, USBKit.h is all we need.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 18:58:17 +00:00
François Revol
d8501937f6
update makefile to reflect tree change
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 18:30:56 +00:00
François Revol
74ba589883
empty now
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 18:28:25 +00:00
François Revol
601cedce6a
move those down a bit to simplify jamfile writing (where are my wildcards ??)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 18:24:36 +00:00
Axel Dörfler
0a9c7fa8eb
* Made the whole thing a bit more font sensitive - looks more or less good with an
...
18pt font, now.
* Added a few TODO items.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-23 17:57:14 +00:00