Commit Graph

50766 Commits

Author SHA1 Message Date
John Scipione
4deecac061 Tracker: Fix BuildMimeTypeList(), styleish and correct
Thanks Axel for pointing out my error.
2014-07-18 17:18:12 -04:00
François Revol
da0fa55675 Update libmad packages
Fixes PROVIDES_devel
2014-07-18 20:38:31 +00:00
François Revol
07a6a6b311 Add libmpdclient package
Used by Music Player Daemon clients.
2014-07-18 20:21:40 +02:00
John Scipione
29c145bcbe Tracker: Check LockLooper() return value.
Fixes CID602468 and CID602469

Thanks waddlesplash for pointing this out.
2014-07-18 14:12:25 -04:00
François Revol
247a35bd0a Update mpg123 package
Fixes PROVIDES_devel and pkg-config files
2014-07-18 20:02:01 +02:00
John Scipione
b992df8968 Tracker: Don't crash clicking Open with... menu item
This bug was introduced in hrev47498

The reason Tracker crashed was because OpenWithContainerWindow
had a NULL TargetModel() which we were trying to dereference.

Fix this by creating an empty model in OpenWithContainerWindow. Add an
ASSERT to check that the TargetModel() is not NULL in the future.

Another way to fix this bug would have been to check that TargetModel() wasn't
NULL each time before we use it. I didn't go with that solution because we
assume TargetModel() is not NULL in a lot of places so it would be a lot of work
to check them all. I think it's better to give OpenWithContainerWindow a dummy
model even though it doesn't make sense for it to have one just so that we don't
crash when we try to dereference the pointer.
2014-07-18 10:58:30 -04:00
John Scipione
bb804d092e Tracker: Make sure count > 0
... in a more stylish way, no negative counts allowed.
2014-07-18 10:47:11 -04:00
John Scipione
6527415d5a Tracker: obligatory round of style fixes
* Explicit NULL checks
* whitespace
* single line if gets no {}'s
*
2014-07-18 10:47:09 -04:00
John Scipione
61dec7d2ec Tracker: fix bug introduced in hrev17795
Ticket #298 for context.

