Commit Graph

43768 Commits

Author SHA1 Message Date
Axel Dörfler
713945cecb The original_data could be freed late.
* In cache_abort_sub_transaction(), the original_data can already be freed
  when the block is being removed from the transaction.
* block_cache::_GetUnusedBlock() no longer frees original/parent data - it
  now requires them to be freed already (it makes no sense to have them still
  around at this point).
* AFAICT the previous version did not have any negative consequences besides
  freeing the original data late.
2012-08-27 20:00:06 +02:00
Axel Dörfler
242e01d245 Improved member variable naming as suggested by Stippi. 2012-08-27 20:00:06 +02:00
Fredrik Modéen
7a74a5df45 WIP... Updating Bluetooth.
* Some bugfixes.
* added scan mode read.
* inactivated some printout for now. Was a lot of noice in terminal
2012-08-27 19:23:22 +00:00
Axel Dörfler
9089ab06bd Minor block cache refactoring.
* Extracted a write_blocks_in_previous_transaction() function out of
  cache_end_transaction(), and cache_detach_sub_transaction().
2012-08-27 12:46:22 +02:00
Axel Dörfler
dd9d610500 Fixed broken block list introduced in hrev44357.
* cache_abort_sub_transaction() was setting the transaction_next pointer to
  NULL in order to remove a block from a transaction -- however, it forgot to
  actually remove it from the transaction's block list.
* Minor restructuring.
2012-08-27 12:42:48 +02:00
Axel Dörfler
153d895337 Fixed broken discard handling in cache_start_sub_transaction().
* This actually resolves a TODO.
2012-08-27 12:38:35 +02:00
Axel Dörfler
8f9dac699d Cleanup, no functional change intended. 2012-08-27 11:21:42 +02:00
Philippe Saint-Pierre
53312de5e5 MediaPlayer: Toggling Fullscreen wrongly reset control status
All controls were enabled when toggling fullscreen on and off;
now it recalls the argument last used in SetEnabled() and reuse it
when called in AttachedInWindow() (which occurs in such toggling)

Fixes #8804.
2012-08-25 21:28:10 -04:00
Philippe Saint-Pierre
a70b623a51 FileTypes : IconView for non-applications fixes
IconView is now only setting the icon with BAppFileInfo when the file is an application,
otherwise relies on BNodeInfo. This avoids adding ressources within data files.

The IconView also wasn't populated correctly when used on data files (by opposition to
application binaries).  It now loads the same icon that is shown in Tracker.
2012-08-25 15:06:58 -04:00
Jessica Hamilton
66ddd2d6e9 Move SetMouseEventMask() into MouseDown, where it should be. 2012-08-25 14:12:54 -04:00
Axel Dörfler
c95601d728 Fixed hiding the mouse cursor after going full screen.
* This fixes a regression I introduced in hrev43648; the mouse cursor
  was only being hidden in case the controls were visible (ie. only
  after an extra mouse move in full screen).
2012-08-25 13:57:50 +02:00
Edward Robbins
6912e7dc03 getrlimit with RLIMIT_STACK now returns USER_MAIN_THREAD_STACK_SIZE
Signed-off-by: Rene Gollent <anevilyak@gmail.com>
2012-08-24 18:29:59 -04:00
czeidler
8e80f8cc35 Fix MinSize and PreferredSize. 2012-08-24 15:44:13 +12:00
czeidler
0457e3073e Add another working card id. 2012-08-24 15:42:47 +12:00
Fredrik Modéen
0d7b06c318 Updating Firewire.
* Some update from FreeBSD.
2012-08-23 22:37:06 +00:00
Axel Dörfler
c95f35ce9d Fixed 64 bit issue for the buffer descriptor base. 2012-08-23 22:01:19 +02:00
Matt Madia
a441887328 Added 'diskimage' to image.
Allows one to register a file as disk, which  can then be mounted.
To note, one application of this is to allow mounting of anyboot images.
Fixes #5578.
2012-08-22 17:51:13 +00:00
Jessica Hamilton
d3668a5473 SoundConsumer.cpp: fix debug macros compiling in release mode
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2012-08-22 23:49:12 +02:00
John Scipione
91c78f092f Create and use new list view item colors
* B_LIST_BACKGROUND_COLOR
* B_LIST_SELECTED_BACKGROUND_COLOR
* B_LIST_ITEM_TEXT_COLOR
* B_LIST_SELECTED_ITEM_TEXT_COLOR
2012-08-22 00:28:24 -04:00
Joseph R. Prostko
f49d27c7ed Allow Puri to be added to GCC2 hybrid builds 2012-08-21 22:20:13 -04:00
François Revol
70449c90d9 dev-perso: Add current branch name in window title for git
* when the project uses git, include the current branch name
in the terminal window title
2012-08-22 01:16:15 +02:00
Scott McCreary
b9398be907 Added chess game Puri as an OptionalPackage 2012-08-17 05:33:02 -07:00
John Scipione
2c1f6c10ce Update ListItem's to use menu item colors.
* Selected bg uses B_MENU_SELECTED_BACKGROUND_COLOR
* Selected text uses B_MENU_SELECTED_ITEM_TEXT_COLOR
* Unselected text uses B_MENU_ITEM_TEXT_COLOR

