36024 Commits

Author SHA1 Message Date
Axel Dörfler
f65256c2e7 * Fixed a bug in BNetworkRoster::GetNextInterface() that caused an endless loop
and always returned the first interface.
* Fixed bug #6436 by using the new BNetworkRoster functionality.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37994 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37994
2010-08-09 19:12:51 +00:00
Axel Dörfler
4af124a15a * We need to acquire references to the interface_address when copying/cloning
the buffer, and we also need to release it when freeing it.
* Adapted patch by Atis: append_cloned_data() now preserves the stored header;
  this is kind of bad, because it will not notice if the original header is
  removed, but this could probably just be documented this way.
* Also print the reference count of the interface addresses.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37993 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37993
2010-08-09 19:03:39 +00:00
Fredrik Holmqvist
719c470746 Header defines the default value for Archive's second param. Fixes build bustage.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37992 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37992
2010-08-09 18:40:26 +00:00
Axel Dörfler
c8b53acf35 * Also initialize the arp_protocol::local_address field, spotted by Atis,
thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37991 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37991
2010-08-09 17:53:42 +00:00
Axel Dörfler
78abd72799 * Made the work-around that Atis added to ifconfig and the net_server
in order to be able to use SIOCSIFADDR (and friends) on a net yet added
  family superfluous; we now add a new address when needed on the fly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37990 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37990
2010-08-09 17:08:41 +00:00
Oliver Tappe
a4bcdeaaf1 Fix another glitch reported in #6435
* when shrinking the gap, avoid that deleting the next character will shrink
  the gap again


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37989 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37989
2010-08-09 16:39:43 +00:00
Axel Dörfler
c2808ea7b2 * Adapted API as needed, and implemented most of the C++ API - it's completely
untested at this point, though.
* Will port ifconfig, NetworkStatus, and the Network preferences application
  later in order to test the API.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37988 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37988
2010-08-09 16:31:40 +00:00
Oliver Tappe
7e31a05ca5 Close #6435:
* fix problem in TextGapBuffer which could lead to data loss at end of buffer
  when deleting large chunks of text
 

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37987 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37987
2010-08-09 16:30:28 +00:00
Axel Dörfler
d91215d3f1 * Added DescriptorCloser helper class.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37986 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37986
2010-08-09 16:30:24 +00:00
Axel Dörfler
969d58acec * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37985 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37985
2010-08-09 16:30:04 +00:00
Oliver Tappe
c34238562b * style cleanup - no functional change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37984 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37984
2010-08-09 15:12:43 +00:00
DarkWyrm
557791732c Style fixes
Replaced text box in string editor with a BTextView
Added support for editing CSTR fields
Added resource file and appropriate information



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37983 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37983
2010-08-09 13:38:54 +00:00
DarkWyrm
4a31ed96f9 Patch a confusing bug which showed "Replace all" as a choice after choosing to skip files which already exist
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37982 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37982
2010-08-09 13:33:50 +00:00
Adrien Destugues
3290008f1e * Add the warning and info boxes from userguide. However, I don't know how to upload the associated images to the api
server.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37981 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37981
2010-08-09 08:46:16 +00:00
Alexandre Deckner
894cf4f363 * Apply patch from Takashi Murai: use layouting for Tracker settings window/views.
Slight modifications to the patch:
    Put back passing the view names (eventhough it seem useless atm).
    One or two small indenting issues.
    Implemented your todo (listview width adapts to the longest item).
  
  Thanks a lot.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37978 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37978
2010-08-08 23:46:59 +00:00
Adrien Destugues
4db75e5128 * Fix typo pointed out by umccoullough. I should get a real keyboard.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37977 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37977
2010-08-08 17:29:32 +00:00
Adrien Destugues
e579ff38fb * Added a note about the network libraries being incompatible with BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37976 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37976
2010-08-08 16:20:09 +00:00
Stefano Ceccherini
5a5cebea3d Forgot to commit this some time ago: Disable debug printfs()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37975 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37975
2010-08-08 15:32:12 +00:00
Alexandre Deckner
43f24e051b * Apply patch by Takashi Murai, find menu items by message code instead of item name (correcting previous patch)
I've found more occurences but i will solve it differently since they are about finding messageless submenus.
  Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37974 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37974
2010-08-08 14:37:06 +00:00
Stefano Ceccherini
e749444dfb Style
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37973 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev37973
2010-08-08 12:48:19 +00:00
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
hrev37972
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
hrev37971
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
hrev37970
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
hrev37969
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
hrev37968
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
hrev37967
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
hrev37966
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
hrev37965
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
hrev37964
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
hrev37963
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
hrev37962
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
hrev37961
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
hrev37960
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
hrev37959
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
hrev37958
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
hrev37957
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
hrev37956
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
hrev37955
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
hrev37954
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
hrev37953
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
hrev37952
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
hrev37950
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
hrev37949
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
hrev37948
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
hrev37947
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
hrev37944
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
hrev37942
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
hrev37941
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
hrev37940
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
hrev37939
2010-08-06 12:21:34 +00:00