Commit Graph

51005 Commits

Author SHA1 Message Date
François Revol
e95d0f00ce gopher: Set a default MIME type to force downloading 2014-07-26 01:45:40 +02:00
François Revol
cf2bf30633 gopher: Add TODOs 2014-07-26 01:45:16 +02:00
François Revol
0716bfd63c gopher: remove debug printfs 2014-07-26 01:44:54 +02:00
François Revol
6983b35de5 gopher: Add a stylesheet
Modified version from my attempt at adding gopher to NetSurf.
2014-07-26 01:44:31 +02:00
François Revol
ec0e815354 gopher: Handle audio and video types, add a default case 2014-07-26 01:44:09 +02:00
François Revol
0e48c9aecd gopher: Handle some more item types 2014-07-26 01:43:45 +02:00
François Revol
f74e08fca8 gopher: Handle info resources and add proper title
We now create a proper title from the error message, or
the TITLE resource if present.
2014-07-26 01:43:22 +02:00
François Revol
2e8b8fd046 gopher: Handle binary, directory and error types 2014-07-26 01:42:59 +02:00
François Revol
0c1a4ebf8b Preliminary support for Gopher
Currently parses information and text items and retrives files.
2014-07-26 01:42:36 +02:00
Oliver Tappe
1b4510eebf Put haiku repository onto image.
* Now that system updates seem to work properly, put the haiku
  repository config and cache file onto the image automatically.
* Adjust URL of haiku repository (it is currently redirected
  to some other URL at download.haiku-os.org, but that will be
  changed later).
2014-07-26 00:35:53 +02:00
Oliver Tappe
42c7371472 Let Package-Kit's FetchFileJob handle redirects.
* additionally, drop duplicate setting of CURLOPT_PROGRESSFUNCTION.
2014-07-26 00:20:13 +02:00
Adrien Destugues
a0209a665a Don't provide libtiff in haiku package.
The lib was moved to a separate package, and we should require it
instead.
2014-07-24 19:59:00 +02:00
John Scipione
d11a323120 TextView: Fix FBC size breakage, take 2
Double checked BeOS R5 & Haiku R1/A4 and BTextView should be 356
bytes, somewhere since then we've added 4 bytes. So, this commit
reduces the class size from 360 back to 356 by removing 1 reserved
int32 (instead of 2).

I believe the class size changed in hrev46798 as a result of adding
2 bools (1 byte each padded out to 4 bytes).

Sorry for the noise.
2014-07-24 13:55:09 -04:00
John Scipione
fb224a9f14 Revert "TextView: Fix FBC size breakage"
This reverts commit 8e268f7552.
2014-07-24 13:15:30 -04:00
John Scipione
dc4ae0e9c0 TextView: Fix regression for Home and End
... while Shift is held down in a selection.

Before this commit, if you had some text selected and you pressed
Home or End with a Shift held down the selection would not change.
This was annoying and most likely unintentional. Thank you Axel for
informing me of this problem.

After this commit if you have some text selected and you press Home
with a Shift key held down it will move the end of the selection to the
first character of the same line that the end of selection is on and if you
press End with a Shift key held down it will move the end of the selection
to the last character of the same line that the end of the selection is on.

I looked at how a bunch of different OS's and applications handled this
and found that there are a bunch of different behaviors we could use here,
and there doesn't appear to be any consensus as to what the "right" or
"wrong" way to do this is so please forgive me if this doesn't work exactly
as you expect it to.

Note that the implementation used here is very different from how BeOS
R5 worked. In BeOS R5 pressing Home or End with Shift held down
always extended the selection, it never subtracted from it.

In BeOS pressing Home with Shift held down extended the selection from
the left-most part of the selection to the first charcter of the same line.
Pressing End with Shift held down extended the selection from the
right-most part of the selection to the end of the same line.
2014-07-24 11:06:18 -04:00
John Scipione
1d1e61bb39 TextView: include re-arrange style fix
* Put #include TextView.h first as our style guide suggests.
* Put #include <new> in it's own C++ includes section
* also remove an extra newline
2014-07-24 11:06:12 -04:00
John Scipione
b55f61d65c TextView: update comments
Private Method docs are/should be in doxygen format. Remove \brief as doxygen
doesn't need this if you document along side the method.

Remove brief description comments from public methods, you'll need to look in the
Haiku Book for this now.

style squash
2014-07-24 11:03:56 -04:00
John Scipione
8e268f7552 TextView: Fix FBC size breakage
In hrev46796 I added two new private methods: _PreviousLineStart(),
and _NextLineEnd() which increased the size of the class breaking
binary compatability because I forgot to decrement the reserved array.

This commit decrements the reserved array restoring the class size
to the original size fixing the binary compat issue.

Thanks Axel for noticing.
2014-07-24 10:29:06 -04:00
John Scipione
fef862eb20 TextView.h rearrage virtual methods for FBC
The order is updated so the virtual methods appear in the same order
that they did in BeOS R5 with methods new to Haiku added to the bottom.

Perform() moves up, all other methods move below GetDragParameters(),
the last virtual method in BeOS R5's TextView.h.
2014-07-24 10:29:04 -04:00
Augustin Cavalier
8d31bd2e69 Upgrade Pe to 2.4.5.
Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
2014-07-24 16:16:43 +02:00
Adrien Destugues
b0ab67351d use unpacked scanlines when rendering gradients.
* There is no point in trying to pack the scanlines in a gradient, as it
is very likely that each pixel will have a different color.
* Moreover, the packed scanline generator will assume all pixels in the
* scanline have the same alpha value (for faster blending), and it may
* not be the case.

