Commit Graph

53371 Commits

Author SHA1 Message Date
Michael Lotz
e25776bd83 Whitespace cleanup only. 2015-04-08 12:56:58 +02:00
Michael Lotz
2a36368bda HaikuDepot: Make BitmapView use SharedBitmaps directly.
Instead of extracting a BBitmap out of the SharedBitmap and giving that
to BitmapView, set SharedBitmaps directly. When using BBitmaps we
circumvent the reference counting of the SharedBitmaps and it would be
possible for the SharedBitmap and its BBitmaps to get deleted while
one of them was still used in a BitmapView.

Fixes use-after-free when icons are updated that are already used in
BitmapViews.
2015-04-08 11:15:49 +02:00
Michael Lotz
3525a370d4 HaikuDepot: Add missing init of fSize in default constructor. 2015-04-08 11:15:49 +02:00
Michael Lotz
8708474567 HaikuDepot: Clean up trailing whitespace. 2015-04-08 11:15:29 +02:00
Michael Lotz
5c7707fc34 desklink: Use early return, no functional change. 2015-04-08 11:15:29 +02:00
Michael Lotz
77c35db9a9 desklink: Whitespace cleanup only. 2015-04-08 11:15:28 +02:00
Janus
6ea53cb5bb Showimage: Test thread ID for generic error.
* Thanks Ingo and Axel.
2015-04-07 21:21:26 +00:00
Janus
cae52eadac Showimage: Add zoom level to StatusBar.
* Improve StatusBar graphics (Same style as StyledEdit).
* Resize the StatusBar to best fit.
* Fixes #7394.
2015-04-07 17:17:32 +00:00
Janus
be63ec85a8 Showimage: Wait for loader threads on exit.
* Uses find_thread to wait for loader threads.
  (better solutions are welcome)
* As suggested by Axel the cache isn't static anymore.
* Fixes 8902.
2015-04-07 16:15:46 +00:00
Augustin Cavalier
51362d85d8 Haiku Book: Doxyfile: eat __attribute__ directives.
Without this, Doxygen attempts to parse __attribute__ directives
and often outputs garbage instead of properly parsing them, so just
exclude them from the documentation.

Fixes some incorrect function listings in BString documentation
and possibly more elsewhere.
2015-04-06 18:00:39 -04:00
Augustin Cavalier
64f7e980a4 BString docs: don't have tags in hsection titles. 2015-04-06 17:51:04 -04:00
Oliver Tappe
b63d718b1c Update beam package(s) from 1.2alpha to 1.2.
* This updates the x86_gcc2 package and adds a package for x86.
2015-04-06 19:51:31 +02:00
Adrien Destugues
839310264d Add packages for avr_gcc (and libc and binutils) 2015-04-06 17:55:35 +02:00
Janus
aa05612321 User interface: Use user colors in menu and list items.
* Use user colors for selected menuItem in ProcessController
* Use user colors for selected listItem in FileTypes, Media, Printers
* Fixes the menuItem and listItem part of #10840.
   The BColumnListView and other widgets need more thoughts.
2015-04-06 11:21:59 +00:00
Dancsó Róbert
8e54273644 Changed settings window feel to show up when the main window is on top.
Signed-off-by: Janus <janus2@ymail.com>
2015-04-05 23:18:00 +00:00
Ithamar R. Adema
efdcada6f3 BlockWriter: Do not panic on failing read/writes
These were here for debugging purposes, as often it is a sign of
inconsistencies. However, for USB disks this is a normal occurence
when someone janks out of the device without unmounting first.

Make sure we log these cases though, as it still helps debugging.

Fix sponsered by http://www.izcorp.com
2015-04-05 22:18:09 +02:00
Ithamar R. Adema
f1a02a8e1e usb_hid: fix STALL handling
It is not allowed to do synchronous calls to the usb bus manager
while in a usb callback routine. This causes the usb stack to get
very confused.

This code now uses the async interface to clear the STALL, and will
try to continue normal operations after that request has been handled.

Fix sponsered by http://www.izcorp.com
2015-04-05 21:53:18 +02:00
Ithamar R. Adema
7f440923c8 usb_hid: make sure removed devices do not get published
On many SMP systems, publish_devices() would get called before the
free() hook was triggered, resulting in removed devices still being
published.

Fix sponsered by http://www.izcorp.com
2015-04-05 21:53:16 +02:00
Janus
7f0d2c98b6 Terminal: Standard buttons disposition in Settings.
* Rename Defaults button to "defaultsbutton".
* Fixes #11892.
2015-04-05 19:37:27 +00:00
Adrien Destugues
3c08e45613 Fix package download progress computation.
The download progress and total used to be doubles, but now they are
off_t. This resulted in the division being done in integers, and always
getting 0 as the result.

