Commit Graph

38202 Commits

Author SHA1 Message Date
Alex Wilson
6420e23bca Patch by Hamish Morrison in bluetooth server: simplify code in the bluetooth console 'Output' class.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-15 06:36:18 +00:00
Rene Gollent
c5b852f95f Patch by Shade: If the volume does not return a valid capacity, don't crash with a division by zero error. Resolves #7103. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-14 14:06:08 +00:00
Axel Dörfler
51d7642503 * Added a new B_GET_DEVICE_NAME ioctl - this should be implemented by all
drivers in the future, such that NetworkStatus and similar software can show
  nice names for the devices. The device manager should implement this and
  return the B_DEVICE_PRETTY_NAME of the device (and in turn, new style drivers
  should actually set this).
* Implemented handling of this ioctl in the scsi_periph to return the vendor/
  product strings.
* Implemented this in the ATA bus manager to return the model from the info
  block.
* KDiskDevice now fills in the partition_data::name if the B_GET_DEVICE_NAME
  succeeds.
* As a side effect, at least BootManager now shows the drive name; maybe
  DriveSetup does as well for the raw device.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-13 19:41:01 +00:00
Oliver Tappe
1f70af0957 * round up the value put into st_blocks
* inject modification time of package folder into root folder of
  package-fs


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-13 15:20:55 +00:00
François Revol
8dfd99a91c Build fix for r40196. Should now be back to previous state (breaks at vm stuff).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40229 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-13 12:29:15 +00:00
Ingo Weinhold
cd463b4dd2 find_undefined_symbol_beos(): Forgot to return the image in the code
introduced in r40211.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40228 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 22:43:01 +00:00
Oliver Tappe
80ddd8dafc * Volume::Mount(): fix KDL in case the volume-name was missing from
the mount parameters
* packagefs_read_stat(): put some sane value into st_blocks

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 22:01:03 +00:00
Siarzhuk Zharski
517621dbc2 Update Finnish localization files with actual version from HTA in
request from Jorma Karvonen.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 21:03:09 +00:00
Oliver Tappe
4ca2f6909f * added support to packagefs for picking up its volume name from the
mount parameters - there doesn't seem to be a way for a filesystem
  to access the path to which it was mounted, is there?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 20:11:13 +00:00
Axel Dörfler
b16710b814 * Replaced one occurence of sprintf() with snprintf().
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40224 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 18:42:48 +00:00
Jérôme Duval
fd4998dce7 Factorized _Update() and _Check() out of Mark(), Unmark(), CheckMarked() and CheckUnmarked().
Inline some methods.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40223 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 18:42:30 +00:00
Axel Dörfler
a1e8da4101 * Removed *_BEN() macros.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 18:24:43 +00:00
Oliver Tappe
5cf8a6abc4 * rename 'domain'-parameter to 'packages', as that's less generic
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 18:06:04 +00:00
Philippe Houdoin
9b8e30176a Removed Print test page button until the feature is actually available.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 18:01:19 +00:00
Jérôme Duval
e19ab31f64 Fixed warning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 17:56:44 +00:00
Philippe Houdoin
bcd197ad9b Removed last video_rle.cpp reference and made boot_zlib.a requirment more factual.
Thanks François for cleaning up after me.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 17:24:32 +00:00
François Revol
2f6b97dc30 This should hopefully fix build break introduced by r40215.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 17:16:05 +00:00
Philippe Houdoin
e8e66c5cbd WIP: add a print test page button.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 17:08:35 +00:00
Philippe Houdoin
67938b0d59 Switched boot splash compression to use boot_zlib (which was already
used by tarfs anyway) instead of RLE.
While this should allows larger logo/icons, it doesn't remove the
current 300000 bytes size limits for haiku_loader, so #6710 is not yet fixed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 15:43:14 +00:00
Oliver Tappe
6f8d1ab089 * implement fetching of initial domain from the mount parameters in
order to be able to mount packages from somewhere else than
  '/boot/common/packages' (squashes a TODO)
