Commit Graph

36313 Commits

Author SHA1 Message Date
Adrien Destugues
f7502de1bb Look for catkeys files with .catkeys extension instead of .txt, since that's what everyone uses.
It makes it easier and less confusing to test catalogs without linking them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 13:49:52 +00:00
Axel Dörfler
b250dfdf26 * The ActivityMonitor now uses the new network C++ API to retrieve the
interface stats. This fixes bug #6457.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 11:57:01 +00:00
Axel Dörfler
3f7e748f91 * Made the code a bit more robust against faulty use.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 11:45:56 +00:00
Axel Dörfler
ed18d7cf71 * Initialized the domain_datalink's first_{protocol|info} members. This fixes
the crashing bug reported by Atis when trying to add an interface which fails
  (the bug causing this has already been fixed with the previous commit).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 11:45:26 +00:00
Axel Dörfler
75b83073c2 * Getting an address leaked a reference. This fixes that interfaces could not
really be deleted (a reference of them was kept in memory).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 11:43:22 +00:00
Axel Dörfler
7e046eab3b * UDP really wanted to make sure that the error buffer was freed, and just did
it once more. This should be the final nail on bug #6446.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 09:51:22 +00:00
Axel Dörfler
a690e25952 * BNetworkInterface must adopt the family from the address, if possible. This
should fix "ifconfig" for IPv6.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 09:15:33 +00:00
Adrien Destugues
f230f68b3b CID 1332 : NULL pointer dereference.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 08:27:20 +00:00
Adrien Destugues
28a4c1b470 CID 1513: NULL pointer dereference.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 08:16:09 +00:00
Adrien Destugues
bd792754f1 CID 1396: NULL pointer dereference.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 08:05:12 +00:00
Adrien Destugues
6709e6bcb8 Refactor default shell handling so it is done in a single place for a new windows and a new tab.
Use "/bin/sh -l" as the default command, and always pass -l ('login shell') to the user selected shell.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 07:53:58 +00:00
Clemens Zeidler
e71b4c11de Add a simple BWindowStack test app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 06:50:35 +00:00
Clemens Zeidler
5836cd75c2 Add a BWindowStack interface class. Please review if adding a BWindowStack as a friend of BWindow in Window.h is ok.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 06:47:26 +00:00
Clemens Zeidler
19f43b9f6a SATDecorator implements event handling and handles the stacking api requests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 06:41:35 +00:00
Clemens Zeidler
c0494bc592 Add facility to communicate with the desktop listener over an app server link. The ServerWindow dispatch the message to the DesktopObservable which dispatch it to the correct listener.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 06:25:55 +00:00
Clemens Zeidler
b8a44a250e Add function to find a window in the app server by the client looper port id. Need this for the stacking api e.g. to stack window x on window y.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 06:23:06 +00:00
Clemens Zeidler
38d80987f3 Add PortLinkRef class which use a existing sender and receiver for communication. Suggestion for a better name?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 06:12:30 +00:00
Clemens Zeidler
4667e77fe1 Set a more reasonable Variable range then the default one ([0, inf)).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 05:34:12 +00:00
Oliver Tappe
803a1f70aa * Refresh() should make sure to try and load both "locale" and "timezone"
settings, not give up when one is missing (like on a fresh image)
* try harder to fallback to proper default values when loading the locale
  settings file fails

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 22:48:00 +00:00
Oliver Tappe
dbe1e23aa8 Optimised passing around of timezone a bit
* _kern_[sg]et_timezone() now accepts/passes out the timezone name, too
* adjust Time preflet and clockconfig to pass the timezone name into the kernel
  when calling _kern_set_timezone()
* ajust implementation of tzset() to fetch the timezone name from the kernel
  via _kern_get_timezone() instead of reading 'libroot_timezone_info'
* the Time preflet no longer writes 'libroot_timezone_info'


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 22:01:28 +00:00
Oliver Tappe
a096bb6509 * adjust Time preflet to write only the name of the timezone into
libroot_timezone_info (will change again, soon)
* when formatting the preview/current time, the difference between old and
  new timezone offset has to be taken into account if the RTC is set to
  local time

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 21:17:57 +00:00
Oliver Tappe
560b10ff88 Implement tzset(), gmtime(), localtime() and mktime() on top of ICU
* no longer keep a separate time-backend, since the implementation needs to
  access (data of) the locale backend anyway
* moved more stuff from localtime_fading_out.c to localtime.cpp
* added respective tests to locale_test
* added two more tests copied from glibc, test_time.c and tst-mktime.c


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 21:14:23 +00:00
Rene Gollent
6e23be561a Fix build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 20:58:35 +00:00
Oliver Tappe
7a4000a8ea Largish overhaul of the DateTimeEdit-view in the Time preflet:
* instead of fetching the field data every time something needs to be drawn,
  we now fetch all the data whenever the date or time changes - simpler and
  faster, too
