Commit Graph

37967 Commits

Author SHA1 Message Date
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
Rene Gollent
cdf25540df 64-bit fixes for StyledEdit. 2012-08-28 10:11:53 +01:00
Rene Gollent
c3fa08a6c9 64-bit fixes for ProcessController. 2012-08-28 10:11:53 +01: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
Alex Smith
4591ebc99a Fixes for building Haiku x86_64 from itself. 2012-08-18 19:57:46 +01:00
Alex Smith
d2a1be1c4e Cleaner separation of 32-/64-bit specific CPU/interrupt code.
Renamed {32,64}/int.cpp to {32,64}/descriptors.cpp, which now contain
functions for GDT and TSS setup that were previously in arch_cpu.cpp,
as well as the IDT setup code. These get called from the init functions
in arch_cpu.cpp, rather than having a bunch of ifdef'd chunks of code
for 32/64.
2012-08-18 17:43:40 +01:00
Alex Smith
dcd705cded CID 715610: Operands don't affect result.
Comparing a uint32 against ~0UL would always be false on 64-bit.
2012-08-18 14:06:11 +01:00
Alex Smith
423d8dfed3 CID 714424: Operands don't affect result.
Storing size_t result of std::string::find_first_of in a uint32 then
checking against std::string::npos would never be true.
2012-08-18 14:02:58 +01:00
Alex Smith
f16cf073d5 CID 714526: Operands don't affect result.
Incorrect check of in_addr_t (uint32_t) against (unsigned long)-1
would never be true.
2012-08-18 13:58:21 +01:00
Alex Smith
d339b8398c CID 712424: Unintended sign extension.
Fix taken from glibc, glibc bug #3747.
2012-08-18 13:52:10 +01:00
Alex Smith
3ab9de3b68 CID 714425: Operands don't affect result.
Result of a call to strtoul was stored in a uint32, then checked
against ULONG_MAX for error. If long is 64 bits, the error check
will never be true.
2012-08-18 13:39:37 +01:00
Alex Smith
f3780ae8b2 CID 715700, 715701: Fixed assumption of 4 byte pointer size. 2012-08-18 12:24:09 +01:00
Alex Smith
6314232f45 Added VirtualMemory preferences to image. 2012-08-18 12:12:36 +01:00
Alex Smith
3c230971db 64-bit fixes for sis900 network driver. 2012-08-18 11:51:17 +01:00
Alex Smith
be2f57f0de 64-bit fixes for wb840 network driver. 2012-08-18 11:47:03 +01:00
Alex Smith
660e7dd1c4 CID 714542: Unintentional sign extension to 64 bits.
Fixed by changing type of val from u_long to u_int32_t. val only gets
passed to htonl which takes a uint32_t, so no need for it to be u_long.
2012-08-18 11:28:59 +01:00
Alex Smith
79a1c3c6b8 Another missed printf string (CID 715659). 2012-08-18 10:50:11 +01:00
Alex Smith
816aded4c1 Added Installer and DriveSetup to image. 2012-08-18 10:36:00 +01:00
Alex Smith
7e5b39b672 Fix printf format warnings that were missed earlier (CIDs 715645-715657). 2012-08-18 10:27:52 +01:00
Alex Smith
173342c0ab Change the heap reservation for 64-bit platforms.
Hoard reserves a chunk of the address space to grow the heap into.
As there is a much larger address space available on 64-bit systems,
we may as well reserve a larger chunk of address space (64GB for now,
though could probably reserve a lot more than that and still leave
plenty of room for other areas).
2012-08-17 15:34:11 +01:00
Alex Smith
9f629ef38e Rename KERNEL_LOAD_BASE_64BIT to KERNEL_LOAD_BASE_64_BIT for consistency. 2012-08-17 15:16:25 +01:00
Alex Smith
e993391e9c Fixed crypt() for 64-bit systems. 2012-08-17 13:37:05 +01: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
Alex Smith
e688bf23d4 Merge branch 'master' into x86_64
Conflicts:
	src/servers/app/ServerWindow.cpp
