Commit Graph

50086 Commits

Author SHA1 Message Date
Adrien Destugues
41a807ec64 XHTML sniffing rule: handle utf-16 documents. 2014-04-10 08:50:56 +02:00
Adrien Destugues
a68efa7326 Add a mime type for XHTML and make Web+ the preferred app.
* WebPositive testsuite relies on the mimetype to parse xhtml files.
* This has a higher priority than HTML, because it is more reliably
detectable
* Uses the same icon as html and mhtml. Who wants to draw new ones?
2014-04-10 08:50:55 +02:00
Jérôme Duval
6fd00f80e8 scsi_periph: implemented VPD inquiry.
* declared block limits and logical block provisioning structs.
* based on SPC-4 and SBC-4 standards.
2014-04-09 20:40:11 +02:00
Pawel Dziepak
91810926dc scheduler: Fix and simplify thread migration logic in low latency mode
This patch remove the old thread migration logic which used few special
cases and (broken) general check that attempted to balance threads.

The new logic is pretty straightforward and seems perform well without
any additional special cases. Current core is compared with the least loaded
one and the thread is migrated if that would result in estimated loads of
both cores (i.e. the current one and the least loaded one) to become closer
to the average load (i.e. average of that two cores).
2014-04-09 03:24:34 +02:00
Pawel Dziepak
1bba129c56 scheduler: Let ThreadData::ShouldRebalance() choose the actual core
Currently, ThreadData::ShouldRebalance() (and mode specific functions
it calls) only decides whether to migrate thread to another core or not.
However, in most cases it actually needs to find the best candidate for
new core so it could as well return that information.
2014-04-09 03:24:34 +02:00
John Scipione
e439b00397 Fix button label position, try number 2
Create and use BLayoutUtils::AlignOnRect() to position the button label
in BControlLook::DrawLabel().

AlignOnRect(), unlike AlignInFrame(), provides the possibility to return
a rectangle with dimensions greater than the available size.

Add some comments above the methods in LayoutUtils that indicate such.

Also update copyright headers in LayoutUtils and ControlLook
2014-04-08 14:10:10 -04:00
John Scipione
f0fdd7b97a LayoutUtils: Use floorf() instead of floor() 2014-04-08 14:10:09 -04:00
John Scipione
6ecc270f57 LayoutUtils: Use std::max instead of max_c 2014-04-08 14:10:09 -04:00
John Scipione
04b48a29bd LayoutUtils: Style fix, remove leading space 2014-04-08 14:10:08 -04:00
John Scipione
4e8acd3232 ControlLook::DrawLabel() tiny style changes 2014-04-08 14:10:08 -04:00
John Scipione
c79ddce494 Revert "Fix button label position"
This reverts commit 1c69e1c306.
2014-04-08 14:10:07 -04:00
Jérôme Duval
93b84c29a0 x86_64: update sqlite, libxml2, python packages. 2014-04-08 18:08:35 +02:00
Adrien Destugues
f38165ad8c Add multipart/related MIME type for MHTML files.
* Uses the same icon as HTML. Anyone wants to design something better?
* Also add support to Web+ (not actually supported yet, but the next
version will).

These files are useful as self-contained documents (application
offline documentation), and for saving web pages in a single file.
2014-04-07 19:01:03 +02:00
Adrien Destugues
29f1217553 Add some more keywords to the vim recipe syntax file. 2014-04-07 19:01:00 +02:00
Oliver Tappe
0c69a2c99d Drop reference to no longer existing opengrok-site.
* Thanks to Bryce Groff for the hint.
2014-04-07 15:20:24 +02:00
Jessica Hamilton
c552bd6771 haiku_loader: search for matching shortcut in supermenus
Fixes #7469.
2014-04-07 22:14:08 +12:00
Stephan Aßmus
dc8a0aecf1 HaikuDepot: Set default icon for all packages. 2014-04-06 10:49:38 +02:00
Stephan Aßmus
726db742bd HaikuDepot: Implemented simple icon-cache.
* In a first round, icons are trying to be loaded
   from the icon cache.
 * In a second round, the cached icons are updated from the
   server, unless the icons files have been modified within
   the last hour. The web-app does support headers for checking
   if the resource has been modified since a certain date, however,
   with hvif being so small and the time it takes to connect to the
   server per individual icon being so relatively long, it doesn't
   seem worth it just yet to optimize for not actually getting the
   icon data in response.