In BContainerWindow::AddWindowContextMenus() pasteItem is used but
not declared if CUT_COPY_PASTE_IN_CONTEXT_MENU is defined.
2014-07-18 09:15:23 -04:00
John Scipione
5ddedec51a Tracker: more style fixes to ContainerWindow.cpp
* Rename templateMenu to templatesMenu.
* 80 char limit fixes
* whitespace fixes
* Declare 1 item per line.
* Don't set variables inline, set, then use.
* Explicit NULL comparisons
* {}'s around if statment with multi-line appearance
2014-07-18 09:04:19 -04:00
John Scipione
bc1739a5c5 Tracker: A few more style fixes to Utilities
* icon_size size => icon_size which (I've settled on which)
* fOrigBitmap => fOriginalBitmap
* resizeMask/resizeFlags => resizingMode (header and cpp match)
* error => result
* explicit NULL checks for pointers
* multi-line conditional ifs get {}'s
* rename result to more descriptive name when not status_t
2014-07-17 20:13:54 -04:00
John Scipione
c6433b0b3c Tracker: A few more style fixes to IconCache
* Hilight => Highlight
2014-07-17 19:36:48 -04:00
John Scipione
9f2a3f6f47 Tracker: Move opening Desktop window to constructor
BRoster::Launch() sends B_REFS_RECEIVED before B_READY_TO_RUN
if the application is not running, so, when B_REFS_RECEIVED looked for
the Desktop window it wasn't created yet since that happen in ReadyToRun().

By creating the Desktop window in the constructor instead it is available
in RefsReceived() so an extra Desktop windows isn't opened.
2014-07-17 15:11:15 -04:00
John Scipione
3a7f3317ce IconUtils: Improved error checking 2014-07-17 14:51:36 -04:00
John Scipione
3f2239f6b6 Storage Kit: Style fixes to mime database
* Update doxygen docs a bit, especially returns.
* Some variable renaming for consistency and clarity, err/error => result.
* Remove some dead code that isn't coming back. (code moved to IconUtils)
* OpenType() returns a status_t, put it in a status_t, not a ssize_t.
  and then later create a new ssize_t to hold the read bytes read
  and use that, saves a lot of casting and confusion.
2014-07-17 14:51:35 -04:00
John Scipione
bcd81d91f0 IconUtils: Style fixes
* Mostly just renaming variables for clarity and consistency
* whitespace
* fill out #pragma mark's
* indentation
2014-07-17 14:51:33 -04:00
John Scipione
9bbfee0fd5 BNodeInfo: Style fixes
* Remove public method docs, they are in Haiku Book only.
* Format private method docs as doxygen.
* Other style fixes like explicit NULL checks.
* Remove dead code in GetIcon() that isn't coming back.
* Pointer style.
2014-07-17 14:51:32 -04:00
John Scipione
e8c8f8536c Storage Kit: Style fixes to database_support.h 2014-07-17 14:51:31 -04:00
John Scipione
8e5c1f2394 Tracker: style, reorder includes in DeskWindow.cpp 2014-07-17 14:51:29 -04:00
John Scipione
670b729d65 Tracker: style fixe, update comment, spelling
...and fits on 1 line
2014-07-17 14:51:28 -04:00
John Scipione
8b9604572e Tracker: style fixes to ContainerWindow 2014-07-17 14:51:27 -04:00
John Scipione
537e1fff3e Tracker: Write Trash icon attrs only once
Also create Trash if does not exist but check the if the icon
attrs are set separately.

Only set the vector trash icon #ifdef __HAIKU__ does this
even matter anymore?
2014-07-17 14:51:26 -04:00
John Scipione
7f68dcb4a7 Tracker: Write Desktop icon attrs only once 2014-07-17 14:51:24 -04:00
John Scipione
dd3359ae8f Tracker: return B_BAD_VALUE if you pass in a NULL dir 2014-07-17 14:51:23 -04:00
John Scipione
c2d07d9988 Tracker: yet more style fixes 2014-07-17 14:51:22 -04:00
John Scipione
ae7d51b28a Tracker: Style fixes to IconCache and Utilities 2014-07-17 14:51:20 -04:00
John Scipione
ee196640fb Tracker: Update Tracker nav bitmaps and layout 2014-07-17 14:51:16 -04:00
John Scipione
bd41bc5105 Tracker: Style fixes in Tracker (app) 2014-07-17 14:51:15 -04:00
John Scipione
f6d495501e Tracker: include ContainerWindow.h in Navigator.h 2014-07-17 14:51:14 -04:00
John Scipione
e17179d381 Tracker: Style fixes to Navigator.h 2014-07-17 14:51:12 -04:00
John Scipione
b77cc9391a Tracker: Style fix, move headers down in Navigator.cpp 2014-07-17 14:51:11 -04:00
John Scipione
f13a47d224 Tracker: Pose style fixes kind => which 2014-07-17 14:51:10 -04:00
John Scipione
d5868b5976 Tracker: style fixes to PoseView
Variable renaming for consistency and clarity
2014-07-17 14:51:09 -04:00
John Scipione
8dd0b0aeac Tracker: style fixes to Model 2014-07-17 14:51:08 -04:00
John Scipione
d7e6821137 Tracker: miscellaneous style fixes 2014-07-17 14:23:33 -04:00
John Scipione
6ab2085f7b Tracker: Style fixes to ContainerWindow 2014-07-17 14:23:33 -04:00
John Scipione
49d37d9438 Tracker: tiny style fix, explicit NULL check 2014-07-17 14:23:32 -04:00
John Scipione
6c424fff1e Tracker: Tiny style fix to Bitmaps.cpp 2014-07-17 14:23:32 -04:00
John Scipione
021aaa43d0 Tracker: Style fix, capitalize share icons hex
... just to make them consistent with the rest.
2014-07-17 14:23:32 -04:00
Adrien Destugues
c5dc7c1ef7 Build fix. 2014-07-17 15:14:22 +02:00
Adrien Destugues
950c7f61c6 Avoid trigraph to make compiler happy. 2014-07-17 09:54:35 +02:00
Adrien Destugues
10632ac2db Add working sniffer rule for lha and add lzh extension. 2014-07-17 09:49:42 +02:00
Jonathan Schleifer
8f9b4f71c5 Fix comment 2014-07-17 01:25:27 +02:00
Jonathan Schleifer
32ccf45f44 build/jam/ArchitectureRules: Check for != 1, not = 0 2014-07-17 01:14:55 +02:00
Jessica Hamilton
d0c1fd8a17 Shortcuts: fix node monitoring of settings file. Fixes #6278.
The initial checks for the settings path were unnecessary, and
prevented node monitoring from starting when the settings file
didn't exist.
2014-07-17 11:08:18 +12:00
John Scipione
5fa8801f36 GIF Translator: Update default settings
* Palette is set to Optimal which preserves colors of original
* Write transparent gifs is on which preserves transparency
* Transparent auto is on which automatically detects the transparent color
* default transparent color is 255, 255, 255 (aka white) if you select a
  manual transparent color which seems like a more sane default than black.

This allows ShowImage and other programs to save transparent gifs without
removing transparency and without reducing the colors.
2014-07-16 14:34:23 -04:00
John Scipione
66246a75a1 GIF Translator: tiny style fix 2014-07-16 13:41:57 -04:00
Adrien Destugues
92dd9f7360 Style fixes, no functional changes. 2014-07-16 17:57:47 +02:00
Adrien Destugues
3528905be6 Parse multiple HTTP at once
Instead of relying on the global protocol loop to call _ParseHeaders
once for each header, extract as much as possible from the current
buffer.

This saves memory, avoids useless operations on the socket and various
processing steps, and fixes #10245.

Also improve the handling of 0-size requests to make sure they terminate
properly.
2014-07-16 17:34:31 +02:00
Adrien Destugues
8f367d30c8 Rewrite "open containing folder" in a safer way.
* Tracker has support for this in its RefsReceived handler, which
results in simpler code than going through BRoster to open the folder.
* Avoids a race condition, possible confusion of Tracker windows with
the same title, and makes the code more readable (and working).
* Fixes #11008.

Thanks to Axeld for pointing the support in RefsReceived, which wasn't
used anywhere outside of Tracker, yet.
2014-07-16 16:24:58 +02:00