2012-08-16 21:11:15 +01: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
Alex Smith
1eaa9e63cd Compilation fix for malloc_debug. 2012-08-16 14:23:43 +01:00
Alex Smith
c864ba1a2d Build a separate libsupc++ for the kernel with correct flags.
Kernel mode code on x86_64 needs to be built with -mno-red-zone as
interrupts would corrupt the red zone if it were in use. However, the
kernel is linked with libsupc++, which was not compiled with
-mno-red-zone. If an interrupt occurred in libsupc++ code the red zone
would get corrupted. This was causing random panics, particularly under
heavy system load. Therefore, on x86_64 a separate build of libsupc++
with -mno-red-zone is now done for the kernel to use. Note: this commit
will require a rerun of configure and rebuild of cross tools.
2012-08-16 13:57:04 +01: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
Alex Smith
294818c5fd More x86_64 printf() fixes from glibc. 2012-08-15 15:40:32 +01: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
Alex Smith
91899cd48d Fix from glibc for possible crash when printf()'ing a long double. 2012-08-14 20:08:42 +01:00
Alex Smith
4efc3430a0 Fixed possible NULL dereference in vm_page_fault.
This bug was introduced by changing IS_USER_ADDRESS to check against
USER_BASE AND USER_TOP rather than just !IS_KERNEL_ADDRESS. Faults
on addresses outside both the user and kernel address spaces (i.e. the
gap between user and kernel) would result in addressSpace being NULL,
but addressSpace was being used without checking for NULL at one point.
2012-08-14 17:46:09 +01:00
Alex Smith
a53cfbf491 Jump to the fault handler for GPFs in the debugger.
If an uncanonical address is accessed a general protection fault will
be raised. When in the debugger, uncanonical address faults should be
handled by the fault handler (if any).
2012-08-14 16:03:33 +01:00
Alex Smith
b067b2878b Fix expr from coreutils on x86_64.
The coreutils sources get built against the regex.h included with
coreutils, but linked against the regex implementation in libroot. Some
of the types used by coreutils' regex implementation differ from those
in libroot's on 64-bit platforms meaning they are incompatible. Fixed by
building coreutils' own regex implementation rather than linking to
libroot's (GCC 2 still uses libroot though, coreutils' implementation
doesn't build with GCC 2).
2012-08-14 11:08:21 +01: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
Alex Smith
efffcb292f Better fix for picture data type mismatch.
Should use a fixed-size type (int32) rather than a platform-dependent
one.
2012-08-11 13:26:59 +01:00
Alex Smith
e1c748e4c0 Revert "Fixed type mismatch in picture data."
This reverts commit 81aad168f8.
2012-08-11 13:23:22 +01:00
Alex Smith
d384cac443 Support ELF64 in set_haiku_revision. 2012-08-11 09:17:15 +01: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
Alex Smith
ac4525b2a5 Changed BRegion to use int32 instead of long.
There is no need for fCount and fDataSize to be long, not going to have
more than 2^32 rectangles in a region. Thanks Axel for pointing that
out.
2012-08-10 16:22:51 +01:00
Alex Smith
6d796a84bd Fixed up network stack and drivers for x86_64.
* Various compilation fixes.
* Fixes to the FreeBSD compatibility layer (from comparing the x86-
  specific bits with the equivalent amd64 sources in FreeBSD).
* Compile all the Ethernet drivers except for sis900 and wb840, these
  require a bit more work to fix (will file a ticket soon). Tested
  ipro1000 and rtl81xx, no issues.
2012-08-10 14:30:54 +01:00
Alex Smith
2b861dd2a5 Added translator add-ons. 2012-08-10 11:35:24 +01:00
Alex Smith
81aad168f8 Fixed type mismatch in picture data.
The size of an operation block was written as size_t by PictureDataWriter
but read as int32 by PicturePlayer. Fixes an app_server crash.
2012-08-10 10:34:28 +01:00
Alex Smith
5084d0d451 Added more things to x86_64 image.
Some preference apps, mount_server and AboutSystem. Removed the check
for x86_64 in the boot script, the normal path through the script will
work now. Also removed a temporary hack to workaround AboutSystem not
being there in build_haiku_image.
2012-08-10 09:32:54 +01: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
Alex Smith
e963289800 Added Tracker and Deskbar to x86_64 build. 2012-08-09 19:36:52 +01:00
Alex Smith
4b8a51c34c Fixed incorrect sizeof in LinkReceiver::ReadRegion.
The type of BRegion::fCount is long, and ServerLink sends/receives it
with sizeof(long), but LinkReceiver was using sizeof(int32). Due to
long being 64 bit this was resulting in a mismatch. This fixes the
drawing problems on x86_64.
2012-08-09 18:10:49 +01:00
Alex Smith
c0166cf22a Should check for ELF_CLASS, not ELFCLASS32. 2012-08-09 14:06:29 +01:00
Alex Smith
fa6327c9f4 Compile remaining x86 bits for x86_64.
The IOAPIC and IRQ routing code now gets compiled for x86_64, though
they won't be used yet as there is no ACPI support currently.
2012-08-09 13:18:53 +01:00
Alex Smith
f3e4f18be7 Debugging fixes.
* INT3 had the wrong DPL set in the IDT, could not be raised from
  userland.