2014-04-05 23:29:04 +02:00
Stephan Aßmus
f5ce3e39da HaikuDepot/SharedBitmap: switched to use BPositionIO...
...instead of BMallocIO specifically.
2014-04-05 23:29:03 +02:00
autonielx
e795d95872 Update userguide 2014-04-05 18:48:32 +02:00
Jérôme Duval
1dc78b8c1e x86_64: updates various packages.
* python version upgrade, had to rebuild git and scons. Other packages
rebuilds might be required.
* added nasm
* curl, readline, tar upgrades.
2014-04-05 15:27:05 +02:00
autonielx
e00c606b26 Update translations from Pootle 2014-04-05 06:17:44 +02:00
Jessica Hamilton
6242374090 Media Kit: fix use of pthread_once_init in FormatManager.cpp
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2014-04-04 22:25:46 +02:00
Adrien Destugues
8bbdad1487 FormatManager: actually return the singleton instance.
This should work better.
2014-04-04 12:42:14 +02:00
Jonathan Schleifer
6a2fd3a50e Add __dso_handle to bootloader and kernel
Clang references these when building for x86_64.
2014-04-03 19:19:33 +02:00
Jonathan Schleifer
ecf79f7430 Fix my previous commit
I didn't realize that if $(var) is true if var is 0. Only noticed that
after pushing, sorry.
2014-04-03 18:52:17 +02:00
Jonathan Schleifer
c2b76f7f8f Add --use-clang option to configure
This also adjusts the jam files to not use $(CLANG) anymore.
2014-04-03 18:26:29 +02:00
Jonathan Schleifer
fe7d7c27fc RepositoryRules: Add option to now download any packages
This is useful if Haiku should be built using self-built packages.
2014-04-03 15:55:44 +02:00
John Scipione
f5c284eeed Style fixes to BTextView 2014-04-02 19:38:25 -04:00
Adrien Destugues
638510600c Plugin loading: style fixes.
* Fix style issues pointed by stippi. Thanks!
* Rework the FormatManager instanciation to be thread safe.
2014-04-02 14:05:11 +02:00
Adrien Destugues
bf3b475c38 Urpdate AddOnManager and FormatManager for Media Kit
* These classes were moved from Media Server, making the use of ports
and messages to communicate with the app irrelevant.
* Split in a separate commit to help git keep track of moved files.

Fixes #4893.
2014-04-02 09:56:34 +02:00
Adrien Destugues
2feaa37f24 Move media plug-in support to application side.
The media server tried to use node monitoring to dynamically add and
remove plug-ins, but it isn't that useful:
* When a plug-in is added, applications would have to query the media
server to get an up to date list of available formats. For example
MediaConvert populates its format menus on startup.
* When removing a plugin, if an app already had it loaded, there is not
much that can be done to keep it working.
* The list of plugins was not sorted by directories (user vs system
add-ons), so the directories were re-scanned to make sure user add-ons
were returned first, rendering the node monitoring less interesting.

Now, the format handling is done by each application. The node
monitoring is removed, instead the apps will scan the plugin directory
when first using the media kit classes. Restarting the application is
needed to update the media formats list.
2014-04-02 09:56:32 +02:00
John Scipione
1c69e1c306 Fix button label position
This reverts a portion of hrev46580 concerning placement of a label on a button.
The label was draw too low on the button in some cases, notably in Keymap.
Restoring the old code for the icon-less case fixes the problem.

