Commit Graph

37600 Commits

Author SHA1 Message Date
threedeyes
e565fae659 Equalizer,VSTHost: fix gcc4 build, sorry. 2012-10-13 19:53:30 +11:00
threedeyes
df969bab29 Added VSTHost media add-on. 2012-10-13 17:49:08 +11:00
threedeyes
71c77851c9 Added Equalizer media add-on. 2012-10-13 17:42:09 +11:00
czeidler
d6977957a0 The current solver don't like big values.
- Check the constraint values first.
- Some cleanup.
2012-10-11 11:52:46 +13:00
Humdinger
323abd9b89 Unbroke build under gcc4. Sorry about that... 2012-10-10 15:35:16 +02:00
Jürgen Wall
3b98be3cc4 USB OHCI: Fix ownership handover from SMM to OS.
* Disabling all interrupts prior to ownership handover from SMM to OS
  can prevent propper OHCI and PS/2 functionality as described in
  #8987 and #8984. In that case SMM does not respond to the ownership
  change request. On the other hand not disabling the interrupts can
  lead to interrupt storms (discussed in #8085) since no interrupt
  handler is installed at that moment. As suggested by mmlr this patch
  attempts to address both issues by keeping the ownership change
  request interrupt enabled.

* Removed an unnecessary reset upon non-responding SMM for now,
  since we reset a few lines later anyway and added TODOs respectively.
  That should safe a bit boot time.

Signed-off-by: Michael Lotz <mmlr@mlotz.ch>
2012-10-09 23:03:06 +02:00
Jérôme Duval
c530d46cca UDF: support for metadata partition (feature from 2.50)
* added Icb::FindBlock() to find block in extents.
* MetadataPartition uses extents descriptors found in the metadatafile
to lookup blocks on a physical partition
* uses struct timespec instead of time_t
* added init_entities() to call C++ structures constructors. This is
called at module initialization, C++ constructors are currently not called when
a kernel module is loaded.
* tested with a sample bluray ISO.
2012-10-09 22:50:17 +02:00
Humdinger
c58a87027a Made another string of desklink translatable.
(+alpha4)
2012-10-09 19:56:47 +02:00
Alexander von Gluck IV
9c64737586 Tracker: Style fix (+alpha4)
* Depends on ff09527e4f (which is +alpha4 *not* +alpha3) :)
* As per commit ML
* Do a direct AddItem vs using an item variable which
  breaks program flow.
* A better long term solution may be to enable the debug server
  to recover 'system' applications that fail. #9039
2012-10-08 12:02:37 -05:00
Alexander von Gluck IV
7415c64941 radeon_hd: Add PCIID for HD 4500, resolves #9051 (+alpha4) 2012-10-08 10:24:59 -05:00
Axel Dörfler
9b9cb227c7 Consolidated and fixed device_geometry computation.
* The only implementation that would accept more than 2 TB was the one in
  scsi_disk. But even that one was limited to 63 TB.
* Now there is a new utility function devfs_compute_geometry_size() which
  does it correctly for sizes up to 2^64 which should be good enough for
  quite some time :-)
* This fixes bug #8992.
2012-10-08 13:59:16 +02:00
Prasad Joshi
cff0983994 bash: Fix mapping between signal number and signal string
The signames_haiku.h header got out of sync when merging the real-time
signals branch. It is used when cross-compiling Haiku, since the build
tool mksignames only generates a signal name list suitable for the host
platform.
Fixes ticket #9046.

Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2012-10-08 13:50:21 +02:00
Jérôme Duval
714ff0c581 libtiff: add libjpeg to tif_ojpeg.c dependencies
fixed ticket #9048
2012-10-07 13:34:00 +02:00
Ryan Leavengood
df840270bd Add Prasad Joshi to the contributors list. 2012-10-03 15:51:07 -04:00
Prasad Joshi
45132e2b22 ps: fix uid and gid in the ps output
The function fill_team_info() completely ignored the user id and the
group id of the process (fields info->uid and info->gid respectively).
Since the info structure was zeroed earlier, the ps output showed uid
and gid of each process equal to zero.

The patch fixes the problem by properly initializing the members with
effective uid and gid. Now the output is correct.

Fixes #8995.

Signed-off-by: Ryan Leavengood <leavengood@gmail.com>
2012-10-03 15:45:56 -04:00
Jürgen Wall
2f5c0cbab1 Don't create filename entries without actual matches.
Added an early return in GrepWindow::_OnReportResult(BMessage* message)
in case the report message does not contain matches.

Signed-off-by: Stephan Aßmus <superstippi@gmx.de>
2012-10-03 14:25:30 +02:00
Alexander von Gluck IV
ff09527e4f Tracker: Introduce "Restart Deskbar" option (+alpha3)
* Matches "Restart Tracker" option in Deskbar
* Only shows up when 0 Deskbar processes exist
* Don't dereference fFileMenu if RepopulateMenus called
  on desktop (no menu bar)
