Commit Graph

43502 Commits

Author SHA1 Message Date
John Scipione
37add6e474 ProcessController: Check if pointers are NULL 2014-06-30 17:23:40 -04:00
John Scipione
98ec4e9467 ProcessController: style fixes to TeamBarMenuItem 2014-06-30 17:23:38 -04:00
Ingo Weinhold
b3263ad3e1 Switch package kit to BZlibCompressionAlgorithm
... and remove the Zlib{Compressor,Decompressor} API.
2014-06-30 21:55:41 +02:00
Ingo Weinhold
377ecc1e55 Test program for the B[Zlib]CompressionAlgorithm functionality 2014-06-30 21:55:41 +02:00
Ingo Weinhold
dcdc33b0af Add B[Zlib]CompressionAlgorithm
* BCompressionAlgorithm is a base class for classes that provide
  compression/decompression functionality. There are methods for
  compressing/decompressing a single buffer and factory methods for
  a compressing/decompressing input/output BDataIO.
* BZlibCompressionAlgorithm is a BCompressionAlgorithm implementation
  using zlib.
2014-06-30 21:55:41 +02:00
Ingo Weinhold
6a89a36aa0 Move package kit Zlib* classes to support kit
Also move to B* namespace and no longer expose the zlib dependency in
the headers.
2014-06-30 21:55:41 +02:00
Ingo Weinhold
b773d89eba BDataIO: Add Flush() 2014-06-30 21:55:40 +02:00
Ingo Weinhold
60ccc119b0 packagefs: CachedDataReader: Don't implement ReadData()
It's already done the same way in the base class.
2014-06-30 21:51:17 +02:00
Ingo Weinhold
0dab9e5cb4 package kit: ReaderImplBase: Remove superfluous scratch buffer 2014-06-30 21:51:16 +02:00
Ingo Weinhold
f1a12bcfc0 ReaderImplBase::ReadSection(): Small simplification 2014-06-30 21:51:16 +02:00
John Scipione
ab97fc0564 Replace FindFirst() == 0 with StartsWith()
Thanks PulkoMandy.
2014-06-30 14:45:02 -04:00
John Scipione
c425d6cb85 listimage: fix small memory leak
Free header when done with it.
2014-06-30 12:08:40 -04:00
John Scipione
a846b0ee4e listimage: remove unused vars.
... left over from previous iterations, not sure why I didn't
get unused vars warnings.

Sorry for the noise.
2014-06-30 00:41:43 -04:00
John Scipione
69ac139b33 listimage: A bunch of small fixes.
* Use arch-independent format specifiers.
* Print pointers at a fixed length padded with 0s,
  length is eitther 8 or 16 depending on pointer width.
* Uppercase titles.
* Add an extra space between Data and Seq# columns to
  more clearly show that they represent separate titles.
* Move the Name column last because it is variable length.
  This way, all columns line up vertically and the name can
  overflow past the end, before a long path would push all
  the other columns to the right.
* Make the Name column title is left-aligned, dashes go to
  80 cols.
* Use C89 comments and C89 variable declarations.

Screenshot:
http://38.media.tumblr.com/4aea59cf15f8a7c186fc97d62916f38b/tumblr_n7yrw7nwma1r0f0hfo1_1280.png
2014-06-30 00:24:58 -04:00
John Scipione
26de917c7a listimage: style fixes
Also use puts() in place of printf() in a couple places
where no string interpolation takes place.

Replace the variable name "status" with "result", I just like
it better that way for easier grep-ability.
2014-06-30 00:22:28 -04:00
John Scipione
8127947b30 App Server: Refactor Accelerant add-on loading
... to use BPathFinder instead of iterating through each of the
(current) add-on directories.

Update copyright header, add myself to authors.

add an ATRACE() of the path once it is found.
2014-06-29 17:31:08 -04:00
John Scipione
a4a7b1f48b App Server: Style fixes to AccelerantHWInterface 2014-06-29 17:31:07 -04:00
John Scipione
784d5bea5c Tracker: small refactor to FindPaths.
No functional change intended.

* Remove trailing / from Tracker, thanks Axel.
* put addOnPaths.CountStrings() in a variable.
2014-06-29 17:31:05 -04:00
John Scipione
03a7aaf926 shortcut_catcher: Add Jessica Hamilton to authors
... with permission to recognize her contributions here.
2014-06-29 17:31:04 -04:00
John Scipione
9c1ca606f0 shortcut_catcher: Small refactor to FindPaths()
Should be functionally identical.

* Removed / after Tracker, thanks Axel.
* BString::FindFirst() returns an index not a status_t so check that
  it finds the path at the start of the string (index 0).
* Put paths.CountStrings() in a count variable.

I wanted to clean this code up because I use it as a reference.
2014-06-29 16:18:08 -04:00
Humdinger
0474722732 Added application/xhtml+xml to StyledEdits supported types. 2014-06-29 19:30:22 +02:00
Rene Gollent
473a74f72e Debugger: Add support for copying variable values.
- Implements a simple copy option in the variables context menu that
  allows one to copy the displayed value to the clipboard.
2014-06-28 19:47:27 -04:00
Rene Gollent
2f605e9fd7 TeamWindow: Fix accidental double message sending.
- When we explicitly handle sending B_COPY/B_SELECT_ALL, don't
  then pass control back to BWindow::DispatchMessage(), as that will
  wind up sending the message to the target view twice.
2014-06-28 19:44:59 -04:00
John Scipione
f95ad070fb MidiPlayer: Rework layout
#9882 comment:8 suggested applying a similar fix
to MidiPlayer as the one to Backgrounds, which makes
the menu fields variable width and isn't affected by the
check box.

In addition this replaces BGroupLayoutBuilder and
BGridLayoutBuilder with BLayoutBuilder templates and
replaces hardcoded spacing units with B_USE_ spacing
constants.

I also put the Volume slider on its own line and tightened
up the spacing around the scope view.

picture:
http://31.media.tumblr.com/74d93b806033d9adee83eeb2adead48d/tumblr_n7v06onPdl1r0f0hfo1_250.png
2014-06-27 23:27:01 -04:00
John Scipione
d25aa3072e MidiPlayer: update readme.html 2014-06-27 22:57:06 -04:00
John Scipione
8edf74fa65 MidiPlayer: Update version to 1.0.1 final
Change the BAlert about box into a BAboutWindow.
Add Authors based on commit logs.

Unfortunately the description contained:
"Haiku MIDI Player 1.0.0 beta\n\n" which means that it
is going to get flagged for re-translation, sorry! This was
bound to happen when the version number changed,
on the bright side it shouldn't happen again in the future
since the Name and version number are separate.
2014-06-27 22:57:05 -04:00
John Scipione
ef2769426f MidiPlayer: Update copyright headers
Add Haiku, Inc. for all changes 2008-2014 based on commit logs.
If people want to assign their own copyright for work they did they
probably should add there name to the copyright list.
2014-06-27 22:57:04 -04:00
John Scipione
42bcaa84c0 MidiPlayer: style overhaul 2014-06-27 22:57:02 -04:00
John Scipione
e23f93739b FileTypes: Use list view color constants
...instead of hardcoding black.