* Need the debug server running.
2012-08-09 09:17:04 +01:00
Alex Smith
a5e96a301e Merge branch 'master' into x86_64 2012-08-09 08:24:50 +01: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
Philippe Saint-Pierre
ea8b1e14f9 OpenWithWindow: Fix crash at closing, and fix filtering
Following hrev44493, the way ShouldShowPose was used changed a bit,
to harmonize with type ahead filtering.

This updates OpenWithWindow to use a BRefFilter to do its
filtering rather than overloading ShouldShowPose.
2012-08-08 13:07:53 -04:00
Philippe Saint-Pierre
c2535dc48a Tracker: various issues regarding filtering
1. A BRefFilter-ed PoseView wouldn't keep monitoring files after its opening
thus not picking up files that happen to fit the filter thereafter (mime attr
updated, etc..)
2. A filtered PoseView wouldn't get updated when:
  a) a column was added or removed
  b) a file was renamed
  c) a file was moved
3. Harmonize the way BRefFiltering and Type-ahead filtering are working. Both
can be used together.
4. The handler for AttributeChanged() wasn't working properly if link(s) of a
changed model was/were its siblings.
5. Broken links weren't detected/updated (it nows monitor the lost target
parent directory, and wait for the target creation to show the link fixed)

This is a big change (even more considering the 'critical-ness' of the component)
Testing is MUCH welcome!

Should fix #4254, #5381, #1717 (and maybe others)
2012-08-07 18:31:54 -04:00
Hamish Morrison
59b4be8cc1 Move SoundConsumer to libmedia in the BPrivate namespace
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2012-08-07 23:38:37 +02:00
Alexander von Gluck IV
d96e687652 radeon_hd: re-rework some pll code
* Grab pseudo pll SS info for early
  Spread Spectrum access
* display_crtc_ss now takes a pll vs
  a display for easy pll access
2012-08-07 15:36:34 -05:00
Alex Smith
a3802ca967 x86_64 support for GDB.
As mentioned in one of the previous commits, breakpoints don't work
properly yet, and I haven't done much extensive testing yet, but the
basic functionality works.
2012-08-07 20:24:55 +01:00
Alex Smith
a731ad19e6 ELF64 and x86_64 support in the debug kit. 2012-08-07 20:22:36 +01:00
Alex Smith
8a1903353e Implemented user debugging support for x86_64.
Reused x86 arch_user_debugger.cpp, with a few minor changes to make
the code work for both 32 and 64 bit. Something isn't quite working
right, if a breakpoint is hit the kernel will hang. Other than that
everything appears to work correctly.
2012-08-07 20:20:42 +01:00
x-ist
772f5f839c Since the search pattern is wrapped in double quotes for grep, the symbol ' (apostrophe) must not be escaped. Fixes #8776.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2012-08-07 15:59:13 +00:00
Alexander von Gluck IV
817c114de7 radeon_hd: rework some pll code
* Force fractional feedback divider on APU's
* Spread Spectrum is now probed more correctly
  across multiple encoders and cards
* SS still disabled however.
2012-08-07 13:20:52 -05:00
Alexander von Gluck IV
63624e404b radeon_hd: reorganize some pll code
* Move DisplayPort external pixel clock out of pll
  as this frequency is card-wide.
* Add new function to pull display clock frequency
  and other card-wide settings.
* Set displayDefault frequency card-wide
* My DisplayPort LVDS bridge laptop now kind of works
  (a clock somewhere seems a little off though)
2012-08-07 08:53:34 -05:00
Alexander von Gluck IV
5f44fcce9f radeon_hd: enable non-dp code to execute dpcd queries
* Check DPCD to properly choose TRAVIS DP panel mode
2012-08-07 07:25:31 -05:00
Alexander von Gluck IV
472744339b radeon_hd: pick a PLL based on connector
* was static PLL 1
2012-08-07 07:25:31 -05:00
Ryan Leavengood
9c250a42b8 Use BTranslatorUtils::AddTranslationItems in CodyCam. 2012-08-07 00:47:32 -04:00
Ryan Leavengood
e77304562d Actually sort the translator menu used in ShowImage.
There were two problems with the last commit:

