Commit Graph

47104 Commits

Author SHA1 Message Date
Ingo Weinhold
32086850f7 Add HPKG to Expander's supported types 2013-07-04 12:51:26 +02:00
Ingo Weinhold
3c3dd841a7 RepositoryWriterImpl::_AddPackage(): more info in error messages 2013-07-04 12:36:55 +02:00
Ingo Weinhold
fd28164da0 Also allow source packages in a repository for any architecture 2013-07-04 12:13:21 +02:00
Ingo Weinhold
2f5551ec2a libroot_build: make path normalization more robust
In case we don't have read permission for an ancestor directory, we try
to guess the path from the CWD.
2013-07-04 10:16:15 +02:00
Rene Gollent
d376554674 BBox: propagate alignment from child for the...
...FULL_{VERTICAL,HORIZONTAL} case.
2013-07-03 23:41:44 -04:00
Ingo Weinhold
2ebcd86dfe Add configure option --host-only
When specified, the build will be configured for building build host
tools only.
2013-07-03 23:19:00 +02:00
Ingo Weinhold
87e22aa865 Make package_repo buildable for the build host 2013-07-03 23:14:31 +02:00
Ingo Weinhold
a85e46496d package_repo: fix printf() format strings 2013-07-03 23:13:09 +02:00
Jérôme Duval
d3b108c53d virtio_scsi: added to the image.
* device_manager: scans busses/scsi for generic drivers.
2013-07-02 22:48:25 +02:00
Jérôme Duval
e19769d296 virtio_block: replaced __packed with _PACKED 2013-07-02 22:45:08 +02:00
Jérôme Duval
82fda49e52 Virtio: added a driver with basic support for SCSI devices.
* Here is the Qemu command line option for Virtio SCSI devices:
-drive if=none,id=hd,file=haiku.image -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd
* virtio_scsi.h is copied unchanged from FreeBSD, except for the _PACKED directive.
2013-07-02 22:44:51 +02:00
Jérôme Duval
46bfab031f virtio: free fDescriptors on VirtioQueue destruction. 2013-07-02 22:30:18 +02:00
Jérôme Duval
f0c63f83d2 scsi: fixed 80 characters limit as noticed by John. 2013-07-02 22:15:49 +02:00
Jérôme Duval
3c47ce8421 DMAResource: mutex_lock() before calling mutex_destroy(). 2013-07-02 19:00:43 +02:00
Jérôme Duval
f87871e3f9 scsi_disk: Deletes info->dma_resource in uninit_driver()
... because it is owned by the driver, not the device.

* Fixed 64bit build with TRACE_SCSI_DISK
2013-07-02 18:51:08 +02:00
Jérôme Duval
09bac83c5d scsi: uses B_PRI* macros 2013-07-02 18:44:42 +02:00
Alexander von Gluck IV
db5af29c82 RadeonHD: Prefer edid over LVDS_Info
* Some oem sbios implementations are buggy
  and don't overwrite the LVDS panel info over
  LVDS_Info in vbios as they should.
* Bit-bang EDID info from LVDS connector before
  falling back to the LVDS_Info table.
* Partially fixes #8457
2013-07-01 22:28:35 -05:00
Ingo Weinhold
2eb2b522bf Enforce team and thread limits
Also fixes incorrect team accounting in case of error when creating
a team. The previously incremented sUsedTeams wasn't decremented again.
2013-07-02 01:57:30 +02:00
Ingo Weinhold
cbcde3ba80 kernel team.cpp: fix unbalanced io_context ref management
... in case of team creation error. Once assigned to Team::io_context
the Team object takes responsibility of the I/O context object and
releases the reference on destruction. load_image_internal() and
fork_team() were thus releasing one reference too many.

