Commit Graph

49400 Commits

Author SHA1 Message Date
Adrien Destugues
e326520241 Fix bitmap scaling
Bug introduced in 810f0a42e5.
The uint8 cast were also acting as masks for each of the pixel
components, moving them out of the multiplications made things go wrong.

Use rgb_color instead of messing with bitshifts and masks for better
readbility (the colors are out of order, but the processing is the same
on each color so the end result is valid).
2014-01-14 19:12:45 +01:00
Adrien Destugues
7292163915 Add a placeholder icon to the URL bar
... shown when website has no favicon.

This avoids the URL moving by 16 pixels as the favicon is downloaded and
rendered.

Fixes #8888.

The icon is from Zumi's BToolbar set ("insert link") with some
tweakings. Something less colorful may be better.
2014-01-14 14:28:25 +01:00
Adrien Destugues
a98f119a60 Fix drawing glitch with small text sizes.
The GroupView sometimes has visible pixels when the text size is smaller
than the favicon height. Draw those with the same color as the textview
background.
2014-01-14 12:08:34 +01:00
Adrien Destugues
48af26c7d3 Don't reuse same tab for multiple bookmarks.
As WebKit is asynchronous to the window, when launching a request in a
BWebView, IsBlankTab() will keep returning true until it gets the
BMessage and updates its state.

When opening bookmarks or refs, we would send them too fast, not detect
this, and reuse the same tab for several items. Make sure the blank tab
is only used once when looping over the refs, and force opening all
remaining refs in new tabs of the same window.

Fixes #6625.

Also optimizes the ref loading by not looking up the window for each
ref. Pick one window, then use it for all the bookmarks in the loop.
2014-01-14 11:27:07 +01:00
Adrien Destugues
dd71f18175 Open bookmarks in the current window
* Instead of looking for the first window in the workspace, add the
current one to the message.
* Fixes #6623.
2014-01-14 10:31:41 +01:00
Kevin Harris
d21e9097b6 Use configured search string for searching
- The search query position is signified by %s in the search string,
- Automatically migrate the old default search string to the new one.

Patch from #9926 with some rework from me.
2014-01-14 09:39:42 +01:00
Freeman Lou
e13de87284 Installer: closing EULA with Alt-W continues to main app
* Shortcut issue - closing EULA window with Alt-W continues to main
  application window instead of sticking windowless application in
  the Deskbar tasks list. The idea is closing only the one window
  of two;
* Fixes #9982.

- GCI 2013
2014-01-13 20:01:04 +01:00
Jonathan Schleifer
9fc69d1b00 runtime_loader: Add __dso_handle.
The symbol is needed for global objects. Usually, GCC also requires
this, but for some reason, the linking error only occurs when using
Clang.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-13 19:35:34 +01:00
Jonathan Schleifer
e929cd2f8f ipv6 datagram: Fix Clang complaining about a flexible array member.
Interestingly, [0] should be as invalid in C++ as [] in this case, yet
Clang refuses [], but accepts [0].

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-13 19:16:31 +01:00
Jonathan Schleifer
9c707f06a2 udf: Move constant to header.
This way, it is a compile time constant and Clang does no longer
complain about dynamic arrays of non-POD types.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-13 19:15:58 +01:00
Jonathan Schleifer
76b12d6056 StackOrHeapArray: Add missing include of cstddef.
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-13 19:14:49 +01:00
Jonathan Schleifer
3d916a2cd7 Intel Partition Table: Remove dummy atomic_add.
This dummy was intended for boot code, however, atomic_add seems to be
already properly defined in boot code.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-13 19:14:34 +01:00
Jérôme Duval
a1c015a924 iprowifi4965: added several firmwares. 2014-01-13 18:03:02 +01:00
Adrien Destugues
0e766ecb5b allow BNavMenu to traverse symlinks
* Patch by stpere
* Fixes #6780.
2014-01-13 10:46:09 +01:00
Adrien Destugues
9ab54f9475 Filerequest: UrlDecode() the request.
Makes things work even if the filename has some URL-disallowed
characters (spaces, utf-8, or otherwise).
2014-01-13 09:18:42 +01:00
Stephan Aßmus
4c9d2df499 HaikuDepot: Forgot to rename RatePackageWindow.cpp in DoCatalogs 2014-01-13 09:10:43 +01:00
Adrien Destugues
b3cc244542 Simplify cookie string-ification code. 2014-01-13 09:05:19 +01:00
Adrien Destugues
aa5101ce5c Update HaikuWebKit package to version 1.2.3.
Older versions will not work anymore because of the API changes in
network kit (removal of nonstandard B_PROT_* status codes). x86 and
x86_64 packages have to be updated again.
2014-01-13 09:02:35 +01:00
Adrien Destugues
024e81af86 Update UserBuildConfig readme and sample
AddOptionalHaikuImagePackage is replaced with AddHaikuImagePackages.
2014-01-13 08:05:34 +01:00
Adrien Destugues
121a158f9c Lua: update to bugfixed package
The previous version didn't work at all.
2014-01-13 08:05:33 +01:00
Adrien Destugues
3d864cd870 Remove B_PROT_* and related code
Use standard error codes instead.
This allows using error code returned by the underlying functions
directly, and makes it possible to use strerror for debugging. So, we
can also remove StatusString() from the various *Request classes.
2014-01-13 08:05:32 +01:00
Adrien Destugues
5e9a96156d FileRequest: style fixes
Pointed out by axeld, stippi and waddlesplash. Thanks for watching.
2014-01-13 08:05:30 +01:00
Stephan Aßmus
a6c0fea79c HaikuDepot: Some preparations for adding rating comments
* The package info area toggles a package's rating to a "Rate package..."
  button when the mouse hovers it.