* the list needed to be outside of the top-level loop.
* BList was just broken for sorting translation_format pointers.

I fixed this by moving the loop outside and converting the translation_formats
to translator_info, which has the translator_id, since that is needed to create
the menu item, and would otherwise be unavailable outside the loop.

I tried to get this working with BList, but the sorting was completely broken,
and converting to BObjectList made the code much, much better and worked great.
Screw BList and casting, hurray templated BObjectList.

Really fixes #6782.
2012-08-07 00:41:41 -04:00
Jérôme Duval
14b654326d ffmpeg: switch to 0.11.1 2012-08-07 00:53:29 +02:00
Alexander von Gluck IV
bef63a4442 radeon_hd: fix cosmetic encoder order
* While Travis is listed before Nutmeg
  in ObjectID.h, their values are reversed.
2012-08-06 15:20:42 -05:00
Alexander von Gluck IV
d92959ab8b radeon_hd: add DisplayPort debugging
* Commented out by default
* Shows DisplayPort status info for each
  connector post-mode change (as DP properies
  are configured on mode change once we know
  the pixel clock)
2012-08-06 15:20:41 -05:00
Philippe Houdoin
b292f6936a Fix typo, spotted by ttcoder. Thanks. 2012-08-06 21:53:25 +02:00
ahenriksson
35dc734b48 Single values are allowed in regular duplicate nodes
Not in duplicate fragments, however. This oversight in hrev44359 made
checkfs incorrectly rebuild valid indices, causing #8762.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2012-08-06 20:05:46 +02:00
Alex Smith
2b883e1977 Fix compilation of OHCI on x86.
Fixes were needed to go with the USB stack changes. Haven't tested it
yet because I don't have a a machine with OHCI, but I doubt there
will be any problems.
2012-08-06 17:25:51 +01:00
Humdinger
4d99b24ded Removed Mr.Peeps from a ResEdit alert. Thanks Eagleeye Ryan! 2012-08-06 18:21:14 +02:00
Humdinger
34e3453f24 Added accidentally removed "!=0" back... 2012-08-06 18:17:56 +02:00
Alex Smith
c802257bbb Merge branch 'master' into x86_64 2012-08-06 12:34:03 +01:00
Alex Smith
2997a19125 Fixed UHCI for x86_64. 2012-08-06 12:29:12 +01:00
Rene Gollent
44672ada83 Add usb_hid to image and get it building/working. 2012-08-06 09:54:18 +01:00
Rene Gollent
d8b4cfc982 Get USB functional on x86-64.
- Various changes to printf format specifiers to make them 32/64 safe.
- Adjustments to various descriptor structures since addr_t is not 32-bit
  on x86-64, and consequently this breaks the physical structure that's
  expected. Also adjusted padding to accomodate 32-byte boundaries when
  64-bit pointers are in use.
- Adjustments to make use of phys_addr_t where needed.
2012-08-06 09:23:38 +01:00
Ryan Leavengood
adfe152ee2 Sort the translation formats in AddTranslationItems by name.
This is used by ShowImage and CodyCam to create a list of image formats which a
file can be saved as. Tracker sorts the image MIME types used in the Find
window by name, so this makes these Save As menus match that (minus the icons
which I think are superfluous.)

Fixes #6782.

