27931 Commits

Author SHA1 Message Date
David McPaul
b459205340 Implement seeking support
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28875 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28875
2009-01-11 07:06:18 +00:00
Rene Gollent
1f7f1654fb The problem appears to be at the level of _PointerList_ itself. Also note, BList does not exhibit the issue.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28874 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28874
2009-01-11 04:52:18 +00:00
Rene Gollent
4c1a09d0cf Added a test that exposes a problem in BObjectList/PointerList. If a list contains 17 items or greater, and you attempt to sort it with a sort function that always returns 1 regardless of the items being compared, it will crash 100% of the time. Looking into why next.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28873 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28873
2009-01-11 04:43:53 +00:00
Alexandre Deckner
51505cb08a * The pose adding thread was going too fast, opening too many files (those are closed by the window thread), and
reaching the file descriptor limit. For some still unknown reason, this was causing GetNextDirents to stop returning new 
entries. The result was that, on populated folders, Tracker wouldn't load all poses and stop at a random amount.
We now take a more conservative approach and close the files before sending, reopening them on reception.
 
Now the AddPoses thread is a bit too aggressive, especially on second runs, i needed to add some snoozing otherwise it 
would stall Tracker for several seconds. (testing on a 20000 files folder).
This fixes #3054 



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28872 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28872
2009-01-11 03:08:56 +00:00
Rene Gollent
6d344473e6 Fixed broken ternary logic in GenericAttributeText::Compare() that would result in the wrong value being returned when one or both attributes being compared were undefined. A symptom of this was the crash reported in ticket #2760. Leaving that ticket open for now though as returning the wrong value to the sort shouldn't have caused a crash regardless.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28871 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28871
2009-01-11 01:40:05 +00:00
François Revol
f861e599f5 typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28870 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28870
2009-01-11 00:41:30 +00:00
Axel Dörfler
e677f5aa67 * Fixed two possible crashing bugs in the file system check code: the checker
was attached to the inode instead of the file descriptor, causing it to call
  BlockAllocator::StopChecking() whenever anyone closed the device's root node
  during the check. The other bug was that it tried to fix errors even if the
  device was read-only.
* Added TODO that ioctl() accesses userland buffers unsafely.
* Removed no longer valid or superfluous comments.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28869 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28869
2009-01-10 22:16:48 +00:00
François Revol
c6f50a6aa9 Try to probe the keymap to use from the supported language advertised by the browser.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28868 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28868
2009-01-10 04:15:30 +00:00
François Revol
cdbd64465a Make sure google won't index or archive the page, there is nothing interesting really. googlebots even tried to index my own box which isn't always online...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28867 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28867
2009-01-10 01:44:40 +00:00
David McPaul
2405fee747 Better check for end of data
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28866 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28866
2009-01-10 01:05:39 +00:00
David McPaul
d06fb5745a add ffds fourcc, some sort of xvid variant
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28865 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28865
2009-01-10 01:03:28 +00:00
François Revol
0420c39114 typo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28864 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28864
2009-01-10 01:03:06 +00:00
François Revol
ce7a391ee0 Remove unused variable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28863 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28863
2009-01-10 00:40:37 +00:00
François Revol
ad06cdd139 Move the tgz archive offset to 300k, should fix CD boot again, but it's getting tight.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28862 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28862
2009-01-09 20:36:50 +00:00
Jérôme Duval
6c16c42586 * style fixes
* use user_memcpy in buffer exchange for Haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28861 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28861
2009-01-08 23:45:16 +00:00
Jérôme Duval
b8ea3ce774 * fixed Haiku version of B_MULTI_GET_DESCRIPTION
* use user_memcpy for Haiku in buffer exchange, with interrupts enabled


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28860 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28860
2009-01-08 23:39:02 +00:00
Axel Dörfler
0e5a3fc6c6 * BufferQueue::Get(size_t ...) now always returns successfully if it does not
return an empty buffer. This should avoid losing data in case not everything
  could be appended due to a resource shortage.
* Also, it now assures that fNumBytes and fContiguousBytes are always
  maintained correctly, thanks to Adrian for pointing this out! This should
  fix bug #2594.
