27664 Commits

Author SHA1 Message Date
Axel Dörfler
93f76bfb7e * Turns out the assert was wrong; since the previous buffer can be adjacent to
the next buffer, it can also cause the new buffer to start at the same
  sequence as the next buffer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28958 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28958
2009-01-19 17:40:20 +00:00
Michael Lotz
236ecca7da Fix missing mutex_unlock() in case of opening an already removed device.
Spotted by Mika Lindqvist, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28957 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28957
2009-01-19 17:35:56 +00:00
Stephan Aßmus
7f6629a943 Tweaking the look again, trying to take some of Axel's suggestions
into account. I think the shadow bevel on the right is a spoiler
though, and will change that back. But Axel can compare this way...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28956 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28956
2009-01-19 16:54:16 +00:00
Stefano Ceccherini
ee9b4396bf fCheckMouseTracking was never initialized to false, causing spurious selections when opening a new tab. Fixes bug #2910
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28955 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28955
2009-01-19 16:01:43 +00:00
Stefano Ceccherini
321bba933d Vertical menu scrolling was enabled also in case the menu was wider than the screen, but this is obviously wrong. The menu window was also resized to be the height of the screen in this case, and it was the cause of bug #3174. Note that horizontal scrolling is not yet implemented
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28954 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28954
2009-01-19 15:31:31 +00:00
Michael Lotz
a8b0095433 Style cleanup. Please at least try to...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28953 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28953
2009-01-19 12:33:59 +00:00
Axel Dörfler
c2177fe861 * The Switcher now "remembers" the first app when doing a quick switch over
more than one application, so that will be the next app to switch to for the
  next switch.
* This solution is not entirely perfect, though, as it needs to visually bring
  the first app to front inbetween to work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28952 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28952
2009-01-19 11:46:53 +00:00
Stephan Aßmus
ce5d64725d * Renamed the drawing functions in DrawingEngine to
remove the *Gradient part. In general, there is
  a lot of code duplication now, also in Painter. I
  will need to find a way to elliminate this again.
  Also, all the stroking functions should be gradient
  enabled as well.
* Improved the look of the DefaultDecorater, inspired
  by the patch from Dennis Washington. I did not adopt
  the changes which give backwards compatibility
  problems, though, like changing the window border
  width or the single border decorator color. But I
  reckon these changes are overall even a bit smoother.
* Fixed a long standing decorator bug, where the resize
  area of the border was visually different than the
  click recognition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28951 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28951
2009-01-19 10:31:43 +00:00
Axel Dörfler
82fcd4339f * Shortened all strndup() buffers by one to have the same outcome as with
the previous local strndup() implementation.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28950 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28950
2009-01-19 10:08:06 +00:00
François Revol
9c2491ccc4 Implement B_GET_ICON_NAME to return "devices/drive-removable-media-usb" as it seems correct as per the FreeDesktop.org Icon Naming Specification we agreed to use for now, cf. http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28949 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28949
2009-01-19 02:19:27 +00:00
Michael Lotz
9cad6c3632 Add ioctl cases for B_GET_ICON, B_GET_ICON_NAME and B_GET_VECTOR_ICON. The first
won't be implemented, the second currently isn't and the third is. This gets
rid of the frequent "unhandled ioctl" messages when using USB drives and also
adds the nice pendrive icon to the mount list when using USB storage devices.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28948 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28948
2009-01-19 01:58:05 +00:00
Rene Gollent
fff09387dd Another GCC4-related strndup fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28947 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28947
2009-01-19 01:42:24 +00:00
Rene Gollent
f3fd1519ac Build fix: ParameterWeb had its own (static) version of strndup which broke the build on gcc4. Removed it so as to just use the library version added recently instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28946 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28946
2009-01-19 01:38:30 +00:00
Michael Lotz
c8a2b8db37 As Marcus pointed out, the imul instruction clobbers the conditional code
register. Therefore "cc" should be added to the clobber list. Adding that here
as it's part of a patch attached to the freetype bugtracker.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28945 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28945
2009-01-19 00:48:59 +00:00
Michael Lotz
6f5bc65419 Fix the build on Haiku/BeOS. Apparently our GCC doesn't like the "+d"
constraint, so I replaced it with a "d" input and "=d" output constraint
instead, which should be equivalent. Please yell if my logic is flawed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28944 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28944
2009-01-18 23:56:00 +00:00
Axel Dörfler
15d2b7b29d * This test would have reproduced the "buffer > 0" ASSERT problem with the
previous release of BufferQueue. IOW #2594 should be fixed now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28943 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28943
2009-01-18 23:27:39 +00:00
Axel Dörfler
0b0a2ca6c4 * Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28942 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28942
2009-01-18 23:18:40 +00:00
Axel Dörfler
94c366d233 * Fixed some obvious misbehaviour of the switcher.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28941 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28941
2009-01-18 22:53:31 +00:00
Jérôme Duval
d14a541795 added an experimental geode audio driver
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28940 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28940
2009-01-18 21:09:59 +00:00
Axel Dörfler
18f27bf19f * Added POSIX function strndup(), closing ticket #3309.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28939 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28939
2009-01-18 20:27:12 +00:00
Axel Dörfler
2ea5e5e8e5 * We should not ignore the minimize request completely when the window is
hidden, but at least set it to minimized.
* Also, we shouldn't show minimized windows, but keep them hidden. This prevents
  the app_server/BWindow to go out of sync wrt the show level. This also fixes
  bug #3258.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28938 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28938