If the use of BList is no longer recommended, I welcome better suggestions
for sorting which will work in both GCC2 and GCC4. But this works ;)
2012-08-06 02:08:37 -04:00
Ryan Leavengood
f022b1e7c0 Rename ICO translator format name to "Microsoft icon".
This matches the MIME type and is part of fixing #6782.
2012-08-06 00:43:10 -04:00
Ryan Leavengood
57c5b09e1a Use be_control_look != NULL everywhere in the Interface Kit.
Should not be a functional change. It is not in the Haiku Coding Guidelines but
I feel like 'if (object != NULL)' is generally preferred to 'if (object)', plus
in this case of be_control_look that is the more common style.
2012-08-05 18:07:23 -04:00
Ingo Weinhold
7483c98dec Debugger (and some friends): 64 bit fixes 2012-08-05 23:58:25 +02:00
Humdinger
aed3510485 Close alerts with ESCAPE key.
Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.
2012-08-05 19:32:46 +02:00
Alexander von Gluck IV
4e7e3e331d radeon_hd: display port improvements
* Remove non-generic radeon dp_get_lane_count
* Set lane count and link rate at set_display_mode
* Pass entire mode to pll_set vs only pixel clock for DP code
* Add helpers for DP config data to common code
* Obtain more correct link rate
2012-08-05 12:15:35 -05:00
Alex Smith
cc30eec43d System call restart support. 2012-08-05 14:20:37 +01:00
Alex Smith
e1be7d07d6 Fixed a 64-bit calculation error. 2012-08-05 12:59:46 +01:00
Alex Smith
284d75bd6a Merge branch 'master' into x86_64 2012-08-05 10:33:20 +01:00
Alex Smith
adf8818ec0 Compilation fixes for Terminal, add to image.
It runs, but has shown up various bugs: app_server crashes, kernel
panics, rendering problems. Working on fixing these now.
2012-08-05 10:24:22 +01:00
Alex Smith
e5363c936a Style fix. 2012-08-05 10:16:11 +01:00
Alex Smith
3fed1a15f5 Get app_server working on x86_64.
With this commit, app_server now compiles and runs at boot! Nothing
particularly interesting happens, just the blue background and a mouse
pointer. Remote backends are broken and not compiled in, see #8834.
Note that it won't be possible to build this quite yet, need to get
the FreeType package uploaded.
2012-08-05 08:46:30 +01:00
Alex Smith
f429464535 User symbol lookup works now on x86_64. 2012-08-05 08:12:39 +01:00
Alexander von Gluck IV
f0e29955bf radeon_hd: Fix pre-emphasis shift
* pre-emphasis shift was always for lane b
2012-08-05 00:50:56 -05:00
Alexander von Gluck IV
694eca3bb6 radeon_hd: Add DP link_train_ce
* First attempts at DisplayPort link training
  clock equalization.
* Add DP define to detect equalization state
* Working towards resolving #8626
2012-08-05 00:01:43 -05:00
Ingo Weinhold
9b008d31ff Debugger CLI: Add a bunch of new commands
* "thread": prints/sets the current thread.
* "continue", "stop": continue/stop the current thread.
* "sc"/"bt": Print a stack trace for the current thread. Very basic yet.
2012-08-05 01:07:17 +02:00
Ingo Weinhold
86b1039b42 Debugger CliContext: More event handling, current thread
* Introduce the notion of a current thread. That's the one certain
  commands will target (by default).
* Add more event handling in CliContext. There's now a queue of pending
  events which are printed in the input loop at convenient times to
  inform the user about what happened (new/deleted/stopped threads,
  etc.).
2012-08-05 01:07:17 +02:00
Ingo Weinhold
59dbbd147e Debugger: CliQuitCommand: Fix cancel shortcut 2012-08-05 01:07:16 +02:00
Ingo Weinhold
d4586180a6 Debugger CLI: Improve "help" command
Given a command name it prints the command's usage.
2012-08-05 01:07:16 +02:00
Ingo Weinhold
a7580a8299 Debugger: Add CliCommand::PrintUsage() 2012-08-05 01:07:16 +02:00
Alex Smith
049d149cf7 Handle 64-bit types correctly. 2012-08-04 18:58:26 +01:00
Alex Smith
57ab0395ad 64-bit fixes for input_server. 2012-08-04 16:10:00 +01:00
Alex Smith
25871c6895 Removed Thread::fault_callback, no longer necessary now that vm86 is gone. 2012-08-04 11:02:54 +01:00
Alex Smith
70ee5a7efb Moved x86emu to {src,headers}/libs/. 2012-08-04 10:21:22 +01:00
Alex Smith
54393c0379 Merge branch 'master' into x86_64 2012-08-04 09:59:17 +01:00
Ryan Leavengood
bab4f5ad7d Use the parent menu's font when truncating labels.
Fixes the other bug uncovered by #8829, but my other fix was valid too.
2012-08-04 00:24:56 -04:00
Ryan Leavengood
4ffc27fcc1 Fix incorrectly truncated menu labels.
An off-by-one error (> instead of >= really) was causing truncation when it
wasn't needed. But for some reason this only showed up when the main font size
was increased. I may or may not look into that, but this fixes the issue.

