Commit Graph

51694 Commits

Author SHA1 Message Date
Adrien Destugues
10191d82c2 Revert "Temporary build fix for OpenEXR."
This reverts commit 1431a56f33.
This has been fixed in a better way in the gcc2 package.
2014-10-15 11:29:04 +02:00
Adrien Destugues
77342b3ad8 Chart: clear view when switiching to BDirectWindow
Even when BDirectWindow is used, the back buffer data can be copied to
the front buffer. This happens when resizing or moving the window, and
when moving the cursor above it.

Since Charts does not touch the whole window when redrawing (it only
erases previous stars and draws new ones) this led to the last frame
drawn on the back buffer to stay visible until stars erased it.

Clearing the back buffer view with the current "sapce color" makes this
much less visible.

Fixes #96.
2014-10-15 09:22:41 +02:00
Adrien Destugues
1431a56f33 Temporary build fix for OpenEXR.
* It seems hex floats are not allowed in C++.
* I will fix this more cleanly, but it needs another rebuild of the gcc2
package. Until then, this lets haiku compile.
2014-10-14 23:28:36 +02:00
Oliver Tappe
839fef77e1 Import pci.ids and usb.ids into repository.
* They will be updated by a cron job once per day.

This improves the reproducability of non-current builds, as the ID-files
will no longer change over time.
2014-10-14 22:42:55 +02:00
Adrien Destugues
5ad71574bd Update gcc2 package. 2014-10-14 22:35:54 +02:00
Adrien Destugues
7f6fdce3c1 Update haiku copy of gcc2 float.h
Shouldn't be needed, but we may as well use the correct version here
too.
2014-10-14 22:11:27 +02:00
Adrien Destugues
25c0dd66c5 utf16 XML: forgot the ? 2014-10-14 11:16:52 +02:00
Adrien Destugues
aff9c2526f Web+: advertise support for XML and WebP
* XML files can be viewed if they have XSLT stylesheets.
* WebP will be decoded in the next haikuwebkit release.
2014-10-14 11:11:50 +02:00
Adrien Destugues
a510fce212 Detect utf-16 encoded XML files.
* Increase sniffing rule priority to 0.251, otherwise files are detected
as text/plain (for anything lower than 0.25)
* Add sniffing pattern for utf-16 xml.
2014-10-14 11:07:29 +02:00
Adrien Destugues
9c0027a40d Fix sniffer rule for MHTML files.
* Fixes issues with mhtml files in WebKit testsuite.
2014-10-14 10:34:45 +02:00
Adrien Destugues
10c7810268 Detect SVG images missing the <?xml/> tag.
* If the file starts with "<svg", it's likely an SVG image.
* Fixes another misdetected file in WebKit testsuite.
2014-10-14 10:22:42 +02:00
Jessica Hamilton
2cecbed4f7 x86_64: haikuwebkit 1.4.5 2014-10-14 14:50:26 +00:00
Jessica Hamilton
4e9ab758cb x86: haikuwebkit 1.4.5 2014-10-14 14:46:35 +00:00
Jessica Hamilton
b6cf71dc87 x86 hybrid: add provides for lib:libstdc++ in x86_gcc2
* this provides parity with the gcc_x86_syslibs packages, so
  that special handling isn't required for the gcc4hybrid
  builds when a recipe depends on libstdc++ (e.g. haikuwebkit)
2014-10-14 14:42:00 +00:00
Adrien Destugues
2baa894c76 icons screensaver: double free when in RandomSaver
RandomSaver apparently calls StopSaver two times, and Icons was having a
double free in that case.

Fixes #10957.
2014-10-13 17:20:50 +02:00
Adrien Destugues
a3cdc7c588 Gravity and GLife: fix crash on start.
Locking the GL context from a GLView subclass constructor can't work, as
it isn't ready yet. Move the initial setup to AttachedToWindow instead.

