Commit Graph

1971 Commits

Author SHA1 Message Date
Chris Young
098fbb628b Move some init functions together for the sake of clarity 2014-11-10 19:01:30 +00:00
Chris Young
225161b05e Move MIME cleanup before NetSurf's internal exit. 2014-11-10 18:58:58 +00:00
Chris Young
16e80452c2 Remove gui_init and merge the contents into main() 2014-11-10 18:57:38 +00:00
Chris Young
7bf92f6a04 Remove die()
Terminating execution abruptly on AmigaOS is dangerous.
2014-11-10 18:56:09 +00:00
Chris Young
9bbb737fbf Fix warnings 2014-11-10 18:48:26 +00:00
Chris Young
7e5ed88763 Fix warnings, formatting 2014-11-10 18:41:38 +00:00
Chris Young
9f0b252371 Fix warnings 2014-11-09 19:58:19 +00:00
Chris Young
a84f2d2290 Fix warning 2014-11-09 19:56:29 +00:00
Chris Young
8557992979 Fix warnings 2014-11-09 19:53:24 +00:00
Chris Young
53482c68cf Fix warnings 2014-11-09 19:44:59 +00:00
Chris Young
9e0d4e4947 Fix warning 2014-11-09 19:40:19 +00:00
Chris Young
a6335a610e Fix warning 2014-11-09 19:39:36 +00:00
Chris Young
7711652819 Fix warnings 2014-11-09 19:38:47 +00:00
Chris Young
c62f967935 Fix warnings 2014-11-09 19:37:35 +00:00
Chris Young
1d07bd0657 Fix warnings 2014-11-09 19:34:57 +00:00
Chris Young
04c80ce0a7 Fix warnings 2014-11-09 19:26:59 +00:00
Chris Young
052445a0e1 Fix warnings 2014-11-09 19:17:35 +00:00
Chris Young
f4329c54ba Fix warnings 2014-11-09 19:04:56 +00:00
Chris Young
e0833a7f2e Fix warnings 2014-11-09 01:10:52 +00:00
Chris Young
42f1e685b3 Fix warnings 2014-11-09 01:07:35 +00:00
Chris Young
278dcaa31b Fix warnings 2014-11-09 01:04:35 +00:00
Chris Young
5304f2a2a1 Fix warnings 2014-11-09 01:00:08 +00:00
Chris Young
de1fccd8c4 Fix warnings 2014-11-09 00:56:11 +00:00
Chris Young
8299f923f8 Fix warnings, remove unused code. 2014-11-09 00:48:04 +00:00
Chris Young
659d3913ca Fix warning 2014-11-09 00:39:17 +00:00
Chris Young
e8126d2ee9 Fix warnings 2014-11-09 00:37:35 +00:00
Chris Young
455e4d3d21 Don't bug the user if a non-essential library can't be opened - just log it.
Also log if the interface can't be obtained.  If we've asked for the right library version, this should never fail.
2014-11-09 00:25:29 +00:00
Chris Young
4329c7a328 Terminate execution if an essential library fails to open 2014-11-09 00:06:56 +00:00
Chris Young
30cdaa1aa9 Log library open attempts 2014-11-09 00:06:56 +00:00
Chris Young
c2eb205685 Open libraries *before* we need them... 2014-11-09 00:06:56 +00:00
Chris Young
2698ad474e All required libs 2014-11-09 00:06:55 +00:00
Chris Young
d3f7d78dae Fix graphics.library 2014-11-09 00:06:55 +00:00
Chris Young
84020bb355 More libraries, tidy-up 2014-11-09 00:06:55 +00:00
Chris Young
998f9b4990 Use macros for clarity 2014-11-09 00:06:55 +00:00
Chris Young
3c1aeebb1e Fix headers 2014-11-09 00:06:55 +00:00
Chris Young
9601ddacad Add new libs file to centrally open/close required libraries, and move a couple of the existing manual opens to it. 2014-11-09 00:06:55 +00:00
Chris Young
4c7ef8db3f remove -lauto 2014-11-09 00:06:55 +00:00
Vincent Sanders
8f64d5d223 Improve Doxygen documentation 2014-11-08 12:35:11 +00:00
Vincent Sanders
f287379a7c Fix several doxygen issues 2014-11-08 11:38:20 +00:00
Chris Young
c637cd04b1 Don't crash if download dir not set 2014-11-04 18:33:44 +00:00
Vincent Sanders
349e588f81 Fix stupid nsurl struct mistake for amiga. 2014-11-03 23:19:23 +00:00
Vincent Sanders
bdfedb686b replace save_link operation table entry usage of textural url with nsurl 2014-11-03 23:05:59 +00:00
Vincent Sanders
c14ddad660 change url setting api to take an nsurl instead of a text string 2014-11-02 22:30:45 +00:00
Vincent Sanders
03abea12a7 fix errors introuced with previous header cleanup. 2014-11-02 20:39:15 +00:00
Vincent Sanders
c31c4babe1 Change contextual content retrieval to browser features.
Update the API which allows frontends to acquire the page features
(images, link urls or form elements) present at the given coordinates
within a browser window.

