Commit Graph

52 Commits

Author SHA1 Message Date
Vincent Sanders
0d811963c1 fixup all the remaining logging macro callsites
The semantic patch tool appears to have missed some difficult to
reason about callsites which have now been manually cleaned up
2015-05-28 17:06:18 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Witold Filipczyk
befa5e6ed3 To avoid namespace conflicts with ncurses add NetSurf key prefix.
Adds a NetSurf key code prefix of NS_ to all key codes.
2015-03-27 09:36:19 +00:00
Michael Drake
4402bcf779 Need nsurl. 2015-02-26 16:31:29 +00:00
Vincent Sanders
a325634882 fix errors in change url setting api to take an nsurl instead of a text string 2014-11-02 22:44:20 +00:00
Vincent Sanders
847e1111bc fix beos url setting function to return error code 2014-10-29 00:37:35 +00:00
Vincent Sanders
7ace528729 Update url setting API to return nserror code instead of calling warn_user 2014-10-29 00:18:12 +00:00
Michael Drake
5a8a97b324 Shouldn't need bw internals now. 2014-10-25 13:09:55 +01:00
Michael Drake
b40830bd3e Use API to access content for view source. 2014-10-25 13:08:28 +01:00
Vincent Sanders
f502ca3e69 update beos frontend to cope with updated operation table 2014-10-16 23:25:22 +01:00
Vincent Sanders
02bbaa3e88 split version info into its own header and remove unnecessary nesurf.h includes
The netsurf.h header should *only* contain the registration, core
initialisation and finalisation methods. Version information is best
placed in its own header.

Also remove any unneeded inclusion of this header limiting it to
solely the places the relevant API is required.
2014-10-13 15:08:16 +01:00
Vincent Sanders
17be8cf216 Put the font operations table alongside all the other core API
The netsurf core is driven from numerous operation tables most of
which are now set through a common netsurf_register() interface. The
font and plotting interfaces are currently separate and unlike all the
other operation tables are modified for differing contexts.

This change moves the font operations alongside all the other
operations table and remove unnecessary interaction with the renderers
font internals. Further this also removes the need for css internals
to be visible in frontends.
2014-10-13 11:56:31 +01:00
François Revol
34fdedba78 remove use of deprecated netsurf_quit variable in beos
The core no longer needs to run the event polling loop as fetches are now
scheduler driven. This is part of a series which will ultimately remove
netsurf_poll callback altogether.
2014-10-13 01:15:44 +02:00
François Revol
43fea75b72 beos: Disable non-working menu entries
So at lest people won't expect too much.
2014-07-31 11:33:39 +02:00
François Revol
fc290506a4 beos: Fix local variable shadowing a parameter 2014-06-20 15:19:10 +02:00
Vincent Sanders
87f6314dab move scheduleing into browser operation table 2014-03-09 15:37:40 +00:00
François Revol
4591b65ad9 beos: Fix build
One replacement was missed when changing browser_window_history_forward().
2014-02-20 16:02:43 +01:00
Michael Drake
a38a63a37e Make history internal to browser_window module. 2014-02-15 18:44:50 +00:00
Michael Drake
49bed056dd Make browser_window_navigate (un)verifiable flag match browser_window_create. 2014-02-10 22:40:04 +00:00
Michael Drake
af014bce99 Allow tab creation without history clone. Changes browser_window_create and browser_window_navigate flags. 2014-02-10 14:08:45 +00:00
Michael Drake
3d7cd77982 Simplify local history interface. 2014-02-08 22:43:54 +00:00
François Revol
c74bf433c3 beos: Fix updating system colors 2014-01-16 18:12:41 +01:00
François Revol
55bf16d754 beos: Better implementation of NSIconTextControl for the url bar
Instead of adding a child view we draw the bitmap over the child.
Fixup the TextRect also in Draw() which is called just before the
TextView's Draw().

It flickers a little less, and also respects the background color of
the text control when using a desktop theme.

