Commit Graph

32490 Commits

Author SHA1 Message Date
Ingo Weinhold
12fef51bc7 Since r33809 dprintf() acquires a mutex when called with interrupts enabled.
This is something must must not do in an idle thread or we get the scheduler
into trouble.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-23 14:19:09 +00:00
David McPaul
13af0e5bc0 Add support for VBRI header, remove duplicated code, always print error messages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-23 12:18:34 +00:00
Philippe Saint-Pierre
f75975a907 ShowImage :
* Changing pictures using the arrow keys while being in a picture folder in tracker would quit the 
  fullscreen mode (if you happen to be in that mode) because it tries to resize the window to fit
  the new picture.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-23 02:54:13 +00:00
Philippe Saint-Pierre
de2af681ea DiskProbe :
In is_valid_utf8():
 * Also accept CR and TAB as valid chars to be copied in clipboard.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-23 01:04:28 +00:00
Philippe Saint-Pierre
7c47a09644 Diskprobe :
in is_valid_utf8() :
 * Accept EOL/LF as part of a valid UTF8 string.
 * This allow a string containing it to be copied to the clipboard.
 * Fixing ticket #1453.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-23 00:52:49 +00:00
Philippe Saint-Pierre
59d398a1ae DiskProbe:
* The is_valid_utf8(..) is supposed to accept a terminating null byte
but was instead looking for a null byte as the first byte.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-23 00:34:44 +00:00
Rene Gollent
0b0e9179c3 Pass the favorites menu a reference to the file panel's ref filter. This is necessary since favorites are no longer constrained to only being folders, and as such they need to likewise be constrained to only display supported types. Fixes another part of #4916.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 23:43:59 +00:00
Jérôme Duval
2795d5dca5 Play startup sound after the first defaults rescan is done. This fixed #1902.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 16:26:12 +00:00
Stefano Ceccherini
78f94f81ff Add a BScrollView around the instantiated TermView (only as a test)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 16:10:02 +00:00
Stefano Ceccherini
abc3e03007 TermView can also work as a child of a BScrollView
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 16:09:32 +00:00
Stefano Ceccherini
4ce4d86bc9 The scrollbars need to be constructed before calling
BView::TargetedByScrollView(), otherwise the target view couldn't
access them in that method.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 16:04:59 +00:00
Stefano Ceccherini
3e7194892b -Don't set fRows and fColums before calling SetTermSize().
-Removed unneeded SetTermSize() calls.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 15:17:22 +00:00
Stefano Ceccherini
07da5d7cce Fixed TermView when used with the constructor which accepts a BRect:
In that case TermView computes rows and columns based on the frame size.
This also made simpler to attach a TermView to a given BWindow, like done
in the RepliTerminal test app. Changed Repliterminal accordingly.
Removed the bool parameter from SetTermSize(), and added a SetTermSize which
accept a BRect, as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 12:13:18 +00:00
Stephan Aßmus
a21abf2329 Fix spacing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 11:32:04 +00:00
Stephan Aßmus
fc60086f17 Patch by adamk:
* Added support for Radeon X1050, which is essentially an RV370.

I cannot confirm this works, but I assume the creator of the patch can. :-)
Thanks a lot, fixes #3435.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 11:09:37 +00:00
Philippe Saint-Pierre
40dd3b47ca DiskProbe :
Use the Insert method when pasting text into the find window 
 rather than SetText. 

 This fixes ticket #3344 while making more sense semantically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 03:08:58 +00:00