By making this an explicit browser_window API and using the browser.h
header for the associated data structure with a more appropriate API
naming the usage is much more obvious and contained.

Additionally the link url is now passed around as a nsurl stopping it
being converted from nsurl to text and back again several times.
2014-11-02 15:46:42 +00:00
Michael Drake
0f12325506 Don't need old URL header. 2014-10-31 14:39:11 +00:00
Vincent Sanders
ce3d991918 use nsurl_nice and remove url_nice
change all callers over to using new API for generating nice filenames
from a url and remove the old API.
2014-10-31 00:24:57 +00:00
Chris Young
c3522ea747 Change min stack (again) to 128K
It has come to my attention that some websites (eg amigakit.com) are using marginally more than the 96K stack space set previously.  This should give plenty of breathing space.
2014-10-30 21:51:52 +00:00
Vincent Sanders
d900feefba add missing include to amiga history 2014-10-29 00:26:48 +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
Chris Young
4b941297aa If the initial download dir is changed, update requesters immediately to use that as the next location. 2014-10-28 20:27:14 +00:00
Vincent Sanders
bbcb7d91b2 fix amiga pdf save include 2014-10-27 00:07:15 +00:00
Vincent Sanders
d204d6d555 Clean up saving as PDF
This removes the global PDF_Password interface that had completely
bitrotted and moves it into the standard misc operation table with a
sensible defualt implementation.

This also cleans up and fixes the gtk frontend implementation of the
pdf password callback so it compiles.

Finally this moves the implementation to a sensible place alongside
the other exporters reducing target makefile complexity futher.
2014-10-26 23:53:14 +00:00
Chris Young
29dfdd459d Move scroller check into update_extent, where it makes more sense 2014-10-26 22:22:15 +00:00
Chris Young
bad7780378 Check scroller requirements as part of the reformat. 2014-10-26 21:30:19 +00:00
Chris Young
784d893eb7 Avoid a crash on exit in kiosk mode 2014-10-26 17:08:23 +00:00
Chris Young
36a3e58c06 Expand status bar to entire window width 2014-10-26 17:00:18 +00:00
Chris Young
340d74ae4f Make the new hscroller work properly 2014-10-26 16:42:00 +00:00
Chris Young
80b195cdd5 Move the hscrollbar inside the window 2014-10-26 16:35:05 +00:00
Chris Young
17b87a60cf Offset new windows as per style guide 2014-10-26 16:12:34 +00:00
Chris Young
0c77d85f89 Make window counting a generic function 2014-10-26 15:41:44 +00:00
Chris Young
b751513d6f Schedule redraws for 1cs to ensure they take place after reformats (which are scheduled by the core for 0cs) 2014-10-26 13:22:02 +00:00
Chris Young
a01cb0f635 Don't need redraw_scheduld as the scheduler stops it being scheduled twice anyway 2014-10-26 13:18:19 +00:00
Chris Young
69c7b6b1f5 Fix button update, avoid forward decl 2014-10-26 13:11:05 +00:00
Vincent Sanders
14e2829489 remove the die API from the core.
The die() API for abnormal termination does not belong within the core
of netsurf and instead errors are propogated back to the callers.