Only you can prevent hard-coded colors.

Make sure to set both high color and low color so we don't get
anti-aliasing glitches.

Also, use be_control_look->DefaultLabelSpacing() instead of 5.0f.

Only you can prevent hard-coded label spacings.

Also return early if text is NULL (not set).

Fixes a small part of #10840
2014-06-27 19:07:29 -04:00
John Scipione
c35a9fd0a7 FileTypes: make middle bar darker
... matching the rest of the list view borders.

* Don't draw the middle bar in DrawItem(), that already happens in
  owner->Draw(), no reason to draw it twice.
* Update copyright header.
2014-06-27 19:05:51 -04:00
John Scipione
ada54af0c9 FileTypes: Style fixes 2014-06-27 18:46:33 -04:00
Arvind S Raj
6f742d85f9 Corrected check to ensure that command line options are indeed passed.
* Currently, no command line options are being passed via u-boot
  to haiku. However, the comparison doesn't ensure that cmdline
  is not an empty string - it merely ensures cmdline is not null.

Signed-off-by: Ithamar R. Adema <ithamar@upgrade-android.com>
2014-06-27 12:20:22 -07:00
Arvind S Raj
cf0ba4901d Move stack to SDRAM as specified in memory map.
* After initializing the page table and enabling MMU,
  the pre-MMU stack becomes invalid leading to a fault.
  This was fixed by moving the stack to SDRAM as specified
  in LOADER_MEMORYMAP before ARM entry point start_netbsd.

Signed-off-by: Ithamar R. Adema <ithamar@upgrade-android.com>
2014-06-27 12:20:16 -07:00
Rene Gollent
3eadb2cc1d Debugger: Improvements to hrev47421.
- Isolate the filesystem query/result list building into a separate
  worker thread in order to prevent blocking the window thread in
  case the query winds up being a bit more time consuming. This
  doesn't yet handle intelligent prefetching (and associated can of
  synchronization worms), but that will come once time permits.
- Also fixes a missing break statement introduced in the aforementioned
  commit, though that one shouldn't have caused any actual harm.
2014-06-26 22:13:49 -04:00
John Scipione
b43baaba36 BRoster: Remove brief desc comments
As per discussion, you'll just have to look in the Haiku Book for this.
Thanks Axel
2014-06-26 20:04:39 -04:00
John Scipione
e4652fbaae BRoster: small doc fix 2014-06-26 20:02:26 -04:00
John Scipione
1909b63bab BRoster: whitespace 2014-06-26 20:01:30 -04:00
Adrien Destugues
29db2f7f69 Fix off-by-one error
This would cause the last char before the hostname to sometimes stay
bold and not be properly reset to a regular font.

Fixes #10982.
2014-06-26 14:34:07 +02:00
John Scipione
78d6fb3c8e open: get kTrackerSignature variable from tracker_private.h
Update copyright.
2014-06-25 19:34:23 -04:00
John Scipione
ade169709b open: style fixes 2014-06-25 19:33:18 -04:00
John Scipione
807a7aa09a Roster: print when sending B_READY_TO_RUN 2014-06-25 19:32:27 -04:00
John Scipione
732c579702 Roster: style fixes.
* Check if == NULL or == 0 explicitily
* Use NULL instead of 0 as default value for pointers in header.
* other little stuff, new lines, comments
2014-06-25 19:31:24 -04:00
John Scipione
e0016ffde9 Style fixes to BRoster, move docs to doxygen.
Keep the brief description as a regular comment above each public method.

Leave the docs of private methods.

Some variable renaming mostly because of abbreviations.

Add documentation for all the public methods and app_info members and defines
that didn't have docs in the cpp file.
2014-06-25 15:35:09 -04:00
Adrien Destugues
621c9d1243 Update bookmark bar item BMessage on file rename.
The ref stored in the message must be replaced to point to the new file
name. Fixes #10962.
2014-06-25 11:13:02 +02:00
Adrien Destugues
158ae74373 Escape reserved characters when converting paths to urls
* Introduce and use BUrl::BUrl(const BPath&)
* The path is url-encoded, and the protocol is set to "file"

Fixes #10964.
2014-06-25 10:45:03 +02:00
John Scipione
29e8fa5922 Style fixes to Support Kit files 2014-06-24 19:30:54 -04:00
Rene Gollent
2661ce4605 Debugger: Implement #10970.
- If a source file cannot be found, and the user clicks the item to locate it,
  Debugger now attempts to query all volumes for the corresponding filename.
  If any are found, they are presented in a menu, along with an option to
  locate the file manually as before (since the file may potentially live on
  an unindexed volume). If no matches are found via query, we fall through to
  the file panel directly as before.
2014-06-24 17:39:04 -04:00
Ingo Weinhold
5ede33ed15 BDataIO: Hopefully fix native build 2014-06-23 23:18:00 +02:00
Ingo Weinhold
84297881bb Remove BPackageKit::[...]::AbstractDataWriter and friends
* FDDataWriter and ZlibDataWriter weren't used anymore.
* AbstractDataWriter was implemented only by PackageFileHeapWriter,
  which was only used by WriterImplBase.
* Add a PackageFileHeapWriter::AddDataThrows() which has semantics
  equivalent to the previously inherited WriteDataThrows().
2014-06-23 22:58:15 +02:00
Ingo Weinhold
32832cbe47 Remove BPackageKit::BDataOutput
Use BDataIO instead.
2014-06-23 22:58:15 +02:00
Ingo Weinhold
0d8b44e25b BDataIO: Add methods {Read,Write}Exactly() 2014-06-23 22:58:15 +02:00
Ingo Weinhold
dec78bb27c Add new error codes B_PARTIAL_{READ,WRITE} 2014-06-23 22:58:15 +02:00
Ingo Weinhold
98759fe6e6 BDataIO: Provide default implementations for Read()/Write()
This makes the interface somewhat more suitable for unidirectional use,
since one doesn't have to implement the other, not needed method.
2014-06-23 22:58:14 +02:00
Jessica Hamilton
6b87960fe6 WebPositive: rename DownloadCanceled to match semantics. 2014-06-23 20:01:31 +12:00
Jessica Hamilton
c0c10f1c83 WebPositive: refactor cancelling a download. Fixes #10960. 2014-06-23 19:18:47 +12:00
Philippe Saint-Pierre
5ef28aaa4f FileTypes: make button placement more consistent
Place Cancel button on left rather than on right in the add
extensions popup. Also add glue to make it more similar to the other
popup windows of the preflet.
2014-06-22 14:12:02 -04:00
John Scipione
f90ef128c8 Tracker: fix accidental logic reversal
...introduced in a66ee36. This should hopefully be the last issue.
2014-06-21 04:22:29 -04:00
John Scipione
a1e688610a Tracker: tiny style fix in NavMenu.cpp 2014-06-21 04:21:40 -04:00
John Scipione
b0fcbfb871 Tracker: style fix, use NULL instead of 0 for pointers 2014-06-21 04:04:22 -04:00
John Scipione
512c80ef1c Tracker: add back parens 2014-06-21 03:54:35 -04:00
John Scipione
64fda603ef Tracker: fix accidential logic reversal 2014-06-21 03:54:08 -04:00
John Scipione
d73129ff46 Tracker: style fixes to IconCache 2014-06-21 03:03:35 -04:00
John Scipione
7dbe212003 Tracker: Fix accidental logic reversal in a66ee36
should be: if (!container || suppressFolderHierarchy)