Fixes #8898, #10469.
2014-10-13 15:29:46 +02:00
Adrien Destugues
1883fcfcde Update mesa package to 7.9.2-9
* After testing the previous fix, I found that Flurry would crash again
because of a stack overflow in Mesa. This new package fixes that other
issue, so Flurry runs again.
* GLife and Gravity are still crashing, however. I'll debug these next.
2014-10-13 15:06:48 +02:00
Adrien Destugues
a1262bbf33 GL screensavers fail to load Mesa renderer add-on
The screensaver add-ons are properly linked against libGL. The libGL
code tries to load the swrast add-on. But this fails because the
BGLRenderer constructor (which is provided by libGL) is not found.

It seems that when loading an add-on, libraries linked to by other
add-ons (and not the app itself) are not searched to resolve symbols. To
avoid this issue, we now link ScreenSaver and screen_blanker to libGL,
so the GL renderer add-on can find it.

Fixes #10206
2014-10-13 15:06:47 +02:00
Jessica Hamilton
ac58e1cc33 icu: update to 54.1 on x86_64 and x86 2014-10-13 09:12:00 +00:00
Adrien Destugues
64bda0cc91 Add missing error check in BMessageFormat
* Avoids a crash when an invalid format pattern is used
* Add tests exercising this with various badly formatted patterns.
2014-10-13 09:07:53 +02:00
Stephan Aßmus
96ebc1d602 HaikuDepot: React to B_SELECT_ALL in custom text view 2014-10-12 23:41:27 +02:00
Stephan Aßmus
639756547d HaikuDepot: Move worker thread init into method
... and call it from the second version of the MainWindow constructor.
2014-10-12 23:21:54 +02:00
Stephan Aßmus
027e51ae7d HaikuDepot: Log more errors to stderr.
These errors do not necessarily need to be reported to the user via alerts.
They are more of an indication that HaikuDepot needs to be smarter when
figuring out what package actions to present at all.
2014-10-12 23:21:52 +02:00
Stephan Aßmus
1783f96af9 HaikuDepot: Show alert when scheduling package action failed 2014-10-12 23:21:49 +02:00
Adrien Destugues
c8b83b1708 Make disabling BOptionPopUp actually work
* Patch by ttcoder
* Fixes #10735
2014-10-12 16:54:27 +02:00
Adrien Destugues
b7aac5d21e Fix BDragger drawing when parent doesn't draw.
BDragger use some tricks to draw as a partially transparent view, it
calls the parent Draw method, then draws a partially transparent bitmap
over the resulting drawing.

This only works if the parent does somthing in the dragger area. In case
it doesn't, first fill the dragger with the parent view color, so there
is at least "something" in those pixels.

Fixes #5906.
2014-10-12 16:42:22 +02:00
Adrien Destugues
ec1cee3ee8 Add packages for fRiSS and netpulse. 2014-10-12 16:30:17 +02:00
Adrien Destugues
1bf53ffcfc Remove leftover printf and fix build. 2014-10-12 16:21:22 +02:00
Adrien Destugues
bdb4ae32fd Fix unarchiving of BScrollView with layout
* We archive views using "managed" archives, and the children are not
attached in the BView(BMessage*) constructor, but later. So it's not
possible to find the target and scrollbars in the constructor of
BScrollView.
* Make BScrollView override AllUnarchived and find the target and
scrollbars again there. The code is slightly different as there is no
guarantee that the first child will be the target in that case. The
existing code in the constructor is preserved for non-managed archives.
2014-10-12 16:02:34 +02:00
Adrien Destugues
3b61a4b53d Add xrick package. 2014-10-12 11:50:29 +02:00
Adrien Destugues
d6bd833865 Fix ICU message syntax
This apparently led to a crash in ICU, reported on the mailing list.
2014-10-12 11:43:16 +02:00
autonielx
6668f854b0 Update translations from Pootle 2014-10-11 16:57:37 +02:00
Adrien Destugues
4cada3807c BDragger: add layout-aware constructor.
Somehow no one needed this yet.
2014-10-11 11:18:56 +02:00
autonielx
66d980dfe8 Update translations from Pootle 2014-10-11 06:21:24 +02:00
Stephan Aßmus
2fb1b897bc HaikuDepot: Revert change regarding publisher name
It is now again the first string from the copyrights list, unless there is
no copyrights list, in which case the vendor string is used.
2014-10-10 22:51:19 +02:00
Stephan Aßmus
6d519fd175 HaikuDepot: WIP to open .hpkg files.
* When opening .hpkg files, shows just the PackageInfoView in a smaller
   window.
 * PackageInfo constructor with BPackageInfo argument
 * Default pkg icon has a single instance only. Before, there would be another
   instance for each repository refresh.