Maybe one of the faster bug logged to bug fixed times in Haiku history? ;)
2012-08-03 23:56:00 -04:00
Alexander von Gluck IV
33d23e8fed DriveSetup: Show a quick warning when formatting raw disk
* Another translation candidate :)
2012-08-03 11:59:48 -05:00
Alexander von Gluck IV
8fe3bba727 DriveSetup: Don't show unimplemented tools 2012-08-03 11:59:47 -05:00
Alexander von Gluck IV
448216aff8 DriveSetup: Text / context cleanup
* Make sure we use consistant terminology
* No more Formatted partition "" messages when
  doing a partition map
* This commit will require translation work
2012-08-03 11:59:47 -05:00
Alexander von Gluck IV
badea728fa DriveSetup: Reorganize Disk menu.
* Group destructive and non-destructive operations
* Rename Disk->Format to Wipe (seems like a more modern term)
* Mostly bikeshed :)
2012-08-03 11:59:47 -05:00
Alex Smith
9bfe064799 GCC 2 compilation fix for x86emu. 2012-08-03 17:12:53 +01:00
Alex Smith
74bda98cb2 Killed off vm86 code, no longer being used. 2012-08-03 16:49:15 +01:00
Alex Smith
9f90e8a964 Updated drivers to use BIOS module instead of vm86. 2012-08-03 16:28:20 +01:00
Alex Smith
b28f734b1c Remove line copied from old vm86 code that shouldn't be there. 2012-08-03 16:18:49 +01:00
John Scipione
593808d96a Return authors name's to DeskCalc headers.
No functional change.

* Surround email addresses in angle brackets.
* Add myself to ExpressionParser.cpp and .h
* Remove myself from ExpressionTextView.cpp and .h
* Alphatetize authors by last name.

Thanks Ingo and Axel.
2012-08-03 11:16:23 -04:00
Alex Smith
a9ee7a5132 Added new BIOS module for calling BIOS interrupts.
This module provides an interface for drivers to use to perform calls
to the BIOS (only really for use by graphics drivers which need to use
the VESA BIOS). It uses the x86emu library from X.org which emulates
a real mode x86 CPU. This is necessary for x86_64 as virtual 8086 mode
no longer exists there.
2012-08-03 15:42:30 +01:00
Alexander von Gluck IV
47689d6e98 DriveSetup: Refactor gui layout as per ML thread
* Move disk partitioning systems under Disk menu
* Found and created bug #8827 (this wasn't introduced
  by my changes and was pre-existing)
* My testing resulted in no regressions, however
  please test though!
2012-08-03 09:34:28 -05:00
John Scipione
9f5d4ecd97 Style fixes, update copyright, add myself as author.
No functional change.
2012-08-03 04:27:12 -04:00
Ryan Leavengood
e19488b2cc Make Deskbar respect the menu text color settings.
Hard-coding black is bad, mmmkay?

This makes Deskbar usable on dark background with light text color schemes.
2012-08-03 01:59:53 -04:00
Ryan Leavengood
ab4e79c351 Fix Deskbar based on my recent menu change.
Thanks augiedoggie for pointing it out.
2012-08-03 01:58:41 -04:00
Ryan Leavengood
477a6b7bfb What if Magnify displayed a hex color instead of a useless index?
Well now it does.

The code needs much more love, but I fixed the coding violations in this code I
touched.
2012-08-03 00:09:08 -04:00
Ryan Leavengood
16e4281d0a Remove the no longer needed hack from WebPositive. 2012-08-02 23:25:29 -04:00
Ryan Leavengood
0eed2a7c98 Fix flickering menus, especially menu bars.
Figured out by Stephan originally and only hacked in WebPositive, I knew
something about WebPositive was different because it did not flicker when
everything else did.

Since we fully draw the menus there is no need to have app_server fill in the
background with the view color. That is what was causing the flickering.

Should fix #484, #532 and #4335. Thanks diver for confirming the patch against
those tickets.
2012-08-02 23:25:29 -04:00
Rene Gollent
886f1456af Printf format adjustments to get ahci building on x86_64. 2012-08-02 20:29:12 -04:00
Alex Smith
50cedfd5b0 Build registrar for x86_64. 2012-08-02 10:45:42 +01:00
Alex Smith
d93ed09564 Improved safety for user memory accesses.
* Changed IS_USER_ADDRESS to check an address using USER_BASE and
  USER_SIZE, rather than just !IS_KERNEL_ADDRESS. The old check would
  allow user buffers to point into the physical memory map area.