also rename container to isContainer
2014-06-21 03:02:52 -04:00
John Scipione
546ec3bcf9 Tracker: tiny style fix to FilePanelPriv.cpp 2014-06-21 02:51:01 -04:00
John Scipione
116b363cb8 Tracker: indent comments 2014-06-21 02:50:40 -04:00
John Scipione
eb2a97f6ff Deskbar: Remove duplicate includes 2014-06-21 02:50:20 -04:00
John Scipione
088a9620a0 Deskbar: A few style fixes to DeskbarMenu 2014-06-21 02:49:50 -04:00
John Scipione
91faf3201b Tracker: Fix DEBUG build (I hope) 2014-06-21 01:02:53 -04:00
John Scipione
92199e801c Tracker: style fixes to WidgetAttributeText 2014-06-20 21:30:12 -04:00
John Scipione
69e5768d45 Tracker: style fixes to VolumeWindow 2014-06-20 21:30:10 -04:00
John Scipione
e07476a120 Tracker: style fixes to VirtualDirectoryWindow 2014-06-20 21:30:09 -04:00
John Scipione
5d3c0dd100 Tracker: style fixes to VirtualDirectoryPoseView 2014-06-20 21:30:07 -04:00
John Scipione
d8d0539a08 Tracker: style fixes to VirtualDirectoryManager 2014-06-20 21:30:05 -04:00
John Scipione
09d0d8f9dc Tracker: style fixes to VirtualDirectoryEntryList 2014-06-20 21:30:03 -04:00
John Scipione
27dc6eb7e1 Tracker: style fixes to ViewState 2014-06-20 21:30:02 -04:00
John Scipione
a4c3bbd3f5 Tracker: style fixes to Utilities 2014-06-20 21:30:00 -04:00
John Scipione
e29e8b3b27 Tracker: style fixes to TrashWatcher 2014-06-20 21:29:58 -04:00
John Scipione
22b073d41f Tracker: style fixes to TrackerString 2014-06-20 21:29:56 -04:00
John Scipione
e55f3b531d Tracker: style fixes to TrackerSettingsWindow 2014-06-20 21:29:55 -04:00
John Scipione
4c0810574e Tracker: style fixes to TrackerSettings 2014-06-20 21:29:53 -04:00
John Scipione
a92b628772 Tracker: style fixes to TrackerScripting.cpp 2014-06-20 21:29:51 -04:00
John Scipione
eaece3eb95 Tracker: style fixes to TrackerInitialState.cpp 2014-06-20 21:29:50 -04:00
John Scipione
d8edc67336 Tracker: style fixes to Tracker class 2014-06-20 21:29:48 -04:00
John Scipione
6d4e243a84 Tracker: style fixes to TitleView 2014-06-20 21:29:47 -04:00
John Scipione
477bd87be1 Tracker: style fixes to TextWidget 2014-06-20 21:29:45 -04:00
John Scipione
2be7dbb562 Tracker: style fixes to Tests.cpp 2014-06-20 21:29:43 -04:00
John Scipione
a2d1822e99 Tracker: style fixes to TemplatesMenu 2014-06-20 21:29:42 -04:00
John Scipione
754d953d6d Tracker: style fixes to StatusWindow classes 2014-06-20 21:29:40 -04:00
John Scipione
ad12c9b56f Tracker: SlowMenu style fixes 2014-06-20 21:29:39 -04:00
John Scipione
4afa2a751d Tracker: SlowContextPopup style fixes 2014-06-20 21:29:37 -04:00
John Scipione
f435b67810 Tracker: style fixes to SettingsViews classes 2014-06-20 21:29:36 -04:00
John Scipione
b2ee107be9 Tracker: style fixes to SettingsHandler classes 2014-06-20 21:29:34 -04:00
John Scipione
262e7c9368 Tracker: style fixes to Settings class 2014-06-20 21:29:33 -04:00
John Scipione
775ad007b5 Tracker: style fixes to SelectionWindow 2014-06-20 21:29:31 -04:00
John Scipione
96d9dde048 Tracker: style fixes to RegExp (minor) 2014-06-20 21:29:30 -04:00
John Scipione
0c7c3ed429 Tracker: style fixes to RecentItems
Renamed fTterator to fIterator which I'm assuming was a typo.
2014-06-20 21:29:28 -04:00
John Scipione
961b4f97f7 Tracker: style fixes to QueryPoseView 2014-06-20 21:29:26 -04:00
John Scipione
388dbb6fe7 Tracker: style fixes to QueryContainerWindow 2014-06-20 21:29:25 -04:00
John Scipione
1147c0f980 Tracker: style fixes to PublicCommands.h
just changes header guard names for consistency.
2014-06-20 21:29:24 -04:00
John Scipione
850b01cee9 Tracker: style fixes to PoseViewScripting 2014-06-20 21:29:21 -04:00
John Scipione
091db3a99d Tracker: Check if selectedPose is NULL
... before using it.
2014-06-20 21:29:19 -04:00
John Scipione
14bf930b99 Tracker: Check if selectedBounds is NULL
... before using it.
2014-06-20 21:29:17 -04:00
John Scipione
38181640e9 Tracker: style fixes to PoseView class 2014-06-20 21:29:14 -04:00
John Scipione
fdb62486ef Tracker: style fixes to PoseList class 2014-06-20 21:02:16 -04:00
John Scipione
6b1b5709a6 Tracker: style fixes to Pose class 2014-06-20 21:02:15 -04:00
John Scipione
3dca186447 Tracker: style fixes to PendingNodeMonitorCache 2014-06-20 21:02:14 -04:00
John Scipione
8c968207bb Tracker: OverrideAlert style fixes 2014-06-20 21:02:12 -04:00
John Scipione
3d47df58de Tracker: Use floats in OpenWithWindow calculations 2014-06-20 21:02:11 -04:00
John Scipione
c513839558 Tracker: Style fixes to OpenWithWindow 2014-06-20 21:02:10 -04:00
John Scipione
01579713f8 Tracker: NodeWalker style fixes 2014-06-20 21:02:09 -04:00
John Scipione
26325b395c Tracker: NodePreloader style fixes 2014-06-20 21:02:08 -04:00
John Scipione
a66ee3684c Tracker: NavMenu style fixes 2014-06-20 21:02:06 -04:00
John Scipione
f97ab85b35 Tracker: make sure dynamic_cast succeeded
CID something or other I'll bet.
2014-06-20 21:02:05 -04:00
John Scipione
808af41c2a Tracker: style fixes to Navigator 2014-06-20 21:02:04 -04:00
John Scipione
dbe62cc77f Tracker: style fixes to MountMenu class 2014-06-20 21:02:03 -04:00
John Scipione
c8d910f76b Tracker: style fixes to Model class 2014-06-20 21:02:01 -04:00
John Scipione
40ef04f38e Tracker: MiniMenuField style fixes 2014-06-20 21:02:00 -04:00
John Scipione
90da025732 Tracker: tiny style fix to MimTypes.h 2014-06-20 21:01:59 -04:00
John Scipione
cc334f72b3 Tracker: MimeTypeList style fixes 2014-06-20 21:01:58 -04:00
John Scipione
603e1a2cf2 Tracker: LockingList.h style fixes (minor) 2014-06-20 21:01:56 -04:00
John Scipione
ff43bcbfd5 Tracker: style fixes to InfoWindow
Return B_BAD_VALUE if pointer is NULL in InfoWindow
2014-06-20 21:01:55 -04:00
John Scipione
ba50b2c229 Tracker: style fixes to IconMenuItem 2014-06-20 21:01:54 -04:00
John Scipione
f2ed47616f Tracker: style fixes to IconCache 2014-06-20 21:01:52 -04:00
John Scipione
a83fb6fed8 Tracker: style fixes to GroupedMenu
Add Open Tracker License to source as this came from OpenTracker.
2014-06-20 21:01:51 -04:00
John Scipione
aee40335a9 Tracker: style fixes to FSUtils 2014-06-20 21:01:50 -04:00
John Scipione
086eaa586b Tracker: style fixes to FSUndoRedo
Add Open Tracker License to source since this came from OpenTracker.
2014-06-20 21:01:49 -04:00
John Scipione
e2f6a01c33 Tracker: style fixes to FSClipboard 2014-06-20 21:01:47 -04:00
John Scipione
58203edfc7 Tracker: style fixes to FindPanel 2014-06-20 21:01:46 -04:00
John Scipione
9f7b8c72a2 Tracker: style fixes to FilePermissionsView 2014-06-20 21:01:45 -04:00
John Scipione
08575837af Tracker: style fixes to FilePanel 2014-06-20 21:01:44 -04:00
John Scipione
345d92c402 Tracker: style fixes to FavoritesMenu 2014-06-20 21:01:42 -04:00
John Scipione
e4d63b6d50 Tracker: style fixes to EntryIterator 2014-06-20 21:01:41 -04:00
John Scipione
a3c479b7e8 Tracker: style fixes to DirMenu (minor) 2014-06-20 21:01:40 -04:00
John Scipione
4242cbe2fc Tracker: style fixes to DialogPane 2014-06-20 21:01:38 -04:00
John Scipione
c8f406e6f4 Tracker: style fixes to DeskWindow.h
tabs -> spaces
2014-06-20 21:01:37 -04:00
John Scipione
238d9b2ef0 Tracker: DesktopPoseView style fixes 2014-06-20 21:01:36 -04:00
John Scipione
82d4b3dd85 Tracker: style fixes to Cursors.h 2014-06-20 21:01:34 -04:00
John Scipione
0fe013b69b Tracker: style fixes to CountView 2014-06-20 21:01:32 -04:00
John Scipione
63c1c8921e Tracker: style fixes to ContainerWindow 2014-06-20 21:01:30 -04:00
John Scipione
d964968957 Tracker: style fixes to Commands.h
barely touched it.
2014-06-20 20:10:32 -04:00
John Scipione
3a7eb1b436 Tracker: style fixes to Bitmaps 2014-06-20 20:10:31 -04:00
John Scipione
95c61b83a0 Tracker: style fixes to BackgroundImage 2014-06-20 20:10:30 -04:00
John Scipione
ce3ae98bd0 Tracker: style fixes to Background.h 2014-06-20 20:10:29 -04:00
John Scipione
6290bdf89c Tracker: style fixes to AutoMounterSettings 2014-06-20 20:10:28 -04:00
John Scipione
7ec2c512ff Tracker: style fixes to AttributeStream 2014-06-20 20:10:26 -04:00
John Scipione
9e168cf49d Tracker: style fixes to Attributes.h 2014-06-20 20:10:24 -04:00
Adrien Destugues
33d60fa21f BRegion: add ScaleBy(BSize) and user documentation. 2014-06-19 19:23:31 +02:00
Adrien Destugues
669ac9d6f5 BRegion: add ScaleBy method.
* Is there a reason to not have it?
2014-06-19 18:05:14 +02:00
Rene Gollent
3fc9fd5624 Debugger: Add initial support for automatically installing packages.
DwarfLoadingStateHandler now attempts to locate a matching package for the
missing debug information file. If one is found, the user is prompted to
install it. The actual installation process is currently handled by calling
pkgman, but this will be adjusted in future commits to either rely on
HaikuDepot in the graphical case, or to integrate the requisite functionality
directly so that proper download/installation progress can be shown.

