Commit Graph

36004 Commits

Author SHA1 Message Date
Stefano Ceccherini
6fa16ae6e5 Add parenthesis, otherwise the code is broken
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-08 12:43:01 +00:00
Stefano Ceccherini
e571dc2536 free buffer in case of error.
CID 1695


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-08 12:35:15 +00:00
Stefano Ceccherini
5e2ed2f356 tempName was leaked in case team was NULL. CID 1702
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-08 12:11:46 +00:00
Stefano Ceccherini
e36d4dad06 Cast error to status_t when throwing, otherwise it won't be caught.
CID 1962


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-08 11:33:15 +00:00
Adrien Destugues
774d5b4dd9 * Delete broken catalog.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-08 10:12:16 +00:00
Adrien Destugues
4a1420659b * Weekly sync of catalogs from hta.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-08 09:31:06 +00:00
Alex Wilson
afe949d2f1 Fix incorrect initialization of boolean in BGridLayout::ItemRemoved() that lead to unreachable code, fixes CID 58.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-08 02:54:01 +00:00
Jérôme Duval
8d7c9617f1 CID 1318: IconView::Invoke() should match BControl::Invoke() signature.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-08 00:08:10 +00:00
Jérôme Duval
db6f1135a6 CID 1418: fInputByteSwap was leaked.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-08 00:00:54 +00:00
Jérôme Duval
5e819d74dd CID 1464: Delete an array with delete[]
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 23:49:49 +00:00
Jérôme Duval
3d8f229273 CID 1390: buf was leaked in case of error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 23:30:35 +00:00
Rene Gollent
385605d0c9 Correct previous fix, clearly I'm not as awake as I should be.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 23:17:47 +00:00
Jérôme Duval
446287462b CID 1463: Delete an array with delete[]
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 23:17:26 +00:00
Rene Gollent
9e3865c76d Allocate AboutWindow on stack as suggested by Stephan.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 23:16:14 +00:00
Jérôme Duval
19eab0dda2 CID 1722: Allocate BAboutWindow on the stack.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 22:59:25 +00:00
Adrien Destugues
e31605f41b CID 1514 : No need to use dynamic_cast as we know the list only contains compatible objects.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 17:47:44 +00:00
Adrien Destugues
c9b2be8bea CID 1643 : Off-byÃ-one rray access.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 17:31:36 +00:00
Adrien Destugues
2644dc421a CID 1717: BAboutBoxmust be deleted after use.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 17:26:44 +00:00
Adrien Destugues
324670b9c3 CID 1716: BAboutWindow needs to be deleted after use.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 17:21:59 +00:00
Adrien Destugues
e015add185 CID 1761 : Dereferencing a potentially NULL pointer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 16:57:23 +00:00
Adrien Destugues
456d57afb2 * be_locale_roster->GetLanguage may fail. Fixes CID 2002.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 16:48:43 +00:00
Adrien Destugues
5393193d0a * Fix some typos in the API reference for BLocale and BCatalog.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 14:08:05 +00:00
Adrien Destugues
4a7b2e0484 * Add FormatDateTime function to BLocale
* Use the function to localize the date/time in tracker.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 11:22:16 +00:00
François Revol
abfa93e2e6 Fix warnings & build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-07 00:32:31 +00:00
Jérôme Duval
40277b7b25 merged freetype 2.4.2
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-06 23:01:05 +00:00
Michael Pfeiffer
032a8371aa As per Stephans request re-added comment that I
removed in r37939.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-06 18:24:48 +00:00
Axel Dörfler
bf58f252de * Adapted headers after Stippi's suggestions - I won't add the const until I
know how I implement that function :-)
* Cleaned up libbnetapi.so Jamfile, removed non-Haiku target code.
* Added empty files to the build to see that the headers are compiling.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-06 13:22:25 +00:00
Axel Dörfler
1f9c8c4576 * Changed the _SIZEOF_ADDR_IFREQ() macro such that it can be used how we are
using it - hopefully, that is actually correct (it's adopted from FreeBSD).
* Fixed bug that cut off the sockaddr_dl reported by the system, so that DHCP
  wouldn't work anymore (and ifconfig wouldn't show the actual MAC address
  anymore).
* Changed the listing code to actually pad to ifreq size, and leave the length
  of the sockaddr untouched.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-06 12:58:02 +00:00
