Commit Graph

48173 Commits

Author SHA1 Message Date
Ingo Weinhold
080ef2e53d package daemon: Fix handling of multiple writable files
When attempting to extract the second writable file from the package,
we noticed that the root directory already existed and assumed
everything had been already extracted. Now we first extract all files
and process them one by one afterwards. Fixes #10131.
2013-10-24 23:13:00 +02:00
Ingo Weinhold
0fea5e936f package daemon: FSUtils::OpenSubDirectory(): Make param const 2013-10-24 23:13:00 +02:00
Ingo Weinhold
a6cf8e1c4e package daemon: Fix error handling of manually added packages
Since we don't move those packages out of the "packages" directory, we
don't want to remove their respective object from the hash tables
either. Fixes #10102.
2013-10-24 23:12:59 +02:00
Adrien Destugues
c52c444c27 Add file: protocol handler. 2013-10-24 17:41:03 +02:00
Adrien Destugues
f6782201f0 Move UrlResult to HttpResult
* Remove the fRawData field, as handling it is too complicated (it's
not easy to have proper copy semantics on a BDataIO) and it's not used
anyway, as the listener DataReceived call is enough to get the data and
handle it.
 * All the remaining fields are HTTP-only, so rename the class to
HttpResult and attach it to HttpRequest instead of UrlRequest.
2013-10-24 17:41:02 +02:00
Jérôme Duval
076952bc29 x86_64: add acpi_battery to the image. 2013-10-24 14:29:51 +02:00
Jérôme Duval
2bd8cdc16b acpi: switch acpi_object from a struct to a union
* this way the size of acpi_object_type matches the size of ACPI_OBJECT
for 32-bit and 64-bit builds.
* adjust users of the type acpi_object_type.
2013-10-24 14:29:47 +02:00
Jérôme Duval
c9cff42225 acpi_battery: code cleanup
* merged acpi_battery.h with the cpp.
* no functional change except the cookie deallocation is now made in
acpi_battery_free() instead of acpi_battery_close().
2013-10-24 14:29:46 +02:00
Jérôme Duval
c1da0e750b acpi_button: cleanup 2013-10-24 14:29:46 +02:00
Jérôme Duval
c5603138e5 random: remove non Haiku code. 2013-10-24 14:29:46 +02:00
Ingo Weinhold
ef5eccf6b3 Add gcc 4 which package 2013-10-24 00:15:15 +02:00
Jérôme Duval
1926af4fde acpi_button: migrated to the new driver API.
* HaikuImage: SYSTEM_ADD_ONS_DRIVERS_POWER is now used for new drivers.
2013-10-23 19:07:22 +02:00
Jérôme Duval
6c1a6532d5 PrintJob.cpp: use MemoryDeleter. 2013-10-22 18:35:40 +02:00
Jérôme Duval
afaeff4cdf x86_64: added acpi_button
* tested OK!
2013-10-22 18:22:40 +02:00
Humdinger
c7e2af25ab Corrected mime_db for HVIF icons
x-vnd.haiku-icon had the wrong BEOS:TYPE and META:TYPE. At least
the META:TYPE is now corresponding to the type I-O-M saves icons.
2013-10-22 18:00:01 +02:00
Ingo Weinhold
df266f1c93 BDaemonClient::CommitTransaction(): Align with documentation
The method is supposed to return B_OK as long as the _result object has
been initialized, even if committing the transaction failed. Fixes the
unhelpful error messages of pkgman when committing the transaction
failed for some reason.
2013-10-22 01:12:02 +02:00
Jérôme Duval
30794c2d79 pci_acpi.cpp: space cleanup 2013-10-21 22:27:18 +02:00
Murai Takashi
004a268e04 Fix dereference of a null pointer
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-10-21 22:22:12 +02:00
Jérôme Duval
ce2d7d5ac8 acpi: use walk_resources to find embedded controller I/O ports.
* export walk_resources and use it
* removed SmallResourceData
* added embedded controller module for x86_64
2013-10-21 22:14:17 +02:00
Adrien Destugues
6c6668ae9e Add friss, sum-it, lha packages
* Also update Caya to provide a deskbar link.
2013-10-21 21:41:34 +02:00
Adrien Destugues
b3d13a000c Network Kit: Coverity scan review and fixes
CID 1108353, 1108335: memory leak.
CID 610473: unused variable.
CID 1108446, 1108433, 1108432, 1108419, 1108400, 991710, 991713, 991712,
	610098, 610097, 610096, 610095: uninitialized field