Also drop a useless dynamic_cast.
2014-01-16 16:11:26 +01:00
Vincent Sanders
b7736bae2f split gui operations into core and window and move more operations into tables 2014-01-12 17:07:34 +00:00
Vincent Sanders
d3c392c3d3 Initial conversion of netsurf gui to callback vtable 2014-01-11 14:20:30 +00:00
François Revol
3a1bf5c20f beos: Also set LowColor on toolbar buttons when attached 2014-01-04 19:44:07 +01:00
François Revol
f713cdd90b beos: Add credits and licence buttons to about box
We'll simplify it to just mention version infos like on atari.
2014-01-04 19:44:05 +01:00
François Revol
967d930477 beos: Fix opening about from replicant popup 2014-01-04 19:44:03 +01:00
François Revol
bd89e5a088 beos: Fix background color for control on replicants
Still some redundancy there but it works.
2014-01-04 19:44:02 +01:00
François Revol
92afacbe6f beos: Add icon in url bar
A bit hackish, flickers on resize, but it works.
2014-01-04 19:44:01 +01:00
François Revol
fc782f55ba beos: Add a resize knob to replicants
The view resizes the base view by the relative mouse movement.

TODO: Add a bitmap to draw, for now it's ugly green.
2014-01-04 19:44:00 +01:00
François Revol
62f7cfb04b Fix Haiku build
Fix build of the BeOS code due to recent untested options commits.
2013-12-07 01:26:39 +01:00
Michael Drake
3f45e53539 s/history_core/local_history/ 2013-07-10 11:55:42 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
François Revol
48dc679d7b beos: Fix replicants
Waiting on the semaphore was not enough, it was causing a crash on
replicant removal. Now we wait for the replicant main thread to exit.
It fixes replicants, at least when a single one is used per application.
Using more than one still causes issues due to some libs not liking
being used twice (hlcache it seems).
2013-03-22 00:25:27 +01:00
Adrien Destugues - PulkoMandy
29f062e963 beos: Fix some cpp warnings 2013-03-09 20:51:22 +01:00
Michael Drake
a3c00c7192 Fixup for core selection change. 2013-02-22 15:12:10 +00:00
Vincent Sanders
869c7245f5 clean out useless outdated #if 0 blocks they serve no purpose and keep causing confusion in core refactors. Better examples are available in other frontends or in teh revision control system if strictly necessary 2013-02-18 14:47:21 +00:00
Vincent Sanders
529ca251fc rename flags for browser_window routines to be shorter 2013-02-18 11:51:42 +00:00
Vincent Sanders
b112dec78d change browser_window_create and refactor all callsites 2013-02-18 11:23:48 +00:00
Vincent Sanders
3bfb5b96a7 browser_window_navigate refactor 2013-02-18 11:23:27 +00:00
François Revol
87946c5de8 beos: Fix clipboard handling to use the new API 2013-01-20 18:00:36 +01:00
François Revol
1765212be2 beos: Fix replicating with empty URL in archive
We just got to about: when no valid URL is passed.
2012-11-25 20:26:41 +01:00
François Revol
38b17e1112 beos: Partial replicant instanciation fix
* use the correct resources
* work around a deadlock, allows BeHappy to start, though removing
the replicant from Tracker crashes
2012-11-25 19:47:48 +01:00
François Revol
9b009dfb01 beos: Fix toolbar border
Use B_PLAIN_BORDER instead of the default B_FANCY_BORDER.
Also force full redraw on resize to avoid artefacts.
2012-11-25 18:35:18 +01:00
François Revol
dea524f585 beos: gcc2 fix 2012-11-25 18:22:26 +01:00
Adrien Destugues - PulkoMandy
eb28188661 Update the BeOS/Haiku port
* Toolbar use HVIF icons on Haiku
* Download window
* Some tweaks to the event loop to let network traffic happen

Signed-off-by: François Revol <revol@free.fr>
2012-11-24 21:39:40 +01:00
Michael Drake
37d148f4d7 Stab at fixing beos build for private bw struct. 2012-08-22 17:47:20 +01:00
Michael Drake
d4ca800268 Use proper function for box tree dump. 2012-08-20 16:46:55 +01:00
Michael Drake
854e556041 Remove unused includes. 2012-08-20 15:00:23 +01:00