In any case, this completes the low level functionality for ticket #10138,
leaving mainly presentation issues.
2014-06-18 22:26:14 -04:00
Rene Gollent
bbf320ecfe Debugger: UserInterface enhancements.
Add hook to UserInterface to query if Debugger is currently being run
interactively or not. Add corresponding implementations in
{CommandLine,Graphical}UserInterface.
2014-06-18 22:25:50 -04:00
Rene Gollent
778ef3f92b Debugger: Adjustments to Jamfile.
- Remove duplicate instance of libshared.
- Add linker flags to not export symbols from linked in static libraries.
  Resolves an issue on gcc4 where symbols from libedit and libsolv would clash,
  leading to crashes.
- Add package kit-related headers and libraries.
2014-06-18 22:25:49 -04:00
John Scipione
a30a4a41f9 Style fixes to Storage Kit classes.
No functional changes intended.

* Some variable renaming for clarity and consistency.
* Pointer style fixes.
* Added private method documentation back to cpp files for some methods.
2014-06-18 19:14:19 -04:00
Ingo Weinhold
d2d1af830b Revert "Move ZlibDecompressor to libshared"
This reverts commit 9af2105d36.

Conflicts:
	src/kits/package/Jamfile
2014-06-18 22:13:39 +02:00
Ingo Weinhold
5cd75b56a8 Revert "ZlibDecompressor: also accept gzip format"
This reverts commit 142d59ca90.
2014-06-18 22:13:39 +02:00
Ingo Weinhold
747b401e87 Revert "DynamicBuffer: implement BDataIO"
This reverts commit 36b1f55a18.
2014-06-18 22:13:39 +02:00
Ingo Weinhold
256080b112 Revert "HttpRequest: support gzip and deflate compression."
This reverts commit c3d0dd7a5e.