CID 1108421: unused field

Change the ownership of the result for Url/HttpRequests. The request now
owns its result and you either access it by reference while the request
is live, or copy it to keep it after the request destruction. To help
with that, get BUrlResult copy constructor and assignment operator to
work.

Performance issue: copying the BUrlResult also copies the underlying
BMallocIO data. This should be shared between the BUrlResult objects to
make the copy lighter. The case of BUrlSynchronousRequest is now
particularly inefficient, with at least 2 copies needed to get at the
result.
2013-10-21 09:21:00 +02:00
Rene Gollent
72eb88f5c8 Add non-packaged fonts directory to default image. 2013-10-20 16:06:51 -04:00
Rene Gollent
a8a5b7a4a1 Update Vision package. 2013-10-20 16:00:04 -04:00
John Scipione
31005da9b8 Update BWindow shortcut docs 2013-10-20 15:51:34 -04:00
Rene Gollent
1c9b1111f7 Implement #10116.
- BColumnListView now accepts middle click as well as double click
  to resize a column to preferred.
2013-10-20 15:21:13 -04:00
Murai Takashi
ebea2b79f1 Fix use of memory after it is freed
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-10-20 14:41:20 -04:00
Matt Madia
ab1ba83536 Add 'which' to the "mandatory" packages.
Note: untested on non-x86 archs.
2013-10-20 14:37:57 -04:00
Jeroen Oortwijn
eaef83a97a configure: fix error message
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-10-20 14:02:06 -04:00
Matt Madia
80262a91e2 configure: secondary architecture packages have canonical names 2013-10-20 13:46:40 -04:00
John Scipione
103e868bf9 Style fix, spaces to tabs 2013-10-19 19:40:31 -04:00
John Scipione
bd336e3abc Update semantic shortcuts
Update BKeymap::GetModifiedCharacters() to translate a given character
and set of modifiers filling out a list of all characters that match for another
set of modifiers.

This allows us to, for example, get all characters in the normal map that
have the '+' character in the corresponding shift map.

It is fully generic allowing one to get a list of characters in any map given
a character and modifiers of another map.

Also I converted from using a BList to using a BObjectList.

With this, along with BWindow::HasShortcut(), the semantic shortcuts now
work not only with Command+'=', but any key in the normal map that has
'+' in it's shift map as long as it isn't already taken by another shortcut.
2013-10-19 19:30:47 -04:00
John Scipione
26a23118e7 BWindow: use Unicode lowercase method 2013-10-19 19:30:46 -04:00
Jérôme Duval
6180dde498 Revert "usb_disk: retry when usb disk not ready"
This reverts commit d46d383800.