Axel Dörfler
8b6048a285 * The sockaddr_dl can actually be longer than sockaddr, so we need to use a
sockaddr_storage here (wasn't that bad before, as ifreq has a 30 bytes buffer
  after the sockaddr.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-06 12:55:51 +00:00
Michael Pfeiffer
ab7c7773b2 * With blessing from Stefano applied my alternative patch
from ticket #6415: the drawing offset of a BPicture
  becomes the new drawing origin.
* This should also close ticket #6008.
* Also the Preview printer does the clipping now correctly
  outside the "printable rectangle".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-06 12:21:34 +00:00
Axel Dörfler
081dd39e94 * Further improved debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-06 11:13:00 +00:00
Axel Dörfler
b0cf274a3f * Interface::_ChangeAddress() got the address check for equality wrong,
effectively rejecting any try to set an address.
* It now copies the new address as well in order to make sure that its
  sa_len field is set correctly.
* Improved debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-06 09:59:55 +00:00
Axel Dörfler
ff1b1ac7ff * Introduced first draft of a C++ network API. Comments welcome (I haven't
started implementing it yet, anyway).
* Note that BNetworkAddress is supposed to replace BNetAddress -- the latter
  does not provide enough space for a struct sockaddr_storage, and has a very
  IPv4 specific and incapable API, anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-06 08:08:02 +00:00
Oliver Tappe
562ccb03cc * introduced stubbed TimeBackend to libroot, which will contain implementations
of localtime(), gmtime() and mktime()
* implemented tzset() to read the required info from libroot_timezone_info

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 21:50:26 +00:00
Oliver Tappe
85b54438f7 * the Time preflet now writes timezone info required by the POSIX layer into
a specific file (/boot/common/settings/libroot_timezone_info)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 21:46:05 +00:00
Oliver Tappe
e4da3d6691 * added support for all the different names (std/dst, long/short) and daylight
support to BTimeZone

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 21:44:38 +00:00
Oliver Tappe
9d391816b7 * clearified that stime() has nothing to do with timezones
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 21:42:56 +00:00
Oliver Tappe
2cb26c0ab0 * moved ErrnoMaintainer into its own header to be reusable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 21:41:29 +00:00
Clemens Zeidler
a52ec87162 Group header by type. Thanks Axel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 19:21:37 +00:00
Adrien Destugues
0f2ec5c270 * Remove "date & time" view from tracker settings, since it will soon use the locale kit settings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 13:39:44 +00:00
Axel Dörfler
6b1e148824 * Only actually call change_address() of the net_datalink_protocols if the
address actually changed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 13:27:31 +00:00
Axel Dörfler
715fed4479 * Make sure the SIOCGIFCONF never returns an address with an address length
smaller than sizeof(sockaddr). This fixes a compatibility issue with other
  platforms - portable software often assumes that the amount of bytes to
  add to an ifreq structure is the larger amount between sizeof(ifreq), and
  basically what the _SIZEOF_ADDR_IFREQ() macro returns, instead of always
  relying on that macro.
* Renamed UserBuffer::Copy() to Push, ConsumedAmount() to BytesConsumed(),
  added Pad() method.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 13:17:12 +00:00
Axel Dörfler
40061f8fd5 * Use the _SIZEOF_ADDR_IFREQ() macro instead of computing the length manually.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 13:13:02 +00:00
Adrien Destugues
0a4e27c50b * Fixed the main page entry for locale kit
* Also parse the actual code to get the methods shown in the classes, inheritance diagrams, and all that stuff
 * Add some docs on date formatting to BLocale


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 12:09:20 +00:00
Axel Dörfler
481f986b59 * Added missing clear() method.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 11:23:01 +00:00
Axel Dörfler
cb51fb9e4d * Turns out it wasn't such a bright idea to reset the protocol in
arp_update_entry() for known entries, as it also uses that to update the
  timestamp.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 11:09:17 +00:00
Axel Dörfler
691749c0a3 * Changed mouse down behavior for all mouse modes while dragging a window: now
a second click on the right mouse button will raise the window again.
* Desktop::SendWindowBehind() now locks a bit earlier, as some of the things
  it did shouln't really be done without holding a lock (depending from where
  it was called).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 11:06:10 +00:00
Philippe Houdoin
6eba591215 Import GLSL brick demo (small change: no glew, which one day we should support though).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 10:46:08 +00:00
Philippe Houdoin
3f7aeed212 Don't link with libstdc++ for plain C samples.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 10:43:56 +00:00
Adrien Destugues
4ebeabb639 * Remove GetLocaleName from BCountry
* Add GetName to BLocale instead


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 10:19:22 +00:00