Commit Graph

68 Commits

Author SHA1 Message Date
Vincent Sanders
f29306cc9a improve gtk source save to use gtk overwrite protection feature coverity 1109873 2013-10-25 21:25:56 +01:00
Chris Young
ade86e496e Replace AllocVec with AllocVecTags. Remove some instances of MEMF_CLEAR where it is not necessary. 2013-10-12 13:11:13 +01:00
Vincent Sanders
a92e5930ff fixup issues with new options API merge 2013-05-28 16:44:46 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Michael Drake
631265ef6b Front ends have no reason to include desktop/selection.h now. 2013-05-10 12:16:05 +01:00
Chris Young
efc0fba8ef avoid potential crah on exit 2013-04-09 00:02:11 +01:00
Chris Young
5d34d48a4b Remove obsolete ami_selection_to_text 2013-02-22 19:06:13 +00:00
Chris Young
4d9b674997 Remove struct selection from ami_file_save and anywhere that feeds into it 2013-02-22 19:02:58 +00:00
Michael Drake
67c6046fb1 Update for new core selection handling. 2013-02-22 13:37:11 +00:00
Chris Young
3269333658 Fix reading of clipboard 2013-01-10 00:00:51 +00:00
Chris Young
6e4c82265c Get CSET using PropChunk rather than StopChunk 2013-01-09 23:42:14 +00:00
Chris Young
6b4ab8141f Remove unused variables 2013-01-09 20:20:54 +00:00
Chris Young
f15f19f788 Convert to UTF-8 before doing length calculations (untested) 2013-01-09 18:41:53 +00:00
Chris Young
7ae27476a7 Re-implement reading the clipboard using CollectionChunk; this removes the need for an initial UTF8 chunk scan and allows the chunks to be collated before sending back to the core. Untested and length calculations ignore charset conversion. 2013-01-08 23:44:13 +00:00
Chris Young
5aae2c3ed0 Fix drag selection 2013-01-08 23:01:57 +00:00
Chris Young
d1dabbb0e2 remove gui_copy_to_clipbaord call - this needs fixing 2013-01-08 20:21:16 +00:00
Chris Young
78f3f53622 re-enable ami_drag_selection 2013-01-08 20:15:27 +00:00
Chris Young
5a43a5a1a9 fix typo 2013-01-08 20:07:46 +00:00
Chris Young
e408c9ea43 Update copy to new API (untested), pasting needs work, ami_drag_selection needs thought. 2013-01-08 19:58:44 +00:00
Chris Young
41ed8e3da3 Pass UTF-8 text length for conversion 2012-11-10 16:05:48 +00:00
Michael Drake
45736594a1 Get presence of text input cleanly. 2012-08-20 22:03:59 +01:00
Michael Drake
4d6ada8c9a Use selection_get_copy instead of selection_traverse. Note: untested. 2012-08-13 17:42:23 +01:00
Michael Drake
d106091d6e Pass font plot style out to front end clipboard append function. 2012-08-13 14:43:04 +01:00
Chris Young
2694a98f81 Remove any forcing of UTF-8 in the clipboard, as internally NetSurf will use the UTF8 chunks now. 2012-08-03 21:04:38 +01:00
Chris Young
3a00eca535 Clear the StopChunks before scanning for the UTF8 chunk, otherwise we risk thinking a CHRS chunk is a UTF8 chunk. 2012-08-03 21:02:29 +01:00
Chris Young
0b0c6a4f6a Support pasting the UTF8 chunk of clipboard IFF FTXT when present, instead of CHRS 2012-08-03 19:19:04 +01:00
Chris Young
c4a4126041 Also write a (duplicate) UTF8 chunk, irregardless of the "UTF-8 clipboard" option. We don't support pasting UTF8 chunks yet. 2012-08-03 18:33:49 +01:00
Chris Young
ca6be72dff Remove extraneous functionage 2012-08-03 18:28:07 +01:00
Chris Young
cc3b9435ea Use core clipboard copy function. ami_selection_to_text() will need fixing as it still needs selection_traverse() 2012-08-03 18:19:54 +01:00
Chris Young
18db6826f1 Move Push- and PopChunk out of the selection_traversal function 2012-08-03 18:15:16 +01:00
Chris Young
307df869c3 fix build
svn path=/trunk/netsurf/; revision=13729
2012-03-26 20:25:10 +00:00
Vincent Sanders
1490b52a6b NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
2012-03-22 09:34:34 +00:00
Chris Young
0410b0d640 Don't break the clipboard when copying 'nothing'.
Don't touch clipboard contents when copying 'nothing'.

