Commit Graph

520 Commits

Author SHA1 Message Date
Chris Young
c2f9c06de3 Avoid failing completely if gui_window is NULL
svn path=/trunk/netsurf/; revision=10194
2010-03-28 21:40:22 +00:00
Chris Young
74108d1e09 Allow NetSurf to be opened from the CLI without a URL specified.
Add new switch FORCE which will force a new instance of NetSurf to open rather than
opening a new window in the already-running application (intended for debugging when
NetSurf has crashed)

svn path=/trunk/netsurf/; revision=10189
2010-03-28 16:42:33 +00:00
Chris Young
5bb5cedec5 Changes required for new-cache
svn path=/trunk/netsurf/; revision=10186
2010-03-28 15:51:05 +00:00
Daniel Silverstone
270ef59a98 Merge jmb/new-cache; r=dsilvers,rs=vince
svn path=/trunk/netsurf/; revision=10180
2010-03-28 12:56:39 +00:00
Chris Young
4b77c59a39 Stop javascript: links being passed to launch-handler
svn path=/trunk/netsurf/; revision=10149
2010-03-25 22:44:59 +00:00
Chris Young
f6d0a6aa05 If a file isn't dropped over a text box or a file box, just load it.
svn path=/trunk/netsurf/; revision=10148
2010-03-23 23:09:17 +00:00
Chris Young
01cf7baac6 Tidy up. Can almost tell what is going on in gui_init now.
svn path=/trunk/netsurf/; revision=10146
2010-03-23 22:55:56 +00:00
Chris Young
861b5b4953 Factor Amiga theme-related code out to a new file. This includes all throbber and
mouse pointer code (which are "theme modifiable") as well as normal theme reading
code.

svn path=/trunk/netsurf/; revision=10145
2010-03-23 22:27:33 +00:00
Chris Young
48aa33f773 Fix crash when attempting to open context menu in a browser_window with no content.
svn path=/trunk/netsurf/; revision=10143
2010-03-21 19:29:33 +00:00
Chris Young
dd5370ef83 Avoid corruption of bottom window border after resize
svn path=/trunk/netsurf/; revision=10140
2010-03-21 14:53:09 +00:00
Chris Young
033b5d815a Move code which extracts the filename from a given path into frontend.
svn path=/trunk/netsurf/; revision=10139
2010-03-21 13:32:59 +00:00
Chris Young
c17ff1e9ae Squash memory leak and an offset problem related to helphints
svn path=/trunk/netsurf/; revision=10137
2010-03-17 22:15:03 +00:00
Chris Young
1fedc6a36a More HelpHints, these will work on OS4.1u1 and higher only.
svn path=/trunk/netsurf/; revision=10136
2010-03-17 21:43:23 +00:00
Chris Young
dcbc8cae93 Local history URL HelpHints (will show on OS4.1u1 and newer only)
svn path=/trunk/netsurf/; revision=10135
2010-03-17 21:00:18 +00:00
Chris Young
7220e03e7d Help hints, mainly for the tabs but also massage messages strings HelpToolbar0-4 & 14
into a format we can use on the main toolbar gadgets.  A couple of gadgets still
missing strings.

svn path=/trunk/netsurf/; revision=10134
2010-03-16 23:55:39 +00:00
Chris Young
04769b3f07 Remove caret when window is inactive, re-add when window becomes active again.
svn path=/trunk/netsurf/; revision=10133
2010-03-15 19:00:21 +00:00
Chris Young
50692dc63c Remove caret while "fast scrolling" to prevent caret-trails over the display.
svn path=/trunk/netsurf/; revision=10132
2010-03-15 18:48:14 +00:00
Chris Young
f4dd2e38d4 Exclude about: as that will never be handled externally and some sites use
about:blank extensively.

svn path=/trunk/netsurf/; revision=10129
2010-03-14 23:00:39 +00:00
Chris Young
3921fcf173 Fix character offset, which was one character left of where the user clicked even
though the caret itself was placed in the correct location.

svn path=/trunk/netsurf/; revision=10128
2010-03-14 22:48:25 +00:00
Chris Young
66730eb138 Only draw search favicon on normal browser windows
svn path=/trunk/netsurf/; revision=10127
2010-03-14 15:33:59 +00:00
Chris Young
ee958f5983 Pass all unknown URLs to launch-handler/OpenURL.
launch-handler in particular can be coerced into opening things like news: just by
creating a new config file as ENVARC:launch-handler/URL/NEWS.LH

svn path=/trunk/netsurf/; revision=10106
2010-03-07 00:46:08 +00:00
Chris Young
81e9d33a22 Set file comment to URL *after* closing the file. This resolves the problem with the
comment not being set on some filesystems.

svn path=/trunk/netsurf/; revision=10105
2010-03-06 17:06:52 +00:00
Chris Young
33be95d328 Fix compilation
svn path=/trunk/netsurf/; revision=10074
2010-02-22 19:18:27 +00:00
Chris Young
f7c654885c Attempt fix for OS4.0
svn path=/trunk/netsurf/; revision=10073
2010-02-21 21:24:58 +00:00
Chris Young
da54611fb6 Try to avoid the tab switching if closing a tab other than the current one (doesn't
seem to work, the act of clicking close must implicity switch to that tab)
Remove extraneous Add Tab button layout group