* Added extra debug code to BufferQueue::RemoveUntil() so that it checks
  whether or not fContiguousBytes could be maintained correctly (ie. if this
  function is called only as thought).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28859 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28859
2009-01-08 18:31:22 +00:00
Karsten Heimrich
5fa4ff6a86 * use std::nothrow
* implement min/max labels
* fix drawing for horizontal sliders
* removed commented code value drawing code
* changed 'tooltip' to show left/right, top/bottom of the knob



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28858 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28858
2009-01-08 16:16:58 +00:00
Karsten Heimrich
45735be6c9 * extend test with sliders containing min/ max labels
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28857 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28857
2009-01-08 16:12:23 +00:00
Karsten Heimrich
e6753e37c6 * fix small mem leak
* whitespace cleanup, etc
* some renaming to fit Haiku style



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28856 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28856
2009-01-08 15:48:10 +00:00
Jérôme Duval
359176d906 * now use source and destination as initial directory for file panels. This fixes bug #3175.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28855 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28855
2009-01-07 21:52:07 +00:00
Axel Dörfler
d5ec380523 * Added siginterrupt() function, this closes ticket #3263.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28854 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28854
2009-01-07 19:40:53 +00:00
Axel Dörfler
095f2c0e21 * Applied patch by Olivier: corrects vertical text positioning. This closes
ticket #3266, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28853 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28853
2009-01-07 19:32:46 +00:00
Axel Dörfler
25b944d41c * Applied patch by Olivier: fixed sending wrong signal to a custom signal
handler. This closes ticket #3265, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28852 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28852
2009-01-07 19:02:25 +00:00
Axel Dörfler
6a90578f76 * Removed a left-over mutex_unlock() that could cause a panic on removing
a busy vnode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28851 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28851
2009-01-06 21:19:09 +00:00
Axel Dörfler
5500d8a54f * All file descriptors that only refer to a mount now keep the mount, ie. they
won't call put_mount() before they are freed. Internally, this causes them
  to grab a reference to the mount's root vnode.
* This fixes bug #3262.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28850 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28850
2009-01-06 21:17:47 +00:00
Jérôme Duval
74010f9911 * reading CORB_READ_POS_RESET as zero fails on some chips (ie nForce).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28849 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28849
2009-01-06 19:25:34 +00:00
Rene Gollent
9c566bdabf Updated gcc2 Vision package with one or two minor fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28848 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28848
2009-01-06 04:33:41 +00:00
Axel Dörfler
ea5c7202cb * If a window was hidden during resize/movement, it would still be in resizing
or moving mode when it was shown again. Added a test app HideAndShow which let
  you easily reproduce the faulty behaviour (with a previous version of the
  app_server, that is).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28847 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28847
2009-01-05 10:32:30 +00:00
Jérôme Duval
5ddb65f007 * added missing dprintf for errors
* fix a warning and zeroed the controller struct


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28846 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28846
2009-01-03 22:40:26 +00:00
Axel Dörfler
64e0d0841b * Inodes are no longer trimmed from the checking thread. This should fix bug
#3190.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28845 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28845
2009-01-02 10:59:47 +00:00
Axel Dörfler
2187c4988a * Not sure how this happened.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28844 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28844
2009-01-02 10:42:44 +00:00
Axel Dörfler
790d3aee0a * When the window to be activated isn't a normal visible window (ie. floating
or modal), we need to check if our effort to make it visible (by activating
  its subset window) was successful. This fixes bug #3201.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28843 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28843