There still may be a problem drawing labels on buttons with icons, but, the code
should behave the same as it did in hrev46580 for that case, which is when
buttons with icons was introduced.
2014-04-01 17:19:00 -04:00
Adrien Destugues
8d07dca68c Add OpenTTD and data files. 2014-04-01 22:36:09 +02:00
Adrien Destugues
f521e2a9ec Add llvm package (untested). 2014-04-01 08:46:58 +02:00
John Scipione
8fbf8d56f6 Time prefs: Enable add button if server name valid
* Add button is disabled initially (as the server name is blank)
* Use B_FAILURE_COLOR when server name is invalid instead of hardcoding red
* Some code refactoring
* Some style fixes
2014-03-31 18:57:46 -04:00
John Scipione
62b45ce190 Time prefs: Disable remove button if list empty 2014-03-31 18:46:12 -04:00
John Scipione
18027fff34 Whitespace style fixes only in StorageDefs.h
No functional change intended.
2014-03-31 16:22:06 -04:00
Adrien Destugues
48058f7bc9 Media_server: use find_paths_etc.
* Replace code to find the plug-ins with the new APIs.
* Prepare for hybrid-aware code (but we need to use the app
    architecture, not the media_server one)
2014-03-31 17:39:35 +02:00
Adrien Destugues
d71e18fef4 Build media plugins for the secondary arch.
These are used when an app uses BMediaFile/BMediaTrack, which leads to
the plug-ins being instanciated on the application side.

* Fixes one more part of #10049 (media add-ons are still missing).
* Will probably not solve any real-world issue because of #4893.
2014-03-31 15:32:31 +02:00
Adrien Destugues
943b310c90 Data URLs: fix size computation.
The decoded data is 3/4 the size of base64 encoded, not 4/3.
2014-03-31 09:59:12 +02:00
Adrien Destugues
aec5be7aa2 Add lzo recipe. 2014-03-31 08:15:04 +02:00
Jessica Hamilton
575984d2e5 MediaConverter: Filter out non-writable media file formats. Fixes #10724
* With the muxer & demuxer tables merged in hrev47063, the
   list of output formats included media file formats that
   weren't flagged as writable

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2014-03-31 08:15:00 +02:00
Stephan Aßmus
a87c4748e5 app_server: Restore previous rounding
46b39e8378 contained a change to the
rounding for non-subpixel-precise drawing. This changes it back
from using round() to casting to int32. This also reverts a change
to StrokeLine() which meant that lines on integer pixels appeared
at the same location regardless of using B_SUBPIXEL_PRECISE or not.
On further thought, this doesn't make any sense, since it means
to treat the meaning of coordinates different for stroking and
filling. This fixes WonderBrush's brush tip preview, but breaks
Gobe Productive's caret rendering for zooms smaller than 150%.
The change to the rounding fixes #10690.
2014-03-30 22:28:14 +02:00
Axel Dörfler
0acae24ee7 Added simple Alert test application. 2014-03-29 23:11:44 +01:00
Adrien Destugues
a41f127c68 Add and update various packages. 2014-03-29 19:16:01 +01:00
Rene Gollent
e3e125273f Update haikuwebkit_x86 to 1.2.5-2. 2014-03-29 10:22:37 -04:00
autonielx
9b85c1dcc7 Update translations from Pootle 2014-03-29 06:18:46 +01:00
Jonathan Schleifer
6c95865236 Replace a few equ with %define to make nasm happy
Interestingly, it only complained about some of them. Changing them all
to %define though, as equ means it should try to evaluate it once, which
of course it can't really if those are ebp+CONSTANT.

Didn't catch those since I wasn't building gcc2h.
Thanks to jessicah for reporting and testing the fix!
2014-03-29 05:07:54 +01:00
Rene Gollent
a743eac426 Add nasm x86 package.
Also update autoconf, curl and openssl.
2014-03-28 22:27:36 -04:00