Jérôme Duval
53d3fc817d Patch from hiron ticket #4848 : add raw_char field for generated B_KEY_DOWN messages. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 23:42:54 +00:00
Stefano Ceccherini
85fdce1698 Fix tabs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 22:15:59 +00:00
Stefano Ceccherini
a2ba3d6562 Removed dependency to the global gMouseClipboard from TermView. Now there's
a SetMouseClipboard() method to set one (defaults to be_clipboard, maybe
it's not a good idea and should default to NULL instead).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 19:12:05 +00:00
Ingo Weinhold
752639885a * Fixed syslog permissions.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 18:13:06 +00:00
Stefano Ceccherini
411d718eec Added a method to PrefHandler to save the default settings, and used it
in TermWindow and PrefWindow. Added patch by adparadox which implements
menuitem and shortcut to close the active tab (slightly modified by me).
I went with COMMAND-SHIFT-W instead of COMMAND-W.
This fixes bug #3898.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 17:18:28 +00:00
Stefano Ceccherini
92d7fb19f1 Renamed "Coding" to "Encoding" and adjusted other files accordingly
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 16:13:56 +00:00
Stefano Ceccherini
ee0491f3e7 -Fixed some gcc4 warnings
-No need to link to libgame


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 16:08:24 +00:00
Stefano Ceccherini
6b87afd360 Made the Find Window a bit wider by default, moved some functions around,
got rid of MenuUtil.h/cpp.
Some style change.
 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 16:03:20 +00:00
Ingo Weinhold
d73033ce64 * Made PackageDomain BReferenceable.
* LeafNode/Directory: We make sure that the added PackageNode with the newest
  modified time is always at the head of the list. This is the package node
  whose stat, attribute data and, in case of non-directory nodes, also content
  data will be returned. This results in a well-defined algorithm what happens
  when multiple directories contain the same file -- the newest file wins.
* Resolved most TODOs regarding error handling when adding a package domain,
  package, or package node.
* Volume::_AddPackageContentRootNode(): Fixed the back tracking loop. It would
  just continue with siblings of the given root node, causing them to be added
  more than once, leading to data structure corruption.
* We now listen to the packages directory. When packages are added or removed
  their contents is automatically added/removed to the file system. We don't
  listen to the package files themselves yet. I.e. modifying an "installed"
  package in place respectively copying/downloading it there will probably not
  work correctly.
  Due to a limitation in the userlandfs the mechanism works correctly only when
  using the kernel module. When running the userland version, one better leaves
  the packages directory alone while packagefs is mounted.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 15:43:37 +00:00
Jérôme Duval
b7b67e723a correctly ordered
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 15:26:19 +00:00
Clemens Zeidler
2591def6e5 - Delay creation of the DPC queue to the point when it is first used. Need this to load acpi in the early boot phase.
- Automatic whitespace cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 10:39:49 +00:00
Jérôme Duval
8684e35ad7 added wcsdup to wchar.h
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-21 08:39:38 +00:00
Stefano Ceccherini
64fd88f56a Tweak a bit the layout of the preference window.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 22:51:39 +00:00
Stefano Ceccherini
143981329c Converted the Terminal Find Window to the layout api keeping (more or less)
the previous look.
Would be nice if the window was a bit wider, but I don't know how to force
that (accepting advices).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 22:29:11 +00:00
Stefano Ceccherini
e79dab79c8 Forgot to delete this
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 20:45:11 +00:00
Stefano Ceccherini
17ecdb5b2f TermView doesn't know about PrefHandler anymore (again), so that, in case
it's used as replicant (but I think it won't work anymore, yet),
it doesn't influence the global settings.
TermWindow saves the preferences on quit, if the PrefWindow was never
instantiated. This allows the window size to be saved also when it's
resized manually (not via menu).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 20:34:03 +00:00
Stefano Ceccherini
bf00b7798c Fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 19:50:33 +00:00
Stefano Ceccherini
70f7a8ad0f Cleanup: removed unused messages constant and classes, merged AppearPrefView
with PrefView, moved main from Terminal.cpp to TermApp.cpp.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 19:47:24 +00:00
Stefano Ceccherini
a5ec0eeb43 Renamed the BMessengers to make clearer to which messengers they
refer to. Made some parameters const references. Removed leftovers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 18:35:54 +00:00
Stephan Aßmus
f89fd840a0 bonefish+stippi:
PThreads didn't have their array for the TLS values initialized.
From what we can tell, this would have been a problem for any program using
pthreads, but since all threads are pthreads now, it was much more likely to
be encountered. Like in Beam as reported in #4949 (which via libbind seems
to use some pthread stuff).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 18:08:56 +00:00
Stefano Ceccherini
c1ca410b12 Work in progress: converting the terminal preference window to the layout api
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 18:05:48 +00:00
Stephan Aßmus
d2b45aa3de Avoid an invalid GCC warning by using a union.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 16:37:47 +00:00
Axel Dörfler
5cea99288b * Unlock the auto locker before deleting the object or else you will find
yourself in KDL.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 16:33:09 +00:00
Axel Dörfler
54ca879739 * Also write the bitrate as attribute.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 15:16:13 +00:00
Ingo Weinhold
4d7a736bbf Some more style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 13:57:20 +00:00
Ingo Weinhold
0d1fab522b * Added flag KMESSAGE_CLONE_BUFFER, which will cause buffer passed to SetTo()
to be cloned.
* Added "flags" parameter to the SetTo(const void*,...) version.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 13:52:23 +00:00
Axel Dörfler
aea141f906 * This is a temporary work-around to let "ls" show UTF-8 characters, even
though it won't determine the correct display width.
* The actual fix would be to have the wide character API working, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 11:58:17 +00:00
Axel Dörfler
d77fe260cb * Added missing "continue" as pointed out by Siarzhuk. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 11:26:15 +00:00
Ingo Weinhold
395fb0895f Style cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 11:04:12 +00:00
Ingo Weinhold
1c61ec1aad Fixed gcc 4 warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 11:03:27 +00:00
Axel Dörfler
51576592ed * This more or less fixes bash's UTF-8 support, and closes ticket #215.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 10:33:13 +00:00
Ingo Weinhold
2425ac35d9 Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 08:14:03 +00:00
Ingo Weinhold
9136af73da Our functions deserve to be pretty.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 08:06:05 +00:00
Ingo Weinhold
c77f643a2b Added support for in-kernel node monitoring ({add,remove}_node_listener()).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-20 07:59:09 +00:00