Commit Graph

78 Commits

Author SHA1 Message Date
Daniel Silverstone
8123e65351 Finalise nslog layer properly in closedown 2017-09-10 14:22:05 +01:00
Vincent Sanders
5d6f189d8b Fixup everything the semantic patch missed 2017-09-07 18:12:09 +01:00
Vincent Sanders
75018632a9 Use coccinelle to change logging macro calls in c files
for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done

@@ expression E; @@
-LOG(E);
+NSLOG(netsurf, INFO, E);
@@ expression E, E1; @@
-LOG(E, E1);
+NSLOG(netsurf, INFO, E, E1);
@@ expression E, E1, E2; @@
-LOG(E, E1, E2);
+NSLOG(netsurf, INFO, E, E1, E2);
@@ expression E, E1, E2, E3; @@
-LOG(E, E1, E2, E3);
+NSLOG(netsurf, INFO, E, E1, E2, E3);
@@ expression E, E1, E2, E3, E4; @@
-LOG(E, E1, E2, E3, E4);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4);
@@ expression E, E1, E2, E3, E4, E5; @@
-LOG(E, E1, E2, E3, E4, E5);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5);
@@ expression E, E1, E2, E3, E4, E5, E6; @@
-LOG(E, E1, E2, E3, E4, E5, E6);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6);
@@ expression E, E1, E2, E3, E4, E5, E6, E7; @@
-LOG(E, E1, E2, E3, E4, E5, E6, E7);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
2017-09-06 18:45:27 +01:00
Michael Drake
d70beb28db Content API: Make content_broadcast take pointer to content_msg_data. 2017-08-26 15:50:03 +01:00
Vincent Sanders
449e760d71 rationalise the RISC OS browser window implementation 2017-06-11 11:46:50 +01:00
Vincent Sanders
ee749f2b11 cleanup use of internal frames scrollbar widget header 2017-06-11 11:46:50 +01:00
Michael Drake
98a73379fe RISC OS: Ensure core windows are fully initialised. 2017-06-11 10:10:25 +01:00
Vincent Sanders
653ccb78a9 Split local history data from viewer in headers
This separates the local history data object API from the viewing
API. It also changes the api to return nsurl references instead of
strings.
2017-06-10 18:37:21 +01:00
Michael Drake
772ebc69c9 RISC OS: Local history now behaves the same as other core windows. 2017-06-10 12:02:44 +01:00
Vincent Sanders
703427a486 Update documentation removing junk and moving to markdown for most text files 2017-06-09 17:30:00 +01:00
Vincent Sanders
6b997431d3 update RISC OS frontend to use core window for local history 2017-05-28 22:07:33 +01:00
Vincent Sanders
6736ab9b72 fix risc os dialog opening relative to parent 2017-05-28 17:28:28 +01:00
Vincent Sanders
cef92b0fc7 update riscos frontend for corewindow API change 2017-05-23 09:46:56 +01:00
Michael Drake
e431e6181b RISC OS: Init core hotlist in read-only mode for external hotlist.
Note, the core hotlist is initialised in either normal or read-only
modes.  This is done once on application startup.  Toggling the
external hotlist option at runtime may cause loss of hotlist changes
made during the session.
2017-04-28 12:10:30 +01:00
Vincent Sanders
c100a33285 Update riscos frontend for set_scroll API change 2017-04-26 22:27:11 +01:00
Vincent Sanders
be7aef9231 update riscos frontend to remove reformat API 2017-04-26 10:00:51 +01:00
Michael Drake
0d8ed168b2 RISC OS: Update for core hotlist API change. 2017-04-25 12:13:07 +01:00
Vincent Sanders
febbdec345 update riscos frontend to invalidate window API 2017-04-19 16:27:14 +01:00
Vincent Sanders
0f69965805 clean up some of the doxygen generation warnings 2017-02-19 11:32:17 +00:00
Vincent Sanders
1666944c7e Merge branch 'vince/plotctx' 2017-02-12 20:01:05 +00:00
Michael Drake
703fd10400 RISC OS: Initialise nsfont before hotlist.
This should allow the treeview to measure the width of label text.
2017-02-12 10:18:02 +00:00
Vincent Sanders
3ea137ca3d update RISC OS plotters to new API 2017-02-11 13:57:07 +00:00
Vincent Sanders
6075feb487 create netsurf inttypes header to have portable integer formatting macros 2017-01-21 14:20:55 +00:00
Vincent Sanders
70d700b26c rationalise use of utils/utils.h header 2017-01-19 21:15:08 +00:00
Vincent Sanders
7dab7cb43d move plot style header to netsurf include directory
move plotter style header and adjust all callers to use only what they
actually require.
2017-01-13 10:03:24 +00:00
Daniel Silverstone
9e03737627 Dave Higton's fix for 'tree' windows not being movable off-screen 2017-01-10 11:23:24 +00:00
Vincent Sanders
9be0f4ccaf fixup usage of directory creation macro in Makefiles 2017-01-07 13:21:25 +00:00
Michael Drake
7ca75a4cee RISC OS: Fix hotlist save.
The read and write paths for hotlist are different:

    #define CHOICES_PREFIX "<Choices$Write>.WWW.NetSurf."

    NSOPTION_STRING(hotlist_path, "NetSurf:Hotlist")
    NSOPTION_STRING(hotlist_save, CHOICES_PREFIX "Hotlist")