Fixes #9851.
2013-07-02 01:57:30 +02:00
Rene Gollent
a97ff1bb60 Adjust apps to conform to previous layout changes.
The Deskbar and Time preferences were both relying on BCheckBox's
previous unlimited max width to get their containing BBoxes to be the
right size. Adjust the box constraints to make this happen at the level
of the box instead.
2013-07-01 19:08:57 -04:00
Rene Gollent
46d6e9d9ed Interface Kit: Adjust max size and default alignment...
...on controls where it makes sense:
- BRadioButton and BCheckBox now return their preferred size as their
maximum.
- BRadioButton, BCheckBox and BTextControl now use left alignment by
default, as this is the most common use case for them.
2013-07-01 11:30:49 -04:00
Rene Gollent
621ae6bd72 Revert 7910d8b for now.
Quite a few layouts seem to depend on the previous behavior, and there
isn't really an elegant way to resolve that for now, unless I miss
something in the lauout APIs. However, this does  need to be looked at
at some point, for some other controls as well, since it effectively
makes it impossible to properly use such controls in horizontal groups
and get an expected result.
2013-07-01 08:46:30 -04:00
Ingo Weinhold
c09ec54a59 Fix MIME type creation error
DatabaseLocation::OpenOrCreateType(): BNode::WriteAttr() returns the
number of bytes written, not just an error code., so we erroneously
reported an error on success.

Fixes the first part of #9845.
2013-07-01 14:17:51 +02:00
Ingo Weinhold
4f82f6fa72 Add Expander rule for Haiku package 2013-07-01 13:55:16 +02:00
Ingo Weinhold
8d5ae262dc Add MIME type for Haiku packages
Doesn't have an icon yet (hint, hint! :-)).
2013-07-01 13:54:56 +02:00
Ingo Weinhold
178d2f9fb9 Expander: create settings directory, if necessary
Fixes #9846.
2013-07-01 13:26:29 +02:00
Rene Gollent
596fe0b6f5 Fix redrawing issue.
If we had a source code change that resulted in a new file that was shorter than
the entire view, the section below the last line wouldn't get repainted properly.
2013-06-30 19:53:36 -04:00
Rene Gollent
a7376ac175 Fix remaining flickering for #9841.
- Revert hrev45802. However, implement the same essential logic in
  the TeamWindow itself, and have it guard the StackTraceView,
  VariablesView, and step control buttons. This fixes flickering
  in between short steps since it prevents the intermediate clear
  from happening unnecessarily.
- Implement appropriate guards for the interim wait state.
2013-06-30 19:53:34 -04:00
Rene Gollent
c2d6b9fa8e Reduce flickering in VariablesView.
Since the individual _AddNode() invocations notify their node additions,
NotifyTableModelReset() isn't really appropriate here after all, since
the net effect will be seeing all the nodes getting added, then removed
again, then re-added. Also fixes the fact that the variables wouldn't get
cleared when picking Run, until we stopped again.
2013-06-30 17:16:57 -04:00
Rene Gollent
4841128535 MarkerView: rework drawing to reduce flicker.
Addresses another part of #9841.
2013-06-30 17:16:56 -04:00
John Scipione
bee420ffb6 BStringView: Add scripting support. Fixes #9823
Configure BStringView to respond to messages to get and set Text and Alignment
properties. Fill out ResolveSpecifier() and GetSupportedSuites accordingly.

BeOS R5 did not provide any additional scripting support for BStringView so
this goes above and beyond what BeOS R5 did, but, doesn't break backwards
compatability.
2013-06-30 16:17:56 -04:00
Ingo Weinhold
5a7d7bc5dd Remove *Kit pseudo targets from root Jamfile 2013-06-30 19:01:37 +02:00
Ingo Weinhold
ff2e520912 Remove the old "CVS" package rules
... and all their invocations.
2013-06-30 18:59:11 +02:00
Rene Gollent
1103c53a39 Fix another BTabView problem.
BTabView::RemoveTab() directly manipulated the selected index, which
would cause problems in conjunction with the recently introduced short
circuit, most notably observable in Terminal.
2013-06-30 10:32:19 -04:00
Ingo Weinhold
207389a060 BResources::SetTo(): try opening read-only on error
Fixes #9843.
2013-06-30 14:06:29 +02:00
Ingo Weinhold
4c851c295d Clock: fix crash when resources could not be loaded 2013-06-30 13:51:49 +02:00
Ingo Weinhold
2a24174d9b Clock: TOffscreenView: small cleanup 2013-06-30 13:46:56 +02:00
Ingo Weinhold
301f4b463a Expander: also read rules from data directories
* ExpanderSettings: Use a settings directory "expander" and rename
  settings file to "settings".