2009-01-18 17:30:57 +00:00
Axel Dörfler
0c1404badd * The check to remove bytes at the beginning happened twice.
* There was an off-by-one error that could well be responsible for bug
  #2594. Haven't tested it yet, though.
* Added an extra assert to make sure that "next" is set correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28937 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28937
2009-01-18 16:58:04 +00:00
Bruno G. Albuquerque
b100149cb4 - Small style change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28936 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28936
2009-01-18 16:05:46 +00:00
Bruno G. Albuquerque
35336d367e - Updated copyright header.
- Fixed some styles violations.
- Changed signature to include the executable name.

Preparation for the new code coming.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28935 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28935
2009-01-18 15:26:11 +00:00
Michael Lotz
8311b012d1 * Fix a lock leak in the eject/load ioctls. It did return directly without
unlocking the device again, causing deadlocks after unmounting a USB mass
  storage device.
* Synchronize on close again, but this time with proper locking of the device.
* Restructured usb_disk_synchronize() a bit and updated comments.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28934 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28934
2009-01-18 14:30:03 +00:00
Bruno G. Albuquerque
4650eca258 - Implemented some suggestions by stippi.
- Corrected some bugs also pointed by him.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28933 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28933
2009-01-18 12:39:44 +00:00
Jérôme Duval
d16a95a243 updated freetype to 2.3.8
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28932 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28932
2009-01-18 12:13:00 +00:00
Karsten Heimrich
31562415de * fix gcc4 build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28931 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28931
2009-01-18 12:11:59 +00:00
Michael Lotz
b289baf147 * The close hook did trigger a synchronize without locking the device. This
could have messed up the state of other transfers currently running on that
  device. Since devices are regularly opened/closed for enumeration/scanning
  from different threads, this could've easily lead to bad situations. I've
  removed the sync completely as it's not our task to issue it and because
  a close doesn't always correspond with an unmount at all.
* Retry receiving the command status wrapper also when another error than a
  stall is returned. The specs aren't too specific, but the graphic suggests
  this is a general recovery path.
* Do a reset in case there is an error during data transfer to start the next
  command from a clean state.
* Make sure we never acknowledge more data than we actually transfered. This
  is to make sure devices that return broken residue values do not mess up our
  transfers.
* Detect a few more cases of invalid and non-meaningful command status wrappers.
* If the device explicitly tells us that the sync command isn't supported don't
  try it a few more times. Only retry at most five times if an unspecific error
  is returned that could also come from another (temporary) error case.