* Regenerate desktop menu on each click
* Resolves #9039
2012-10-02 18:25:17 +00:00
Humdinger
9af3b83575 Added Hungarian translators Róbert Dancsó and Zsolt Bicsk.
Thanks guys!
+alpha4
2012-10-02 18:46:12 +02:00
Axel Dörfler
a8b45a3471 Added a test to compare various header parsers.
* HaikuMailFormatFilter is using the new extract_from_header() method
  to retrieve its fields, but that one is often rather slow in comparison.
* Added a test parse_fields() method that outperforms it considerably.
2012-10-01 10:20:44 +02:00
Axel Dörfler
225c8cc59a Minor cleanup, no functional change. 2012-10-01 09:12:32 +02:00
Fredrik Holmqvist
7ba2bcac6f Removing old ACPI loader, which isn't used in Haiku.
ACPI hasn't been tested on BeOS in ages. So time to remove
old BeOS code.
2012-09-29 12:31:24 +02:00
Humdinger
e8c6eee0ca Added Brazilian translators. Thanks guys!
(+alpha4)
2012-09-29 08:14:30 +02:00
Jérôme Duval
5485c7646e udf: print an error for unsupported revisions 2012-09-28 00:45:06 +02:00
François Revol
f916b68079 B_POSIX_ENOMEM is obviously an error...
* was wrongly reported as "No error"
2012-09-27 16:42:40 +02:00
Humdinger
83953c9405 Using B_TRANSLATE_SYSTEM_NAME for 'FontDemo', plus tiny style fix.
+alpha4
2012-09-24 18:31:47 +02:00
Humdinger
57c8cbd820 Made 'BSnow' translatable, plus tiny style correction.
Fixes #9025.
2012-09-24 18:06:24 +02:00
Humdinger
79650056f0 Fixed control label in Poorman settings.
The BTextControls were using the wrong constructor.
Fixes #9024.
+alpha4
2012-09-24 17:53:51 +02:00
Axel Dörfler
41828f1567 Cleanup, no functional change intended. 2012-09-23 20:39:21 +02:00
Axel Dörfler
25b89454c4 MSI interrupts were not disabled on error. 2012-09-23 20:33:25 +02:00
Axel Dörfler
0e662af473 Always set a minimum size for the list view.
* Otherwise it doesn't look good when the media server is just
  being launched (so there are no nodes yet).
2012-09-23 15:50:42 +02:00
Axel Dörfler
1c0cacfbc5 Cleanup.
* Sort methods like they are declared in the header.
* Fixed a number of coding style violations and other oddities.
2012-09-23 15:44:21 +02:00
Axel Dörfler
baeb048bd1 Don't start showing the hint for each solved number.
* Instead, only keep it visible when the user made it visible.
* Minor cleanup.
2012-09-23 11:23:29 +02:00
Axel Dörfler
19559d24fc Reset controller::active_codec on uninit.
* The controller structure is static, so if you closed the device,
  and the driver failed to initialize correctly (ie. finds no codec)
  on the second try, it would have crashed accessing an already freed
  codec.
* Not sure why it fails to detect any codecs on second open, yet,
  though.
2012-09-23 11:16:28 +02:00
Axel Dörfler
751c6aba1c Fixed saving the column state to a message.
* This fixes copy/pasting the column state when the "display-as"
  feature is used.