* ExpanderRules: Read expander rules from "rules" files in the settings
  directory, then from files in expander/rules subdirectories of the
  installation location data directories, and finally add the built-in
  rules. This allows packages to provide expander rules (as already
  done by the p7zip package).
* OptionalPackages: Remove AddExpanderRuleToHaikuImage invocations.
* ImageRules: Remove Expander rule file related rules.
2013-06-30 13:29:48 +02:00
Ingo Weinhold
2cf916cbe2 ExpanderRules: Coding style update
Also makes the ExpanderRule getters const. No other functional change.
2013-06-30 13:15:35 +02:00
Ingo Weinhold
94307089f9 Update packages ffmpeg, openssh, p7zip 2013-06-30 11:49:40 +02:00
Rene Gollent
eaedb2f8a4 Fix regression introduced in 16e486e.
Explicitly select the first tab if the caller hasn't done so by the time
we're attached to the window.
2013-06-29 14:39:20 -04:00
Rene Gollent
cb630dde78 Cleanups. 2013-06-29 14:39:19 -04:00
Alexander von Gluck IV
f901b5b7fb RadeonHD: Fix endian bugs in atombios header
* Style is not correct, keep in mind
  that this header is 1:1 upstream code
* Linux kernel commit:
  f4a2596cecfcfce1e0ac1df5a1603f7bf392c122
* AMD does not license this stuff GPL
2013-06-29 13:36:26 -05:00
Alexander von Gluck IV
4ce958fcd4 RadeonHD: Cleanup, new cards
* Fix some incorrect chip codenames
* Introduce a dual gpu flag
* Add some new chipsets and document
  the next generation of chips
2013-06-29 13:18:52 -05:00
Alexander von Gluck IV
669d40c826 Route: Style fixes; No functional change 2013-06-29 13:18:52 -05:00
Rene Gollent
16e486eb4d BTabView: minor optimization.
Short circuit if asked to select the same index that's currently visible, to
avoid unnecessary invalidation/flicker.

Should fix last part of #9841.
2013-06-29 11:55:32 -04:00
Rene Gollent
fcf72bc4b4 Reduce flicker in StackTrace display when single stepping.
When asked to clear the current stack trace, delay actually doing so
by .25 seconds. If the stack trace is set to a new one in the meantime,
the operation is aborted so we don't reset the trace twice.

Thanks Ingo for the suggestion.
2013-06-29 11:47:46 -04:00
Rene Gollent
97a83952a1 Reduce drawing flicker in SourceView.
Instead of relying on the app_server to handle the background color, do so
ourselves. This allows somewhat more granular control, and helps reduce
flicker on drawing when single stepping.
2013-06-29 11:45:57 -04:00
Ingo Weinhold
26ea70667a Deskbar: use a virtual directory for the user-configurable menu
* Deskbar now uses ~/config/settings/deskbar/menu_entries for its menu,
  falling back to /system/data/deskbar/menu_entries, when the former
  doesn't exist. The latter always exists and is a virtual directory
  merging the deskbar/menu subdirectories of ~/config/settings/ and
  <any installation location>/data/. So, if a package provides a
  deskbar menu symlink, it is added automatically when the package is
  activated. The user can add own menu items by putting stuff into
  ~/config/settings/deskbar/menu/, only use their own organization by
  symlinking it to menu_entries, or do fun stuff by making menu_entries
  a customized virtual directory.
* HaikuImage: No longer create any deskbar menu symlinks in the user's
  settings directory. Instead add them to the Haiku package.
* OptionalPackages: At least for the optional packages that do have
  hpkgs, no longer create deskbar menu symlinks in the user's settings
  directory.
* Move all Deskbar settings files to ~/config/settings/deskbar/ and
  drop the "Deskbar_" prefix.
2013-06-29 14:58:52 +02:00
Ingo Weinhold
dbd97804ea SetType rule: add optional type parameter
If not specified the executable MIME type is used as before.
2013-06-29 14:58:52 +02:00