This is the final part of this change and the API is now only used within
some parts of the frontends
2014-10-26 12:42:53 +00:00
Michael Drake
a913af5cf5 Fix url variable name. 2014-10-26 10:30:22 +00:00
Michael Drake
2da8ef3e83 Add missed semicolon, and ensure nsurl is unreffed. 2014-10-26 10:25:31 +00:00
Michael Drake
b16038cb1e We have all the schemes as interned strings, so compare them instead of strncasecmp. 2014-10-26 10:18:40 +00:00
Michael Drake
f7781a8778 Don't need url.h 2014-10-26 10:18:39 +00:00
Michael Drake
87b1da5921 Use nsurl to extract scheme. 2014-10-26 10:18:31 +00:00
Chris Young
49873c8bf3 Cache size gadget width 2014-10-25 20:17:33 +01:00
Chris Young
d89f654fbe Correct comment 2014-10-25 20:08:56 +01:00
Chris Young
a2e999584c Use the correct size gadget width (thx tboeckel) 2014-10-25 20:07:58 +01:00
Chris Young
41b08da31a Check scroller requirement after a resize 2014-10-25 20:03:14 +01:00
Chris Young
b2ff4877e4 Remove the vertical scroll bar if there's nothing to scroll 2014-10-25 19:59:11 +01:00
Chris Young
7e95b7ffb1 Remove some old VertProp tags 2014-10-25 19:29:51 +01:00
Chris Young
b7b4db8520 Merge branch 'chris/shorter-vscrollbar'
Move the vertical scroller into the window area and allow it to be removed when eg. framesets are being displayed.
2014-10-25 19:27:40 +01:00
Chris Young
d31aa9a959 Use more sensible default value for size gadget width 2014-10-25 19:24:58 +01:00
Chris Young
fa7d44702a Fix warnings 2014-10-25 16:22:28 +01:00
Chris Young
4541d15437 Fix warnings 2014-10-25 16:22:28 +01:00
Chris Young
2ad41a78c4 Returns bool, not void 2014-10-25 15:52:10 +01:00
Chris Young
8d930afb3d Reduce code duplication 2014-10-25 15:49:42 +01:00
Chris Young
088c03a9b7 Reformat page after scrollbar add/remove 2014-10-25 15:47:05 +01:00
Chris Young
e22273c0ff Remove scrollbar for framesets too 2014-10-25 15:38:57 +01:00
Chris Young
8590780ff5 Avoid forward decl, add comments 2014-10-25 15:29:12 +01:00
Chris Young
90e6cf85b6 Toggle vscroll on/off as needed 2014-10-25 15:23:31 +01:00
Chris Young
f5d866ab70 Rename OID_VSCROLL to GID_VSCROLL and ensure it exists before referencing 2014-10-25 15:08:04 +01:00
Chris Young
6034e69ad1 Creat ehte kiosk window similar to the normal one 2014-10-25 14:41:10 +01:00
Chris Young
78a8f1d967 Remove TODO: LM_REMOVECHILD disposes the objects already. 2014-10-25 14:30:17 +01:00
Chris Young
f787b22594 Add a TODO, don't break kiosk window 2014-10-25 13:29:10 +01:00
Chris Young
f9ed0af8d8 Remove built-in window scrollbar and replace with a scroller.gadget.
The style does not match the window border so looks a bit odd.
2014-10-25 13:17:49 +01:00
Michael Drake
94f32b8369 Move create_form_select_menu to window gui table. 2014-10-24 20:45:21 +01:00
Chris Young
7cfec69700 Ensure the throbber is stopped when destroying a gui_window. Fixes 2205. 2014-10-23 18:48:31 +01:00
Chris Young
d38f07cc04 Use url_nice to generate the initial filename for save requesters.
Note: We always strip the extension (AmigaOS doesn't need it anyway), which might not necessarily be what you want.
2014-10-23 18:42:07 +01:00
Vincent Sanders
56a5ad11f3 remove unecessary include of browser.h in amiga frontend 2014-10-17 23:18:58 +01:00
Vincent Sanders
0b64df140c Update amiga frontend for split operation table header changes 2014-10-16 22:33:44 +01:00
Michael Drake
63645c4c32 Fix core create_form_select_menu API to pass gw, rather than bw out to front ends. 2014-10-16 12:39:31 +01:00
Vincent Sanders
30f118a86d remove unecessary css includes from fronetends 2014-10-13 15:45:51 +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
Vincent Sanders
3fa0ed01c0 add API to set DPI 2014-10-13 02:34:10 +01:00
Vincent Sanders
265f63e679 remove use of deprecated netsurf_quit variable
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.

The Amiga maintainer probably wants to look at moving the ami_quit
signalling inside ami_handle_msg() to further reduce overhead.
2014-10-12 10:05:01 +01:00
Chris Young
ad22d5446c Add three languages which now have OS4 language drivers. 2014-10-03 17:55:43 +01:00
Chris Young
49fd5ea238 Correct Lock() parameter 2014-09-29 19:01:25 +01:00
Chris Young
e994704d5c void function 2014-09-20 13:44:28 +01:00
Chris Young
1b2225ea07 Move log init so it starts earlier 2014-09-20 13:38:38 +01:00
Chris Young
9e6b0fb8b0 Adjust min stack to 96K following evaluation. 2014-09-07 14:09:11 +01:00
Chris Young
5e0d290f81 Ensure release version revision numbers are higher than CI build revision numbers. 2014-09-02 20:11:19 +01:00
Chris Young
ca6d6abf0f Remove links to files that don't exist in the archive 2014-09-02 19:03:07 +01:00
Chris Young
fa437777c4 Update version numbers for new release cycle. 2014-09-02 19:00:21 +01:00
Chris Young
93d7cf59ff Reduce stack back down to 64K 2014-09-02 18:58:28 +01:00
Michael Drake
34d7edcdc6 Remove debug logging. 2014-08-30 15:40:00 +01:00
Chris Young
5b815861f3 Ensure the favicon updates correctly when we close a tab 2014-08-25 20:20:16 +01:00
Chris Young
956997b178 Avoid a crash when running on own screen 2014-08-25 20:13:59 +01:00
Chris Young
349913572c Fix web search from context menu 2014-08-24 16:54:20 +01:00
Chris Young
2353790a45 Reduce minimum stack to 128K.
This should make it easier to see if bug#2177 is fully resolved.
2014-08-03 12:24:08 +01:00
Chris Young
116149c61c Use label.image's In Menu Mode when available 2014-07-28 18:22:09 +01:00
Chris Young
989e82544e Increase minimum stack to 1MB 2014-07-26 13:11:44 +01:00
Chris Young
db28f295a8 Raise minimum stack to 512K 2014-07-26 00:24:19 +01:00
Chris Young
36411a2ba5 Fix tab title when "always show tabs" is enabled and only one tab is present 2014-07-12 16:09:08 +01:00
Chris Young
d61713d107 Don't update if there is no browser attached (fixes potential crash on startup) 2014-07-12 16:01:43 +01:00
Chris Young
c3514c2c50 Ensure tab titles are updated if the tab bar is newly added 2014-07-12 15:44:14 +01:00
Vincent Sanders
3a9fa29ee5 try and improve usage of browser window internals 2014-07-06 18:34:34 +01:00
Vincent Sanders
0f151e37cb Merge branch 'vince/reformatpending'
Conflicts:
	amiga/gui.c
2014-07-06 10:45:31 +01:00
Chris Young
f5c62c2291 Stop the throbber resetting itself to frame 1 2014-07-05 19:07:20 +01:00
Chris Young
ab5b2d9afe Move favicon redraw to scheduled callback 2014-07-05 19:00:21 +01:00
Chris Young
21a21e8143 Move the throbber to proper scheduled operation 2014-07-05 18:44:44 +01:00
Chris Young
0e28071fa3 Moved forced throbber redraw to a scheduled callback 2014-07-05 17:59:54 +01:00
Chris Young
bdcb123f0a Replace a flag for search ico refresh with a scheduled callback 2014-07-05 17:47:40 +01:00
Chris Young
f3508427f8 Ensure Ctrl-C does not terminate NetSurf abruptly. 2014-07-05 09:36:43 +01:00
Chris Young
eccfdec27a Wait for network activity instead of polling. 2014-07-03 20:53:28 +01:00
Chris Young
074e6f3ec6 Remove some code duplication, tidy up and documentation 2014-07-03 00:08:56 +01:00
Chris Young
f52501d9ad If we try to duplicate an existing scheduled event, reschedule it instead. 2014-07-02 18:43:44 +01:00
Chris Young
5105249bf7 tidy up schedule removal 2014-07-02 18:35:16 +01:00
Vincent Sanders
8848f754e0 documentation fixes and cleanups 2014-07-02 16:39:08 +01:00
Chris Young
4497e9aab7 Neaten up sub-menu highlighting 2014-07-01 23:16:24 +01:00
Chris Young
291f1094eb Add some space between icon and text in the menu 2014-07-01 18:29:10 +01:00
Vincent Sanders
18aefabd20 change reformat to be driven from the scheduler like redraw 2014-07-01 09:27:20 +01:00
Vincent Sanders
2330503533 Merge branch 'vince/fetchschedule' 2014-07-01 09:03:47 +01:00
Chris Young
01088bb63b Re-disable the favicon render hook 2014-07-01 08:28:07 +01:00
Chris Young
1aed82b074 fix warnings 2014-06-30 22:38:58 +01:00
Chris Young
846b534854 Recreate the entire menu when the hotlist window is closed.
This ensures the hotlist entries in the menu are in sync with reality, and mirrors the existing hotlist toolbar update.
2014-06-30 22:37:05 +01:00
Chris Young
01271f4061 Re-enable favicon render hook. Not sure why or when this was disabled. 2014-06-30 22:21:10 +01:00
Chris Young
0c5bb37bea Implement a very basic favicon cache for the hotlist menu to use 2014-06-29 22:35:52 +01:00
Vincent Sanders
8944edd649 convert all frontends to scheduled fetch operation 2014-06-26 19:05:59 +01:00
Vincent Sanders
4b2101ba6a clean up the fetcher factory and improve its API 2014-06-19 18:27:24 +01:00
Chris Young
904cefd388 Enable temporary change of search provider from the main browser window 2014-06-15 15:48:55 +01:00
Chris Young
3de529d815 Change the search ico to be a chooser gadget with the icon as the display 2014-06-15 15:39:49 +01:00
Chris Young
d552865da1 Use search provider iterator.
Use a List instead of an array as it is more flexible
2014-06-15 14:56:09 +01:00
Vincent Sanders
8e29e517d5 fix disc cache size option to be unsigned 2014-06-09 13:13:59 +01:00