Commit Graph

46119 Commits

Author SHA1 Message Date
Alexander von Gluck IV
24110ddab5 Route: Don't call null function pointers
* Regression from hrev38233 (2010 baby!)
* If no netmask, don't print anything
  vs showing uninitialized data.
* Introduce "worst case address length"
  information per network family.
* Fixes #9821
2013-06-15 01:24:15 -05:00
Niels Sascha Reedijk
819b397354 Update translations from Pootle 2013-06-15 06:13:20 +02:00
Jerome Duval
b97ad33697 StyledEdit: fixed statistics words count.
* Bug #9822 and actual fix suggested by DanielW.
2013-06-14 20:42:11 +02:00
Oliver Tappe
92bb2fb33e Remove whole sys-include folder when cross-compiler has been built.
* at least for gcc2, we used to leave the 'os' subfolder in there,
  which may have caused problems when Haiku's headers have changed
  since the last time the compiler was built.
2013-06-14 16:07:06 +02:00
Oliver Tappe
df69e209bb Fix #7824: failure to build a cross-compiler on Haiku.
* force creation of a cross-compiler for both gcc2 and gcc4 when
  building on Haiku (by suffixing the build and host machine with
  '_buildhost')
2013-06-14 16:04:26 +02:00
Alexander von Gluck IV
9454a953cc PowerPC: Expand compatible platforms
* MacRISC3 and 4 are for newer PowerPC systems
2013-06-13 14:03:49 -05:00
John Scipione
8fc951cebb BFont docs: Clarify escapement_delta language.
Make it clear that the values provided by the escapement_delta struct are an
input to App Server which allows the user to specify extra horizontal space around each character and is not an output provided by App Server.
2013-06-13 14:35:03 -04:00
Pawel Dziepak
631ceff294 nfs4: Fix CID #991493: Release memory when returing an error code 2013-06-13 11:38:44 +02:00
Pawel Dziepak
d94b1808ec nfs4: Use nothrow new when creating LockInfo 2013-06-13 11:37:01 +02:00
Pawel Dziepak
5691cd5607 nfs4: Use nothrow new when creating CallbackRequest 2013-06-13 11:36:05 +02:00
Pawel Dziepak
4f5608efd6 nfs4: Fix CID #1032256: Use 4kB block size if server reports invalid value 2013-06-13 11:31:53 +02:00
Pawel Dziepak
51fb559348 nfs4: Fix CID #1032257: ERR_DENIED is expected only when a cookie is given 2013-06-13 11:28:26 +02:00
Pawel Dziepak
04fa44c37e nfs4: Fix CID #1032280: Prevent integer overflow
* Do not increase delay after tenth attempt
 * Cast 1 to bigtime_t before shifting it left
2013-06-13 11:26:30 +02:00
Pawel Dziepak
69c8011e6e nfs4: Remove unused member variable NFS4Server::fClientIdInit 2013-06-13 02:04:35 +02:00
Pawel Dziepak
1192182c89 nfs4: Fix CID #991617: Set cookie file system at its creation 2013-06-13 02:04:34 +02:00
Pawel Dziepak
b92a3dcc61 nfs4: Clear PeerAddress before attempting to get local address
If PeerAddress is cleared before invoking GetLocalAddress() we make sure
it won't contain any garbage data in a very unlike case when getsockname()
fails.
2013-06-13 02:04:33 +02:00
John Scipione
7a66a8375d Check if disk has compilation artist
... before looking for track specific artist information. Fixes #9813

Signed-off-by: John Scipione <jscipione@gmail.com>
2013-06-12 19:02:00 -04:00
John Scipione
1f0b41ba7f BColorControl: Position text controls better
Position the text control vertically in the middle of the ramp in
the case that the text controls are pushed down so that the red, green,
and blue text controls are next to the red, green, and blue ramps.
2013-06-10 19:15:11 -04:00
John Scipione
d5432ed609 BColorControl: Refactor _LayoutView()
In a few cases we were doing the work of _LayoutView() twice because
we called _LayoutView() and then called ResizeToPreferred() which called
_LayoutView() again.