This switches to using hotlist_save for writing.
2016-12-29 15:15:41 +00:00
Michael Drake
354656b442 RISC OS: Update for new hotlist API.
This allows the hotlist backend to work before the hotlist window opens.
2016-12-29 14:51:43 +00:00
Vincent Sanders
5f32f9ddd6 Revert "RISC OS: Squash unused variable."
This reverts commit 7aa1dd601e.
2016-12-29 12:56:38 +00:00
Vincent Sanders
e7598fb0b5 fix unexpected opening of windows in riscos
closed windows were re-opened in RISC OS because corewindow updates
failed to take into account their current state when teh core updated
the content size.
2016-12-29 12:54:38 +00:00
Michael Drake
7b7b1507d0 Revert "RISC OS: Ensure core's hotlist_init is called on startup."
This reverts commit 743637a8d2.
2016-12-29 12:21:03 +00:00
Michael Drake
2917af0a96 RISC OS: Squash set but unused variable. 2016-12-29 12:01:48 +00:00
Michael Drake
7aa1dd601e RISC OS: Squash unused variable. 2016-12-29 12:01:29 +00:00
Michael Drake
16b8d524e8 RISC OS: Squash unused variable.
This has been redundant since frames were moved into the core.
The all frames checkbox should be removed from the scale dialogue.
2016-12-29 12:00:03 +00:00
Michael Drake
07456db2dc RISC OS: Squash use of uninitialised variable. 2016-12-29 11:59:27 +00:00
Michael Drake
743637a8d2 RISC OS: Ensure core's hotlist_init is called on startup.
Until the core hotlist_init is called, it is impossible to add
pages to the hotlist.  This means we need to ensure it is called
on startup, rather than when first showing the hotlist.
2016-12-29 11:45:21 +00:00
Vincent Sanders
96e073a297 Merge branch 'vince/ro-corewindow'
Conflicts:
	frontends/riscos/sslcert.h
2016-12-28 16:14:19 +00:00
Vincent Sanders
af6139bcb5 remove RISC OS treeview wrapper implementation 2016-12-28 16:07:04 +00:00
Vincent Sanders
337f9948d5 Update RISC OS ssl certificate viewer to core window interface 2016-12-28 15:26:02 +00:00
Vincent Sanders
72d3bec792 Update RISC OS global history to use core window interface 2016-12-28 15:26:02 +00:00
Vincent Sanders
af3a78060f Update RISC OS hotlist to use core window interface 2016-12-28 15:26:02 +00:00
Vincent Sanders
05a35725d1 Update RISC OS cookie window to use core window interface 2016-12-28 15:25:57 +00:00
Vincent Sanders
e2bad05338 RISC OS corewindow implementation 2016-12-28 15:25:46 +00:00
Vincent Sanders
c7cf2d18de reformat riscos treeview source so it can be understood 2016-12-28 15:25:46 +00:00
Michael Drake
54f01c7d7b RISC OS: Remove unused function declaration. 2016-12-18 13:02:02 +00:00
Chris Young
7318b5b65a RISC OS: Free nsoptions 2016-12-11 16:47:14 +00:00
Vincent Sanders
bcce8cc7b4 fix spelling of retrived 2016-11-21 00:07:13 +00:00
Vincent Sanders
a2396edde4 complete transition to locale independant core operation
The netsurf core no longer uses any locale dependant operations
excepting the mall number or cases where such operations are
explicitly wanted.

the netsurf_init now calls setlocale with the empty string and lets
the c library setup as per its specific implementation.

any core functionality that specificaly processes ascii text must use
the utils/ascii.h header to do so.
2016-09-29 22:37:10 +01:00
Michael Drake
1457a049bb Treeview: Add treeview_font_size to options.
Default is 11pt, and RISC OS overrides to 12pt.
2016-08-11 08:15:21 +01:00