Rene Gollent
909dad39fb
Mark Flurry as x86-only for now, as other platforms don't yet have a libGL. Thanks again to Urias.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 03:35:59 +00:00
Rene Gollent
fcd5f6b97c
Patch by Urias McCullough: Fix userlandfs build on ppc (unused variable warning/error). Thanks!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 02:43:35 +00:00
Rene Gollent
df0389f978
Fix building library symlinks. Should un-break building things within Haiku. Thanks Axel for helping track this down.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-03 23:34:13 +00:00
Rene Gollent
14df3c2bed
Various tweaks - 1) while enqueued, keep track of which run queue a thread is in on the scheduler data structure, and use this information so that set_thread_priority doesn't have to search every CPU to find the thread. Also slightly tweak the enqueue and steal operations to take advantage of some of the stats we're now tracking, and experiment with variable quantum sizes for low priority CPU bound threads. Still lots of work to do with respect to balancing and/or affinity though.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-02 03:13:55 +00:00
Rene Gollent
0ae9a91575
gcc4 build fix - thanks to Artur Wyszynski for submitting. Closes ticket #3652 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-02 03:03:16 +00:00
Rene Gollent
f03b0a18cc
gcc4 build fixes.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 17:59:23 +00:00
Rene Gollent
4cabb4a077
Integer precision is good enough for us here. Thanks Axel.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 21:44:44 +00:00
Rene Gollent
a638252106
Use correct case for Preferences folder name.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 20:42:42 +00:00
Rene Gollent
684409f06f
Add symlink to config/be/Preferences when installing Bluetooth optional package.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 20:38:32 +00:00
Rene Gollent
6ad5d4edc0
dump_run_queue() now outputs the average quantum usage for threads as well. Not quite formatted properly due to what appear to be limitations in kprintf's handling of float format specifiers. Need to investigate.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 18:11:28 +00:00
Rene Gollent
bd037e94a0
Track the number of threads in each CPU's runqueue.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 17:14:52 +00:00
Rene Gollent
6c990aa4af
Start tracking thread timeslice usage. Not actually used for any determinations just yet, but will be.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 17:08:10 +00:00
Rene Gollent
dc707c28aa
Small cleanup, no functional change.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 16:53:38 +00:00
Rene Gollent
8e26769c8b
Patch by Bryce Groff: add line number display to StyledEdit. Fixes ticket #2623 . It does however expose an interesting curiosity in BTextView - CurrentLine() does not count a line until it's actually had some text put into it (i.e. simply hitting enter at the last line of the doc does not increment the number that CurrentLine() returns. Is this an oversight or does R5 behave this way also?
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 16:29:53 +00:00
Rene Gollent
9236d82104
Update Vision package to fix missing InfoPopper support and an off by one pixel bug in the notify list.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 23:21:08 +00:00
Rene Gollent
d7b73de2fd
Fix logic error that was coincidentally also triggering a gcc4 warning/error on build.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 22:45:19 +00:00
Rene Gollent
a27b5524c8
Fix code style violation (thanks Axel! ;-)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 15:26:15 +00:00
Rene Gollent
40ae63da1d
No longer necessary.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 02:18:03 +00:00
Rene Gollent
076cc460a0
Have BFS create the BEOS:APP_SIG index by default also. Otherwise launching applications by signature off any partition other than one created via the build system will fail by default (since that one currently adds the index manually in build_haiku_image).
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 02:17:05 +00:00
Rene Gollent
0296b82ae6
Add several extra scheduler hook functions to allow the scheduler(s) to maintain private housekeeping data on the thread structs. These hooks are called on thread creation/destruction and when prepping a thread for use. Review welcome.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 00:58:20 +00:00
Rene Gollent
24fde47c7a
Introduce an experimental new scheduler intended to work fundamentally the same as our existing one, but with various optimizations to better handle the SMP case:
...
1) We now maintain a runqueue per CPU, rather than a single global shared queue. Idle threads are segregated into their own queue for simplicity.
2) Enqueueing threads is now somewhat more intelligent - if the thread is pinned, it is always enqueued onto that core. Otherwise we enqueue it on whichever CPU it previously ran, unless it either hasn't run before, or that core has been disabled via ProcessController. If so, we try to enqueue it on whichever core has been the most idle recently.
3) The above allow various simplifications to thread scheduling. Pinned threads and/or disabled cores are now no longer special cases that need to be dealt with. If a CPU has no threads ready, it looks for another one to steal a thread from, though that part still needs some tuning along with enqueueing for load balancing purposes.
The chief aim here is better load balancing and support for soft affinity. However, at the moment the overall behavior still exhibits some regressions compared to the old scheduler, so it's disabled by default. If you wish to experiment/debug with it, instructions for enabling it can be found in scheduler.cpp. Much thanks to Ingo, Axel and everyone who's helped with either code review/advice or testing so far.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-22 00:39:51 +00:00
Rene Gollent
ad6da7913a
Set the initial level based on where we first click. Should fix ticket #3586 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-20 18:52:57 +00:00
Rene Gollent
591911f345
Update gcc4 package with the aforementioned changes.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-19 23:08:35 +00:00
Rene Gollent
9dd3f93aa0
Updated gcc2 Vision package with some UTF-8 bugfixes from Francois, and to pick up some updates made to ControlLook in the Haiku tree.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-19 22:17:11 +00:00
Rene Gollent
440ef69c6b
Small oversight: clicking outside of the slider should also dismiss it. Thanks Stephan!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-17 12:52:32 +00:00
Rene Gollent
12c0fc92e1
Somewhat adjusted the behavior of the volume slider. It now stays up when initially clicked and requires a second mouseclick to begin tracking it. This prevents abrupt volume changes as would be seen if you had previously turned down the volume and then invoked the volume control again (it would immediately jump to whatever level the mouse cursor happened to be at when the slider popped up). This fixes ticket #3570 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-17 01:34:50 +00:00
Rene Gollent
289b6c8d56
Remove invalid TODO.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 00:18:23 +00:00
Rene Gollent
3f71e54926
If a CPU is disabled, continue serving any threads still pinned. Otherwise disabling a CPU in ProcessController at an inopportune time will result in a total system deadlock. Might explain part of the problem in ticket #3535 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-12 22:11:17 +00:00
Rene Gollent
1c56dee2c4
We need to remove the node from our list when the pose is removed. Otherwise deleting, then recreating the same file will be rejected as a duplicate and not added to the view. Thanks to mmlr for reporting.
...
Small cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 21:34:09 +00:00
Rene Gollent
b83405163c
Update Pe package to fix some missing libs. Thanks to Matt Madia for the patch.
...
This closes ticket #3527 .
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 18:42:31 +00:00
Rene Gollent
ccefc7ac9e
Clear the node list when switching directories. Otherwise navigating out of a directory and back in single window mode will show no nodes whatsoever.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 01:50:26 +00:00
Rene Gollent
59160ac740
Fix gcc4 build. GCC 3 and up moved some of the SGI extension classes into a different namespace.
...
Fixes ticket #3524 .
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 00:48:00 +00:00
Rene Gollent
f528e1ad7a
Fix two more problems in the messaging service:
...
1) When searching the area for a place to allocate the next command, the case of the first command being the same as the last command (as is the case after adding the first message) was not correctly considered. This prevented a given area from ever containing more than one command.
2) The size of a command was incorrectly word-aligned. Rather than aligning to 32-bit boundaries, the size was truncated to between 1-3 bytes, leading to command corruption once multiple messages were in the area, eventually causing registrar to crash while retrieving the messages.
Combined these two changes result in us no longer constantly allocating/destroying areas during heavy node monitor activity.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 22:57:36 +00:00
Rene Gollent
38f4625170
Rework this again due to flaws in the previous optimization - due to its use for things like sorting the visible pose list, it would rely on whatever pose column was being used for sorting, and as such would generate false positives when the view was being ordered by certain attributes. We now use an std::hash_set to track all the nodes that have been added to the current view and use that for a duplicate check instead. Also slightly boost the max number of models per chunk that we read.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 13:42:33 +00:00
Rene Gollent
58336b68a9
Add a TODO note.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 05:49:56 +00:00
Rene Gollent
75d1cb286f
The loop that looks for the next area to add a message to has a somewhat fatal flaw: it checks for a non-zero area size (which is always set to the physical size of the area rather than the number of message commands stored within it). As a consequence, areas would never get cleaned up once allocated, which lead the kernel to steadily bleed memory if any reasonable level of node monitoring activity was going on. We now check whether or not the area's command count is non-zero instead, and use that as the criteria for selection. Fixes ticket #3518 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 05:45:32 +00:00
Rene Gollent
847af0079c
Second attempt at PoseView population optimizations: We still search for the pose in our list, but now rely on a binary search to do it instead, rather than the previous linear search. This considerably boosts population speed for large folders here, while still preserving correct behavior.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 03:54:29 +00:00
Rene Gollent
376b90d507
Update Vision to version 090301 - changes include various visual tweaks by Stephan Assmus to integrate better with Haiku's updated look. Thanks!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 17:18:45 +00:00
Rene Gollent
4438cb3b69
Prevent BTextControl from eating scripting messages it doesn't handle (though it doesn't currently handle any). Updated TODO note to clarify this. Fixes ticket #3494 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 19:59:16 +00:00
Rene Gollent
3291c58044
Revert the PoseView change from r29190. This is incorrect since the outline setting only applies to the desktop poseviews, and is explicitly set there by the backgrounds settings code in BackgroundImage.cpp. This fixes the font rendering artifacts reported in ticket #3467 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-21 23:41:48 +00:00
Rene Gollent
ec8c04cc2c
Never show the copy cursor if the item being dragged is a volume or the disks icon. Fixes ticket #3468 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-21 23:07:38 +00:00
Rene Gollent
95da064570
Some pose performance improvements by aldeck and myself:
...
1) We don't need to call FindPose() on every pose as we're freshly adding it,
and a duplicate should never happen in this circumstance (the FindPose() is still there if
Tracker is compiled in debug mode however.
2) Adjust the FSClipboard calls such that the locking is optional. This allows us to lock
once per CreatePoses group rather than once per pose.
Together these changes make for a significant performance improvement when it comes to
populating a large folder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-14 19:54:47 +00:00
Rene Gollent
1e5a02e76f
Renamed usb_dev_info to listusb and made it more useful:
...
By default it now presents a relatively concise list of USB
devices found on the bus, with an optional -v flag to dump
exhaustive detail. It still also takes an optional device
parameter in case you only want information for a particular
device.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-12 00:41:05 +00:00
Rene Gollent
c4d59015f6
Slight logic cleanup that prevents excessively rechecking the drop target in some instances.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-09 05:19:50 +00:00
Rene Gollent
1ce06cec34
Minor fix I noticed by accident: touchpad pref's BApplication signature didn't match the one declared in its rdef.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-08 22:59:06 +00:00
Rene Gollent
a67852c554
Reset the cursor check state if we drag over a pose that's not a suitable DnD destination for the drag. Otherwise we'll reset the cursor back to the move state and never set to copy again unless we exit/reenter the window. Thanks to luroh for reporting.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-08 18:39:39 +00:00
Rene Gollent
81796bc0b3
Don't leak memory when aborting operations due to read-only volume.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-08 16:00:46 +00:00
Rene Gollent
c854c13348
Disallow move to trash and/or delete operations from read-only volumes. This fixes ticket #3421 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-08 14:33:22 +00:00
Rene Gollent
42fe9293f8
Tracker now alters the cursor to indicate the resulting FS op when drag and dropping files.
...
If the op is determined to be a copy, the copy cursor from Wonderbrush (thanks Stephan!) is
displayed. Otherwise, the default hand cursor is used to indicate move.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-08 01:05:34 +00:00
Rene Gollent
2558db1023
Oops. Fix backwards conditional.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-07 16:59:09 +00:00
Rene Gollent
310177b43e
ChannelSlider now sends notifications while being dragged, thus allowing the volume to be manipulated in realtime from the media prefs, rather than on mouseup only. Fixes ticket #3338 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-07 16:55:13 +00:00
Rene Gollent
e7a0fd93e2
Fix uninitialized string that was causing the deskbar volume control replicant to crash randomly.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-07 16:17:38 +00:00
Rene Gollent
2172e6b46d
Update location of p7zip package. Thanks to Scott McCreary for the patch.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-03 23:08:42 +00:00
Rene Gollent
6f215e6417
Forgot to update the symlink path in the Be menu when updating that package.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-02 23:07:47 +00:00
Rene Gollent
432bac0e7a
BColumnListView was hiding BView::ScrollTo(BPoint), due to its own child variant ScrollTo(BRow *). Fixed.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-02 01:36:54 +00:00
Rene Gollent
5ca7bf5f96
Adding const for gcc2 as well shouldn't cause any issues. Thanks Axel!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 23:28:37 +00:00
Rene Gollent
4c9838d0e4
Remove trailing spaces and add one more needed const.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 21:30:25 +00:00
Rene Gollent
85298c49be
value_info needs that change also.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 21:05:31 +00:00
Rene Gollent
306fddc54a
On gcc4 these need to be declared const. Otherwise any and every app that simply sets up a bunch of property_info structs for its scripting directives triggers many many warnings with respect to deprecated string constant conversions.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 21:02:36 +00:00
Rene Gollent
8e1e99a333
Fix Create Link from context menu.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 16:25:30 +00:00
Rene Gollent
2a8364b847
(Long overdue) update of the gcc4 Vision package to bring it to version/feature parity with the gcc2 revision.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 01:52:59 +00:00
Rene Gollent
28e82de7b3
Compute the point list for the destination items. This fixes a problem reported by BGA where dropped items in large icon mode weren't being dropped onto the location of the pointer, but rather the first available grid slot.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-31 21:48:29 +00:00
Rene Gollent
10bc1510be
Update OpenSSL package to 0.9.8j and relocate it to /boot/common. Thanks to Matt Madia and Scott McCreary for the patches! This closes ticket #2640 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-31 16:04:12 +00:00
Rene Gollent
dc027966d7
Unbreak build.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-31 15:38:35 +00:00
Rene Gollent
b8d65a49d8
This should really fix #3393 . Apparently I'm more sleep-deprived than I thought.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-31 03:21:23 +00:00
Rene Gollent
fee5fc34ff
Fix another regression preventing moving around icons. Fixes ticket #3393 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-30 23:49:02 +00:00
Rene Gollent
6a392dcec4
Skip doing the preflight size calculation in cases where the requested FS operation will be instantaneous anyways.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-30 00:08:26 +00:00
Rene Gollent
994541a836
Refactor MoveSelectionTo a bit to reuse other code instead of duplicating most of it practically verbatim with different variable names.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-29 23:49:57 +00:00
Rene Gollent
12f46bebca
Fix a regression introduced with my previous commit where forcing Move would not always be respected.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-29 22:21:22 +00:00
Rene Gollent
cfd0c07711
If the source and destination volumes of a drag and drop op do not match, default to copying unless the user has explicitly requested otherwise. TODO: visual indicator of which op is going to happen.
...
--
M PoseView.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-29 00:05:38 +00:00
Rene Gollent
0ed6eed997
Add missing consts. This fixes the fact that on gcc 4.3, including pcihdr.h will result in several thousand warnings about deprecated implicit casts.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 16:09:36 +00:00
Rene Gollent
3486acdf1e
Update Vision package - fixes a bug that would sometimes result in malformed drag and dropped clippings.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-25 16:27:44 +00:00
Rene Gollent
2409f4caa6
Fix a few style violations from my previous commit. (thanks Axel!)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 01:22:30 +00:00
Rene Gollent
5d1e75d3cb
If we're going to fail because of a missing CD drive, never show the CD player window at all instead of flickering it briefly. This fixes ticket #2333 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 01:42:15 +00:00
Rene Gollent
bd98bd9555
Slightly tweak the volume slider's tracking logic to keep attention on the mouse even if it exits the view. This allows click dragging without having to be quite as precise. Fixes ticket #3317 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 01:07:42 +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
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
2009-01-19 01:38:30 +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
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
2009-01-11 04:43:53 +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
2009-01-11 01:40:05 +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
2009-01-06 04:33:41 +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
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
2008-12-28 06:58:11 +00:00
Rene Gollent
570212a333
Fix incorrect symlink path. Thanks to Urias McCullough for reporting.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-23 04:42:43 +00:00
Rene Gollent
168cc3df42
Patch by Adrian Panasiuk: Initialize the renewal time before starting the message runner. This fixes a timing race that would trigger on some DHCP servers and result in constant renewal requests (Ticket #2531 ). Thanks!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-19 22:47:41 +00:00
Rene Gollent
cf44fcdb52
Updated patch from Olivier Cortes - complete the list of modifier keys that are checked and returned. Thanks!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-11 04:27:56 +00:00
Rene Gollent
0017304e3d
Correct a small style violation noted by Axel, and add a TODO note.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-10 14:41:10 +00:00
Rene Gollent
3332e5b796
Correct small style violation.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-10 14:36:53 +00:00
Rene Gollent
932334b709
Build fix, thanks to Olivier Cortes for submitting!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-10 14:34:36 +00:00
Rene Gollent
835e354694
Remove unnecessary comparison.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-10 02:28:00 +00:00
Rene Gollent
eaed962ce9
send_notification needs to return a status_t, otherwise the build breaks in the notifications module.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-10 01:06:50 +00:00
Rene Gollent
582f68d73f
And that should of course be Message, not Welcome...no idea how that happened..
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-10 00:54:32 +00:00
Rene Gollent
bdffbce7af
Adjust ScreenSaverRunner to make the screen saver draw once before sleeping. This fixes the perceived black screen problem with the Message screensaver. Also cleaned up Message slightly to retrieve its string from fortune more cleanly, and readded it to the build since it will no longer deadlock the screensaver module for 30 seconds at a time.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-10 00:44:14 +00:00
Rene Gollent
dbcdcf3950
Correct slight regression from r28777 - screen saver tick size can be adjusted dynamically, and thus we must update it after each complete tick. Fixes ticket #3211 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-10 00:33:55 +00:00
Rene Gollent
5a60521c89
Build fix. Redeclaration of status variable.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-09 22:36:00 +00:00
Rene Gollent
8aafdd05fc
Make the uptime view a multiline textview. This allows it to gracefully wrap the text instead of simply cutting it off when your uptime is too long to fit into the provided space. Fixes ticket #701 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-09 05:37:35 +00:00
Rene Gollent
27c43a2d8f
Implement the missing pieces to handle per workspace display mode support.
...
Adjust Workspace view to correctly scale each workspace based on the
resolution of that workspace. This exposes one or two anomalies in other
places in the app_server code though which I wasn't able to track down.
This fixes ticket #693 .
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-09 02:50:23 +00:00
Rene Gollent
a63ebcb3ca
Updated CVS package courtesy of the HaikuPorts crew - fixes the root user commit problem. Thanks!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-05 04:13:34 +00:00
Rene Gollent
4f07e62e33
Break up the screen saver update interval into 50 msec ticks. This lets us quickly evaluate if it's time to exit the screen saver, which would previously have blocked until the tick interval was up. This fixes ticket #2339 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-04 23:52:28 +00:00
Rene Gollent
71279b24dd
Adjust the thread counting to use atomic adds. This should prevent the previous scenario where many more threads than the limit could actually be spawned.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-04 03:28:19 +00:00