* squashed another TODO about needing to remove nodes of already 
  installed packages if anything goes wrong during the activation
  of a package domain
* fix what to me looks like a bug in Volume::AddPackageDomainJob::Do(),
  fDomain is accessed unconditionally in the destructor, so NULLing
  it here is bad (it doesn't make sense from a reference-passing POV
  either). The problem never showed as this code is never being executed
  currently (no way to add additional package domains as of yet)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40214 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 14:56:41 +00:00
Oliver Tappe
b29f1f4498 * support "." as parameter when creating a package, in order to
simplify creating a package for the contents of the current folder

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 14:45:57 +00:00
Oliver Tappe
170c1cc032 * fix check in PackageWriter against ".."
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40212 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 14:28:58 +00:00
Ingo Weinhold
ca7aa99f98 * Added SymbolLookupInfo::requestingSymbol which is passed in by
resolve_symbol().
* find_undefined_symbol_beos(): Does now check whether
  SymbolLookupInfo::requestingSymbol is defined, and, if so, returns it
  directly. This saves the time for the hash table lookup and also works
  around broken files like SoundPlay. Fixes the runtime loader part of #7094.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-12 12:43:13 +00:00
Alex Wilson
d49e0a272c In Media preflet: add an ItemWidth() method to MediaListItem::Renderer, which tells us how much space is needed onscreen for a MediaListItem. Use the new ItemWidth() method in MediaListItem::Update() to set our width. Add a MediaWindow::_UpdateListItemMinSize() method that uses the items' width to calculate the new explicit min width of our list view. This fixes a problem I saw with localized strings in the listview not being fully displayed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-11 19:34:05 +00:00
Alex Wilson
983dbb974b Patch by Hamish Morrison as part of GCI. Refactor Bluetooth server output window gui code to use the Layout API. One small change by me as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-11 18:09:19 +00:00
Jérôme Duval
776354b0f1 * HTree::_PrepareBlocksForHash() now uses arithmetic sum instead of bitwise, this should help to fix #7084.
* cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-11 17:39:51 +00:00
Rene Gollent
2cc2a34c10 Resolve TODO: Use Tracker's NaturalCompare in ImageFileNavigator in order
to preserve a consistent display order regardless of whether Tracker scripting
or the internal navigator is being used to iterate through images.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-11 00:58:31 +00:00
Rene Gollent
177d3b66f0 Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-11 00:53:33 +00:00
Ingo Weinhold
4535495d80 Merged the signals branch into trunk, with these changes:
* The team and thread kernel structures have been renamed to Team and Thread
  respectively and moved into the new BKernel namespace.
* Several (kernel add-on) sources have been converted from C to C++ since
  private kernel headers are included that are no longer C compatible.

Changes after merging:
* Fixed gcc 2 build (warnings mainly in the scary firewire bus manager).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-10 21:54:38 +00:00
Philippe Houdoin
ebf7db3afd Fixed "Haiku Operating System" reference.
This close #7086.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-10 18:25:38 +00:00
Rene Gollent
0baa186bfb Refactor a little bit in order to better handle the button states as suggested by Axel. Should resolve #7073.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-10 18:09:13 +00:00
Joachim Seemer
ed32e8efbb Set the correct source file for localization in the jam file. Corrected context string.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-10 17:36:06 +00:00
Joachim Seemer
b5a719f08e Added even more translators.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-10 17:15:10 +00:00
Oliver Tappe
afd785cf43 * fix build of app-server in debug mode - thanks to Timothy Brown
(stimut) for the hint that it was broken

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-10 13:37:45 +00:00
Rene Gollent
3927ba4b3d Don't crash if no item is currently selected. Fixes #7085.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-10 01:58:18 +00:00
Siarzhuk Zharski
97873fad0d MIME type for Screen preflet changed globally: x-vnd.Be-SCRN -> x-vnd.Haiku-Screen
Pointed by Axel. Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 23:00:56 +00:00
Siarzhuk Zharski
298dd789ed Correct the preflet MIME type mismatch in the internationalization target.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 21:33:59 +00:00
Michael Lotz
427427bc82 Create uncached glyphs on demand instead of checking glyph availability upfront.
This safes a HasGlyphs() call which would convert the whole string to glyph
codes and look each of the glyphs up in the cache entry, just to do the same
again during the loop where they are actually used. Instead we now simply switch
to the write lock and look up the fallback entry when hitting the first uncached
glyph. This benefits the normal case of having all glyphs cached without any
drawbacks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 21:24:09 +00:00
Siarzhuk Zharski
27997edca9 1) Add Google Code-In student Michael Bulash into:
- list of translators for his work on complete Belarusian translation;
   - list of contributors for his work on internationalization of LaunchBox,
     PowerStatus and ProcessController applications and following preflets:
     DataTranslations, E-Mail, Notifications, Screen, ScreenSaver, Time.