Update BStringItem, but also the custom Listitem code in the
Appearance and Locale preflets.
2012-08-20 02:20:59 -04:00
Ryan Leavengood
403bd97afc Update the copyright year too. 2012-08-20 01:13:19 -04:00
Ryan Leavengood
f1b593e7b5 Rename Pre Beta 1 version to Pre Alpha 4, introduce Alpha 4 version.
Make Pre Beta 1 fall after Alpha 4. Hopefully we won't need an Alpha 5.
2012-08-20 01:09:53 -04:00
Ryan Leavengood
eb89cc6b0b Deskbar: You know, we should actually use the translated name.
If this ever worked before, I don't know how.
2012-08-19 21:29:28 -04:00
Ryan Leavengood
d6c852ec49 Actually cache something when CacheLocalizedName is called.
Before its name was a lie, since nothing was cached.

Another boolean was added because getting the localized name could fail, and we
don't want to pointlessly try again, so relying on fHasLocalizedName won't work
for that.

Since in my tests this was getting called up to 4 times per application when
opening the Deskbar Application menu, this caching should speed that up a bit,
at least when this file name translation feature is turned on.
2012-08-19 21:25:43 -04:00
Ryan Leavengood
379dcaa1f6 Look up the entry_ref for a signature for localized file names.
Fixes #8124.
2012-08-19 21:21:30 -04:00
Ryan Leavengood
d7f6b4c18c ControlLook: Don't tint the selected menu item color.
Now that we use the actual selected menu item ui_color, this tinting is not
needed. In fact it makes the selected item too dark.

Thanks diver for noticing.
2012-08-19 18:17:07 -04:00
Siarzhuk Zharski
fa2fa02613 Insert Addressing::LeaveGroup call on dropping multicast group membership.
Omitting this call left invalid reference to deleted group in the
multicast groups hash-map and any upcoming attempt to join the group will
crash the system. Fixes #6736.
2012-08-19 22:38:21 +02:00
Rene Gollent
1e068aea46 Slight improvement to tracing output.
- If a trace entry has a stack trace, attempt to demangle the associated symbols.
  Could be enhanced further to also demangle the arguments but doesn't yet.
  Interestingly there are some mangled symbols that our demangler appears to
  not handle correctly (gcc4).
2012-08-19 16:04:36 -04:00
Rene Gollent
ad4d57f14b Fix multicast double free issue in IPv4.
- IPv4 had the same problem as v6. Most likely this was an oversight
  when converting from a C to a C++ module. Might help with #6736 and
  #8894.
2012-08-19 11:09:06 -04:00
Rene Gollent
9db38fdf34 Fix ticket #8870.
- multicast_address was being freed twice in ipv6_uninit_protocol(),
  causing a panic on exit in apps that made use of it.
2012-08-19 08:57:21 -04:00
Fredrik Holmqvist
ac827a2baa Make strcmp do four byte comparisons on aligned strings.
Used libMicro's strcmp test to evaluate performance:
OPTS="-E -C 200 -S -W"
bin/strcmp	$OPTS -N "strcmp_10"	-s 10	-I 10
bin/strcmp	$OPTS -N "strcmp_100"	-s 100	-I 20
bin/strcmp	$OPTS -N "strcmp_1k"	-s 1k	-I 50
bin/strcmp	$OPTS -N "strcmp_10k"	-s 10k	-I 800
bin/strcmp	$OPTS -N "strcmp_1m"	-s 1m   -I 500000
bin/strcmp	$OPTS -N "strcmp_10m"	-s 10m  -I 5000000

Before:
             prc thr   usecs/call      samples   errors cnt/samp     size