* adjusted date layout to match time layout, i.e. left-adjusted
* lots of cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 20:30:37 +00:00
Oliver Tappe
23b14f2d32 * yep - even more debug output removed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 20:28:02 +00:00
Oliver Tappe
80d59712ae * we need to initialize ICU's default timezone, as the date formatting
implementation in BLocale assumes this matches the system's timezone
This little bugger should fix #6277, #6370 and #6396.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 20:24:51 +00:00
Oliver Tappe
ee33862568 * dropped one more instance of debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 20:20:45 +00:00
Oliver Tappe
c639a77808 * moved BDateElement from BCountry to BLocale, as that's where it's being used
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 20:19:51 +00:00
Stephan Aßmus
119e788a15 Corrected outdated comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 19:34:15 +00:00
Stephan Aßmus
b6865b963b Rewrote the fake font overlay support, as the previous implementation
had several problems: First of all it duplicated the FontCacheEntry
retrieval and locking code. Second it was really slow to do the whole
lookup for every single glyph. Third is used the FontManager without
locking, which could result to app_server crashes, mostly at startup,
while the FontManager thread was scanning the fonts and the glyph
layout was already using it. Forth it dereferenced a FontStyle
pointer without checking it against NULL. And lastly it didn't use
the font size of the original font for the fallback font.

The new algorithm addresses not only these, but also puts the glyphs
which are unsupported by a font and retrieved from the alternative
font, into the FontCacheEntry of the original font, so that the
HasGlyphs() check succeeds the next time around and does not need to
use the fallback algorithm anymore. There is also less manual management
of locking and FontCacheEntry recycling, this is now taking care of by
FontCacheReference objects on the stack.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 19:24:20 +00:00
Stephan Aßmus
e404b4ed2a * The Glyph() method takes an optional FontCacheEntry* parameter
which can do an alternative lookup of the glyphCode to glyphIndex
  and who's FontEngine is used to retrieve the GlyphCache object.
  The glyph however is inserted into the Cache of the original entry.
* GlyphCache objects are no longer looked up by index, but by charCode,
  which should not be a functional change, but allows to lookup glyphs
  from the cache for which the underlying FontEngine does not have
  a code to index mapping.
* Fixed an operator precedence bug in the signature generation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 19:17:11 +00:00
Oliver Tappe
a9f371c057 * renamed settings file for Time preflet window position from 'Time_settings'
to 'Time_preflet_window' in order to be less confusable with the other
  'Time settings', which contain the actual selected values (timezone, etc.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 17:27:20 +00:00
Oliver Tappe
371c5afd88 * remove one more superfluous include (probably from some older debug output)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 16:15:20 +00:00
Oliver Tappe
2eefb8f0b9 * drop debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 16:13:52 +00:00
Adrien Destugues
2c1c7b49f4 CID 1499 : Access to NULL pointer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:19:46 +00:00
Adrien Destugues
eb7595ebbd CID 1457 : dead code (we know pressed is true at this point).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:17:00 +00:00
Adrien Destugues
6e24fc677f CID 1498 (and others) : when deleting a NULL pointer, operator delete is actually called. So, it must not dereference the
given pointer without checking first.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:07:29 +00:00
Oliver Tappe
f23b9d8a72 * added possibility to pass in the timezone when formatting the time
* added TODOs about the need to get rid of some of the date/time-formatting
  shortcut methods

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:03:54 +00:00
Axel Dörfler
3f2a18bd30 * The UDP protocol was deleting a received error buffer twice in the case that
everything went okay. This finally fixes #6446.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:01:26 +00:00
Oliver Tappe
795ff7d3d4 * removed some useless code and protect against localtime() possibly returning
NULL

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:59:14 +00:00
Oliver Tappe
559cf371bc * fix oversight that gmtime() and localtime() may return NULL, which would lead
to a crash


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:52:37 +00:00
Adrien Destugues
306fdb5b98 Missing call to B_TRANSLATE.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:36:04 +00:00
Adrien Destugues
59c2d19e1e * Rewrite the parsing of xterm extension so that it doesn't touch ANSI standard things
* Some adjustements to the color table to have less duplicate colors


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:28:12 +00:00
Adrien Destugues
a20769b39c CID 1500 : Potential NULL poiner dereference.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 13:37:10 +00:00
Adrien Destugues
3eedbbbf0e Handle more pseudoÃ-graphic characters and ways of using them. This gets aptitude (from debianÃ) displaying properly and should also fix midnight commander.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 13:11:51 +00:00
Stephan Aßmus
397fd7f5d0 A better fix than r38136: Remove the useless iostream include from Shell.cpp,
perhaps a left-over from debugging output? Thanks to Axel for reviewing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 10:32:44 +00:00
Adrien Destugues
8627cb38c1 CID 1515 : Wrong pointer type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 10:19:02 +00:00
Stephan Aßmus
30160db489 Fixed the build. Perhaps it's not needed for the GCC2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 10:10:58 +00:00
Adrien Destugues
da0db45d95 CID 1555 : Wrong cast type
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 09:42:13 +00:00
Adrien Destugues
e414da37a1 CID 1584 : NULL dereference on low memory situations (get_window_info does a malloc that may fail)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 09:31:38 +00:00