Conflicts:
	src/kits/network/libnetapi/HttpRequest.cpp
	src/kits/network/libnetapi/Jamfile
2014-06-18 22:13:39 +02:00
Ingo Weinhold
707f60f4e9 Revert "Fix build."
This reverts commit 00dfae0bce.
2014-06-18 22:13:39 +02:00
Ingo Weinhold
a05da9f4b2 Revert "...and also fix a mismatched prototype"
This reverts commit 6555120f3b.
2014-06-18 22:13:38 +02:00
Ingo Weinhold
4c235c7497 Revert "Fix more issues detected by gcc4 compiler:"
This reverts commit 19f3bae071.
2014-06-18 22:13:38 +02:00
Ingo Weinhold
d5660e67af Revert "build fix follow up on status_t/ssize_t changes."
This reverts commit 7202cfb455.
2014-06-18 22:13:38 +02:00
Ingo Weinhold
94a66563f5 Revert "shared kit: fixed headers dependency."
This reverts commit 675878fcfe.
2014-06-18 22:13:38 +02:00
Ingo Weinhold
3528fd2d66 Revert "Fix one more status_t/ssize_t mixup."
This reverts commit f6658d2c2c.
2014-06-18 22:13:37 +02:00
Ingo Weinhold
cc66d3a051 Revert "Style fixes, no functional changes"
This reverts commit 916382a10f.
2014-06-18 22:13:37 +02:00
Ingo Weinhold
a01adf34d6 Revert "boot packagefs: Fix zlib dependency declaration"
This reverts commit 0b565a6f51.
2014-06-18 22:13:37 +02:00
Ingo Weinhold
f39d7f1096 Revert "boot packagefs: Fix header path in zlib dependency"
This reverts commit aafc3386ef.
2014-06-18 22:13:37 +02:00
Ingo Weinhold
f648efd3d4 Revert "Fix zlib-dependencies of (boot & standard) packagefs."
This reverts commit 06ed405803.
2014-06-18 22:13:36 +02:00
Ingo Weinhold
f256bccc66 Revert "Fix zlib-dependency in libnetapi."
This reverts commit 6b6ff33d60.
2014-06-18 22:13:36 +02:00
Rene Gollent
37b6923b87 RemoteDesktop: Fix x86_64 build. 2014-06-17 18:40:56 -04:00
Ingo Weinhold
a852846fc2 HaikuDepot: Update list on installation location package changes
Very dumb implementation (just does a full update). I leave it to the
HaikuDepot hackers to improve it.
2014-06-17 20:32:26 +02:00
Ingo Weinhold
5c9672edeb Add watching support for installation location package changes
Can be requested/stopped via BPackageRoster::{Start,Stop}Watching().
The notification message has the what code B_PACKAGE_UPDATE and contains
fields "event", "location", and "change count".
2014-06-17 20:32:26 +02:00
Ingo Weinhold
3f91ba29d9 package_daemon: Root: Add IsSystemRoot() 2014-06-17 20:32:25 +02:00
Ingo Weinhold
b44215c079 BRoster::Private::SendTo(): Actually support NULL reply
Unlike documented passing a NULL reply would just fail instead of
sending the message without waiting for a reply.
2014-06-17 20:32:25 +02:00
Ingo Weinhold
820dbc01ce BTransactionIssue: String improvements 2014-06-17 20:32:25 +02:00
Adrien Destugues
e96676ab5a Try opening URLs with the preferred app
We already did this when the URL was entered in the address bar, now
also do it when it comes from a link in a webpage.

Makes mailto links work and fixes #6236.
2014-06-17 12:58:33 +02:00
Adrien Destugues
69631a6a05 More tweaks to the notification window looks
The color stripe for error and important notifications is now 3 pixel
wide only. We still need a better choice of colors here.
2014-06-17 08:25:24 +02:00
Rene Gollent
94aa0c624b Debugger: Fix #10764 (again).
- When terminating TeamWindow, if InspectorWindow is still active,
  ensure that it's also quit at that point. Otherwise, it was
  possible for the inspector window to receive the quit message from
  the main application's shutdown process after TeamDebugger had
  already been terminated, leading to a crash when the window tried to
  release its current memory block, since the block manager had
  already been destroyed by that point.
2014-06-16 23:34:04 -04:00
Rene Gollent
dee948553c Debugger: Rework report generation.
Rather than trying to buffer the entire report in memory and write
it in a single shot, write it incrementally as the data is gathered.

Fixes an issue reported by Diver with generating crash reports for
apps that had crashed due to an infinite recursion stack overflow.
2014-06-16 23:21:12 -04:00
Humdinger
6229115bac More small C++11 tweaks. 2014-06-16 19:34:56 +02:00
Humdinger
991dadd632 Make sure there's a space in front of B_UTF8_ELLIPSIS.
As PulkoMandy said in hrev47388: C++11 safe and reads better.
2014-06-16 17:55:34 +02:00
Adrien Destugues
2860fecc80 Truncate absurdly long bookmark names.
Fixes #9593.

The complete name could be stored inside the file or as an additional
attribute, but do we really need it? The bookmark menu will truncate it
even further, anyway.
2014-06-16 17:05:42 +02:00
Adrien Destugues
eb503978b7 Add space between string and ellipsis.
C++11 safe and reads better.
2014-06-16 14:24:10 +02:00
Adrien Destugues
362940cf89 BMP sniffing: check more bytes
* Check that the two high-order byte of the DIB header size are 0 (the
largest known size according to wikipedia is 124 bytes).
* This avoids identifying any text file that starts with "BM" as a BMP
file.

Fixes #10912.
2014-06-16 13:15:47 +02:00
Adrien Destugues
1ff6e7a80f More correct label for the save page menu item
Use "Save page as…" since the item will open a save panel.
2014-06-16 12:47:33 +02:00
Adrien Destugues
da802e25b7 Style fix. 2014-06-16 11:14:59 +02:00
Ingo Weinhold
eb718e31d2 Terminal: Handle SIGCHLD in a dedicated thread
Block SIGCHLD in all threads and spawn a dedicated thread that handles
the signal in a loop (via sigwait()). This avoids the issue that the
SIGCHLD could be handled in any of our threads and thus possibly
interrupt a syscall.

Fixes #10941.
2014-06-16 11:08:56 +02:00
Adrien Destugues
6563b11264 Add menu entry to save pages as MHTML.
Fixes #9570.
2014-06-16 10:12:50 +02:00
Adrien Destugues
9b738c321b don't notify when a finished download is removed.
* Actually stop the download when the target file is deleted
* Check the download state before sending a notification or changing the
progress bar color.

