Michael Drake
59fdbae1bc
Fix setting of empty selections.
2013-02-22 15:23:36 +00:00
Michael Drake
a3c00c7192
Fixup for core selection change.
2013-02-22 15:12:10 +00:00
Michael Drake
8445bc166b
Don't bypass html form handling layer when passing keypress to textarea.
2013-02-22 15:01:13 +00:00
Michael Drake
c7e136d9d7
Various warning squashes and fixes.
2013-02-22 14:53:57 +00:00
Michael Drake
9c13d352c7
Fixup for core changes. (Selection and errorcode.)
2013-02-22 14:44:13 +00:00
Michael Drake
7bdaf95576
Squash warnings from errorcode shake up.
2013-02-22 14:34:23 +00:00
Michael Drake
69c0fb1fff
Pass select all as keypress.
2013-02-22 14:34:01 +00:00
Michael Drake
4fd095c060
Update for core change.
2013-02-22 14:19:04 +00:00
Michael Drake
8195113196
More fixup for new core selection treatment.
2013-02-22 14:08:24 +00:00
Michael Drake
8a4bfc537f
Update for new core selection stuff. Save handling still needs fixing. Core now gives a char * that the front end should free.
2013-02-22 13:46:01 +00:00
Michael Drake
67c6046fb1
Update for new core selection handling.
2013-02-22 13:37:11 +00:00
Michael Drake
d8af191c0a
Include stdbool.h
2013-02-22 13:31:51 +00:00
Michael Drake
7088908cc2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
...
Conflicts of doom:
render/html.c
2013-02-22 13:24:36 +00:00
Michael Drake
c2a718075a
A load of refactoring of how content selection and input work.
...
Keypresses now go via content interface.
Contents don't shove the selection object into browser windows any more.
Contents report selection existence by sending message.
HTML content keeps track of where selections in it exist.
Contents report whether they have input focus via caret setting msg.
Caret can be hidden (can still input/paste) or removed.
Consolidate textarea selection handling.
Make textarea report its selection status changes to client.
Various textarea fixes.
Changed how we decide when to clear selections, and give focus.
2013-02-22 12:19:35 +00:00
Chris Young
5a307b5fa5
remove alloc.c
2013-02-21 23:51:40 +00:00
Chris Young
a89148332f
Remove this; it's worse in real-life situations than the buggy newlib version.
2013-02-21 23:49:39 +00:00
Chris Young
28ddfb27c4
Deactivate alloc replacement; it refuses to work when other libs are involved. Replacing the relevant malloc/realloc/free triplets in textarea.c does appear to work with the replacement, however.
2013-02-21 23:15:46 +00:00
Chris Young
70df2d197d
Attempt replacement of memory allocation functions with primitive working alternatives
2013-02-21 23:10:36 +00:00
Chris Young
486593df35
memory leak
2013-02-20 20:28:07 +00:00
Vincent Sanders
dcce2c57a1
correct reference counting for moved css calls
2013-02-20 18:15:31 +00:00
Vincent Sanders
066df9802a
deal with inline styles on updates instead of insert
2013-02-20 17:13:23 +00:00
Vincent Sanders
5be20a0d6e
change stylesheet fetching to be generated from the default dom events
2013-02-19 23:51:16 +00:00
Vincent Sanders
92f4dec245
refactor stylesheet fetching code to not have redundant sheet count
2013-02-19 18:29:31 +00:00
John-Mark Bell
2b0cc398bb
Fix handling of treeview launch actions.
2013-02-19 10:17:17 +00:00
Chris Young
5beca9d71f
Remove spurious error message after closing About
2013-02-18 18:39:31 +00:00
Chris Young
a86ff2ac2c
Add missing flag
2013-02-18 16:24:58 +00:00
Vincent Sanders
869c7245f5
clean out useless outdated #if 0 blocks they serve no purpose and keep causing confusion in core refactors. Better examples are available in other frontends or in teh revision control system if strictly necessary
2013-02-18 14:47:21 +00:00
Vincent Sanders
15d39c6ebf
fix remaining errors introduced in refactor
2013-02-18 13:05:23 +00:00
Michael Drake
0e8861d26e
Fix build.
2013-02-18 13:00:56 +00:00
Michael Drake
1cba455811
More fixup.
2013-02-18 12:58:04 +00:00
Michael Drake
ccb34e648f
Make it build again.
2013-02-18 12:50:53 +00:00
Vincent Sanders
0eb0798873
fix errors introduced in refactor
2013-02-18 12:24:49 +00:00
Vincent Sanders
529ca251fc
rename flags for browser_window routines to be shorter
2013-02-18 11:51:42 +00:00
Vincent Sanders
b112dec78d
change browser_window_create and refactor all callsites
2013-02-18 11:23:48 +00:00
Vincent Sanders
3bfb5b96a7
browser_window_navigate refactor
2013-02-18 11:23:27 +00:00
Chris Young
c545bb4b42
Identify JavaScript by extension as a fallback
2013-02-15 23:38:27 +00:00
Chris Young
05969e52ef
Set default JavaScript icon to report correct MIME type
2013-02-15 23:28:46 +00:00
Chris Young
8da8f14396
More logical splitting code
2013-02-15 16:51:50 +00:00
Michael Drake
427f13a716
Change selection colours so selection background takes text colour, and selected text becomes black or white -- whichever gives greatest contrast.
2013-02-15 16:07:56 +00:00
Michael Drake
893eba326d
Type &F81 --> "JSScript".
2013-02-15 15:02:42 +00:00
Michael Drake
e73aac1118
Add JS filetype to mimetype mapping.
2013-02-15 14:57:27 +00:00
Michael Drake
058acae43f
Fix potential double free when we've had something in our clipboard, another app has claimed the clipboard, and the clipboard is now empty/disowned by all apps, and we try to paste the empty clipboard twice in NetSurf.
2013-02-13 23:46:06 +00:00
Michael Drake
58540d83d8
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
2013-02-13 22:43:52 +00:00
Michael Drake
f72d4319bb
Changing browser window to get wimp double clicks meant enum value for single clicks was different. This broke the window taking focus on a single click. Fixed.
2013-02-13 22:41:24 +00:00
Chris Young
9fe2873f04
rationalise the removal of the box redraw queue
2013-02-13 20:23:17 +00:00
Michael Drake
553c55b07a
Move selection clearing into a function, and expose it in the header file.
2013-02-13 13:37:46 +00:00
Michael Drake
08a229161b
Calculate and store text offsets only when they change, rather than recalculating on every redraw and caret placement. Also ensures that caret placement and redraw get the same text offset values.
2013-02-13 13:08:05 +00:00
Michael Drake
13574018d1
Fun micro-optimisations.
2013-02-12 21:16:30 +00:00
Michael Drake
15e61743a3
Add button to quit by default. Not having it confuses people who run it as intended on the framebuffer, and it can still be turned off should somone wish to.
2013-02-12 20:18:01 +00:00
Chris Young
1809143ff3
Implement triple-click
2013-02-12 19:12:14 +00:00