strcmp_10      1   1      0.02510          201        0    10000       10
strcmp_100     1   1      0.17520          169        0     5000      100
strcmp_1k      1   1      1.67700          177        0     2000     1024
strcmp_10k     1   1     17.24800          194        0      125    10240
strcmp_1m      1   1  17892.00000          160        0        1  1048576
strcmp_10m     1   1 183136.00000          201        0        1 10485760

After:
strcmp_10      1   1      0.01800          194        0    10000       10
strcmp_100     1   1      0.13540          190        0     5000      100
strcmp_1k      1   1      1.24950          188        0     2000     1024
strcmp_10k     1   1     12.85600          190        0      125    10240
strcmp_1m      1   1  12930.00000          170        0        1  1048576
strcmp_10m     1   1 134382.00000          195        0        1 10485760
2012-08-19 11:39:16 +02:00
Ryan Leavengood
a1efcf2c7f Set the Terminal window flags correctly when going fullscreen.
Fixes #8862.
2012-08-19 00:16:02 -04:00
Philippe Saint-Pierre
ed63a5d20c Tracker: Double-Click simplification
Double-click check was redoing what is essentially already done in input_server.

The way we were doing it, right clicking (or pressing a different button for the second click,
for that matter) wasn't clearing the fields remembered and thus not breaking the sequence.
So a third click returning to the correct sequence (in a short time) would get recognized
as a valid second click.  So a quick left-right-left would be seen by that method as left-left.

Also, clean up a previous fix I committed.  Removed the introduced Origin() method as it
is the LeftTop() method I was interested in and it is already existing.

Fix #8714
2012-08-18 22:13:09 -04:00
Matt Madia
efb1039348 Increase the size of the nightly images. 2012-08-18 10:36:41 -04:00
Matt Madia
467f607aa3 Add WebPositive catalogs to gcc2hybrid images. Fixes #8846. 2012-08-18 10:33:39 -04:00
Niels Sascha Reedijk
5bde1d438b Update userguide from i18n.haiku-os.org. 2012-08-18 10:28:04 +02:00
Niels Sascha Reedijk
9ff0fe5615 Update translations from Pootle 2012-08-18 06:30:34 +02:00
Humdinger
cc2b203e16 Reverting part of hrev44535.
Renaming "Preferences" to "Tracker preferences" has been
unexpectedly contentious. Reverted.
2012-08-17 20:05:39 +02:00
Niels Sascha Reedijk
4f81ff45fe Update translations from Pootle 2012-08-17 06:47:33 +02:00
Oliver Tappe
8ffa652cac Fix build. 2012-08-16 21:23:42 +02:00
Oliver Tappe
6e8999717f Cleanup: avoid warning about returning a value in void context. 2012-08-16 21:18:58 +02:00
Oliver Tappe
e19d7089a7 Fix #8841 (broken localization support for 3rd-party apps).
* made private Catalog.h header public by moving it to 
  os/locale/tools/CollectingCatalog.h
* reintroduce B_COLLECTING_CATKEYS define (which is expected to be set
  during a collectcatkeys session) in order to decide whether or not
  to automatically include the CollecingCatalog.h header from Catalog.h
* adjust jam rule for collecting catalog keys accordingly
2012-08-16 21:12:55 +02:00
Oliver Tappe
2bcc7f40c3 Simplify use of translated strings in BAboutWindow.
* avoid duplicate initialization of variables by joining the
  expressions.
2012-08-16 21:12:55 +02:00
Humdinger
468f826656 Some more string translations.
A few more translator changes I missed with last commit.
Added a few more strings for translation, pointed out by diver.
Thanks!
2012-08-16 20:13:40 +02:00
Niels Sascha Reedijk
0f6d975d36 Update translations from Pootle 2012-08-16 06:23:58 +02:00
Ryan Leavengood
59347b7f1b Reverse the meaning of BWindow fShowLevel to match BView.
This also matches the client_window_info.show_hide_level field used in Deskbar
and other applications.

While doing this, keep fShowLevel fully in sync between BWindow and app_server,
use one message type for both hiding and showing, and make the decision to show
and hide the window in the app_server.

Lastly make minimize behave as described in the Be Book: hidden windows cannot
be minimized, and minimized windows which get hidden become unminimized.
2012-08-15 23:45:15 -04:00
Michael Lotz
a4bca81193 Add MSI support to OHCI.
It looks like VirtualBox assumes MSIs when emulating a 64bit system so
this gets OHCI working there. Shouldn't harm if it's used anywhere else
either.
2012-08-16 00:31:19 +02:00