* Added an unmapped hole at the end of the bottom half of the address
  space which catches buffers that cross into the uncanonical address
  region. This also removes the need to check for uncanonical return
  addresses in the syscall handler, it is no longer possible for the
  return address to be uncanonical under normal circumstances. All
  cases in which the return address might be changed by the kernel
  are still handled via the IRET path.
2012-08-02 09:32:33 +01:00
Ryan Leavengood
81033e260a Add TODO about the Shortcuts settings file management.
Now we can close #6278.
2012-08-01 22:31:08 -04:00
Jessica Hamilton
da2f4733e6 Preserve state of lock keys when keymap is loaded.
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2012-08-02 00:04:52 +02:00
Ryan Leavengood
894bce690b Add easier keyboard shortcuts to the Team Monitor window.
* Delete and q quit the application.
* Shift-Delete and k kill the application.

Used a message filter since I want these handled by the window.

Fixes #8561.

Also:
* Removed DeselectAll() from the class declaration since it was never defined.
* Re-ordered methods in the class definition to match the order in the declaration.
* Added the underscore to _UpdateList() since it is a private method and moved
  it to the right place.
2012-08-01 13:21:46 -04:00
Alexander von Gluck IV
43af2c93af radeon_hd: Resolve thermal crash on SI
* Forgot to add card register base to register
  offset.
* Resolves #8816
2012-08-01 08:20:47 -05:00
John Scipione
57e436840b Revert "Remove the ellipses for About App in the replicant menu."
Apparently ellipses are used for all dialog boxes on Haiku.
Sorry for the noise.

Thanks AnEvilYak

This reverts commit 147ef3a9e8.
2012-08-01 07:54:39 -04:00
John Scipione
147ef3a9e8 Remove the ellipses for About App in the replicant menu.
The ellipsis character (...) after a menu item means that
the command needs more information from the user before
the operation executes.

The ellipsis character doesn’t simply mean that a dialog
box or window will appear.