Fixes #10907.
2014-06-16 09:18:28 +02:00
Adrien Destugues
4f88977f9a Add a first test for BDateTime.
* We need to write more of those.
2014-06-16 08:49:36 +02:00
Adrien Destugues
dbd4f8c46b SetTime_t: Use the sign-fixed modulo we computed
* In C++03 and earlier, the sign of the modulo result is implementation
defined (this was fixed in C++11).
* Setting a negative time is not what we want here, so make sure we use
the proper value.
2014-06-16 08:46:56 +02:00
Rene Gollent
b36d838eb0 Debugger: Fix x86_gcc2 build. 2014-06-15 12:55:46 -04:00
Ingo Weinhold
f9f8a8f56e pkgman: Update some user messages 2014-06-15 17:21:02 +02:00
Ingo Weinhold
0b57c6338b BTransactionIssue::ToString(): Fix some strings 2014-06-15 17:21:02 +02:00
Ingo Weinhold
f2f19f110d BPackageManager: Support installing/updating local package files
* The Install() and Update() versions that take a const char* array
  now check whether a string looks like a path to a local package file.
  If so, they use that file instead of interpreting the string as a
  search string.
* Extend the repository hierarchy. There's now a LocalRepository base
  class from which InstalledRepository and the new MiscLocalRepository
  derive. The latter is instantiated once and collects all package files
  specified by path.
2014-06-15 17:21:01 +02:00
Ingo Weinhold
ea761a10d4 pkgman: Print issues from committing the transaction 2014-06-15 17:21:01 +02:00
Ingo Weinhold
eee422752c BPackageManager: Make BCommitTransactionResult available
* BFatalErrorException: Add commitTransactionResult property and
  respective constructor. In case committing the transaction failed,
  BPackageManager throws a BFatalErrorException with the result.
* BFatalErrorException::UserInteractionHandler: Pass
  BCommitTransactionResult to ProgressTransactionCommitted().
2014-06-15 17:21:01 +02:00
Ingo Weinhold
0de3219e33 package daemon: Rework error and issue propagation to client
* BDaemonClient: Move inner class BCommitTransactionResult to top level
  and make it public.
* BCommitTransactionResult:
  - Add a whole bunch of specific error code enum values. Such an error
    code is now the primary error, as opposed to before where we would
    mix status_t and enum value errors. There's a systemError property
    of type status_t which may provide additional information, though
    (depending on the primary error type).
  - Remove the errorMessage property. Due to mapping all errors to the
    specific error codes this is no longer necessary. Mixing such a
    message with another error description is also not very helpful when
    it comes to localization (still not supported, though).
  - Add several properties (paths, strings, error codes) that serve as
    arguments to the primary error and are used by FullErrorMessage().
  - Add issues property, a list of instances of new class
    BTransactionIssue. Those describe non-critical issues (e.g. failed
    update of a settings file) that occurred in the process of
    committing the transaction. Those issues should be presented to the
    user by the package management program.
* Exception: Adjust to transport the BCommitTransactionResult
  properties.
* CommitTransactionHandler, FsTransactions, Root, Volume: Adjust to
  BCommitTransactionResult/Exception changes.
* CommitTransactionHandler: Now requires a BCommitTransactionResult to
  which it adds the issues it encounters. The reply BMessage is no
  longer needed, though.
* Volume: Refactor common code from the three methods that use
  CommitTransactionHandler into new method _CommitTransaction.
2014-06-15 17:21:01 +02:00
Ingo Weinhold
6077cad882 BEntryOperationEngineBase::Entry: Add debug methods
Add GetPathOrName() and PathOrName() methods which try to get some kind
of usable path or at least a file name for the entry. Useful mainly for
debugging and error reporting cases.
2014-06-15 17:21:00 +02:00
Ingo Weinhold
9680cf0bce BEntryOperationEngineBase::Entry: Add node_ref+path c'tor 2014-06-15 17:21:00 +02:00
Rene Gollent
d44d8207a8 Debugger: Finish handling of missing debug information.
Add a listener interface for LoadImageDebugInfoJob that allows it to request
user assistance based on its current state. Adjust callers to pass in said
listener accordingly.

Implement the aforementioned listener interface in TeamDebugger, and use the
loading state handler roster to find the appropriate handler / handle the request.

This implements most of what's needed for #10138, the main piece still missing
is for the dwarf handler to detect whether the image in question comes from a package,
and if so, to offer to install the corresponding debug information package rather than
locating the file manually, assuming such a package exists.
2014-06-15 11:03:24 -04:00
Rene Gollent
331511009c Debugger: Start adding the groundwork for load state handlers.
Adds abstract class ImageDebugLoadingStateHandler which simply contains two
hooks, which allow one to a) ask it if it supports a handling a particular
type of loading state, and b) if so, ask it to attempt to handle that case,
given the passed in user interface object.

Also adds implementing subclass for DwarfImageDebugInfo, currently
intended primarily to handle the case of missing external debug information.
At present, this just supports prompting the user to find/install the file,
but eventually this will be extended to also support automatically installing
the corresponding debug information package, if applicable.

Finally, adds ImageDebugLoadingStateHandlerRoster, which acts as a front end
for matching up a given loading state with the appropriate handler.
2014-06-15 11:03:23 -04:00
Rene Gollent
d9e97187f5 Debugger: Add file prompt hook to UserInterface.
In some circumstances, it may be necessary to ask the user to locate a file
from the lower layers. Adds the corresponding hook to UserInterface, and a
stub implementation for CommandLineUserInterface.

Adds full implementation for GraphicalUserInterface.
2014-06-15 11:03:22 -04:00
Rene Gollent
7cab832956 Debugger: Add support for suspending LoadImageDebugInfoJob.
DwarfFile:
- Loading is now split into two steps, the first of which simply attempts to
verify the presence of debug information. If the latter is referenced
externally, but cannot be found on disk, the corresponding file reference is
returned.

TeamDebugInfo:
- Add state parameter to LoadImageDebugInfo(). Use it to preserve where we
are in the specific info loading loop if necessary.

SpecificTeamDebugInfo:
- Add parameter to CreateImageDebugInfo() to allow passing in a state object
and adjust implementing subclasses accordingly.

DwarfTeamDebugInfo:
- Preserve and/or pass down DwarfFile's loading state as needed.

DwarfManager:
- When attempting to load a DwarfFile, detect the case where external debug
  information is referenced, but could not be located. If so, preserve the
  relevant details in the loading state, so the user can be notified and
  asked to find it accordingly.

LoadImageDebugInfoJob:
- Keep a state object for the progress of the current loading job. If a
  particular image fails due to needing user input, suspend ourselves
  until such input has been provided.
2014-06-15 10:59:14 -04:00
Rene Gollent
a262768084 Debugger: Add classes for representing image loading state.
Adds a hierarchy of classes for preserving the loading state information for
a LoadImageDebugInfoJob. These include:
	- ImageDebugInfoLoadingState:
		Top level class that simply stores a reference for  the specific info
		state that we're currently attempting to load.

	- SpecificImageDebugInfoLoadingState:
		Abstract base class representing state information specific to a
		particular kind of debug information.

	- DwarfImageDebugInfoLoadingState:
		Implementation of the above for the case of DWARF.

	- DwarfFileLoadingState:
		Encapsulates the in-progress loading state of a DWARF file for the case
		where a file's debug information is referenced externally, but cannot
		be found.