2) Corrected the name of Russian translator Rodastahm Islamov on his request.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 21:03:37 +00:00
Siarzhuk Zharski
f3fde2627d Update of Belarusian translation:
- some parts were updated by Michael Bulash during work on last GCI task;
- "bootman" was renamed to "bootmanager" - it's translation was moved correspondently.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 20:33:40 +00:00
Jérôme Duval
09af5be25d Factorized _FindNext() out of FindNextMarked() and FindNextUnmarked().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 19:11:21 +00:00
Jérôme Duval
4359b74501 * finding marked or unmarked bit in the last double word didn't work, we need to take start pos into account. Should fix #7079.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 18:51:00 +00:00
Ryan Leavengood
6c314bd590 Fix some style violations and silliness (returning something in a void method.)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 17:49:05 +00:00
Ryan Leavengood
7d9b44517b Add an auto-adjusting image navigator which can switch to a folder navigator
when the Tracker window is closed. Tested with normal navigation and
slideshows.

Axel's excellent navigation classes code made this pretty easy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 17:43:41 +00:00
Ryan Leavengood
80589ff3d4 Remove hack introduced in r36806 to offset the context menu due to our
previously bad menu handling.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 16:30:59 +00:00
Axel Dörfler
4aa636331f * Removed the slide show code from ShowImageView, and reimplemented them in
ShowImageWindow using a BMessageRunner.
* Note, this is completely untested, as it turns out my Haiku installation on
  this box is too old to run it. It compiles, at least, and shouldn't break
  anything else.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 14:58:48 +00:00
Axel Dörfler
0e193080f0 * Followed suggestion by Michael Pfeiffer, and always set the original BIOS
drive number before reset.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 13:33:09 +00:00
Siarzhuk Zharski
3ff3d896b2 GCI task results: "Add translations for newly internationalized apps - part 2 - Belarusian"
Completed by Michael Bulosh. Thank you.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 11:58:59 +00:00
Jérôme Duval
847a2179d0 data[maxIndex] can only be accessed safely when maxBit is non zero. I missed this in r40143.
This bug only happens for bitmaps with unusual lengths (often the last blockgroup block bitmap) and which happen to be full.
Should fix #7074.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 10:24:32 +00:00
Michael Lotz
5c89315772 Implement missing glyph handling, making the glyph retrieval the following:
1. If the glyph is cached, return it, as before.
2. Try to find a glyph in the fallback font, as before.
3. Check for ignorable characters as per Unicode and cache and return a zero
   width glyph (rendering as completely invisible).
4. Reset to the original font.
5. Check for whitespace as per Unicode and cache and return the normal space
   glyph.
6. If there still is no valid glyphIndex, continue with index 0 which caches
   and returns the usual "missing glyph box".

This implements the Unicode suggestions on how to handle missing glyphs and
closes #7077.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-09 04:10:13 +00:00