Chris Young
47379c0444
Update treeviews to use event callback
2016-12-30 13:06:42 +00:00
Chris Young
9379a64c6d
Start tidying up Amiga event-handling code
...
As we used a shared message port, we call different event-handling functions for different window types.
This changes that so we register the event-handler as a callback so we can handle event processing for all windows generically.
Currently the main browser window and find window use the new approach, so the handling still has a long list of window types.
This should also make window_list private to gui.c
2016-12-30 00:59:12 +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
7fc6e6c0c0
Atari: Fix typo.
2016-12-29 15:08:44 +00:00
Michael Drake
32d2dda01c
Old tree code compat layer: Update so it still builds.
2016-12-29 15:01:07 +00:00
Michael Drake
c60ab801f3
Windows: Update for new hotlist API.
...
This allows the hotlist backend to work before the hotlist window opens.
2016-12-29 15:01:07 +00:00
Michael Drake
512a4335da
Atari: Update for new hotlist API.
2016-12-29 15:01:07 +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
Michael Drake
4e5e9f1f5a
gtk: Update for new hotlist API.
...
This allows the hotlist backend to work before the hotlist window opens.
2016-12-29 14:49:39 +00:00
Michael Drake
b6be869f19
Hotlist: Allow hotlist initilialisation without hotlist corewindow.
...
Now, hotlist_init can be called without a corewindow. This allows the
hotlist backend to be up and running, before any hostlist manager is
opened. Calling hotlist_manager_init attaches the hotlist to a corewindow.
2016-12-29 14:44:48 +00:00
Michael Drake
ded1979fa1
Treeview: Add API for attaching and detaching from corewindows.
2016-12-29 14:43:38 +00:00
Michael Drake
7750d926ad
Treeview: Allow treeview to be created "detached".
...
This allows treeviews to be constructed before their corewindow.
2016-12-29 14:42:25 +00:00
Michael Drake
93fdbcc6de
Treeview: Don't call corewindow callbacks if not attached to a corewindow.
2016-12-29 14:40:54 +00:00
Michael Drake
b93ae2c28f
Treeview: Convert to using corewindow callback wrappers.
2016-12-29 14:39:44 +00:00
Michael Drake
fb0cdfed79
Treeview: Add wrappers for corewindow callbacks.
...
Currently unused.
2016-12-29 14:29:48 +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
Michael Drake
49b1b0b3a5
Atari front end doesn't need the tree compat layer.
2016-12-28 19:17:23 +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
Vincent Sanders
c8c7de976a
Fix crash when treeview widget is reinitialised
...
The treeview widget can be repeatedly finialised and initialised. The
content ready flag was not being cleard on initialisation so content
was being used in an bad state. For example this caused an assert when
content_redraw() was called on non-ready resource handles.
2016-12-28 15:25:46 +00:00
Michael Drake
770c277ccc
Duktape: Prevent clang static analysis.
...
Restore 336326af3a
for 1.6.0 import.
2016-12-28 15:06:08 +00:00
Michael Drake
539d5da5c4
Duktape: Make declarations match definitions for duk_raw_read_xxx_be
...
Restore 6d63f7959a
for 1.6.0 import.
2016-12-28 15:04:08 +00:00
Michael Drake
7c03ae91fd
Duktape: Update to version 1.6.0.
2016-12-28 15:01:03 +00:00
Vincent Sanders
f68a3f9d61
improve gtk corewindow documentation
2016-12-26 13:24:22 +00:00
Vincent Sanders
f27cc16d42
improve doc comments in windows corewindow handling
2016-12-26 13:24:12 +00:00
Vincent Sanders
d2742077b9
improve corewindow API documentation
2016-12-24 23:31:47 +00:00
Vincent Sanders
b227be8cd2
fix haiku target selection from commandline
2016-12-22 16:04:59 +00:00
Michael Drake
71983d527e
Tree compat layer: Fix assertion for multiple SSL cert windows.
...
Use corewindow API rather than this compat layer to avoid the assertion.
2016-12-18 13:03:07 +00:00
Michael Drake
54f01c7d7b
RISC OS: Remove unused function declaration.
2016-12-18 13:02:02 +00:00
Vincent Sanders
6c441fd4b1
remove unecessary include of depricated tree interface from beos
2016-12-16 15:14:26 +00:00
Vincent Sanders
7a5b50be94
move test script into utils
2016-12-16 14:45:16 +00:00
Chris Young
9d77dc83bd
Never warn the user about multiple tabs being open when we're in the process of quitting.
2016-12-15 18:23:52 +00:00
Chris Young
f04103398b
Avoid leaking memory when typing
2016-12-11 23:04:13 +00:00
Chris Young
407e58406b
Remove nonsense comments
2016-12-11 17:33:31 +00:00
Chris Young
7318b5b65a
RISC OS: Free nsoptions
2016-12-11 16:47:14 +00:00
Chris Young
4ad375c3b0
Ensure memory used by Messages is freed on exit
2016-12-11 16:43:48 +00:00
Chris Young
ba0895121b
Ensure we close all opened resources when we early exit
2016-12-11 16:16:11 +00:00