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
Rene Gollent
83868e649d
Defer actually spawning the thread to the call to Run(). The way the thread manager is currently written as a whole won't correctly enforce the thread limit (looking into that, though I think a different approach entirely is merited here anyways), but this at least prevents large numbers of threads from being spawned and sitting in the suspended state in the registrar forever. Fixes ticket #3172 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-04 00:28:03 +00:00
Rene Gollent
c3341227ea
If the source volume is read only, only allow a copy op since move makes no sense in this case. Ideally we should probably also modify NavMenu and the drag context menu to only present the options that make sense in a particular situation. Fixes ticket #3195 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-03 14:43:23 +00:00
Rene Gollent
f836b0656b
Updated CVS and yasm packages, thanks to Scott McCreary for the updates!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-03 02:46:59 +00:00
Rene Gollent
4f7d38d331
Correctly indicate "Copying" vs "Moving" state in status window (thanks Adrian Panasiuk for pointing this out).
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-02 23:05:06 +00:00
Rene Gollent
91da321846
Remove unnecessary length check, and add a clarifying comment.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-02 00:41:02 +00:00
Rene Gollent
4ebaf16fab
We need to check if we have an exact match in order to match BeOS's behavior (a directory is considered to contain itself on R5). Nice catch Axel!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-02 00:19:40 +00:00
Rene Gollent
6020e8a4c3
When comparing paths, we need to ensure that the entry's path does in fact have a path separator at the same position as the original, otherwise we incorrectly indicate containment in some cases. Fixes ticket #3186 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-01 14:08:53 +00:00
Rene Gollent
87f41e61ea
Resolve several bugs that are probably as old as Tracker itself:
...
1) Move To now works as advertised in all cases - previously it
silently converted a move into a copy if the destination volume
was different, as its move code was not geared towards handling
that case properly. This also has the side effect that drag and
drop is now always a move as well unless overridden via right click
DnD. This may or may not be reverted back to the original behavior
later depending on the consensus.
2) Copying a folder onto another folder of the same name now merges
the contents instead of destroying the original. This fixes ticket
#1420 . Still to do: interactive prompting to allow fine grained file
replacement and skipping in this and other multi-file cases, but
I'll open a new enhancement ticket for that.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-26 03:40:41 +00:00
Rene Gollent
52a7c90673
Position-based binary searching can only be used if the view has been attached
...
to a window already. If not, we fall back to using the BList-based search.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 06:04:53 +00:00
Rene Gollent
4e0a1b40ad
Temporarily revert that last change since it breaks the IM Kit's preflet for reasons I don't yet understand. Investigating.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 05:11:37 +00:00
Rene Gollent
128cb2f6f3
Minor optimization: since our list items cache their position information,
...
take advantage of this fact to make use of binary search in
IndexOf(BListItem *), rather than using BList's linear search.
Also use this mechanism to speed up HasItem(BListItem *).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 04:41:51 +00:00
Rene Gollent
633645bca9
Fix a potential race condition in BPopUpMenu: if Go() is called on an async
...
popup menu that hasn't yet been completely dismissed, it's possible to hit a
debugger call because the menu's view tries to add itself to the menu window
before the previous menu instance has removed it. This was quite easy to
hit with things like BColumnListView's column title context menu, since there
is no notification for when the menu was dismissed without invoking an item,
and thus double right clicking quickly enough would hit the debugger. Go()
now checks if the menu's tracking thread is still up, and if it is, waits for
it to go away before trying to start another instance. Fixes ticket #3146 .
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 04:01:05 +00:00
Rene Gollent
6826c30a25
When an item is added to the list, we must immediately set its top,
...
otherwise if it tries to make use of any positional information in the
subsequent call to Update() (i.e. calls to ItemFrame(), or Top(), it will
get back bogus coordinates. This should correctly fix the problems seen with
Themes, possibly amongst others.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-19 03:54:59 +00:00
Rene Gollent
6cf3a9ebf7
The previous commit exposed another bug: BWindow::Zoom() incorrectly calculated the max height of the window by only including the border width once. This was previously masked by the fact that the (by default 5) extra pixels were included in its hardcoded default for the height of the tab. Also add the border width to the message returned by GetDecoratorSettings() so Zoom can use the actual value instead of hardcoding it.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-17 04:15:51 +00:00
Rene Gollent
ca9a61313a
Resolved a small todo thanks to r28664:
...
We now ask the app_server for the window tab's height instead of
hardcoding it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-17 00:47:23 +00:00
Rene Gollent
d27b24661d
Fix a few minor problems that resulted in the sound column not being drawn until clicked. Also changed CLV to use B_PLAIN_BORDER. This fixes the redraw issues in ticket #2980 .
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-15 16:38:54 +00:00
Rene Gollent
e02ed691ca
Patch by Adrian Panasiuk: fix broken TRACE macro definitions (ticket #3133 ). Thanks!
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-15 02:42:56 +00:00
Rene Gollent
dfdca9b67f
Remove.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 13:47:58 +00:00
Rene Gollent
eb40d3eb59
Restore accidentally removed comment.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 13:45:21 +00:00
Rene Gollent
577fe1f9a1
Implement missing B_CREATE_PROPERTY.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 05:52:43 +00:00
Rene Gollent
433cc8bc0f
Resolved some more misunderstandings in how this is supposed to work. Ticket #3087 should finally be fixed now.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 04:54:47 +00:00
Rene Gollent
f871c6f737
Reset the drawing state to that of the client view after we finish drawing the workspaces replicant. This fixes artifacts like fonts occasionally appearing tiny when selecting/deselecting items on the Desktop if the Workspaces replicant was also embedded.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 22:04:51 +00:00
Rene Gollent
c02466e6ee
Alter the order in which we updated our cached items. This fixes things like mmu_man's Themes app which has somewhat unusual list items that embed BViews.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 18:20:01 +00:00
Rene Gollent
00c3e84a23
When previously fixing shelf scripting for BSnow, I accidentally broke nested specifiers (i.e. Get ID of Replicant).
...
This should fix ticket #3087 .
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 22:59:22 +00:00