Commit Graph

30922 Commits

Author SHA1 Message Date
Stefano Ceccherini
1d7d03eba1 Fix gcc4 warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 16:47:21 +00:00
Oliver Tappe
152c862023 * added check for size of BTextView
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 16:46:14 +00:00
Philippe Saint-Pierre
a5dc8f8639 Reverting r30894 as it seems it is what was causing the slowness reported in ticket #4247.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 16:44:31 +00:00
Philippe Saint-Pierre
da2b227ec7 Preference panel : Reverted some of my "optimizations" since Ingo (correctly) points out that:
* they (the way I did it) can do more worse than good in some case
* they (the way I did it) are generally against our coding-style

Sorry about that. (ticket #4245)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 15:31:09 +00:00
Jonas Sundström
655f15bdd2 * Clean up * Inserted window-covering view in layout hierarchy. (I removed SetLayout(). Is everything as it should be now?) * Moved creation and resizing of bitmap around and added some temporary printfs trying to figure out the drawing glitch to the right of the barberpole. The view has its view color set to B_TRANSPARENT_COLOR, but that should not affect the area to the right, outside of it. This might be unrelated, but for some reason the activity view fails to keep its barberpole bitmap bounds in sync with the view bounds. The bitmap gets created to match view bounds in AllAttached(), gets recreated by FrameResized() and yet in Draw() it does not always match the view's bounds.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 14:10:20 +00:00
Bruno G. Albuquerque
e46d0e7d91 - Even more debugging. This is temporary while #4103 is fixed.
- Added some missing \n.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 12:56:10 +00:00
Joachim Seemer
7c7436b679 * Replaced "AltGr" and "WIN" keys with "OPT" and removed other hints to a
specific keyboard layout.
* Added a note and link for OptionalPackages to welcome.html
* "Activated" Installer page in contents of applications.html
* Moved BePDF, BeZilla, Pe, Vision, VLC, Wonderbrush to own section "Bundled
  applications". The apps not included in an official image will be removed
  when we what's got to go.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 11:29:49 +00:00
Philippe Saint-Pierre
2c3476d3b7 Further optimization in the construction time of the Preference Panel (ticket #4245).
Indentation fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 05:31:27 +00:00
Philippe Saint-Pierre
307c87b225 Preference panel: Optimizations to make the window appear faster.
* In most case, the font size will already have been found with the regular check, move the extra check at the end if really it's needed.
* Some variables were declared inside loops (BTW, is that more conform to our coding style? It does feel faster if I declare them outside of the loop)
* The alignment was simplified (without visual difference).

In answer to ticket #4245.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 04:13:26 +00:00
Philippe Saint-Pierre
6478aa2744 Screenshot:
* Add extension to the filename. It gets the extension from the BMimeType related to the chosen translator.
* When you change the output format, the extension change accordingly.
* Some variable name change (variable_name -> variableName)

Ticket #3728


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 03:12:33 +00:00
Philippe Saint-Pierre
34e1987b61 Backgrounds Preflet : Fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 01:13:24 +00:00
Philippe Saint-Pierre
fcafc3a5bb Screenshot command line arguments :
* make Screenshot exit gracefully if no argument is given in combination of -d parameter
* honor the delay parameter when also used with the --silent parameter



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 00:51:05 +00:00
Philippe Saint-Pierre
085f6827a9 Jamfile: Remove mention of BackgroundImage.cpp (removed in r32424)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 00:09:05 +00:00
François Revol
03626f07a3 [ARM]
Workaround for ld using 32k alignment between ELF segments, until a proper fix is found.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 23:09:27 +00:00
Rene Gollent
f99c6783a3 Skip directories when trying to find translators. This prevents the syslog from showing runtime_loader errors about trouble reading ELF headers on a hybrid build, as it would try to call load_add_on() on the subdir entry itself too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 21:39:28 +00:00
Ingo Weinhold
9996b69b8b * Added new library libgnu.so, which will contain GNU compatibility interfaces
(analoguously to libbsd.so).
* Added an implementation of the GNU/Linux xattr interface. xattrs are mapped
  to Haiku attributes with type B_XATTR_TYPE. Haiku attributes are mapped to
  xattrs by moving them into the "user.haiku." namespace and appending the
  type to their name. Complete, but utterly untested yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 21:29:02 +00:00
Ingo Weinhold
c527fef824 Added type constant B_XATTR_TYPE. This is not a data type, but rather a marker
that can be used for node attributes, when those originate from Linux xattrs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 21:22:25 +00:00
Ingo Weinhold
7c44760049 Added ENOATTR.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 21:20:05 +00:00
Ryan Leavengood
0a74004c6e - Added back code for scrolling with the cursor keys, this time only when Shift
is pressed.

- Took Humdinger's excellent advice from #4190 to open the Backgrounds
preferences from ShowImage instead of setting the background manually. This
required some tweaks to the Backgrounds preferences to accept RefsReceived in
the application and forward that to the view. In addition the placement is
set to scaled since otherwise it will keep the old placement. How this is
done is sort of hacky, but I'm going to call it an "internal protocol." This
also allowed me to remove the BackgroundImage code from ShowImage which was
just copied from Tracker (yuck.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 21:05:23 +00:00
Bruno G. Albuquerque
25a638d411 - Implemented handling of partial matches. This must be improved
eventually as, right now, we just handle it as normal multiple matches.
- Improved error reporting for CDDB query commands.

This should fix #4103.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 21:04:00 +00:00
Philippe Saint-Pierre
f7d8d9b87a _SanitizeIDs(): An off by one error was causing a bug in the terminal window numbering.
Ticket #3372.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 20:53:18 +00:00
Philippe Saint-Pierre
a3c4ce8b7d Preferences Panel : Check if the font, size or color was indeed changed before setting it as modified, avoiding unneeded "Save/Cancel" dialog.
This fixes ticket #3348.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 18:37:07 +00:00
Stefano Ceccherini
e4ea54bdb7 Getting the screen mode should be protected, at least by a read lock.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 17:22:19 +00:00
Ingo Weinhold
e8cbd8db5d Use the handy B_CLOSE_ON_ESCAPE flag instead of fishing for the escape key in
DispatchMessage().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 17:02:21 +00:00
Ingo Weinhold
4e4ff20294 common_poll():
* Always select POLLNVAL. We wouldn't get notified, if the FD was closed while
  waiting.
* Skip negative FDs (as per POSIX standard).
* When encountering an invalid FD, we must not wait. Previously we did that as
  long as any FD was valid.
* The return count must consider all FDs with non-null revents, including
  invalid ones (revents is POLLNVAL then).

common_poll()/common_wait_for_objects():
* Don't bail out early, when no FDs/objects have been selected. We always want
  to wait.

_user_poll()/_user_wait_for_objects():
* Copy the array back to userland even if common_*() returned an error. The
  functions do now always fill in the resulting events.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 16:42:18 +00:00
Ingo Weinhold
57dc0e2a53 Changed the FD selection/deselection handling a bit:
* B_EVENT_INVALID is no longer passed to the FD's select()/deselect() hooks.
* Now we always attach the select info to the I/O context, even if no event has
  been selected. The reasoning is that B_EVENT_INVALID is always automatically
  selected and handled by the VFS, so we need the handle to notify on close().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 16:28:15 +00:00
François Revol
5ce6cb5c32 [GSoC] [ARM] Patch by Johannes Wischert.
Some debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 14:31:14 +00:00
François Revol
4b953dec79 [GSoC] [ARM] Patch by Johannes Wischert.
Do call mmu_init_for_kernel() here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 14:29:20 +00:00
François Revol
d10d43315b [GSoC] [ARM] Patch by Johannes Wischert.
Fix arch_int_are_interrupts_enabled().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 14:28:00 +00:00
François Revol
33a3c23a00 [GSoC] [ARM] Patch by Johannes Wischert.
- cleanup,
- implement atomic_set() for PXA and other pre-arm6.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 14:22:53 +00:00
Stefano Ceccherini
701dae79c9 Squashed a TODO: Added a View::InitCheck() and use it after construction. Removed the check
for View->CurrentState() == NULL.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 13:12:10 +00:00
Joachim Seemer
5af0dbf3ca * A few more changes, partly inspired by Philippe Houdoin. Thanks!
If there are more corrections, let me know. I have close to no experience
  installing Haiku...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 06:40:47 +00:00
Philippe Saint-Pierre
3a613432c9 Center the OpenWindow. The problem is that we cannot get the real size of the window before it's actually shown on screen.. the trick I did was to show it offscreen, get the real size and move the window.
Fixes ticket #4236


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 03:20:07 +00:00
Philippe Saint-Pierre
6c85c7eec8 Revert r32402. Some problems are occuring in the attribute editor and I want to make sure they aren't caused by my patch before committing for good.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 02:33:47 +00:00
François Revol
f6e18219c3 [GSoC] [ARM] Patch by Johannes Wischert.
Add assembler code to actually jump to the kernel.
The terminal now says:

kernel entry at 80048228
PANIC: acquire_spinlock: attempt to acquire lock 0x8012a59c with interrupts enabled
Welcome to Kernel Debugging Land...
Thread 0 "" running on CPU 0
kdebug>



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 02:16:23 +00:00
François Revol
d20ab0b9af [GSoC] [ARM] Patch by Johannes Wischert.
Add missing kernel stub.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 02:14:51 +00:00
François Revol
12f64a3b27 [GSoC] [ARM] Patch by Johannes Wischert.
- don't panic on missing page table, just add it,
- less debug output,
- include PXA LCD regs in hw memory map.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 02:13:39 +00:00
François Revol
bb7479a182 [GSoC] [ARM] Patch by Johannes Wischert.
Turn off interrupts at loader entryn and make sure the mmu is disabled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 02:11:07 +00:00
François Revol
639b8a4905 [GSoC] [ARM] Patch by Johannes Wischert.
This seems to work around the dynamic segment having a huge file size in headers, it must also be in the data segment...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 01:15:18 +00:00
Philippe Saint-Pierre
72dace9557 Make the FindWindow closeable with the escape key.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 23:11:09 +00:00
Philippe Saint-Pierre
498c03bdd6 StringEditor : The TextView wasn't sending messages saying its content was modified by the user.
Symptoms :
* The Save menu item wasn't enabled
* the undo/redo menu item weren't neither

The fix I made was to commit the changes made by the user to the editor instance, by augmenting the InsertText and DeleteText from the TextView.
This fixes ticket #3507.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 22:44:44 +00:00
François Revol
47eb033980 [GSoC] [ARM] Patch by Johannes Wischert.
Revert back start of kernel space to the usual place, no need to differ from other archs here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 22:33:39 +00:00
François Revol
77ae7223e9 [ARM]
Seems forcing the floating point type is not needed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 22:29:31 +00:00
François Revol
98a3545295 [ARM]
Add support for boot splash, only for PXA.
Disabled for now as it forces the framebuffer onto some useful data.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 22:14:07 +00:00
Ingo Weinhold
80abc2712f Changed the Ctrl-L behavior: The current screen is now scrolled up completely
instead of actually clearing it, so that it is still in the history.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 21:13:13 +00:00
François Revol
477d2636d8 Return B_OK on success.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 21:04:29 +00:00
Ingo Weinhold
48bbdc1c17 Fixed broken indentation (greetings to Stefano :-)).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:57:14 +00:00
François Revol
7db9fbfe80 Factor out the splash image display logic too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:51:29 +00:00
Ingo Weinhold
7cd672ff50 Fixed some gcc 4 warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:50:59 +00:00
Ingo Weinhold
f2b1ae9a76 Added escape key support in the find window (pirated from StyledEdit :-)).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:50:03 +00:00