Regression: CD/DVD-ROM media changes are not recognized anymore.
2013-10-19 22:06:10 +02:00
Jérôme Duval
5d9aaba22f x86_64: added acpi to the image.
* embedded_controller crashes on x86_64, disabled for now.
* removed the -fno-pic compile option.
* synched HaikuBootstrap package with Haiku package.
2013-10-19 21:46:56 +02:00
Jérôme Duval
c74afb578a try to avoid a media_addon_server crash on quit (bug #5863).
* BMediaRosterEx::ReleaseNodeAll(): if media_server isn't available,
try to contact the node locally.
* BMediaRoster::UnregisterNode(): if media_server isn't available,
try to get the addon_id from the local node.
* BMediaNode::AddOn() as a pure virtual methode isn't available in the
BMediaNode destructor. Workaround that by calling UnregisterNode()
in DeleteHook() instead of the destructor.
* MediaAddonServer::_DestroyInstantiatedFlavors(): give time to each
flavor to clean up.
2013-10-19 19:51:48 +02:00
Adrien Destugues
79ce2c2d1b finddir: reintroduce the B_COMMON directories
* Not having them here breaks the "ABI" for scripts and YAB-based apps.
 * They will point to the system non-packaged directory, where you are
likely to have old non-packaged BeOS stuff living now.
 * This is limited to the constants that were already defined on BeOS.
None of the new ones was re-added.
2013-10-19 18:05:53 +02:00
François Revol
3940abc9b8 ARM: add a TODO for KDL disasm module
Possible source is NetBSD, thanks pulko for mentionning.
2013-10-19 15:55:18 +02:00
Niels Sascha Reedijk
b21a346919 Update translations from Pootle 2013-10-19 06:14:23 +02:00
Rene Gollent
1bcd34c4da libdebug: Improve handling of stripped binaries.
- When searching for the symbol table, first see if the normal SHT_SYMTAB
  section is present. If not, fall back to trying to use SHT_DYNSYM if
  present. This allows us to resolve non-static functions/symbols
  in stripped binaries for the purposes of crash reports/disassembly.
2013-10-18 19:07:02 -04:00
Stefano Ceccherini
e9487c70c5 Style fixes. Thanks Axel for noticing. 2013-10-18 21:18:44 +02:00
Jérôme Duval
7d827cb864 FreeBSD compat layer: try 10BaseT if setting autoselect failed.
* This fixes PCnet Fast III on VirtualBox with pcn driver (#10088).
2013-10-18 17:49:47 +02:00
Jérôme Duval
ae29523f9b pcnet: minor clean up 2013-10-18 16:44:59 +02:00
Jérôme Duval
6c30a6bc0c ifconfig: typo fixes 2013-10-18 16:43:47 +02:00
Stefano Ceccherini
c8cc2f3e5d FirstBootPrompt: sort keymaps 2013-10-18 15:50:37 +02:00
John Scipione
959a0ca10d WebPositive: Add semantic zoom in shortcut.
Fixes #7428

iif '+' is localed in shift + '=' in your keymap, add a shortcut for
Command + '=' to zoom in.
2013-10-18 03:10:01 -04:00
John Scipione
57f830cef7 Tracker: Add semantic zoom in shortcut.
Fixes #6692

iif '+' is localed in shift + '=' in your keymap, add a shortcut for
Command + '=' to zoom in.
2013-10-18 03:10:01 -04:00
John Scipione
1d04310459 Keymap: Add a method to get modified characters for a key
This method fills out the passed-in BList of modified utf-8 characters for
a given utf-8 character and set of modifiers.

For example if you pass in "=" and B_SHIFT_KEY the list will get filled
out with each character in the shift map that has "=" in the normal map.

Each supported keymap modifier combination is available.

The reason this is useful will soon become apparent.

A BList is used because the character might be mapped multiple times,
for example if you have a Mac keyboard you've got two "=" keys, one in
0x1d and one in 0x6a.

The caller is responsible for creating the BList and destroying it as well as
freeing the resulting character strings.
2013-10-18 03:10:00 -04:00
John Scipione
000e7d4088 Tracker: Add zoom shortcuts to menuless windows
(for instance the desktop)
2013-10-18 03:10:00 -04:00
Rene Gollent
2809b77fc6 HaikuDepot: Fix #10108.
- Set default installation location to system for now, pending support
  for choosing the destination.
2013-10-17 17:12:19 -04:00
Adrien Destugues
25b034e99c HttpRequest: docs and memory management fixes
* Now takes ownership of headers, form data and input data
 * Split Set* and Adopt* methods to help with proper use of this (Set
does a copy)
 * Write documentation.
2013-10-17 14:24:20 +02:00