2014-06-15 10:59:13 -04:00
Rene Gollent
4605febacf Debugger: Add/handle new suspend state for jobs.
- In addition to waiting for one or more dependent jobs to complete,
a job can now potentially wait for user input to proceed further. Add
a corresponding job_wait_status and respective handling in Worker.
2014-06-15 10:59:13 -04:00
PulkoMandy
004f41565e Apply fix suggested by Ingo
* Fix mixup of HAIKU_IMAGE vs HAIKU_IMAGE_NAME
* Use $(1) and $(2) instead of $(<) and $(>)
* Remove useless count parameter to dd
2014-06-15 14:59:01 +02:00
John Scipione
0546bdd5e5 Tracker: code simplication to hrev47374
We don't need to create a BNode from a BDirectory because BDirectory derives
from BNode! So use the BDirectory we already have as a BNode and get the
node_ref from it so we can pass it into WatchNode().

Sorry for the noise.
2014-06-14 21:19:42 -04:00
Cedric Degea
076cb5a752 BOptionPopUp: check for non-NULL Message(). Fixes #10733
Signed-off-by: John Scipione <jscipione@gmail.com>
2014-06-14 20:50:10 -04:00
John Scipione
1f17f750db Tracker: Use BPathFinder to find add-ons 2014-06-14 20:48:15 -04:00
John Scipione
6cf062b93d Tracker: Style fixes to DeskWindow 2014-06-14 16:21:05 -04:00
Jessica Hamilton
00922c9989 Tracker: fix accidental logic inversion. Fixes #10940. 2014-06-15 05:30:21 +12:00
John Scipione
1f424632be Style fixes to IK, focus on docs 2014-06-13 17:27:01 -04:00
PulkoMandy
4a2260f21a Let the bootloader know about ARMv7.
When an ARMv7 CPU is detected, immediately turn on the FPU. This allows
us to use vsnprintf in the TRACE call in that function, as our libc is
compiled with floating point support and will trigger a fault if the FPU
is not available.

This lets the boot go further, and crash in mmu_init. Next steps:
* Find why mmu_init is crashing
* Setup some fault handlers, otherwise we call uboot ones, and they are
not very helpful. They will also probably not work once the mmu is
enabledvery helpful. They will also probably not work once the mmu is
enabledvery helpful. They will also probably not work once the mmu is
enabled...
2014-06-13 22:15:54 +02:00
PulkoMandy
afe56d3ab3 Load uImage higher so it doesn't overwrite itself
Loading of haiku_loader from an uImage is a 2-step process:

* First, the uImage is loaded (in our case from SD card using fatload)
to RAM at a temporary address.
* Then (using bootm), it is unpacked. The uImage is a container format
and can hold several files, with a load and execution address. The files
are copied from the uImage to their final location, and it's better if
that doesn't overlap with the uImage content

When this loading is done, bootm jumps to the entry point found in the
uImage.

We now actually execute our code from haiku_loader. This crashes with
the following call stack:
* vsnprintf
* dprintf
* boot_arch_cpu_init
* cpu_init

It seems vsnprintf is trying to use VFP instructions (probably from the
libgcc) but that triggers some kind of fault, and the handler (setup by
uboot?) ends up crashing the system by jumping to unmapped memory at 0.
2014-06-13 20:26:51 +02:00
John Scipione
2a6a3109e5 shortcut_catcher: tiny style fix 2014-06-13 12:52:49 -04:00
PulkoMandy
3d6edc43d9 Patch by dnivra (GSoC 2014, ARM suppport)
* Cleanup the SD card image building to allow jam -q @bootstrap-mmc to
work.