Fixes #2946.
Thanks to stippi and jessicah who helped tracking and understanding the issue.
2014-07-24 12:38:53 +02:00
Adrien Destugues
a694f30d6c Add more alpha gradient test cases
* Add a vertical linear gradient. This bypasses AGG and uses a faster
code path, which works.
* Add gradients drawn in a ClipToPicture() context. This uses an
* unpacked scanline rasterizer, which works.

This hints to the problem being the use of a packed scanline rasterizer,
with agg gradients touching the alpha channel.
2014-07-24 12:01:50 +02:00
Adrien Destugues
5f22a181ec Simplify code using BString features.
* No functional changes
* Why do in 10 lines what can be done in 1?
2014-07-24 09:46:24 +02:00
Adrien Destugues
ca38bad855 Missing parenthesis. 2014-07-24 09:26:09 +02:00
Jessica Hamilton
18eae6381e Bump revisions of gcc_x86 & haikuwebkit for gcc2h.
This will pull in the requirement for a newer haiku
revision, as the fix to WebPositive lies in haiku,
not haikuwebkit.
2014-07-24 02:33:52 +00:00
François Revol
aec644bf85 tty: Don't ignore errors when setting DTR
Instead we and the return value of both calls.

So if any fails we return an error.
2014-07-23 21:36:07 +02:00
François Revol
0be89c15ee tty: Add bitmask ioctls TIOCMBIS and TIOCMBIC
Equivalent to TIOCMSET + bitmask + TIOCMGET but with a single call.

Gnokii uses that.
2014-07-23 21:36:07 +02:00
John Scipione
970910c21e Runtime loader: Fix unchecked return value
Tested by running Attraction! from haikuware.com

CID 1228648
2014-07-23 14:44:36 -04:00
François Revol
741f2b55f2 glib2: updated package (fixed glib-gettextize) 2014-07-23 19:37:14 +02:00
François Revol
4e554681b7 Add a gcc2 version of libffi 2014-07-23 19:37:13 +02:00
John Scipione
3188d3d0bf Tracker: Remove logically dead code
Replace with an ASSERT that srcWindow != NULL by the time we've gotten
this far.

CID 1228649 and CID 1228650
2014-07-23 13:20:08 -04:00
Adrien Destugues
d1a5f90981 More test cases for gradients with alpha channel
* Swapping the opaque and transparent ends leads to different results,
* Linear gradients are also affected.
2014-07-23 17:59:37 +02:00
Adrien Destugues
5f6a39cabe Add testcase from #2946. 2014-07-23 16:24:08 +02:00
François Revol
ee58da76ed Add asciidoc and tig package 2014-07-23 15:01:27 +02:00
François Revol
c8826605df Guard header for use by assembler code
Somehow it ends up being used by shell.S for the verdex bootstrap.
2014-07-23 13:27:23 +02:00
François Revol
8bfb76fe23 Add a package for lynx
It's mostly because I need it for irssi docs.
2014-07-23 13:25:14 +02:00
Adrien Destugues
8fa9134445 Draw radial gradients using the proper radius. 2014-07-23 10:17:41 +02:00
Adrien Destugues
1f3acfaa51 Add a test for radial gradients.
* This shows that the radius is ignored and all gradients are drwan with
a radius of 100.
2014-07-23 10:17:25 +02:00
Adrien Destugues
15db99249a Simple test harness for app_server tests
This was developped for the transformations test, but can be used for
other tests too. Extract the relevant classes to a separate file.
2014-07-23 10:14:35 +02:00
Adrien Destugues
c5ed108884 Fix the test_app_server build. 2014-07-23 10:13:58 +02:00
Adrien Destugues
c5f7461870 Add avrdude package (with dependencies)
I confirmed that Akshay's patch to UHCI gets avrdude working with the
usbasp programmer.
2014-07-23 09:21:40 +02:00
Akshay Jaggi
15777340b1 Fix UHCI Short Packet Transfers 2014-07-23 09:21:39 +02:00
Axel Dörfler
7e4afecfd5 AboutSystem: minor coding style cleanup. 2014-07-23 00:39:42 +02:00
Augustin Cavalier
01133a682c AboutSystem: use parens instead of dashes to indicate nicknames
Having dashes is confusing because some people have dashes in their names,
so using parens eliminates the confusion.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2014-07-23 00:38:14 +02:00
Augustin Cavalier
5ccde6d3dd AboutSystem: move authors and translators info to Credits.h
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2014-07-23 00:37:58 +02:00
Adrien Destugues
6be2152bc4 libbind: allow underscores in domain names
As discussed in http://www.freelists.org/post/haiku-development/Proposal-adding-nochecknames-to-resolvconf-by-default

The underscore is handled like the hyphen, that is, it can only be in
the middle of a word. "a_b.com" is valid, but "a_.com" and "_a.com" are
not.

Patch is from http://lists.freebsd.org/pipermail/freebsd-arch/2003-March/000071.html
2014-07-22 18:08:24 +02:00
Adrien Destugues
807bd20a8f Allocate the default UrlContext as a BReferenceable
BUrlContext now inherits BReferenceable to make it easier to handle the
context lifespan. Make the default context an always-retained reference
to match this.

No functional change in normal conditions, however this avoids an assert
when BReferenceable is built in debug mode.
2014-07-22 17:27:50 +02:00
Jessica Hamilton
1a6ec00140 Re-enable TLS on x86_64 when cross-building.
Building gcc on x86_64 with TLS enabled has been fixed,
so this is to keep cross-builds and native builds in
sync.
2014-07-22 21:26:57 +12:00
Jessica Hamilton
3858b44850 Updated gcc & webkit packages for x86_64 with native TLS enabled. 2014-07-22 07:57:11 +00:00
Arvind S Raj
6d345e6c9d Fixed hrev47542 changeset to become sh compatible.
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2014-07-22 14:45:19 +12:00