svn path=/trunk/netsurf/; revision=10058
2010-02-14 15:32:54 +00:00
Chris Young
869d333a51 Sync button images with Windows version
svn path=/trunk/netsurf/; revision=10057
2010-02-14 14:50:06 +00:00
Chris Young
a380b15070 Add an Add Tab button.
Could probably do with an image for this for the default theme (currently falls back
to a textual "+")

svn path=/trunk/netsurf/; revision=10053
2010-02-14 14:00:33 +00:00
Chris Young
e1c41ba712 New window/tab now opens a blank window/tab rather than one showing the current URL
svn path=/trunk/netsurf/; revision=10051
2010-02-14 12:51:30 +00:00
Chris Young
63226802bf Tidy up includes
Add a separator bar between the toolbar and the main browser area/tabs

svn path=/trunk/netsurf/; revision=10050
2010-02-14 12:26:12 +00:00
Chris Young
099ed24184 Improved tabs for OS4.1u1:
* Tabs now have a close gadget embedded
* The tab bar only displays if there is more than one tab open
* Changed the AISS theme "tab loading" image to something more appropriate

Under OS4.0 the old tab close button and permanent tab bar still applies (needs
testing as these changes may well have broken it)

Users of OS4.1 prior to Update 1 will probably need to update!

svn path=/trunk/netsurf/; revision=10045
2010-02-14 00:46:53 +00:00
Chris Young
73827546ef Fix new warnings. Not sure if I should be declaring all the gadgets as Object *, but
that is less casting than declaring them all as struct Gadget * - and allows the
merging of object and gadget arrays, which were causing a few problems previously.

svn path=/trunk/netsurf/; revision=10039
2010-02-13 18:03:05 +00:00
Chris Young
b2376c1656 Proper download notification code, should also open the file if the notification is
double-clicked, although it doesn't seem to work.

svn path=/trunk/netsurf/; revision=10037
2010-02-13 17:31:10 +00:00
Chris Young
0b29da0700 Remove status bar checks which are now in the core.
svn path=/trunk/netsurf/; revision=9969
2010-02-11 18:49:03 +00:00
Chris Young
40c768cec6 Notify on download completion using system-wide Ringhio notifications.
- Uses ARexx currently due to includes for application.library v53 not having been
released.
 - Shows a download complete message even if failed (but the user would already have
seen a warning requester about that)

svn path=/trunk/netsurf/; revision=9913
2010-01-25 12:41:05 +00:00
Vincent Sanders
e01d93f344 Refactor main into the frontends
remove unused embedded global

svn path=/trunk/netsurf/; revision=9851
2010-01-20 20:32:30 +00:00
Chris Young
8dd9aa4e21 Use OS4.1 Update 1 launch-handler when available. Will fall back to OpenURL.library
even if URL: is dismounted while NetSurf is running.
Installation adds the lines to configure launch-handler to open URLs in NetSurf.

svn path=/trunk/netsurf/; revision=9835
2010-01-16 15:53:00 +00:00
Chris Young
3662b3781f Prevent crash if screen could not be opened and prefs are subsequently changed.
svn path=/trunk/netsurf/; revision=9810
2010-01-15 23:05:41 +00:00
Chris Young
6061cc3103 More helpful font open error
svn path=/trunk/netsurf/; revision=9809
2010-01-15 22:51:07 +00:00
Chris Young
44a834a08d Prevent status bar text overflow
svn path=/trunk/netsurf/; revision=9797
2010-01-08 23:13:20 +00:00
Chris Young
7014a8d249 Fix logic
svn path=/trunk/netsurf/; revision=9796
2010-01-08 21:44:12 +00:00
Chris Young
836a4cec67 More useful build information, ditch SVN info if built with NDEBUG.
svn path=/trunk/netsurf/; revision=9795
2010-01-08 21:42:38 +00:00
Chris Young
f23a285103 It helps to allocate enough memory for 40 LONGs, and that memory needs to be returned
regardless as passing a NULL to chooser.gadget crashes it.

svn path=/trunk/netsurf/; revision=9757
2009-12-23 13:47:50 +00:00
Chris Young
a3d82a3634 Search and a couple of other new options
svn path=/trunk/netsurf/; revision=9756
2009-12-23 13:29:10 +00:00
Chris Young
b11df61394 Functional search bar; search icon doesn't refresh if the search area is resized
however.

svn path=/trunk/netsurf/; revision=9755
2009-12-22 23:04:59 +00:00
Chris Young
df64fb7903 Non-functional search bar
svn path=/trunk/netsurf/; revision=9754
2009-12-21 23:25:35 +00:00
Chris Young
d2b2000367 Vertically centre the main row of toolbar gadgets as it looks much neater.
svn path=/trunk/netsurf/; revision=9752
2009-12-20 21:39:43 +00:00
Chris Young
be51c4accb Files required for web search
svn path=/trunk/netsurf/; revision=9746
2009-12-19 17:07:14 +00:00
Chris Young
ee7e9b52ba Copy and update SearchEngines file
svn path=/trunk/netsurf/; revision=9745
2009-12-19 16:51:03 +00:00
Chris Young
8a77de8377 Save favicon as part of icon for save_complete drawers and PDFs
svn path=/trunk/netsurf/; revision=9744
2009-12-19 15:57:53 +00:00
Chris Young
d9b17c8077 Don't fail on non-HTML/CSS types - we just don't want an icon saving so is non-fatal.
svn path=/trunk/netsurf/; revision=9743
2009-12-19 14:41:48 +00:00