There are a few remaining tricks before you can safely build an image:
* This uses a non-POSIX du option, and is only tested with Linux du
only (Linux is the only supported system to run bootstrap builds,
anyway)
* The Python recipe in haikuports.cross is known to not build on
Debian/Ubuntu, but work fine on OpenSuse. There is a patch available in
haikuports bugtracker to allow the reverse.
* You need to populate the haikuports repo package list with some
packages (which don't exist yet) to make the build system happy. But our
git hook to generate the repositories is preventnig me to share this
hack.

Once built, the image currently crashes early in the kernel execution.
On to debug that!
2014-06-13 17:22:48 +02:00
Jérôme Duval
b64f1a9768 tiff: drop sources and headers from the source tree
* also drop jpeg and png headers
2014-06-13 15:52:11 +02:00
John Scipione
f1e2e389be shortcut_catcher: rename a couple variables
Fix build, msg => message

Fix warning use int32, not uint32

Also do a bit of refactoring.
2014-06-13 00:25:09 -04:00
John Scipione
78daf289c3 shortcut_catcher: A few 80 char limit fixes 2014-06-13 00:17:13 -04:00
Jessica Hamilton
d2da54dee2 Shortcuts: use BPathFinder instead of find_directory. Fixes #9958.
* Previously, BPath::Append() would return an empty path if the
  path didn't exist (and an error); in a nightly image, the
  B_USER_ADDONS_DIRECTORY didn't exist, triggering the bug.
* Replaced the code with calls to BPathFinder instead, which takes
  care of the empty path automatically.
2014-06-13 15:46:37 +12:00
John Scipione
abca6dabb6 Revert "shortcut_catcher: Fix KeyCommandMap::_DeleteHKSList()"
This reverts commit cb3243fbbd.

Sorry, this might do bad things.
2014-06-12 19:36:56 -04:00
John Scipione
1ecf19b82f shortcut_catcher: style overhaul 2014-06-12 19:25:03 -04:00
John Scipione
cb3243fbbd shortcut_catcher: Fix KeyCommandMap::_DeleteHKSList()
You can't increment the list item counter as you delete because the count
decreases as you go. Instead delete the first item until there are no more
items, then delete the list.
2014-06-12 18:45:36 -04:00
John Scipione
2776568d27 Fix BHandler::GetSupportedSuites()
The logic was reversed accidentally in hrev47355

Rewrite the method to make more sense. If data is NULL return
B_BAD_VALUE right away. Otherwise set the status based on the first
operation, if that succeeds perform a second one, and return the
result.

Fixes CID 1222666
2014-06-12 13:57:05 -04:00
John Scipione
219bf21ef6 Style fixes to Locale Kit, focus on docs. 2014-06-11 16:48:02 -04:00
John Scipione
37fedaf849 Style fixes to the Game Kit, focus on docs 2014-06-11 16:44:48 -04:00
John Scipione
be902ac4db App Kit: style changes.
No functional change intended.

Focused on documented classes only.

* Update copyright information.
* whitespace fixes.
* pointer style
* Rename some variables, msg => message, form => what
* Need consistent variable names to make documentation easier,
  allows us to use \copydoc or \copydetails instead of repeating
  ourselves over and over again.
2014-06-11 16:24:02 -04:00
Adrien Destugues
151ef32f45 Fix more of the cookie test following API changes. 2014-06-11 21:59:04 +02:00
Adrien Destugues
6765a83b15 Fix cookie tests for API changes. 2014-06-11 19:27:33 +02:00
Adrien Destugues
895fa41e0b Make handling of Http Authentication thread safe
* Each BHttpAuthentication object is locked on all field accesses,
* They are owned by the BUrlContext and never deleted, so there is no
need for reference-counting them,
* The BUrlContext itself is now reference counted, and all BUrlRequests
hold a reference to it.

This makes sure using the BHttpAuthentication objects from requests is
thread-safe.
2014-06-11 14:11:01 +02:00
Adrien Destugues
463ffbfde4 First steps towards cookie jar thread-safety
* Change the semantics of the iterators copy constructor and assignment
operator: they now return a new iterator for the same cookie jar (and
same url for the UrlIterator). They don't try to point to the same
position as the copied iterator. The only purpose of these is to write
code such as:

Iterator it = jar.GetIterator();

so having a full copy isn't that useful.

* The per-domain cookie lists are now protected with a read-write lock.
The iterators retain a read lock while they are handling cookies from
that list. They get a write lock when doing Remove. Adding a cookie to
the jar also gets the write lock for the matching list

* Fix a memory leak when adding a new domain-list to the jar failed

* Simplify the declaration of the PrivateHashMap type (it would be
even simpler if HashMap was a public API)

* The domain hashmap is now a SynchronizedHashMap. It is locked as long
as an Iterator or UrlIterator exists, which may be a problem as these
are public APIs. Writing safe iterators for an hashmap with concurrent
accesses is not easy, so the API could be modified to return a list of
domains and a list of cookies for a given domain or URL instead. This
would suit the intended uses just as well.

* The jar now store const cookies, so there is no need to lock them for
access/modification. Updating a cookie is done by replacing it with
another one in the jar (with the same domain and value). There is still
the problem of deleting a cookie while other threads may still access
it, this will be fixed by making cookies BReferenceable.
2014-06-11 12:59:33 +02:00
Oliver Tappe
9aec6561a8 More build fixes of unittests, this time for x86_64. 2014-06-11 12:44:39 +02:00
Oliver Tappe
77aa0e2a5e Fix build of unit-tests with gcc4. 2014-06-11 11:43:12 +02:00
Oliver Tappe
bab4c96c5c Fix build problems of makeudfimage with gcc4.
* _ALLOCATOR_H clashes with a std-include provided by gcc.
* add using declaration for std::list.
2014-06-11 11:42:41 +02:00
Axel Dörfler
bc4db40c40 AHCI: use a minimum of 1 block for trim ranges.
* Word 105 of ATA IDENTIFY should contain the maximum number of block
  ranges the device supports, but it always supports at least a single
  one.
* This change lets the trim command do something on Virtual Box.
2014-06-11 00:56:09 +02:00
Adrien Destugues
0256e7a458 Disable the MIME type test.
* This tests requires some private APIs which have been changed, it
needs to be rewritten.
* I'm also not sure if it's still possible to work on a copy of the MIME
* database to avoid messing with the system one.
2014-06-10 10:10:30 +02:00
Adrien Destugues
182a5f8e53 Disable test for TranslatorResoter::Version
* The method was made private and deprecated, so there is no way to
compile code calling it directly.
2014-06-10 10:09:13 +02:00
Adrien Destugues
64e8975369 ResourcesTest: fix build.
* There are several SetTo methods, specify the one we want to test.
2014-06-10 10:08:34 +02:00
John Scipione
888f72ca9a Tracker: close Desktop window on switch to spatial mode
If you have the Desktop window open when you switch to spatial
mode this will now close the window. You aren't allowed to have
the Desktop open in 2 places symultaneously in spatial mode.
2014-06-10 00:59:50 -04:00
John Scipione
646b1fe1e8 Tracker: Open Desktop folder in own window in browser mode.
... in a few more cases.

If you are in spatial mode and you double-click on the Desktop folder
it activates the Desktop putting all other Tracker windows in the
background.

If you are in browser mode and you double-click on the Desktop folder
it opens the Desktop folder in the current window.

If you issue 'open ~/Desktop' from Terminal or if you have Expander set
to open the expanded folder and you expand something on the Desktop
it won't open the Desktop folder in its own window in either spatial or
browser mode.

This patch alters Trackers behavior to  open the Desktop folder in its own
window in these cases when you are in browser mode.

One might argue (as a few have on IRC) that this behavior should also
happen in spatial mode, but, this patch does not alter the behavior of
spatial mode. In spatial mode opening the Desktop folder with
'open ~/Desktop' or extracting a zip file with Expander on the Desktop
simply activates the Desktop pushing all other Tracker windows into the
background state.

Fixes #10929
2014-06-10 00:57:33 -04:00
John Scipione
157e4b428a Tracker: Replace max_c() with std::max() 2014-06-10 00:36:11 -04:00
John Scipione
9437e677ba Tracker: Style fixes 2014-06-10 00:36:10 -04:00
John Scipione
12bd3f0452 Expander: Replace min_c() and max_c()
...with std::min() and std::max()
2014-06-09 15:56:39 -04:00
John Scipione
be931d0706 Expander: Check asprintf() return value 2014-06-09 15:56:27 -04:00
John Scipione
122abe4315 Expander: Check Window()->Lock() return value 2014-06-09 15:56:26 -04:00
John Scipione
1e35cfaea2 Expander: replace string manip with asprintf() 2014-06-09 15:56:26 -04:00
John Scipione
e326cef620 Expander: style fixes, no functional change intended 2014-06-09 15:56:25 -04:00
Jérôme Duval
d64267ffb2 vfs: checks whether the mount's unmounting flag is already set.
* thanks to Ingo for suggesting the idea, quoting him:
"by holding sVnodeLock read-locked, get_mount() ensures that fs_unmount() can't
process the nodes. If it is already past that point, the root node check
(not NULL, not busy, ref count > 0) is supposed to detect that. But it doesn't
look like this can work. fs_unmount() doesn't set the root node to NULL (the
root node field is NULL only during a short period in fs_mount()), but it just
frees the nodes after releasing sVnodeLock. So the not busy and ref count > 0
checks could already access freed memory".
* tested OK, this fixes #10522.
* replaced mount->root_vnode by the local variable with the same value.
2014-06-09 21:45:28 +02:00
Fredrik Holmqvist
ec10d307d0 Really fix gcc4 build.
Here I come to save the day!!
2014-06-09 21:07:29 +02:00
Adrien Destugues
942cf5fdbc Fix gcc4 build. 2014-06-09 18:21:42 +02:00
Adrien Destugues
d306340b66 Don't include number_format tests
* The class isn't currently included in Haiku
* Test test only checks that the constructor doesn't crash, which isn't
very helpful anyway
2014-06-09 17:24:28 +02:00