2009-01-02 10:33:46 +00:00
Axel Dörfler
74c05b1d3c * Accidently forgot to fix the typo that Adrian pointed out in his patch to
#2919 (OMG :-)).
* While I was at it, I also cleaned up some style inconsistencies.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28842 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28842
2009-01-02 09:39:29 +00:00
Axel Dörfler
f9e72b6e5b * Small variation of Adrian's patch to fix bug #2919, ie. re-enable paging
and colors for the on-screen debug output when leaving KDL. Thanks, Adrian!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28841 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28841
2009-01-01 22:13:02 +00:00
Salvatore Benedetto
e4263eb78e * Uncommenting POSIX mkdtemp function. Tested.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28840 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28840
2009-01-01 21:01:51 +00:00
Jérôme Duval
c71a6614e2 * try to enable EAPD on capable pin widgets
* added a pin capabilities attribute instead of input and output pin attributes
* added ATI and nVidia vendor ids definitions
* uses "mic in" and "line in" when pin colors are undefined


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28839 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28839
2009-01-01 17:13:43 +00:00
Jérôme Duval
321e633fa4 Patch from tqh, modified by myself: enable PCIe snooping through vendor specific registers (ATI and nVidia).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28838 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28838
2009-01-01 14:58:10 +00:00
Axel Dörfler
e4737a9260 * Added a third hinting mode: monospaced fonts only. This is especially helpful
with low resolution devices like the EeePC - small fonts can look pretty bad
  when hinting is turned on, and you still have the advantage of hinting for
  text editors and the terminal.
* Added a ServerFont::Hinting() method (that currently only evaluates the
  global hinting setting).
* Added a TODO comment on why having global settings is not what we aim for.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28837 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28837
2008-12-31 18:44:02 +00:00
Philippe Houdoin
16edc24aba Ooops, typo spotted by Diego. Thanks proofreader(s).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28836 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28836
2008-12-31 17:03:36 +00:00
Salvatore Benedetto
4a39c23620 * Reworked ps command a bit as its previous output was just messy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28835 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28835
2008-12-31 16:47:45 +00:00
Philippe Houdoin
0832f66cc5 Added a small faking OpenGL renderer add-on as a testbed for direct
mode threading/drawing issue.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28834 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28834
2008-12-30 20:17:18 +00:00
Philippe Houdoin
f9116d8c65 Empty CopyPixelsIn/Out() were lying...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28833 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28833
2008-12-30 20:14:41 +00:00
Axel Dörfler
a31688d23d * Set "openAnyway" argument of BPopUpMenu::Go() to true, fixing bug #1493,
thanks to Edwin for the hint!
* Removed about menu item, as that's a bit superfluous in such a tiny app
  (you can still use "hey" to get the window from the running app).
* It was leaking the menu, as it didn't set it to auto-destruct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28832 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28832
2008-12-29 22:07:54 +00:00
Axel Dörfler
fd95a7e124 * The net_server now accepts messages from the outside that want to configure
an interface (I don't remember why I didn't want this earlier, but well).
* ifconfig now has an auto-config option that will trigger DHCP.
* Also, it will now remove the IFF_AUTO_CONFIGURED and IFF_CONFIGURING flags
  if an address is specified (any on-going auto-configuration should check for
  these and abort if they aren't there anymore).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28831 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28831
2008-12-28 22:18:21 +00:00
Axel Dörfler
74ff314b2f * It was not possible anymore to remove any flags.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28830 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28830
2008-12-28 22:13:19 +00:00
Rene Gollent
9d17b26a56 Patch by Lukasz Zemczak: fix installer crashes reported in ticket #2969.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28829 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28829
2008-12-28 20:57:21 +00:00
Rene Gollent
db5b0bfcfe When drag and dropping a text file, Tracker would refuse to extract the text (and style attributes, if any) if the file in question didn't have both the text/plain filetype *and* Tracker's clipping attribute. Since I was unable to find any good reason whatsoever to check for the latter, I removed this. Fixes the reported problems where drag and dropping a file onto a BTextView would do nothing unless the clipping attribute existed as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28828 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28828
2008-12-28 06:58:11 +00:00
Axel Dörfler
293ed4fe5b * Pulled an AutoconfigClient class out of DHCPClient - all clients are supposed
to inherit from that one (there is still just a single client, though, this
  just simplifies having a generic mechanism to register and use auto-config
  clients).
* AutoconfigLooper now listens to link changes, and will reconfigure the
  interface if a new link is there - this even seems to work in emulation, will
  test on real hardware next.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28827 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28827
2008-12-27 22:15:17 +00:00
Axel Dörfler
bf6bf2e36b * get_context() didn't quite do what it was supposed to be doing. Especially,
it was not guaranteed that this function returned a valid context even with
  low memory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28826 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28826
2008-12-27 22:12:08 +00:00