* Add a bit more trace output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28930 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28930
2009-01-18 01:34:22 +00:00
Michael Lotz
8f30f14edd Fix pretty severe error in the convenience functions Pipe::SetFeature(),
Pipe::ClearFeature() and Pipe::GetStatus(). These requests take the endpoint
address in the logical form, including the direction bit. This caused all those
requests to fail for all input pipes, most prominently visible in mass storage
where a mass storage reset could never be done completely and would cause many
devices to be unable to recover from errors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28929 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28929
2009-01-18 01:13:17 +00:00
Bruno G. Albuquerque
d254c83c84 - Changed BNetBuffer to a simpler (and R5 compatible) implementation.
- This has the side effect that now it actually works.
- This also indirectly fix BNetEndpoint usage of BNetBuffer.
- Added DynamicBuffer (the underlying buffer implementation) to the Jamfile.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28928 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28928
2009-01-17 21:28:10 +00:00
Jérôme Duval
1ae36cc173 updated libpng to 1.2.34
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28927 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28927
2009-01-17 18:43:09 +00:00
Jérôme Duval
f98eee6e83 update to tzdata2008i
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28926 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28926
2009-01-17 18:32:21 +00:00
Joachim Seemer
9384249452 * Added Philippe ("Socapex_2K") Groarke's work on an installation topic.
It's based on the blog articles of several people that will be credited in each
  page's header comment soon.
* Did a little additional formatting and restructuring.
* This is still a work in progress as we continue to restructure and remove redundancies.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28925 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28925
2009-01-17 18:05:49 +00:00
Bruno G. Albuquerque
a12096e5c7 - Got it to actually compile.
- Default buffer size is now set to 1 instead of 0, which would cause the
  construction without a given size to fail.
- Added copy constructor.
- Changed _GrowToFit() to have a boolean parameter to indicate if we want
  to resize the buffer to an exact size. Used by the copy constructor. 



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28924 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28924
2009-01-17 15:56:40 +00:00
Stephan Aßmus
4e034d2ab3 Make sure that text clippings dragged from DeskCalc will be named "DeskCalc
clipping" instead of the default "Untitled clipping". Fixes last remaining
issue of #2749.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28923 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28923
2009-01-17 14:55:15 +00:00
Stephan Aßmus
bc7dbfd71d Forgot to add "x" as a multiplication sign as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28922 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28922
2009-01-17 14:21:53 +00:00
Stephan Aßmus
85d74ff62d Changed token type handling so that different chars can resolve to the same
token type (part of #3236). "/" now equals "\" and ":" to mean "divide by".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28921 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28921
2009-01-17 14:19:36 +00:00
Bruno G. Albuquerque
b93465f1e0 - Ops... Missed some.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28920 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28920
2009-01-17 14:03:22 +00:00
Bruno G. Albuquerque
c98ce75f21 - Fixed style violations pointed by stippi.
- Use std:nothrow for new calls.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28919 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28919
2009-01-17 14:01:22 +00:00
Bruno G. Albuquerque
550d24175f - Simple dynamic buffer class implementation.
- Will be used by the new (R5 compatible) NetBuffer class.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28918 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28918
2009-01-17 13:30:21 +00:00
Stephan Aßmus
cf4ef413b1 Set resizing mode before calling BMenuBar::ResizeToPreferred(), since the
default menu bar resizing mode triggers some R5 compatibility behavior wich
we don't want in MediaPlayer. This fixes the (apparantly) last remaining
issue from #2180.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28917 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28917
2009-01-17 13:04:01 +00:00
François Revol
3c4b936066 Add /dev/mem driver, it builds fine.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28916 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28916
2009-01-17 00:02:18 +00:00
Oliver Ruiz Dorantes
e5da0ec57e some cleanups and styling by Mika and me
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28915 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28915
2009-01-16 20:32:19 +00:00
Jérôme Duval
6dec91b4e8 use uint32 as temp variable, noticed by Marcus. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28914 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28914
2009-01-15 23:01:45 +00:00
Axel Dörfler
258ca3186e * Another try for ticket #2791, this time using the modeline proposed by
tigerdog; let's see how many complaints we get this time :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28913 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28913
2009-01-15 22:23:20 +00:00
Axel Dörfler
89a5132e8d * Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28912 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28912
2009-01-15 22:16:31 +00:00
Jérôme Duval
07fbbf9b6e build fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28911 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28911
2009-01-15 20:37:10 +00:00
François Revol
b641656c2b Make sure the hack-coff tool is built when needed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28910 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28910
2009-01-15 16:47:53 +00:00
Axel Dörfler
ff6ab52278 * We don't need the BeOS FrameMoved() work-around for Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28909 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28909
2009-01-15 11:39:55 +00:00