Commit Graph

45384 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Axel Dörfler
e587c279ee Network/DNSClientService: fixed missing error check.
* CID 1251065.
2015-04-02 11:03:58 +02:00
Axel Dörfler
ba931975e5 Network: fixed uninitialized members.
* CIDs 1251073, 1292681, 1292686, and 1292687 -- all irrelevant, though.
2015-04-02 10:56:36 +02:00
Automatic Committer
7695c3b7eb Update usb.ids from www.linux-usb.org 2015-04-02 05:20:30 +02:00
Automatic Committer
4cbc5130bd Update pci.ids from pciids.sourceforge.net 2015-04-02 05:20:28 +02:00
Augustin Cavalier
f8f8d2bbec Revert "TextSearch: use BString-based searching instead of Grep-based."
This reverts commit 1e9f5f5be4.
As per discussion on the ML.
2015-04-01 16:26:15 -04:00
Augustin Cavalier
1e9f5f5be4 TextSearch: use BString-based searching instead of Grep-based.
Huge performance improvement. Fixes #9529.
2015-03-31 20:13:20 -04:00
Augustin Cavalier
1b1789a711 TextSearch: use the layout API. 2015-03-31 20:02:08 -04:00
Augustin Cavalier
90ce311356 TextSearch: normalize copyright headers. 2015-03-31 17:52:05 -04:00
Augustin Cavalier
5f25359909 TextSearch: remove legacy Translation.h. 2015-03-31 17:45:14 -04:00
Augustin Cavalier
696f4254ca TextSearch: trim trailing whitespace. 2015-03-31 17:42:02 -04:00
Augustin Cavalier
05840b4c2a TextSearch: don't save the 'show contents' option.
Also get rid of the redundant menu option.
2015-03-31 17:38:54 -04:00
Augustin Cavalier
c28822e799 TextSearch: RDEF tweaks. 2015-03-31 17:18:02 -04:00
Axel Dörfler
213f3cdb69 Network: preselect first item, make device view resizable.
* After start, the first item will now be selected.
* The InterfaceAddressView will no longer restrict its width, so
  that the window doesn't have to be resized anymore when switching
  to it.
* This implements ticket #11923.
2015-03-31 18:00:23 +02:00
Axel Dörfler
a526734858 Network: gcc 4 build fix. 2015-03-31 16:52:42 +02:00
Augustin Cavalier
8e655993c3 Tracker: default HideDotFiles to false (again).
As discussed on the ML.
2015-03-31 10:10:36 -04:00
Axel Dörfler
6257ef9246 Network: let add-ons replace themselves by name.
* Ie. an add-on "Super duper service" in ~/config will override
  one with the same name in /system (and non-packaged in packaged,
  etc.).
* Fixed size of the scroller to ignore the content size vertically.
2015-03-31 14:45:17 +02:00
Axel Dörfler
1aaa0c2142 Package Kit: FetchFileJob now contains package size.
* So that you know how much already was, and still has to be downloaded.
* Automatic whitespace cleanup.
* The link in FetchFileJob.h did not fetch the correct header under
  Haiku anymore (since the addition of the private headers to the
  image).
2015-03-31 13:40:42 +02:00
Axel Dörfler
b49e806d3d Deskbar: minor style cleanup. 2015-03-31 13:40:37 +02:00
Alexander von Gluck IV
bc02619755 serialconnect: Fix baudrate submenu
* kBaudrates is an int not a char
* Just look at first kBaudrates member to figure out array size.
* Drop a few *extremely* uncommon speeds that you'll never see to
  shorten the list.
2015-03-30 17:48:44 -05:00
Augustin Cavalier
2ead925e2f Tracker: fix extra border in spatial mode. 2015-03-29 18:36:51 -04:00
Augustin Cavalier
a1fc016c14 Tracker: allow opening the desktop as a window in navigator mode.
Fixes #9610.
2015-03-29 18:35:20 -04:00
Augustin Cavalier
4e35726354 Tracker: add "hide dotfiles" option to the GUI & enable it by default.
Changing this many lines of code to add a single boolean preference
is absolutely insane. We need a new preference-tracking system, and
one that can be reused in other applications, too.

Fixes #9200.
2015-03-29 18:10:51 -04:00
Humdinger
97f5ebc1ae Sentence casing... 2015-03-29 19:48:53 +02:00
Michael Lotz
0e24bb020b UserlandFS: Fix detection when a file system should be deleted.
This was a regression from hrev39870 where a private Referenceable class
was replaced with BReferenceable. Referenceable::RemoveReference()
returned a boolean to indicate whether the last reference was released
while BReferenceable::ReleaseReference() returns the previous reference
count.

A file system would therefore be deleted when any but the last reference
to it would be released (when multiple volumes of that file system were
mounted and one of them was unmounted) and leaked otherwise (when only
one volume of that file system was mounted and then unmounted).

Fixes #11718.
2015-03-29 17:46:47 +02:00
Michael Lotz
5f396f6a00 UserlandFS: Some whitespace cleanup. 2015-03-29 16:25:18 +02:00
Michael Lotz
ffba66060b UserlandFS: Make 64 bit clean and enable build for x86_64.
I did not bother to fix the BeOS kernel emulation, so this part is
still left out of the x86_64 build.
2015-03-29 16:25:17 +02:00
Murai Takashi
cddfcf2f87 Fix incorrect initialization.
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2015-03-29 11:01:31 +02:00
Jérôme Duval
5c63f9d60d Makes the Haiku package depend on Expander extraction tools
.. for regular builds. Helps with #11928.
2015-03-29 11:01:30 +02:00
Alexander von Gluck IV
3f80e2801f loader/fatfs: Fix tracing 2015-03-28 17:36:53 -05:00
Alexander von Gluck IV
115ac6bcae arm/mailbox: Load mailbox base from FDT in loader 2015-03-28 16:56:50 -05:00
Jérôme Duval
f5e61f7174 libroot.so: libc-lock.h: use a pthread mutex based impl.
* based on current glibc sysdeps/nptl/bits/libc-lock.h file.
* include missing headers which were previously included by libc-lock.h.
* This fixes #11182.
2015-03-28 22:02:53 +01:00
Alexander von Gluck IV
c6a4fee579 loader/u-boot: Use FDT serial info to create uart
* drop my fdt tests
* we have to call fdt parsing code *after* cpu_init (why?)
* pass fdt pointer to all FDT support calls to avoid confusion
  once we get into the kernel land
* look for PL011 compatible uart and use it
* Add some saftey checks to serial putc code to avoid null*
* fdt_node_check_compatible returns 0 on success not 1
* fdt_get_device_reg needs to add the SOC base to the result
* fdt_get_device_reg might need to add the second range cell
  instead of reg?
2015-03-28 15:52:16 -05:00