* Clicking that button opens a window where one can enter a rating.
* Totally not working yet, but I want this in VCS.
2014-01-12 22:06:37 +01:00
Stephan Aßmus
448c87fb4e TextDocumentView: Update TextEditor about certain changes 2014-01-12 22:06:36 +01:00
Stephan Aßmus
e9df9f664f Make TextEditor referenceable. 2014-01-12 22:06:35 +01:00
Stephan Aßmus
5c3fd4605e BView: Don't allow a view to add itself as a child. 2014-01-12 22:06:35 +01:00
Stephan Aßmus
6a2493e4a6 TextDocument.cpp: Fixed typo 2014-01-12 22:06:34 +01:00
Humdinger
193a3956d2 Improved error message
...in case a single drag&dropped file isn't an audio file.
2014-01-12 17:39:23 +01:00
Stephan Aßmus
130db54051 HaikuDepot: Added work-in-progress TextEditor class
The intention here is to be able to set it on a TextDocumentView to add
editing capabilities.
2014-01-12 13:54:03 +01:00
Stephan Aßmus
85ad88c67e HaikuDepot: Added simple TextSelection class. 2014-01-12 13:53:16 +01:00
Stephan Aßmus
810f0a42e5 IconUtis.cpp: Fixed cast. 2014-01-12 13:47:30 +01:00
Jonathan Schleifer
d1c7f766fd glibc: Remove a ++ that was accidentally added.
Thanks to PulkoMandy for noticing!

Work towards bug #10396
2014-01-11 17:33:42 -06:00
Jonathan Schleifer
624435c494 Add flags needed for Clang to the build system.
This uses a variable CLANG that should be set to the Clang version. For
now, this has to be done manually (e.g. when invoking jam using jam
-sCLANG=34), but later, this will be auto-detected.

Work towards bug #10396
2014-01-11 17:33:36 -06:00
Alexander von Gluck IV
4f357bc071 sysinfo: Improve x86 CPU information
* Displays standard CPUID, and shows what the
  internal CPUID used by OS.h *should* be.
* Should help out in identifying new CPU's
  as all end users have to do is run sysinfo
  to get the CPU info + value for OS.h
2014-01-11 16:14:22 -06:00
François Revol
586d22c9ba Fix function prototype to be valid C 2014-01-11 17:53:00 +01:00
autonielx
6414ae05c4 Update translations from Pootle 2014-01-11 06:18:54 +01:00
Jonathan Schleifer
faf564a527 netcat: Add missing declaration. 2014-01-10 22:32:29 +01:00
Jonathan Schleifer
b187bd95a0 compress: Add missing return types and declarations. 2014-01-10 22:32:21 +01:00
Jonathan Schleifer
04a0e9c7b6 ALM: Move forward declaration of Constraint to the right namespace. 2014-01-10 22:32:15 +01:00
Jonathan Schleifer
72b14059a9 Fix sizeof on private, non static variable. 2014-01-10 22:32:10 +01:00
Jonathan Schleifer
38fee4c388 glibc: Remove nested function.
Nested functions are a (again, broken) GNU extension which is not
supported by Clang. It has been replaced by a bunch of gotos and a
variable that works as a return address.
2014-01-10 22:32:05 +01:00
Jonathan Schleifer
4683fcc35c glibc: Correctly create weak symbols. 2014-01-10 22:31:58 +01:00
Jonathan Schleifer
f4c2f7ebdb Remove variable length arrays of non-PODs.
Variable length arrays of non-PODs are not part of the C++ standard, but
a GNU extension that never worked correctly. Instead, BStackOrHeap array
is used now, which makes sure that it's not too big for the stack, calls
all constructors and is valid C++.
2014-01-10 22:31:50 +01:00
Jonathan Schleifer
4bda0212ce Add BStackOrHeapArray. 2014-01-10 22:31:46 +01:00
Jonathan Schleifer
6abec6b93a Declare BLooperListIterator in the right place.
Before, it tried to typedef it to a private struct, but outside of the
class.
2014-01-10 22:31:37 +01:00
John Scipione
a2bf375cbd Use UTF-8 minus sign instead of dash 2014-01-10 15:19:22 -05:00
Adrien Destugues
090ba6d06b FileRequest: implement directory listings.
Use the EPFL (Easily Parsed File Listing) format. This is one of the
formats that WebKit allows for directory listings, and it's easily
parsed and generated.
2014-01-10 15:32:09 +01:00
François Revol
5143323fb6 myupdate: Close and restart Deskbar on update
Close Deskbar before trying to update and restart it afterward.
This way the addons are restored as they were before.
2014-01-09 17:08:22 +01:00
noryb009
f466a0b81e Fix Coverity CID 1108465: Use after free
Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2014-01-09 06:18:30 +01:00
Pawel Dziepak
082d3c1015 scheduler: Increase thread penalty at fork 2014-01-09 03:50:54 +01:00