Fixes #11940.
2015-04-05 19:15:21 +02:00
Janus
85b350edda BColumnListView: BRow height is proportional to font size.
* Add a BRow default constructor that use font size to compute height.
* Min height size for Title and Row are decoupled.
* The font ratio for Title and Row are decoupled.
* For small font use min height (set to usual 16.0).
* Better baseline formula.
* Fixes #11944.
2015-04-05 16:58:00 +00:00
Gerasim Troeglazov
0b926d31dd Update QupZilla packages to 1.8.6 2015-04-05 21:54:16 +10:00
Gerasim Troeglazov
442e457d7b ShowImage: Added toolbar buttons for browsing multipage documents 2015-04-05 18:06:19 +10:00
Rene Gollent
3cad498309 userlandfs: Fix debug build. 2015-04-04 23:18:57 -04:00
Alexander von Gluck IV
b1ad5660b2 arm: Prevent bcm283X inclusion from breaking other boards
* Move *_BASE into board_config.h to prevent conflicts
2015-04-04 17:44:32 -05:00
Alexander von Gluck IV
59ce662464 repo: Bump Mesa to 10.5.2 on x86_64 2015-04-04 17:17:50 -05:00
Michael Lotz
442e7caa49 app_server: Reset current view also when deleting a parent view.
The check that was in place only ensured that the current view was reset
if the current view itself got deleted. Since deleting views works by
token it is possible that a view other than the current view gets
deleted. When a parent of the current view was deleted, which also
deletes all its children, the current view pointer was not reset and
the stale pointer would still be accessed.
2015-04-04 22:58:45 +02:00
Michael Lotz
35965e5867 app_server: Fix 64 bit build with ServerWindow tracing on. 2015-04-04 22:58:10 +02:00
Michael Lotz
121655e9ee malloc_debug: Add default alignment option.
This allows for something similar as was implemented in 217f090 but
makes it optional and configurable.

The MALLOC_DEBUG environment variable now can take "a<size>" to set
the default alignment to the specified size. Note that not all
alignments may be supported depending on the heap implementation.
2015-04-04 22:55:57 +02:00
Michael Lotz
b0e31a9ce3 Revert "malloc_debug: align allocations".
This reverts commit 217f090f9e.

At least for the guarded heap this completely defeats the purpose. If
software requires a certain alignment it should request it using
memalign explicitly instead of assuming it.
2015-04-04 22:55:57 +02:00
Michael Lotz
5ae3af6cc5 SupportDefs: Add B_SCN* counterparts for some more types.
Namely for [s]size_t, [{phys|generic}_]addr_t and off_t.
2015-04-04 22:55:57 +02:00
Michael Lotz
a05bfeb4a9 Whitespace cleanup only. 2015-04-04 22:55:56 +02:00
Stephan Aßmus
f67071b98c HaikuDepot: Re-activated Size-column
Noticed that HaikuDepotServer info now contains "payloadLength", which is
the package size. Populate that in the list view.
2015-04-04 22:45:46 +02:00
Stephan Aßmus
53094e2fa1 StringForSize.h: Fixed header guard comment at EOF 2015-04-04 22:45:41 +02:00
Stephan Aßmus
72992391bb HaikuDepot: Title versus Name distinction
* The name is the static package name. The title is either that name,
   or a translated pretty version of the name.
 * Adjust package info retrieval to server API changes. Unbreaks package
   translations.
2015-04-04 22:45:37 +02:00
Janus
5a7c64f90a BColumnListView: Avoid crash on column resize.
* Inizialize fSelectedColumn before calling ResizeSelectedColumn().
* Fixes #10439.
2015-04-04 20:30:54 +00:00
Alexander von Gluck IV
e0bf43c16b serialconnect: Really fix baudrate menu
* Re-add removed baudrates in bc02619755
* Re-aligns menu values and *really* fixes
  baudrate selection.
2015-04-04 09:21:05 -05:00
Gerasim Troeglazov
4a55954f3d Updated PDFTranslator and Genesis Commander packages 2015-04-04 20:33:31 +10:00
Michael Lotz
37acb83e4c libroot_debug: Fix build of guarded_heap after atomic changes. 2015-04-04 11:04:35 +02:00
Michael Lotz
2c9e11ba38 media_addon_server: Fix use-after-free on quit.
Putting the add-ons uses the dormant node manager of the BMediaRoster.
The BMediaRoster must therefore only be quit after all add-ons are put.
2015-04-04 11:04:35 +02:00
Michael Lotz
d0a9f6803b Tracker: Fix use-after-free on destruction of the icon caches.
The hash table member still uses the element array memeber to clear
itself on destruction. We must therefore ensure that the element array
isn't destroyed before the hash table. Since the destruction order of
memebers is the reverse order of their declaration, reordering them
is enough.
2015-04-04 11:04:35 +02:00
Michael Lotz
3fc2dd56db BView: Fix 64 bit build with debug output, whitespace cleanup. 2015-04-04 11:04:34 +02:00
Michael Lotz
46578389ba BShelf: Unset the shelf of the containing view on destruction.
The BShelf sets itself as a handler on the containing view on creation
but didn't unset itself on destruction. When the containing view was
later destroyed it would unset the shelf which triggered a
use-after-free if you deleted the BShelf beforehand.

Since the ownership of a BShelf isn't explicitly documented I took the
shelf in DeskWindow of Tracker as a reference, which does delete it
explicitly.
2015-04-04 11:04:34 +02:00
Michael Lotz
23a1bcf28b gcc2 demangler: Fix skip of string termination.
The inner loop to skip the function declaration stops at the
terminating null but didn't break out of the loop in that case, causing
the outer loop increment to skip the terminator and read beyond the
string end.

Well formatted symbols do not trigger this, but there sometimes are
false positives that would cause it to happen. It was seen in Debugger
that reuses this code.
2015-04-04 11:04:34 +02:00
autonielx
5ecdb49e5f Update translations from Pootle 2015-04-04 06:37:21 +02:00
Jérôme Duval
10785b1986 Update the ca_root_certificates package. 2015-04-03 18:07:35 +02:00
Gerasim Troeglazov
d284274513 Added missing openjpeg package for x86_gcc2 2015-04-03 03:48:18 +00:00
François Revol
7332f46513 Add an icon for SD Card devices 2015-04-03 02:07:55 +02:00
Jérôme Duval
66d5089a6c Updated coreutils packages 2015-04-02 18:52:07 +02:00
Gerasim Troeglazov
c954d6d94b Add GenesisCommader package for x86_gcc2 2015-04-02 13:57:37 +00:00