Commit Graph

35615 Commits

Author SHA1 Message Date
Adrien Destugues 76a4353b79 Add a new way of using the locale kit with static accessors instead of global variables. This has the following consequences :
* Applications don't have to declare BCatalog fCatalog themselves, it's now done automatically
 * Libs and add-ons can be localized just the same way (except static libraries)
For now this new system is yet disabled as I'm looking for some peer review before going on. To enable it you have to define B_TRANSLATE_USE_NEW_MACROS in each file doing catalog access. This will not stay, I'll update the 
other apps to use it.
The linking in jamfiles must be not only with liblocale.so, but also liblocalestub.a. Not sure how to handle this for user-side applications. Libraries are also required to provide a MIME signature to use any catalog.
The locale preflet is updated to the new system (as a test). Othe rapps will follow if everyone is ok with this approach.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-01 11:54:09 +00:00
Joachim Seemer 75e7233162 Moved the instructions from tool tip to a text view.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 18:04:25 +00:00
François Revol dae84707ac Patch by "notzed" (Ticket #5380): Add support for setting video mode for OMAP3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 17:39:36 +00:00
François Revol 6c6d79f7fa Add some defines for memory ranges. Missed in r37319.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 17:25:08 +00:00
François Revol 9020ce87e6 Patch by "notzed" (ticket #5368) (modified): Add bootloader support for BeagleBoard.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 17:24:11 +00:00
François Revol 46f639a821 Add an (unused yet) cylinder count var on sfdisk. We don't have any mean of calculating it from the desired image size in jam anyway.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 15:52:54 +00:00
François Revol ce3befb692 Fix uncommented extra line. Change the name of the U-Boot script to the name expected by the FreeRunner, however it really wants only a kernel binary so it doesn't work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 15:50:26 +00:00
François Revol 2eeee81944 Fix (c) years.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 15:46:03 +00:00
François Revol 0a8bfb8353 Cleanup. Use SDRAM_BASE from board_config.h.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 15:44:07 +00:00
Stefano Ceccherini 8460e00cc0 _AddDynamicItems didn't pass the keyDown parameter to _OkToProceed (noticed
by Ziusudra).
Also removed leftover fDynamicItemsAdded.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 14:49:42 +00:00
Axel Dörfler 79c273aee8 * Some cleanup, no functional change.
* Looks like this is neither using the layout engine nor has it been localized
  yet!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 13:49:27 +00:00
Ingo Weinhold c33b89b3bb Implemented a simple block allocator.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 13:27:11 +00:00
Wim van der Meer b1477985ef Add parentheses to get rid of 'suggest parentheses around && within ||' warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 12:56:34 +00:00
Wim van der Meer 1daacc6b45 Initialize variables to get rid of '<foo> may be used uninitialized in this function' warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 12:34:26 +00:00
Wim van der Meer d78da068bb Including header to get rid of a no previous prototype warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 12:28:17 +00:00
Adrien Destugues 92347737bf Fix localization of mail so that the title is put in big font no matter the language.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 11:52:51 +00:00
Wim van der Meer 50ac237cfd Fix a spelling mistake and a compiler warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 10:49:44 +00:00
François Revol 2e749db8bf Debug console on FreeRunner is on UART3, though you need a debug board.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 00:05:30 +00:00
Jérôme Duval ab0e16df04 Applied idea from idefix (see bug #5938): try to launch screen_blanker by path when a launch by signature fails.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 22:30:42 +00:00
Adrien Destugues 89666eefae Patch by Jorma Karvonnen : localize Workspaces. Thanks !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 17:33:56 +00:00
Adrien Destugues 8130a01dbe * Patch by Jorma Karvonnen : localize TV application and style fixes. Thanks !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 17:22:17 +00:00
Adrien Destugues de1057eeb1 * Add DoCatalogs call for dstcheck
* Patch by Jorma Karvonnen with some tweaks from me : localize TextSearch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 16:37:15 +00:00
Adrien Destugues 5b12845050 Some refactoring of the deskar localization code to be more effective.
There is a memory leak somewhere in deskbar, but it appears to be unrelated to the time localization change (stays even if clock is disabled), so I have no idea where it comes from.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 13:53:20 +00:00
Ingo Weinhold 952d6c8cc4 * Moved the checksum device driver to subdir "driver".
* Created a file system module and a disk system add-on. Currently only
  initializing and identifying/scanning is supported.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 10:52:16 +00:00
Ingo Weinhold 06237dd800 Removed obsolete check. Initialization parameter editing is provided by the
disk system add-ons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 10:49:03 +00:00
Adrien Destugues 77c8aa102f Should have been part of my previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 10:19:00 +00:00
Adrien Destugues 69b8708d75 Patch by Jorma Karvonnen, mostly rewritten by me :
* dstcheck is now localized
 * it also localize the date using the locale kit instead of strftime
I also added a way to force the message to display, because it helps testing a lot. Run "dstcheck force" for that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 09:34:42 +00:00
Wim van der Meer b3df2c9a87 Fixing BeOS binary compatibility.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 22:16:07 +00:00
Jérôme Duval 919f9c41da Patch from Janito Ferreira Filho with fixes by myself: Ext3 Indexed Directory Lookup (as part of GSOC).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 21:38:37 +00:00
Philippe Houdoin 307ff45454 Promoted newest 3dfx video driver by Gerald Zajac in place of the outdated tdfx driver.
Added to Haiku image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 20:43:37 +00:00
Wim van der Meer e4eb2e7e45 Reverting r37289 because it breaks the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 11:45:04 +00:00
Wim van der Meer 2ec871140d Change the tempnam() prototype in stdio.h to match its implementation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 11:11:25 +00:00
Wim van der Meer 183fcd6bf9 Adding missing #undef B_TRANSLATE_CONTEXT
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 10:27:09 +00:00
Wim van der Meer 9cedafe60c Adding missing #undef B_TRANSLATE_CONTEXT
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 09:53:35 +00:00
Wim van der Meer 31f2baa4fd Changeset r37275 makes the name parameter in the BGLView class constructor a const char*, which breaks binary compatibility with R5.
This change uses _BEOS_R5_COMPATIBLE_ to determine which function prototype to use.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 09:03:55 +00:00
Wim van der Meer 12039d82c4 Adding missing #undef B_TRANSLATE_CONTEXT
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 07:21:37 +00:00
Wim van der Meer 5e7078ae5b Adding missing #undef B_TRANSLATE_CONTEXT
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 07:18:15 +00:00
Wim van der Meer 07f82a07cd Adding missing #undef B_TRANSLATE_CONTEXT
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 07:11:26 +00:00
Wim van der Meer b0eb1f9aff Adding missing #undef B_TRANSLATE_CONTEXT
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 07:08:29 +00:00
Wim van der Meer 745f423b2a Adding missing #undef B_TRANSLATE_CONTEXT
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 06:49:38 +00:00
Wim van der Meer cc507fa3f3 Fixes compiler warnings and coding style. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 06:26:08 +00:00
Andreas Färber 7656ad6be1 kernel_ppc: Use saved register state for stack trace of current thread
Suggested by Ingo in ticket #6139. This shortens the stack trace and makes it
independent of whether called implicitly on KDL entry or manually from the
kernel debugger prompt.

For a kernel panic, "panic" is now the top-most frame printed.

Closes ticket #6160.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 21:34:31 +00:00
Andreas Färber d46ce4d62a kernel_ppc: Save caller's stack pointer in arch_debug_save_registers
Suggested by Ingo in ticket #6139. Code is adapted from x86.
Note that on ppc64 GPR1 needs to be 64-bit, thus the choice of addr_t.

Resolves part of ticket #6160.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 20:16:59 +00:00
Andreas Färber 4fa4224a1d OpenFirmware: Assure machine type is initialized
On QEMU's emulation of a PowerPC Old World Mac (g3beige), determine_machine()
returns without setting the machine type to unknown, since the root device
does not provide a device_type property.

Move the variable assignment up a few lines to remedy this.

Closes ticket #6123.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 17:56:05 +00:00
Andreas Färber b62981b983 OpenFirmware: Make of_milliseconds() return error
The only user of of_milliseconds(), the boot loader's system_time(),
checks for an error that would never be signalled since the zero-initialized
number of milliseconds would always be returned.

Return OF_FAILED instead to allow explicit error handling in that case.

While this is a behavioral change, it is not yet a functional change,
for system_time()'s implementation translates OF_FAILED back to zero currently.

Resolves part of ticket #6061.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 15:17:59 +00:00
Wim van der Meer 3d00bd66b8 Compiler warning and code style fixes. No functional changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 10:38:05 +00:00
Wim van der Meer ca29fe0117 Compiler warning fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 10:17:50 +00:00
Wim van der Meer 0d29a22888 Compiler warning fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 09:54:23 +00:00
Wim van der Meer 329e7bd264 Compiler warning fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 09:11:17 +00:00
Wim van der Meer 3433f0dc1a Compiler warning fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 08:52:26 +00:00