Now only call ResizeToPreferred() which calls _LayoutView().
2013-06-10 19:15:10 -04:00
John Scipione
da6c116d63 BColorControl: Introduce kRampCount magic constant. 2013-06-10 19:15:09 -04:00
John Scipione
8b3b14fdfa BColorControl: Introduce a _PaletteFrame() method
... eliminating duplicate code.
2013-06-10 19:15:09 -04:00
John Scipione
abbd44acfb BColorControl: Rename bevelRect to just rect
... with an explanatory comment. Correct similar comment.
Tiny style fix.
2013-06-10 19:15:08 -04:00
John Scipione
62fec205dd BColorControl: Size text rect based on font size
* Also change kMinCellSize from a uint32 to a float so that it can be used
  with std::min() and std::max() instead of min_c() and max_c().
* Set the text controls sizes and margins based on the font size. Also rework
  _TextRectOffset() so that it will get the right spacing from by dividing the
  palette frame by 3.
* Replace bare numbers and refactor with calculation or magic constant.
* Create a private method _TextRectOffset() which calculates and
  returns the vertical text rect offset to use based on the font size.
* Replace 2.0 with new kBevelSpacing constant where appropriate.
* fPaletteFrame calculation in _LayoutView() was refactored but should
  not have changed.
2013-06-10 19:15:07 -04:00
John Scipione
1186916f06 BColorControl: Create _SetCellSize() method
...eliminating duplicated code.
2013-06-10 19:15:07 -04:00
John Scipione
0289f92063 BColorControl: Style fixes
* Update copyright in header, add my name, alphabetize.
* Rename _ColorRamp() to _DrawColorRamp().
* Rename update parameter to updateRect
2013-06-10 19:15:06 -04:00
John Scipione
2a95812e46 Mail: Tweak the height of the menu fields
Since hrev45725 we no longer resize fixed sized menu fields to their preferred
height in the constructor so as to be backwards compatible with the behavior on
BeOS R5. As a consequence though, the menu fields in Mail are now a bit too
tall so this commit tweaks the menu fields to be just a bit shorter matching
the height of the text controls.
2013-06-10 18:31:58 -04:00
Rene Gollent
0df5a3b0cb Fix x86-64 build. 2013-06-09 21:24:11 -04:00
Jérôme Duval
8239f0320d scsi: improved code style and use of B_PRI macros 2013-06-09 20:15:12 +02:00
Niels Sascha Reedijk
d8189e2aaf Update translations from Pootle 2013-06-08 06:14:13 +02:00
Rene Gollent
7e6a958b0b Fix regression introduced in 6b308faf.
That commit switched to a single string column for representing
breakpoint locations, but neglected to update the case of a breakpoint
in a non-debug function to actually format the address as a string
appropriately, leading to those simply showing no data since then.
2013-06-07 22:32:32 -04:00
Rene Gollent
07842a5be0 Fall back to disassembly in case typecast fails.
Since some time now, we construct minimal dwarf image debug infos
for release images if they contain frame unwind information, in order
to allow using that to unwind the stack in as many cases as possible.
As such, it's  entirely possible that such an image may be asked for
statement information regarding a function that isn't in fact compiled
with debugging. As such, we need to simply fall back to disassembly
rather than failing entirely. Fixes setting breakpoints in such
functions (i.e. anything in a release version of libstdc++).
2013-06-07 22:16:38 -04:00
John Scipione
51e2dbe7f2 Backgrounds: AddGlue() before color control
... so that it is attached to bottom of the box.
2013-06-07 15:53:13 -04:00
John Scipione
d0ddd796b2 Backgrounds: Update spacing around preview.
So that there isn't extra space at the bottom, only between the monitor
and the X and Y text controls, and the insets.
2013-06-07 15:36:57 -04:00
Jérôme Duval
6e6c121b84 virtio: added several devices ids. 2013-06-07 18:00:17 +02:00
Jérôme Duval
d323ad6708 shortcut_catcher: fixed out of bounds access and a sign warning.
* normal_map is an array with a length of 128
2013-06-07 18:00:15 +02:00
John Scipione
1c95f72222 Don't set MaxContentWidth on the menu bar of a BMenuField
Fixes #9816

It is no longer necessary, or even desirable for us to set the max
content width of the menu bar of a BMenuField now that BMenuItem
truncation and BMenuField sizing are working.

The user may, however, wish to set the max content width of the menu
bar of a BMenuField themselves like so:

menuField->MenuBar()->SetMaxContentWidth(width);

