John Mark Bell
ad69ae0923
Avoid unsafe cast of int* to size_t*
...
svn path=/trunk/netsurf/; revision=11597
2011-02-01 21:57:25 +00:00
Vincent Sanders
fbb1139214
add default system colour handlers to each frontend
...
svn path=/trunk/netsurf/; revision=11530
2011-01-30 13:40:47 +00:00
Sven Weidauer
840fb0b9aa
History colours as constants r=jmb,vince
...
svn path=/trunk/netsurf/; revision=11478
2011-01-24 13:32:35 +00:00
Daniel Silverstone
699f0cb344
Make the tree icon dir a non-option
...
svn path=/trunk/netsurf/; revision=11422
2011-01-20 14:05:13 +00:00
Daniel Silverstone
3e7bf7cfb5
Ensure we correctly release all icon resources associated with trees, SSL certs, search providers, etc.
...
svn path=/trunk/netsurf/; revision=11421
2011-01-20 13:51:41 +00:00
John Mark Bell
76f2b2af98
Remove erroneous commentary, and move associated code to a more sensible place
...
svn path=/trunk/netsurf/; revision=11346
2011-01-17 08:35:20 +00:00
John Mark Bell
1034f16f0b
Fix bug #3159040 : make destruction order of browser_window objects sane
...
svn path=/trunk/netsurf/; revision=11345
2011-01-17 08:28:22 +00:00
John Mark Bell
3368407d9e
Document font APIs -- specifically, string lengths are specified in bytes, not characters
...
svn path=/trunk/netsurf/; revision=11261
2011-01-09 00:02:47 +00:00
Daniel Silverstone
aec29351a6
Ensure we poke the favicon as soon as an HTML content reaches the browser window. This is the earliest we can safely do this, otherwise STOP etc. can cause problems.
...
svn path=/trunk/netsurf/; revision=11248
2011-01-07 14:23:14 +00:00
Daniel Silverstone
d00c5b0cd5
Add CONTENT_MSG_FAVICON_REFRESH and emit and handle it appropriately. Animated favicons now work
...
svn path=/trunk/netsurf/; revision=11242
2011-01-07 13:10:20 +00:00
John Mark Bell
124e4cd788
Atari frontend (credit: Ole Loots)
...
svn path=/trunk/netsurf/; revision=11218
2011-01-05 21:02:22 +00:00
Michael Drake
08ed4c207f
Update to new libcss API for simultanious selection for base element and its pseudo elements.
...
svn path=/trunk/netsurf/; revision=11215
2011-01-05 19:36:05 +00:00
John Mark Bell
43ce8206b7
Whee. Another runtime that doesn't support stdout = stderr.
...
We really should stop doing this.
svn path=/trunk/netsurf/; revision=11148
2010-12-29 21:25:47 +00:00
Michael Drake
c154e7242d
Fix empty tree rendering.
...
svn path=/trunk/netsurf/; revision=11135
2010-12-29 16:39:23 +00:00
Michael Drake
873fa857a7
Use colour options for treeview rendering.
...
svn path=/trunk/netsurf/; revision=11118
2010-12-21 17:01:30 +00:00
Michael Drake
710f0ce844
Add COLOUR option type. Add some colour options for rendering core interfaces.
...
svn path=/trunk/netsurf/; revision=11117
2010-12-21 17:00:44 +00:00
Michael Drake
1aad3b71c0
Enable knockout for tree redraw.
...
svn path=/trunk/netsurf/; revision=11099
2010-12-19 16:14:06 +00:00
Steve Fryatt
0bd39eed21
Allow tree drag status to reflect drags within textareas.
...
svn path=/trunk/netsurf/; revision=11097
2010-12-19 12:27:33 +00:00
Michael Drake
75c82c33e6
Draw tree background when there are no nodes.
...
svn path=/trunk/netsurf/; revision=11092
2010-12-18 16:35:52 +00:00
Michael Drake
d5b18c69fd
Take some calculations out of line redraw loop and fix rounding error.
...
svn path=/trunk/netsurf/; revision=11089
2010-12-17 14:11:06 +00:00
Michael Drake
74ecfe0036
Simplify text plot position calc.
...
svn path=/trunk/netsurf/; revision=11088
2010-12-17 14:07:33 +00:00
Michael Drake
a01f9508b0
Base treeview line height on text height, unless that's too small for the icon to fit.
...
svn path=/trunk/netsurf/; revision=11087
2010-12-17 13:32:43 +00:00
Michael Drake
bb4bda0b3a
When a hotlist entry edit ends by cancelling, rather than confirming the change, end the whole edit and don't pass onto next element for edit.
...
svn path=/trunk/netsurf/; revision=11085
2010-12-17 11:10:22 +00:00
John Mark Bell
c96f682d9d
Fix bug #3138151 : shut down caches before killing off fetch layer
...
svn path=/trunk/netsurf/; revision=11069
2010-12-16 00:03:57 +00:00
Michael Drake
064c8e50d2
Improve double click handling.
...
svn path=/trunk/netsurf/; revision=11068
2010-12-15 23:55:39 +00:00
Michael Drake
cbe24279f8
Don't give up on a mouse action because BROWSER_MOUSE_PRESS_{1|2} is set. The RISC OS front end sets them for action-on-button-press (rather than release) behaviour.
...
svn path=/trunk/netsurf/; revision=11065
2010-12-15 21:58:01 +00:00
Michael Drake
0e56e9c21b
Possible fix for issue reported by Chris Young.
...
svn path=/trunk/netsurf/; revision=11062
2010-12-15 19:48:59 +00:00
Michael Drake
20aedef6d8
Debug function for dumping browser_mouse_state.
...
svn path=/trunk/netsurf/; revision=11061
2010-12-15 18:05:25 +00:00
Michael Drake
4b64e92194
Only draw caret if there is no selection.
...
svn path=/trunk/netsurf/; revision=11060
2010-12-15 15:10:15 +00:00
Michael Drake
b037763e6e
Position text and caret correctly in single line text area. Make caret red so it stands out for now. It should be an OS caret anyway.
...
svn path=/trunk/netsurf/; revision=11059
2010-12-15 14:15:43 +00:00
Michael Drake
bf4968f334
Much faster redraw of treeviews.
...
svn path=/trunk/netsurf/; revision=11058
2010-12-15 10:38:41 +00:00
Michael Drake
f474bc06bf
Further tidy up of node redraw.
...
svn path=/trunk/netsurf/; revision=11057
2010-12-15 01:05:10 +00:00
Michael Drake
771b0e3b8b
Pass clip rectangle around tree redraw. Update clipping area with respect to what's being plotted. Simplify tree redraw and add more comments.
...
svn path=/trunk/netsurf/; revision=11056
2010-12-15 00:32:37 +00:00
Vincent Sanders
60c840628f
Small refactor to change icon names to being passed in from frontends instead of core treeview globals
...
svn path=/trunk/netsurf/; revision=11053
2010-12-14 00:18:24 +00:00
Michael Drake
2e249ac9e6
Set text position with respect to TREE_LINE_HEIGHT.
...
svn path=/trunk/netsurf/; revision=11043
2010-12-12 22:37:51 +00:00
Michael Drake
f777a58ec5
Set expansion toggle position with respect to TREE_LINE_HEIGHT.
...
svn path=/trunk/netsurf/; revision=11042
2010-12-12 21:24:35 +00:00
Michael Drake
d1d3a65b06
Set icon position with respect to TREE_LINE_HEIGHT.
...
svn path=/trunk/netsurf/; revision=11041
2010-12-12 21:13:55 +00:00
Michael Drake
eabf7e8afd
Remove redundant line plots, from tree_draw_node() and add comments.
...
svn path=/trunk/netsurf/; revision=11040
2010-12-12 20:39:46 +00:00
Michael Drake
cff0709528
More "NetSurfy" colours. Note treeview restyling is still in progress; this will change.
...
svn path=/trunk/netsurf/; revision=11039
2010-12-12 16:48:26 +00:00
Michael Drake
55d9191bb5
Create some tree plot styles and use them.
...
svn path=/trunk/netsurf/; revision=11038
2010-12-12 16:45:41 +00:00
Michael Drake
86b8057c60
Remove pointless rectangle fill under text.
...
svn path=/trunk/netsurf/; revision=11037
2010-12-12 16:32:39 +00:00
Michael Drake
18b2824d6c
Rename usages of "furniture" which applied to expansion toggle boxes to "expansion_toggle". Now "furniture" refers exclusively to all tree furniture. Start commenting things.
...
svn path=/trunk/netsurf/; revision=11036
2010-12-12 14:30:33 +00:00
Michael Drake
79b87832a4
Rename tree_draw_node_expansion() to tree_draw_node_expansion_toggle(). Pedantic wrap/indentation changes in tree_draw_node.
...
svn path=/trunk/netsurf/; revision=11035
2010-12-12 13:55:25 +00:00
Michael Drake
a7240fd6a9
Fix TREE_ICON_SIZE to match size of actual icons. Fix clip rectangle for icon redraw.
...
svn path=/trunk/netsurf/; revision=11034
2010-12-12 13:01:27 +00:00
Michael Drake
4c5a0d845c
Use TREE_LINE_HEIGHT define instead of magic 20 everywhere.
...
svn path=/trunk/netsurf/; revision=11033
2010-12-12 12:45:12 +00:00
Michael Drake
ff9bd6540c
Clearer font styles.
...
svn path=/trunk/netsurf/; revision=11032
2010-12-12 12:14:03 +00:00
Rob Kendrick
35daa32e80
Change styles used for plotting local history to make it more obvious what the current page is, along with other minor improvements.
...
svn path=/trunk/netsurf/; revision=11008
2010-12-05 17:03:37 +00:00
Michael Drake
bd39b8f0d7
Retain edits to hotlist entry titles.
...
svn path=/trunk/netsurf/; revision=11006
2010-12-05 16:09:52 +00:00
Michael Drake
5eaeaed909
Remove Hubbub and Wapcaplet initialisation and finalisation.
...
svn path=/trunk/netsurf/; revision=10980
2010-12-04 20:14:33 +00:00
Michael Drake
8e07f9388c
More useful comment about what bw->scroll is for.
...
svn path=/trunk/netsurf/; revision=10936
2010-11-03 16:07:30 +00:00
Chris Young
835d033e7b
Amiga icon loader. Treeviews will now use the user's icons for content types.
...
svn path=/trunk/netsurf/; revision=10925
2010-10-30 14:23:38 +00:00
Chris Young
755e45028d
If a drag is in progress that the tree can't handle, it is a TREE_UNKNOWN_DRAG not a
...
TREE_NO_DRAG, as the platform code might be able to deal with it.
svn path=/trunk/netsurf/; revision=10920
2010-10-30 10:43:14 +00:00
Chris Young
f2c834ac51
Only set TREE_MOVE_DRAG is the tree is TREE_MOVABLE
...
svn path=/trunk/netsurf/; revision=10919
2010-10-30 09:23:03 +00:00
Chris Young
25e9b79f5c
Allow getting the tree's drag property. This ensures we can see whether the current
...
drag is something we might need to display an icon for.
svn path=/trunk/netsurf/; revision=10917
2010-10-29 17:40:36 +00:00
John Mark Bell
f309236fa8
Fix bug 3095552: don't escape URLs after editing. (credit: Martin Bazley)
...
svn path=/trunk/netsurf/; revision=10911
2010-10-27 20:15:01 +00:00
John Mark Bell
43e5a16b34
Squash warning
...
svn path=/trunk/netsurf/; revision=10903
2010-10-24 16:39:16 +00:00
Chris Young
c4ebfa24d8
Don't expand the oldest global history entries by default.
...
svn path=/trunk/netsurf/; revision=10902
2010-10-24 16:24:37 +00:00
Chris Young
c5b9e45960
Make CR also stop and save tree edits
...
svn path=/trunk/netsurf/; revision=10892
2010-10-17 13:00:51 +00:00
Chris Young
c052d534e7
Add some missing CONTENT_WEBPs. WebP images in HTML docs now display correctly.
...
svn path=/trunk/netsurf/; revision=10890
2010-10-16 15:26:28 +00:00
Vincent Sanders
1dbbbaf64a
ensure iframe stuff does not de-reference null pointers
...
svn path=/trunk/netsurf/; revision=10884
2010-10-14 00:59:39 +00:00
Steve Fryatt
73cf86e437
- Request correct redraw area when changing a node's size in tree_handle_node_changed().
...
- Update parameter documentation to match function definitions.
svn path=/trunk/netsurf/; revision=10876
2010-10-10 09:10:44 +00:00
Vincent Sanders
45b2ab2d88
If the cookies tree has not been initialised do not allow operations to be scheduled upon it.
...
svn path=/trunk/netsurf/; revision=10868
2010-10-06 21:46:06 +00:00
John Mark Bell
6173bb0e6c
Merge treeview-redux to trunk
...
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
James Bursa
76a8c043a6
Simplify a browser_window_go_post() to browser_window_go().
...
svn path=/trunk/netsurf/; revision=10762
2010-09-12 18:27:59 +00:00
Vincent Sanders
bda534e12a
Clean up how GTK frontend finds resources
...
svn path=/trunk/netsurf/; revision=10668
2010-07-28 15:22:44 +00:00
Chris Young
004aee8281
Amiga: Add "cut" option; make cut/copy/paste menus context sensitive; allow dragging
...
selections within NetSurf window to text fields (does not work across windows).
todo: switching tabs will reset cut/copy/paste menus to initial state; cut option is
putting something on the clipboard which causes a crash when pasting it back
svn path=/trunk/netsurf/; revision=10660
2010-07-24 16:39:37 +00:00
Michael Drake
513793a060
Fix inventory file leafname.
...
svn path=/trunk/netsurf/; revision=10624
2010-07-09 21:36:55 +00:00
Chris Young
d6eb28d5de
Replace unnecessarily complicated path concatenation with something simpler and
...
easily adaptable to different platform path structures.
svn path=/trunk/netsurf/; revision=10621
2010-07-09 19:45:44 +00:00
John Mark Bell
5bebf2f2fc
Merge branches/vince/netsurf-fbtk-rework to trunk.
...
svn path=/trunk/netsurf/; revision=10605
2010-07-07 18:08:17 +00:00
Michael Drake
f6faa20a37
In switch statements add default branch for unknown enum values, with assert.
...
svn path=/trunk/netsurf/; revision=10603
2010-07-06 21:09:20 +00:00
Vincent Sanders
bd6c884020
Fix up confusing formatting
...
svn path=/trunk/netsurf/; revision=10586
2010-06-28 11:31:51 +00:00
Michael Drake
0642cdafc2
Fix mouse.h file description. Add iframe comment.
...
svn path=/trunk/netsurf/; revision=10571
2010-06-09 09:53:07 +00:00
Michael Drake
b010a25771
+ Refactor input handling from browser window code into content
...
handlers.
+ Disentangle all box tree manipulation from browser window
code and put it where it belongs.
+ Move other content specific and other irrelevant code from
browser window handling to appropriate places.
+ Put mouse state enum in new mouse header, since it's not just
used by browser window code, and it is used by treeview
windows on the treeview branch.
svn path=/trunk/netsurf/; revision=10561
2010-06-04 09:35:08 +00:00
John Mark Bell
000e6ad3de
It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by the C standard (whereas realloc(NULL, size) --> malloc(size) is).
...
Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free).
svn path=/trunk/netsurf/; revision=10524
2010-04-30 07:00:58 +00:00
Vincent Sanders
2fd1476f8c
The schedule_run function is only called by the frontends so remove it from the core header and add its definition to the frontend headers.
...
Alter the framebuffer schedule_run to return the time untill the next event.
svn path=/trunk/netsurf/; revision=10512
2010-04-28 22:39:37 +00:00
John Mark Bell
2276afb9f6
Log any remaining interned strings (there should be none)
...
svn path=/trunk/netsurf/; revision=10502
2010-04-27 22:14:52 +00:00
Daniel Silverstone
30e0cfe7a9
First step to fixing memory leaks -- Box model no longer leaks computed styles
...
svn path=/trunk/netsurf/; revision=10500
2010-04-27 21:38:41 +00:00
John Mark Bell
0de2013f25
Clean up caches on exit
...
svn path=/trunk/netsurf/; revision=10494
2010-04-27 06:48:09 +00:00
Michael Drake
4c4c2c5f97
Fix typo.
...
svn path=/trunk/netsurf/; revision=10478
2010-04-24 21:16:12 +00:00
Vincent Sanders
03bb3e8636
remove _GNU_SOURCE define from everywhere.
...
strndup is not standard so provide an implementation.
svn path=/trunk/netsurf/; revision=10474
2010-04-24 15:22:17 +00:00
Daniel Silverstone
3f7c601078
Ensure we can search textplain again
...
svn path=/trunk/netsurf/; revision=10454
2010-04-22 14:37:32 +00:00
John Mark Bell
27064b4107
Remove redundant code
...
svn path=/trunk/netsurf/; revision=10430
2010-04-18 16:08:06 +00:00
John Mark Bell
031e301c53
Squash leak
...
svn path=/trunk/netsurf/; revision=10429
2010-04-18 16:07:51 +00:00
John Mark Bell
328fed8122
Liberally sprinkle #ifdef around
...
svn path=/trunk/netsurf/; revision=10417
2010-04-16 20:58:09 +00:00
John Mark Bell
c4de2cf6b3
Extract parent charset and quirkiness
...
svn path=/trunk/netsurf/; revision=10416
2010-04-16 20:55:17 +00:00
John Mark Bell
ad8d0b3350
Handle llcache queries (GTK only for now)
...
svn path=/trunk/netsurf/; revision=10403
2010-04-14 23:03:49 +00:00
Daniel Silverstone
3344b974af
Move content shuffling to prevent crash during threading through reformat
...
svn path=/trunk/netsurf/; revision=10396
2010-04-14 09:23:46 +00:00
Daniel Silverstone
3c81d2a527
Ensure url bar is updated with in-progress URL and restored if stop/download occurs
...
svn path=/trunk/netsurf/; revision=10385
2010-04-12 10:57:41 +00:00
John Mark Bell
11201a1cd7
Yes, ownership of the theme content is passed to theme_install
...
svn path=/trunk/netsurf/; revision=10375
2010-04-11 23:01:55 +00:00
John Mark Bell
9e8849c04c
Take the easy way out wrt loading messages files: leave it to the RISC OS frontend to do this.
...
svn path=/trunk/netsurf/; revision=10374
2010-04-11 22:40:41 +00:00
John Mark Bell
71de3618f1
Implement hlcache_poll(), which drives the low-level cache event loop, and attempts to clean the high-level cache.
...
Call this, instead of llcache_poll().
svn path=/trunk/netsurf/; revision=10371
2010-04-11 20:21:13 +00:00
Michael Drake
3c12281565
Remove dead special case for gtk status bar width.
...
svn path=/trunk/netsurf/; revision=10322
2010-04-08 17:51:31 +00:00
Rob Kendrick
64d6093631
Don't bother trying to fetch search provider icons when BMP support is disabled. This code could do with a little rearrangement to make this cleaner.
...
svn path=/trunk/netsurf/; revision=10311
2010-04-08 14:14:27 +00:00
Michael Drake
f310569df4
Calling a hlcache_handle "content" is confusing.
...
svn path=/trunk/netsurf/; revision=10266
2010-04-07 12:09:38 +00:00
John Mark Bell
cbf55bd418
Fix textarea crash.
...
I cannot express just how much I hate the necessity of this change: browser windows (and other code in desktop/) should stop poking around inside content objects
svn path=/trunk/netsurf/; revision=10258
2010-04-07 06:22:15 +00:00
John Mark Bell
2748fe4f64
Make downloads work again.
...
svn path=/trunk/netsurf/; revision=10243
2010-04-05 21:35:38 +00:00
John Mark Bell
69f02e926f
Make the high-level cache drop contents of unacceptable type on the floor.
...
svn path=/trunk/netsurf/; revision=10238
2010-04-04 17:17:24 +00:00
John Mark Bell
79ce683b4e
Most of a stop implementation.
...
Remaining work:
1) Clone content_html_data
2) Cloning content_css_data requires the charset of the old content
3) Calling hlcache_handle_abort() before a content has been created must clean up the retrieval context.
svn path=/trunk/netsurf/; revision=10236
2010-04-04 12:41:19 +00:00
Chris Young
103998165a
Revert previous change
...
svn path=/trunk/netsurf/; revision=10215
2010-03-30 18:20:48 +00:00
Chris Young
9b9c26b569
Avoid crash if pargc is NULL. This might happen, for example, when launching NetSurf
...
from Workbench under AmigaOS :)
svn path=/trunk/netsurf/; revision=10214
2010-03-30 18:14:40 +00:00