The window appearing completes the command and doesn’t
require additional input from the user before it executes.
2012-08-01 07:46:44 -04:00
Alex Smith
9a5503d01c Different uname machine type for x86_64.
* Added B_64_BIT_PC_PLATFORM platform type.
* Return "x86_64" as the machine type for that platform in uname.
2012-08-01 11:13:14 +01:00
Alex Smith
8110732b03 Added some more binaries to the image. 2012-08-01 11:00:35 +01:00
Alex Smith
e6b3188fcb Merge branch 'master' into x86_64 2012-08-01 10:44:38 +01:00
Alex Smith
f7010474bb Changed resource alignment behaviour for ELF64 binaries.
The current behaviour of aligning to the maximum value of p_align seen
is problematic for x86_64, as the default segment alignment is 2MB.
This causes all x86_64 binaries to be padded to at least 2MB when
resources are added to them. There is no need to align to p_align in
the file itself (it's only an in-memory requirement), therefore
instead just align up to an 8-byte boundary. The current behaviour is
retained for ELF32, so this won't cause any compatibility problems
(there are no existing ELF64 BeOS/Haiku binaries to worry about).
2012-08-01 10:35:34 +01:00
Fredrik Holmqvist
57e2ce542e CID-701956: list_remove_head_item may return null.
Simplified from while (1) to while that checks sem directly.
2012-07-31 20:51:02 +02:00
John Scipione
7d404dbcae Rename the angle mode menu items to just 'Radians' and 'Degrees'. No reason for the word Mode. 2012-07-31 09:37:08 -04:00
John Scipione
fa37d94d1b Fix radian/degree mode toggling bug in Deskcalc
I overlooked this problem in my last commit...

If you select the current angle (radian/degree) mode from the menu
it toggles the angle mode, fixed this to make it keep the current
mode.
2012-07-31 08:01:32 -04:00
Alex Smith
bd97ee39e0 Style fix. 2012-07-31 12:15:26 +01:00
Alex Smith
d4ec857af3 Merge branch 'master' into x86_64 2012-07-31 12:10:24 +01:00
Alex Smith
caa1e8b742 Fix CID 712419, 712420, 712421, 712422: Unintentional sign extension to 64 bits. 2012-07-31 12:08:45 +01:00
Alex Smith
3cd66dda5e Fix CID 712419, 712420, 712421, 712422: Unintentional sign extension to 64 bits. 2012-07-31 10:12:33 +01:00
John Scipione
8ffd0477dd Implement degree mode in DeskCalc.
Default is radian mode,  You set the option in the right click menu
like the other options.

Note: degree mode does not affect hyperbolic trigonometric functions.
This is how Mac Calculator, Windows Calculator, and Google Calculator
work.
2012-07-30 22:35:57 -04:00
Alexander von Gluck IV
93aac98d0a radeon_hd: r5xx to Avivo define cleanup
* Reorganize and clean up card defines
* Fix define spaces
* Unify card naming
* No (real) functional change
2012-07-30 15:57:53 -05:00
Alexander von Gluck IV
8ef0a0d2a6 radeon_hd: Card define cleanup
* Trying to do cleanup on the layout of these headers
2012-07-30 15:57:52 -05:00
Alex Smith
02dd3236d2 Better names for syscall/signal functions copied to the commpage. 2012-07-30 21:56:50 +01:00
Alex Smith
a1a38e8aba Retry a few times if opening keyboard fails in consoled.
I'm using consoled at the moment without input_server having been run,
so when it starts the input drivers will not have been loaded. Have to
retry a few times with delays so that the input devices have a chance
to appear.
2012-07-30 21:38:47 +01:00
Alex Smith
533f3bb494 Support x86_64 in sysinfo.
Just changed all #ifdef __INTEL__ to __INTEL__ || __x86_64__, and
fixed all the printf format strings. The CPU detection code all
works the same.
2012-07-30 21:34:05 +01:00
Alex Smith
9be774b553 Compilation and 64-bit fixes to libbe.so sources.
Fixed the usual issues - printf format strings, uint32 instead of
addr_t, etc. One thing that isn't so nice is several places where
BList is used to store (u)int32, these require a double cast to addr_t
then void* to silence a warning on x86_64.
2012-07-30 21:27:21 +01:00
Alex Smith
ef67788fba Ported ISA bus manager and PS/2 driver. 2012-07-30 14:37:28 +01:00
Matt Madia
7e38f21a04 Fixed typo. Fixes #8755 2012-07-30 13:12:02 +00:00
Fredrik Holmqvist
f099314535 Use a rw_lock instead of a mutex.
This however doesn't seem to improve performance here.
Need to investigate lock contention I think.
2012-07-30 17:26:16 +02:00
Alexander von Gluck IV
45dc5c4664 radeon_hd: Add Southen Island gpu temp sensor code
* Add AMD SI defines in si_reg.h
* Prefix SI registers with SI_
* Tab and space cleanup
2012-07-30 09:45:45 -05:00
Alex Smith
c0d28c0199 Implemented signals for x86_64. 2012-07-30 13:52:51 +01:00
Matt Madia
d5c9967333 Created mime sniffer rule for HVIF icons. 2012-07-30 08:36:46 +00:00
Matt Madia
724a6712ec Utilize the new PDF file and PDF writer icons.
Closes #8807.  Thanks again, Justin Stressman for the new icons!
2012-07-30 08:34:38 +00:00
Alex Smith
e27109c167 Merge branch 'master' into x86_64 2012-07-30 08:24:31 +01:00
John Scipione
b79561ad9c Redo some reverted style changes. 2012-07-30 02:45:45 -04:00
John Scipione
78341a9351 Revert "Fix gcc2 build on Mac OS X Lion"
now that Alex Smith has fixed the build system on Lion this
work-around can now be reverted.

This reverts commit 7c369a4b3f.
2012-07-30 02:10:08 -04:00
John Scipione
c15ad4e6b9 Space after for, thanks Ryan 2012-07-30 01:59:11 -04:00
Ryan Leavengood
45ecce1d57 Fix #6978: Add and close tabs on middle mouse down, not up.
This reduces perceived latency. One day when I add a tab close undo stack, this
will be even better. But generally using the middle mouse button is not
accidental.
2012-07-29 22:25:45 -04:00
Ryan Leavengood
cc467a28d9 Remove .swp file, and add a rule to ignore them in .gitignore. 2012-07-29 22:06:53 -04:00
Ryan Leavengood
f893514b87 Remove custom Zoom method from Web+ which goes fullscreen.
This leaves the default BWindow behavior of a maximized window.

Alt-Enter and F11 still will go fullscreen.

Fixes #7966.
2012-07-29 21:13:09 -04:00
John Scipione
1ac528017d Refactor IconUtils.cpp
Mostly style changes, some functional changes although there is no
change in functionality for the success case, just cleaner code.
2012-07-29 13:07:45 -04:00