2012-09-23 08:31:37 +02:00
François Revol
9c50f5eded U-Boot: arch_mmu.cpp does not come from kernel sources
* so don't try to find it there
2012-09-22 04:18:37 +02:00
François Revol
db5bd5535e U-Boot: move mmu.cpp to arch/arm/arch_mmu.cpp
* only contains ARM stuff anyway.
* PPC implementation will be very different anyway.
2012-09-22 04:00:13 +02:00
Axel Dörfler
45732903d0 Implemented MSI support.
* Does not seem to change anything, though (I'm also a victim of bug
  #8949)
* Minor cleanup.
2012-09-21 00:22:54 +02:00
Axel Dörfler
8c3a938fc3 cache_abort_sub_transaction() did not maintain num_blocks.
* When a block was only used in a sub-transaction, it was thrown away,
  but the transaction::num_blocks field was not decremented.
* This caused transactions never considered finished which eventually
  led to bug #8942. This does not explain the disk corruption occurring
  in #8969, though.
2012-09-19 20:06:19 +02:00
Stephan Aßmus
f672eb2827 Small cleanups to dragging partition entries code. 2012-09-16 11:11:40 +02:00
Jacob Waterman
5d871e578d Added drag & drop of disk/partition paths; drag a list item to terminal, pe, etc. and release to copy the path. (ticket #8872)
Signed-off-by: Stephan Aßmus <superstippi@gmx.de>
2012-09-16 10:37:38 +02:00
Philippe Saint-Pierre
151b6997c0 Tracker: Moving columns could make an horizontal scrollbar appear 2012-09-15 19:31:34 -04:00
Alexander von Gluck IV
b341f104e9 ARM: Build fixes and cleanup
* Don't redefine incorrect cpu headers in framebuffer code
* Drop unused err
* Fix missing parentheses as per gcc
* Fix Raspberry Pi Build
* Fix overo build due to missing header
2012-09-15 17:12:56 -05:00
Alexander von Gluck IV
8eeafbce5f arm framebuffer: Convert arm arch_video code into classes
* Proper framebuffer code is chosen based on hardware
* This change could extend into other arch code as well
* François gave permission to update his copyrights
* Minimal functional change
2012-09-15 13:23:34 -05:00
Alexander von Gluck IV
58f219d49f beagleboard: Fix build, missing header 2012-09-15 12:50:08 -05:00
Alexander von Gluck IV
7ccc9b45e8 arm loader: Style cleanup of loader arm arch code
* These video sources would be good cannidates to be
  refactored as classes. (like the arm serial code)
* No functional change. There are some order style issues
  in some of the code (the top externs), but I decided to
  not fix them as I can't build these atm to test.
2012-09-15 09:24:13 -05:00
Alexander von Gluck IV
d501b694bf rPi: Set 1 cpu in the loader 2012-09-15 09:24:12 -05:00
Marcus Overhagen
8e813c26cd ignore partition info logical_block_size 2012-09-15 12:39:01 +02:00
Marcus Overhagen
ed5e4ee428 also print partition info 2012-09-15 12:38:38 +02:00
Ryan Leavengood
721d056e11 Don't call unload_driver_settings twice. Thanks Hamish. 2012-09-15 00:19:42 -04:00
Marcus Overhagen
4a2ac3c2ac Fix size parameter for ioctl. 2012-09-15 01:22:34 +02:00
Marcus Overhagen
3c5216179e implement support for harddisks bigger than 2TB
* can't test this, it's untested, but similar to ATADevice.cpp
 * should no longer panic when hdd > 2TB is connected
 * fix request completition in two error cases
 * add const to some parameters
2012-09-14 22:21:47 +02:00
Marcus Overhagen
1f6d0a79c9 use template max() instead of max_c() macro 2012-09-14 20:24:36 +02:00
Marcus Overhagen
87b33446e1 gcc2 compile fix (gcc4 didn't complain) 2012-09-14 19:29:34 +02:00
Marcus Overhagen
2f0f9d8780 cleanup variable naming for port count 2012-09-14 18:58:58 +02:00
Marcus Overhagen
a63b046e90 add missing line breaks in debug output 2012-09-14 18:58:58 +02:00
Marcus Overhagen
0d73f6ec8a properly check intel port count and don't panic on more than 8. 2012-09-14 18:58:58 +02:00
Marcus Overhagen
6c9f2e94e7 set GHC.AE before performing reset (should be done by BIOS already) 2012-09-14 18:58:58 +02:00
Marcus Overhagen
863a181c0b make sure there are no pending interrupts during setup 2012-09-14 18:58:57 +02:00
Alexander von Gluck IV
f78dd1249a VM Preflet: Use AutoDeleter on the settings
* Prevents a minor memory leak
* Thanks for catching this Axel!
2012-09-13 11:11:36 -05:00
Marcus Overhagen
517a59c9a1 Make a void * pointer const. 2012-09-13 09:58:43 +02:00
Axel Dörfler
267b646396 Run the transaction flusher in another thread.
* This fixes bug #8977.
2012-09-12 20:20:43 +02:00
Ingo Weinhold
1bd0748253 Fix crash in MemoryManager::PerformMaintenance()
sFreeAreaCount wasn't decremented after removing an area from
sFreeAreas, thus causing the loop to continue until enountering and
crashing on a NULL pointer after removing the last area. Introduce
helper methods _PushFreeArea() and _PopFreeArea() to ensure this cannot
easily happen again.

Fixes ticket #8972.
2012-09-11 22:31:19 +02:00
Marcus Overhagen
8040911a25 Use implemented ports mask to check if maximum port count needs to be extended.
* This should fix #8953
 * Also fix some harmless off-by-one errors
2012-09-10 22:32:20 +02:00
Alexander von Gluck IV
1946d374f2 rPi: Update boot process for later Pi firmwares
* The bootprocess is better documented now.
  Put technical info in linker script, user info
  into info.txt
2012-09-09 21:10:16 -05:00
Axel Dörfler
7d362bb34c The sFragmentLock was never being initialized.
* This fixes bug #8958.
2012-09-09 22:53:19 +02:00
Fredrik Holmqvist
cdca279abd Remove unused header hpet.h. 2012-09-09 14:47:49 +02:00
Fredrik Holmqvist
953ca70721 Removing the acpi_avoid_full_init config option.
I've never heard anyone that been helped by that setting.
2012-09-09 13:13:53 +02:00
Alexander von Gluck IV
b772f88c88 VM Preflet: Fix user prompt string typo. Thanks ttcoder! 2012-09-07 18:04:17 -05:00
Alexander von Gluck IV
59c595739c VM Preflet: Add a BStatusBar to show swap file usage
* Correct a situation where disabling the auto swap without
  adjusting the swap size would result in an invalid swap
  size getting written to the configuration
2012-09-07 12:40:56 -05:00
Alexander von Gluck IV
5e7287f987 VM Preflet: Style cleanup; check for success of fs_stat_dev
* Cleanup as per Axel on the ML
* Remove superfluous else statements
2012-09-07 07:18:20 -05:00
Alexander von Gluck IV
f18cace156 VM Preflet: More correctly calculate default swap 2012-09-07 00:46:14 +00:00
Alexander von Gluck IV
5dff42570e VM Preflet: Center properly on screen
* On first run, dialog was at 0,0
* Rename window location/settings file
  from VM_data to virtualmemory_preferences
2012-09-07 00:34:00 +00:00
Alexander von Gluck IV
534268052d Kernel VM: Utilize swap_auto option
* Refine the swap logic a little
* Refine header copyright to preferred format
  I had hamishm's verbal permission to change his entry
2012-09-07 00:13:14 +00:00
Alexander von Gluck IV
91390fb0d3 VM Preflet: Add an automatic swap option swap_auto
* Add swap_auto to the virtual memory settings file
* Disable controls based on the context of what is enabled
* hamishm gave permission to adjust his copyrights to Haiku, Inc.
2012-09-07 00:13:03 +00:00
Alexander von Gluck IV
91a8191a25 VM Preflet: Style fix. bootDev to gBootDev. No functional change 2012-09-07 00:12:54 +00:00
Alexander von Gluck IV
ab4f001685 VM Preflet: More throughly translate BAlert window titles
* Ensure we call translate BAlert window titles
2012-09-07 00:12:46 +00:00
Hamish Morrison
b8838e91d9 VM Preflet: Add support for device selection
* Enables swap file to be placed on non-boot partition
* Changes tied closely to recent kernel virtual memory change
2012-09-07 00:12:37 +00:00
Axel Dörfler
f1cbaf5c8f Fixed warnings, 80 character line limit. 2012-09-06 22:09:42 +02:00
Humdinger
f6d33da6a4 Small corrections to AboutSystem.
Thanks Rene.
2012-09-05 19:38:14 +02:00
Humdinger
ae7bcbaa12 Updated the list of contributers.
Added people to the list contributers.
Moved people to the list of past maintainers.
Added GCI to our Google thanks.
2012-09-05 18:19:40 +02:00
Ryan Leavengood
e665a8baa6 New icons for source code and patch files.
Both are from #8867, created by Justin Stressman. The previous source code icon
was not friendly to those with green color blindness. I also think it was an
ugly green.

Fixes #8867 of course.
2012-09-05 01:36:25 -04:00
Alexander von Gluck IV
4517ef5728 Kernel VM: A few changes as per Axel in #7742
* Avoid floating point numbers in the kernel
* Warning would always show if custom swap file in use
* Don't change a custom swap file size if low space occurs
* Ram > 1GB? Don't double the memory for the automatic size
2012-09-04 15:35:10 -05:00
Alexander von Gluck IV
3e01905aca Kernel VM: Add compatibility logic
* If old-format swap config file found, parse it properly
2012-09-04 13:27:33 -05:00
Alexander von Gluck IV
0606074fd9 Kernel VM: Improve swap file selection
* Heavily based on Hamish Morrison's GCI work with some
  modified logic and cleanup. #3723
* Adds automatic swap as well as user specified swap
* Limits:
  Automatic: (ram * 2) up to 25% of the disk
  User: user specified up to 90% of the disk
* Supports changing the swap disk location
2012-09-04 12:31:56 -05:00
Alexander von Gluck IV
3d87b8120c Kernel VM: Style cleanup; No functional change 2012-09-04 08:42:36 -05:00
Axel Dörfler
098967cee1 Fixed the new issue in #8910 from r44585.
* The ASSERT() I introduced in r44585 was incorrect: when the sub transaction
  used block_cache_get_empty() to get the block, there is no original_data for
  a reason.
* Added a test case that reproduces this situation.
* The block must be moved to the unused list in this situation, though, or else
  it might contain invalid data. Since the block can only be allocated in the
  current transaction, this should not be a problem, though, AFAICT.
2012-09-04 01:00:33 +02:00
Philippe Saint-Pierre
96c30cc820 Tracker: fix warning in gcc2
Refactor a bit the conditions to avoid a warning.
2012-09-03 16:53:53 -04:00
Rene Gollent
139ee87903 Fix some behavioral regressions introduced by previous commit.
- Some parts of Tracker were basing certain assumptions on whether the
  types list was NULL or not. We now check on list emptiness instead.
2012-09-03 16:42:14 -04:00
Rene Gollent
9335e141ba Fix crash when dragging files onto nav menus.
- BNavMenu now keeps its own copy of the cached types list that's passed to it.
  In some circumstances it could happen that the container window would
  delete the list and consequently the nav menu would wind up with a pointer
  to an invalid object. Probably a regression from the async mouse tracking
  rewrites.
2012-09-03 16:28:47 -04:00
Jerome Duval
1d6d4b7872 libtiff: fix ppc build 2012-09-03 19:01:20 +02:00
Ryan Leavengood
33570266f1 Get all parameters from a notification message.
Fixes #8916. Thanks Prodito for the patch.
2012-09-02 19:42:43 -04:00
Philippe Saint-Pierre
b5f22a7f78 MediaPlayer: Deletion of playlist entries
Several scenarios of misbehaviour found and fixed, examples :
* Deleting an item sitting before the currently playing item had the effect of
starting the playback of the item before the delete item.
(now it just updates the indexes - setting it to fCurrentIndex - 1 - without altering playback).

* Deleting the last item of the list had for effect of starting the playback of the entry
newingly being the last entry, regardless if the last entry was the active one or not.

Should fix #6689.
2012-09-02 16:14:02 -04:00
Ryan Leavengood
6446fc3582 Rename DecorSettingsView to LookAndFeelSettingsView. 2012-09-02 15:32:09 -04:00
Ryan Leavengood
fe855cd550 Appearance preflet: Add a double scrollbar arrows setting.
Rename the 'Decorators' tab to 'Look and feel'.

Fixes #8926.
2012-09-02 15:14:50 -04:00
Ryan Leavengood
5b60052cfc Make double scrollbar arrows default to false again. 2012-09-02 15:11:51 -04:00
czeidler
225446ac99 Check if constraint is NULL. 2012-09-01 16:31:17 +12:00
czeidler
82fbed2596 Move the soft inequalities directly into the solver.
- Clean up.
2012-09-01 16:31:17 +12:00
czeidler
a8859a43fb The preferred size constraints have a label now. This helps for debugging. 2012-09-01 16:31:16 +12:00
czeidler
3a7067dc19 Improve ToString output. 2012-09-01 16:31:16 +12:00
czeidler
de679878b7 Ceil and floor min and max size respectively gives better results. 2012-09-01 16:31:15 +12:00
czeidler
25e1abc33c Use soft inequality constraints for the max area size.
Only if the alignment is set to use the full width/ height a hard inequality constraint is used.
2012-09-01 16:31:15 +12:00
czeidler
18e5da6297 Remove unused variable and add copy constructor. 2012-09-01 16:31:14 +12:00
czeidler
cf5eb5dda1 Add a LinearSpec listener interface. 2012-09-01 16:31:14 +12:00
czeidler
08927d809f Make it possible to create a constraint that is not connected to a solver.
- Clean up.
2012-09-01 16:31:13 +12:00
czeidler
6c4a44e36b Add a list of constraints which can be associated with a BALMLayout.
- Add Get{X,Y}Tabs methods.
- Remove SaveLayout and RestoreLayout. These can be implemented outside of BALMLayout.
2012-09-01 16:31:13 +12:00
czeidler
7dd16a4c95 Fix crash when splitting a S&T group.
- Hold a ref to the old crossings till we cleaned up.
- Additionally use a safer method to delete constraints.
- Clean up.
2012-09-01 15:01:10 +12:00
czeidler
83092a04a4 Fix hrev42632.
This really implements WindowSentBehind.
2012-09-01 15:01:09 +12:00
Jérôme Duval
992c945afe hda: later specification updates 2012-08-30 23:52:05 +02:00
Jérôme Duval
b7bb583779 hda: mixer and audio paths fixes
* avoid mixing input and output paths when building a tree. In fact, an
audio input shouldn't use only a mixer used for output.
* in case an audio input has more than one input, use these inputs to
build a mux control.
* should help with #8270, #8333
2012-08-29 23:51:51 +02:00
Yongcong Du
19187c464b x86: Initialize IA32_MSR_ENERGY_PERF_BIAS
The lowest 4 bits of the MSR serves as a hint to the hardware to
favor performance or energy saving. 0 means a hint preference for
highest performance while 15 corresponds to the maximum energy
savings. A value of 7 translates into a hint to balance performance
with energy savings.

The default reset value of the MSR is 0. If BIOS doesn't intialize
the MSR, the hardware will run in performance state. This patch
initialize the MSR with value of 7 for balance between performance
and energy savings

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2012-08-29 22:11:56 +02:00
Jérôme Duval
c618b6ccb1 input_server: use a generated cookie instead of pointer
* fixed #8831
2012-08-29 20:44:06 +02:00
Jérôme Duval
61cb4d8c6d libpng and jpeg: build against optional packages.
* added optional feature package for libpng 1.5.12 gcc4/gcc2 x86 and ppc
* drop libpng sources and headers from the tree.
* added optional feature package for jpeg 8d gcc4/gcc2 x86 and ppc
* drop jpeg sources and headers from the tree.
2012-08-27 22:03:18 +02:00
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
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
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
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
Humdinger
cc2b203e16 Reverting part of hrev44535.
Renaming "Preferences" to "Tracker preferences" has been
unexpectedly contentious. Reverted.
2012-08-17 20:05:39 +02:00
Oliver Tappe
8ffa652cac Fix build. 2012-08-16 21:23:42 +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
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
Michael Lotz
c936a02360 Move MSI initialization before IO-APIC to fix missing init.
Initializing the IO-APIC will initialize the PCI module, which does
read the MSI config of the devices only when MSIs are available.
Since we initialized them only after that, that condition wasn't met.
Later, due to the uninitialized arch info, MSIs were still marked as
available (0xcc = 204 MSIs). Due to the also uninitialized configured
count, they were always deemed busy however, in effect just breaking
MSI support whereever IO-APICs were available.
2012-08-16 00:31:18 +02:00
Adrien Destugues - PulkoMandy
86e47974c0 Fix build. 2012-08-15 13:45:29 +02:00
Adrien Destugues - PulkoMandy
3b85241aba Fix build. 2012-08-15 13:43:02 +02:00
Adrien Destugues - PulkoMandy
7dfdb91a2e Fix language mapping again for indi. 2012-08-15 13:33:24 +02:00
Adrien Destugues - PulkoMandy
4be15fbb7a Add language to country mappings for ReadOnlyBootPrompt
* Greek > Greece
 * Croatian > Croatia
 * Pakistanese > Pakistan
 * Indi > India
2012-08-15 12:50:04 +02:00
Adrien Destugues - PulkoMandy
93e30a47be Add a simpler test for BPushGameSound and attempt to fix the most striking mistakes in there. 2012-08-15 10:32:06 +02:00
Adrien Destugues - PulkoMandy
4c3295fc92 Tweak DiskUsage pie view colors and drawing
* Use colors from http://haiku-os.org/files/downloads/2007-03-20_haiku-color-palette.png
 * The pie view used a simple multiplication to lighten the colors, leading to overflows. Use tint_color instead
 * The outline of each pie slice was drawn with lines, which did not align perfectly. Use StrokeArc with a slightly bigger pen size than the colored area instead.

Screenshot of the result:
http://pulkomandy.tk/drop/diskusage.png/
2012-08-15 10:32:04 +02:00
Humdinger
ef4ed1b76b Replaced "Preferences"/"Options" with "Settings"
Replaced remaining "Preferences" and "Options" with "Settings" as
that is generally used for app settings instead of the system
preferences found in the preference panels.

Renamed Tracker's "Preferences" to "Tracker preferences" to be
similar to the entries in the Deskbar and e.g. the Media replicant
in the Deskbar tray.
2012-08-15 09:53:38 +02:00
Philippe Saint-Pierre
c38375376d Tracker: TextWidget editing flaws
TextWidget tried to detect if the editing box would span outside the PoseView,
but it was using an hardcoded value of 1 for the minimum left value.  But in Icon mode,
negative values can occur.  Change to use the view's origin (top left corner of the view).
2012-08-15 01:28:44 -04:00
Alexander von Gluck IV
59c1ab8c3b radeon_hd: add v1.4 dig encoder setup
* Add 1.4 encoder control used in latest HD 7xxx cards
* Should make progress towards resolving #8859
2012-08-14 20:32:58 -05:00
Alexander von Gluck IV
8ec95e1059 radeon_hd: Update atombios, add v1.5 transmitter control
* Latest stock atombios.h from Linux DRM with a few small
  environment tweaks.
* Add 1.5 transmitter control used in latest 7xxx cards
2012-08-14 19:58:10 -05:00
Alexander von Gluck IV
a5ccd036b4 radeon_hd: Become Spread Spectrum aware
* Enable Spread Spectrum when requested
* Tested working across several cards, does
  have regression potential though.
2012-08-14 19:58:10 -05:00
Alexander von Gluck IV
14943b5b8b radeon_hd: cleanup some logic; no functional change 2012-08-14 19:58:09 -05:00
Alexander von Gluck IV
29e6039282 radeon_hd: style cleanup; no functional change 2012-08-14 19:58:09 -05:00
Alexander von Gluck IV
facf5d1ef8 radeon_hd: ensure we call CMD_SETUP on DCE6+ dpms
* We may not get a picture otherwise
2012-08-14 19:58:08 -05:00
Alexander von Gluck IV
baa7999a48 radeon_hd: slight adjustment to PLL choosing on DP 2012-08-14 19:58:08 -05:00
Matt Madia
51014b9eb6 Revert "ffmpeg: switch to 0.11.1" (hrev44483)
This reverts commit 14b654326d.

Unfortunately that changeset causes a regression on GCC 2, which
makes playback of (some?) video impossible. This is due to Libavcodec
being miscompiled, which requires gcc >= 4.2

Resolves the regression of #8856, but does not fix the root issue.
2012-08-14 18:24:12 -04:00
Philippe Saint-Pierre
8cbdf82a0a Tracker: Drawing glitch when created Pose is first in PoseView
Due to clipping of a rect to match the view bounds, there was a confusion
as to whether the rect was at the top of the view bounds, or above the view
bounds as both met the condition.

Fixes #8876.
2012-08-14 16:26:19 -04:00
John Scipione
3efc4c1c01 Revert "Rename French (Bépo).keymap to use precomposed form."
This reverts commit df62aa28a7.

Nope, this did not work, it added a new file instead of renaming
the existing one, so there are 2 French (Bépo).keymap files instead
of one, tricky.
2012-08-13 21:04:16 -04:00
John Scipione
df62aa28a7 Rename French (Bépo).keymap to use precomposed form. 2012-08-13 20:39:39 -04:00
John Scipione
19a18af35e Convert fs_host files from c back to cpp and style changes.
* fs_darwin.c => fs_darwin.cpp
* fs_freebsd.c => fs_freebsd.cpp
* use bool instead of int again in fs_darwin.cpp (C => C++)
* declare loop varibles inline again in fs_freebsd.cpp (C => C++)
* 2 newlines between top header gaurd and first #include
* 2 newlines after last #include
* freebsd/endian.h and freebsd/regex.h convert \r\n to just \n
* remove some leading tabs in fs_freebsd.cpp
* add newlines after single line if statement in fs_freebsd.cpp
* 80-char limit fixes in fs_freebsd.cpp
2012-08-13 18:51:59 -04:00
John Scipione
efeef5fad7 FreeBSD build fixes cpp => c 2012-08-12 20:33:46 -04:00
John Scipione
e4e68917c3 Cleanup darwin build system some more.
* Convert fs_darwin.cpp and fs_freebsd.cpp to C.
* Convert extern C calls to __BEGIN_DECLS and __END_DECLS macros
* Link rm_attrs with dynamic libroot
2012-08-12 20:33:46 -04:00
Philippe Saint-Pierre
7ad72ef6ea PoseView: avoid duplication of poses
When filtered, clear the FilteredPoseList before re-filling it.

Fixes #8875.
2012-08-12 16:34:39 -04:00
Ryan Leavengood
315d8b69d7 Rename RTF-Translator to RTFTranslator. 2012-08-12 12:41:01 -04:00
Ryan Leavengood
1a59d9dbeb Improve Deskbar's WindowShouldBeListed utility function.
It now has all the knowledge about whether a window should be shown or not.
Since I fixed #4127, ORing with is_mini is no longer needed.
2012-08-12 10:41:19 -04:00
Ryan Leavengood
96cabf581a Sync BWindow fShowLevel with the app_server.
Implementing the window_info.show_hide_level in terms of this solves the
problem of minimized windows also being considered hidden, when really they are
just hidden in the app_server.

window_info.show_hide_level is still defined backwards with a comment making
that clear.

Also removed sending fShowLevel in the minimize request since it is now
maintained in the app_server.

Fixes #4127.
2012-08-12 10:40:21 -04:00
Alex Smith
15ed6a1e56 CID 609387: Uninitialized pointer access.
Fixes a crash I just ran into on x86_64, only appeared when I built
with optimization disabled.
2012-08-12 12:40:18 +01:00
Humdinger
e8eb40f777 Harmonized translator titles in DataTranslations. 2012-08-12 09:49:11 +02:00
John Scipione
a43b1ed6d8 Split fs_darwin.h defines into various platform dependent headers.
This completes the final 1/3 of #8857. Changes again by nielx with
style fixes by me.

The one part that I couldn't figure out, and maybe Ingo can chime
in here. If headers/build/host/darwin/sys/stat.h is surrounded in

extern "C" {

}

guards then I get a link error complaining that the functions defined
here are duplicate symbols, once in fs.o and once in function_remapper.o.
For example:

ld: duplicate symbol _futimens in generated/objects/darwin/x86_64/release/build/libroot/libroot_build_function_remapper.a(function_remapper.o) and generated/objects/darwin/x86_64/release/build/libroot/libroot_build.a(fs.o) for architecture x86_64

I'm not sure why that is.
2012-08-11 18:26:36 -04:00
John Scipione
ef7e9d6b9b Add fopendir() to fs_darwin.cpp and fix symlinkat().
This completes 2/3 of #8857 and is courtesy of nielx.
2012-08-11 17:56:22 -04:00
Rene Gollent
39433058f7 Fix ticket #8858.
- When an Identify/Force Identify request is made in Tracker, if the target
  is a link, resolve it to its destination first. Fixes #8858.
- Have mime_update.sh explicitly mimeset the welcome/user guide scripts.
2012-08-11 09:56:20 -04:00
Ryan Leavengood
b0841df466 Ignore hidden or minimized windows in workspaces mouse down.
This avoids selecting those windows for moving and more importantly bringing to
front a minimized window with Ctrl-click, which causes the minimized state to
be out of sync between the app_server and BWindow, causing #8860.
2012-08-11 00:27:47 -04:00
Philippe Saint-Pierre
c01e918c0a Cancel editing of Widget if sorting of poses occured.
Since the position of the widget was registered at the first click,
it likely changed and its causing drawing afterfacts (it's editing at
its old location).
2012-08-10 12:23:08 -04:00
Philippe Saint-Pierre
66c09a3554 Delayed widget editing, crash avoidance
Make the PoseView stop watching a TextWidget if it's being deleted.
Could happen in race conditions for example, if you click to edit
the name widget of a pose while the pose is being deleted soon after.
2012-08-10 12:11:04 -04:00
Philippe Saint-Pierre
4cf0af0607 Tracker: Additional cases to cancel double-click detection
Don't wait for a potential second click (and then trigger Widget editing) when:

1. a click occurs on a different pose, on a 'pose-less' area or when right clicking
2. when you start dragging something.
2012-08-10 00:07:56 -04:00
Philippe Saint-Pierre
741e52463a Tracker: Double-click management changes
Make the "second click of a double-click" detection waiting time async. In other words
(hopefully clearer), when the TextWidget gets a click, it register itself, recording the time,
and it will get the editing order later as a callback from PoseView when the delay without any
further click expires.

Fixes #8818 and maybe others.
2012-08-09 23:15:27 -04:00
Philippe Saint-Pierre
e0e641c078 Tracker: Style fixes, should have no functional change 2012-08-09 23:15:27 -04:00
François Revol
6adbfc19ef Add an nfs: URI description to the MIME database 2012-08-09 21:37:09 +02:00
François Revol
8d9d55630a urlwrapper: add support for nfs: URI scheme
Now that NFSv4 almost works, add support for handling nfs: urls to urlwrapper.
Should later be replaced by a better solution but it works for the time being.
2012-08-09 21:28:26 +02:00
Philippe Saint-Pierre
ff163a8803 FileTypes preflet: save HVIF icons as attributes only
Previously, changing a file's icon was creating both an attribute
and a ressource, now it only saves it as an attribute
i.e. don't change the file content.
2012-08-09 01:28:54 -04:00
Philippe Saint-Pierre
9766084650 InfoWindow: Icon wasn't properly refreshing when changing 2012-08-09 01:28:54 -04:00
Philippe Saint-Pierre
52b530a507 FileTypes preflet: IconView was not updated properly 2012-08-09 01:28:54 -04:00
Philippe Saint-Pierre
11a36918ee PoseView::AddPosesTask - no need to open the node at this point 2012-08-09 01:28:54 -04:00
czeidler
ba1c9c6c6d The hotspot is already included in the shift.
This became visible when dragging an image together with a cursor that has a reasonable large hotspot. In this case the cursor and the bitmap were shifted to much.
2012-08-09 14:42:18 +12:00
x-ist
6e1a7a15cd Fix BTextView tab calculation.
In rare cases such as described in #7955 BTextView happens to calculate the
width of a tab close to zero (e.g. 0.000031). This patch adds a fallback to the
default tab width in that case.

Signed-off-by: Ryan Leavengood <leavengood@gmail.com>
2012-08-08 22:17:38 -04:00
Rene Gollent
6e3918fa63 Don't release reference if we don't have one.
Fixes a crash seen if Debugger was run on an unsupported architecture, e.g.
x86-64 (for now).
2012-08-08 19:58:40 -04:00
Rene Gollent
74e288401d 64-bit fixes. Gets Debugger fully compiling on x86-64. 2012-08-08 19:40:51 -04:00
Philippe Saint-Pierre
aafb6faf57 PoseView: crash related to PoseView containing many files
Due to a previous change in the incrementation of models in AddPosesTask,
PoseView containing large number of poses were prone to crash in ClearPoses().

Gaps in PoseList or other invalid memory area were introduced.

Thanks to x-ist for precious assistance in spotting those issues!
2012-08-08 16:36:02 -04:00
Philippe Saint-Pierre
0bc1be3252 PoseView: Fix crash in FilePanel
Again, a regression fix. Under some circumstance, fFiltering was wrongly
set. Also, the node wasn't open before checking the BRefFilter and some
filters expected that to be.
2012-08-08 14:59:29 -04:00
Philippe Saint-Pierre
5489384d45 Tracker: crash fix in FilePanel
Regression of hrev44493, file panel crashed when changing dir and
filtering being disabled (sorry!)

Also fix the widget editing when filtering is activated. Now renaming
a file/folder and causing it to 'fall off' the filter does work.
2012-08-08 13:07:53 -04:00
Philippe Saint-Pierre
7d460e3bb9 PoseList: fix an assertion failure 2012-08-08 13:07:53 -04:00