and the Interface Kit will automatically deduct the left and right
margins from the width including the space used by the drop down arrow.
2013-06-07 03:25:36 -04:00
Rene Gollent
37e0f72711 Slight tweak to filtered node expansion logic.
When a filter is active, only expand parent nodes if either a) there is
only one matching parent, or 2) the match actually hit a function
contained in it. This allows the case where the intent of the filter is
to find a particular set of files or subdirectories to be handled more
efficiently.
2013-06-06 18:24:37 -04:00
Rene Gollent
8b98295a68 Redo filtering to use new RegExp classes.
ImageFunctionsView's filtering field now allows shell-style glob matches
rather than just simple direct string matches. Implements remaining
part of #7955.
2013-06-05 22:02:45 -04:00
Rene Gollent
faa0580b62 Optimizations to filter match drawing.
Store the filter match index on the SourcePathComponentNode so we can
retrieve it directly when drawing instead of having to recompute the
position of the match every time.
2013-06-05 22:02:44 -04:00
Rene Gollent
7d4a7ce33e Add ability to specify case insensitive matching. 2013-06-05 22:02:43 -04:00
Rene Gollent
47fedeb598 Import RegExp classes from Ham.
Minor adjustments made by myself to fit into Haiku better.
2013-06-05 22:02:42 -04:00
Rene Gollent
58535f5a9a Initial implementation of #9755.
- ImageFunctionsView now contains a text input allowing one to specify a
filter for its contained functions.
- When in filtered mode, the previous flattened view is used rather than
the hierarchical tree.
- The matching portion of the string is highlighted. However, currently
only simple string matches are supported.
2013-06-05 22:02:42 -04:00
Rene Gollent
cc27aad6b0 BCLV: Force scrollbar fixup if cleared. 2013-06-05 22:02:41 -04:00
Pete Goodeve
528ca6aefa adjust fluidsynth fine tuning range to match standard 2013-06-05 13:14:11 +02:00
Alexander von Gluck IV
67b2c0fee3 PowerPC: Transition back to CHRP script.
* After examining MacOS toolbox roms, I think i've got
  this nailed down. The MacOS Toolbox rom contains chrp
  code at the top and binary code at the bottom.
* The Raw format for the chrp seemed to cause issues with the
  OpenFirmware boot process on some systems.  NetBSD uses a '-'
  file type.
* The format of the chrp seems a lot more sensitive across machines
  than described. Ensure our returns and spaces are even.
* Booting with the 'c' key is still working on my older OpenFirmware
  machine with the chrp script. The bitmap logo is a half black, half
  white box.
* I removed the &device; alias for now for troubleshooing. It also may
  of been causing compatibility issues. More testing is needed.
2013-06-05 03:24:42 -05:00
Alexander von Gluck IV
1072a5e777 PowerPC: Fix 'c' key booting of CD on Apple hardware
* It seems like not all NewWorld OpenFirmware
  versions support booting from CHRP scripts.
* Move Haiku elf bootloader into bootloader.b
  type tbxi. As it is in the blessed directory
  it is picked up by cd:,\\:tbxi
* Adjust bootinfo.txt to point to bootloader
  &device; ensures that the image can be started
  regardless of source media
* Adjust bootinfo.txt to use \\ as base. \\ is an
  alias for the blessed folder on the boot media
* Rename ofboot.b to ofboot.chrp to avoid confusion
* Add .txt, .html to hfs.map to identify them properly
* The haiku-boot-cd-ppc.iso now boots on my G3 PowerBook
  by holding the 'c' key at startup. The boot menu colors
  are incorrect (white background) but it is a step in
  the right direction.
* New chrp script. Blank icon for the moment, if someone
  could figure out how to make a chrp icon that would be
  neat.
* Tested working on qemu and real hardware. Need to test
  on a more modern PowerPC Mac however.
2013-06-04 22:08:25 -05:00
Rene Gollent
35a2e0e615 Update Vision package again.
- Reworks how settings are handled: if the settings file has not yet
been created or is empty, we now populate defaults from
appdir/InitialSettings.
2013-06-04 20:48:08 -04:00
Rene Gollent
65af2da017 Update Vision package.
- Update to version 2013-06-04, backports haiku notification support from trunk.
2013-06-04 19:59:12 -04:00
Axel Dörfler
3475107981 network stack: added missing put_device_interface().
* Part of #7040, thanks diver!
2013-06-03 21:22:59 +02:00
Alexander von Gluck IV
43f7771e2c NetServer: Disable IPv6 link local address (for now)
* After lots of testing and playing, our v6 stack
  just isn't ready for this level of prime time as
  we lack IPv6 address scope flags.
* Fixes regression in #9594
2013-06-02 21:43:17 -05:00