svn path=/trunk/netsurf/; revision=13442
2012-02-12 17:56:25 +00:00
Chris Young
f3e0dd578e 8*4=32, NOT 24. Copied UTF-8 text will now paste correctly into RA-OWB.
svn path=/trunk/netsurf/; revision=13405
2012-01-15 16:37:36 +00:00
Chris Young
676cb962ce Accept codeset 1 (undefined) as 106 (UTF-8) when pasting from the
clipboard.  This should allow us to at least paste from broken ports of
MorphOS apps.

svn path=/trunk/netsurf/; revision=13404
2012-01-15 15:58:26 +00:00
John Mark Bell
f2993e6ed0 content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_url
svn path=/trunk/netsurf/; revision=13236
2011-12-04 14:55:23 +00:00
Chris Young
ce37fdb128 Support dragging from global history to hotlist
svn path=/trunk/netsurf/; revision=13219
2011-12-02 13:24:40 +00:00
Michael Drake
e52aaecd7a Fix up for nsurl changes. Untested.
svn path=/trunk/netsurf/; revision=12928
2011-10-03 16:41:55 +00:00
Michael Drake
ffeb8bc389 Delete some dead frames stuff.
svn path=/trunk/netsurf/; revision=12723
2011-09-05 09:53:54 +00:00
Chris Young
39e5c04da7 Fix warnings
svn path=/trunk/netsurf/; revision=12616
2011-07-23 14:06:13 +00:00
Michael Drake
3651831963 Fix up Amiga front end.
svn path=/trunk/netsurf/; revision=12601
2011-07-13 13:38:38 +00:00
Chris Young
dd99b8a461 avoid crash
svn path=/trunk/netsurf/; revision=12481
2011-06-15 17:40:12 +00:00
John Mark Bell
e71691bae8 Merge branches/jmb/content-factory to trunk
svn path=/trunk/netsurf/; revision=12283
2011-05-06 20:40:09 +00:00
Chris Young
003f3537c6 Ensure selection drags to NetSurf text boxes are always UTF-8
svn path=/trunk/netsurf/; revision=12263
2011-04-30 11:21:14 +00:00
Chris Young
9f9436bf40 Ensure drags to string gadgets are in local charset
svn path=/trunk/netsurf/; revision=12262
2011-04-30 11:11:34 +00:00
Chris Young
ebd0145eaf Convert _from_ UTF-8 and translate the converted string, not the original
svn path=/trunk/netsurf/; revision=12261
2011-04-30 11:05:47 +00:00
Chris Young
7fd6597468 Avoid crash if conversion to local charset fails.
Attempt to convert nbsp to normal spaces when converting to local charset for
clipboard

svn path=/trunk/netsurf/; revision=12260
2011-04-30 10:54:02 +00:00
Chris Young
1518543c22 Fix DSI when drag saving
Allow selection drags to URL and search gadgets

svn path=/trunk/netsurf/; revision=12259
2011-04-29 18:15:20 +00:00
John Mark Bell
de688b59e1 Fix text selection
svn path=/trunk/netsurf/; revision=11927
2011-03-06 18:04:13 +00:00
John Mark Bell
86c2948eb4 Fix copying text/plain to clipboard
svn path=/trunk/netsurf/; revision=11636
2011-02-09 20:31:34 +00:00