TODO:
 * Install button on single package view is non functional
 * Probably needs to do someting different when opening .hpkg from an
   installed packages folder (show the regular list and focus that package?).
 * The filter view and list view are still constructed for the single package
   mode.
 * ...
2014-10-10 22:42:07 +02:00
Michael Lotz
bb9112df02 Cleanup: Remove doubled semicolon and a trailing whitespace. 2014-10-10 20:38:04 +02:00
Humdinger
694ed94b14 Removed GRUB 1.x hints from Installer's 'EULA' window
Pretty much everyone should be using GRUB 2 by now.
2014-10-10 17:10:47 +02:00
Adrien Destugues
2c6835f93e Remove in-tree bash.
* This is now outsourced.
* Should clean a lot of our coverity warnings.
2014-10-10 16:32:04 +02:00
Adrien Destugues
e962d1552d Don't use unsafe strcpy. 2014-10-10 11:58:32 +02:00
Michael Lotz
d98a3e026c package kit: Fix corruption of last package chunk on update.
PackageFileHeapWriter::_UnwriteLastPartialChunk() used ReadData() to
extract the last partial chunk into the pending buffer. This indirectly
calls PackageFileHeapWriter::ReadAndDecompressChunk(), which assumes
data past the last full chunk to come from the pending data buffer.

Since the pending data buffer is not filled in at that point, the call
to ReadAndDecompressChunk() simply did nothing, leaving the object with
a correctly sized but completely nulled pending data buffer. The last
partial chunk of a package would therefore always get corrupted when
updating a package.

Fixes #11306 that provided a reduced test case that happened to corrupt
the only chunk of a package, nulling the .PackageInfo and therefore
making the error more obvious as subsequent parsing of the info failed.
2014-10-09 23:41:39 +02:00
Adrien Destugues
d41ee54e6a Fix corrupted text in poorman slider
UpdateText must return a pointer to a fixed buffer, whcih BString.String
isn't, if the sctring is modified.

Copy the data to a char* we can use as a fixed position buffer.
2014-10-09 21:28:18 +02:00
Adrien Destugues
26b0a53d12 Add parsing support to BTimeFormat. 2014-10-09 13:35:23 +02:00
Adrien Destugues
640158e2e7 Fix buildbot_slave package
The 0.8.8-3 package was referencing python in a 0.8.8-2 folder, probably
because the package was not fully rebuilt after changing the revision.
2014-10-09 08:42:59 +02:00
Adrien Destugues
e0f81db657 re-add the _BMCItem_ class for binary compatibility.
This was removed in hrev17147, because our implementation of BMenuItem
does not uses it anymore. However, we must keep it in order to properly
unarchive BMenuFields that were archived in BeOS.

One application that was crashing because of this is VNCViewer.
2014-10-08 17:45:20 +02:00
Adrien Destugues
4b947a07d3 More BMessageFormat rework.
I'm stopping this now, I heard we want to leave those as GCI tasks.
2014-10-08 17:26:12 +02:00
Adrien Destugues
961fdd8cc3 BMessageFormat: parse the pattern at construction
* Instead of parsing the pattern everytime Format() is called, parse it
only once when the object is created.
* Adjust all callers to make use of the feature and reuse the instance
as much as possible. This also allows calling B_TRANSLATE only once
instead of everytime the formatting needs to be done. We use either a
static instance (when the message pattern is constant) or a field (when
it is not known to be constant).
* Since the BMessageFormat instances are now reused, add locking to
avoid race conditions (ICU itself is thread safe, but the format pattern
is recreated when the locale is changed)
2014-10-08 15:12:48 +02:00
Adrien Destugues
0e7fcd84af PoorMan: use BMessageFormat. 2014-10-08 13:38:32 +02:00
Adrien Destugues
be93029899 More uses of BMessageFormat. 2014-10-08 13:17:17 +02:00
Adrien Destugues
baf0ed6a7b Time preferences: Another too wide tab label 2014-10-08 13:17:02 +02:00