Commit Graph

852 Commits

Author SHA1 Message Date
Vincent Sanders
e2633a9a63 fix default search provider icon handling 2014-06-03 15:01:14 +01:00
Vincent Sanders
95baa1113b add proxy excusion entry to GTK builder file. From Pavel Smolyar (bug #2122) 2014-05-29 18:02:07 +01:00
Vincent Sanders
7d02ae916a make launch_url core operation use nsurl 2014-05-27 23:52:35 +01:00
Vincent Sanders
00b6cfc57e rework path to url mapping functions to convert from and to nsurl 2014-05-26 23:52:36 +01:00
Vincent Sanders
a6d3ceae0e Completely re-write web search provider handling 2014-05-25 01:01:59 +01:00
Vincent Sanders
315877c822 reduce uncessary include usage 2014-05-18 23:17:15 +01:00
Vincent Sanders
a4be7f7d1a ensure new config directories can be created. 2014-05-13 17:49:23 +01:00
Vincent Sanders
6d3f5d2338 Enable filesystem based cache in gtk frontend 2014-05-13 15:53:06 +01:00
Vincent Sanders
64f607760b add backing store storage path to browser initialisation 2014-05-13 15:53:06 +01:00
Vincent Sanders
ccc9ad969b fix gtk options loading 2014-05-12 23:46:31 +01:00
Vincent Sanders
16b11e7238 ensure operations tables are registered as early as possible. 2014-05-10 10:22:10 +01:00
Vincent Sanders
2326d3c503 remove unecessary utils/url.h includes 2014-05-09 10:15:42 +01:00
Vincent Sanders
cd7f1eceea make download_context_get_url() return an nsurl and adapt callers to cope 2014-05-08 17:54:44 +01:00
Vincent Sanders
096bd47ab0 refactor url utility functions to use standard nserror codes and have appropriate documentation. 2014-05-08 00:16:50 +01:00
Vincent Sanders
c56642819e add file operations table and make all frontends use it.
This rationalises the path construction and basename file
operations. The default implementation is POSIX which works for all
frontends except windows, riscos and amiga which have differeing path
separators and rules.

These implementations are significantly more robust than the previous
nine implementations and also do not use unsafe strncpy or buffers
with arbitrary length limits.

These implementations also carry full documentation comments.
2014-05-07 16:24:51 +01:00
Vincent Sanders
a73f22c966 make gtk commandline filename loading use snprintf 2014-04-30 13:56:01 +01:00
Vincent Sanders
56b42943d0 improve iconv library handling 2014-04-30 11:56:57 +01:00
Vincent Sanders
1fd565cba7 make GTK configuration handling conform to XDG specification. 2014-04-28 16:37:00 +01:00
Michael Drake
97c12b975c Add 1px to caret height. 2014-03-27 22:05:35 +00:00
Michael Drake
119b8af2db Merge remote-tracking branch 'achal/fix-2098' 2014-03-27 20:08:54 +00:00
Achal-Aggarwal
7bcefbf72d Fix caret cropping using clip rectangle. 2014-03-21 22:57:41 +05:30
Vincent Sanders
6f9a93e332 fix formatting of defaults makefiles 2014-03-20 11:05:39 +00:00
Vincent Sanders
4d4d74c8cd move page search gui callbacks to their own operations table 2014-03-18 22:32:52 +00:00
Vincent Sanders
a67c49eacf Fix gtk web page searching 2014-03-18 16:02:21 +00:00
Vincent Sanders
87f6314dab move scheduleing into browser operation table 2014-03-09 15:37:40 +00:00
John-Mark Bell
b928095652 GTK: add some support for input methods.
We do not currently support pre-edit texts, or
retrieving/modifying text surrounding the caret.
This does, at least, finally allow the use of
dead keys during text input, but probably is
insufficient for useful input of CJKV &c.
2014-02-17 00:21:49 +00:00
John-Mark Bell
c47a497bca GTK: more endian fixes for bitmap conversion. 2014-02-16 00:54:07 +00:00
John-Mark Bell
1511a74203 GTK: fix pre-multiplication of alpha. 2014-02-16 00:24:11 +00:00
John-Mark Bell
5e0efcbd6c GTK: make image component manipulation endian-safe. 2014-02-16 00:00:21 +00:00
Michael Drake
a38a63a37e Make history internal to browser_window module. 2014-02-15 18:44:50 +00:00
Michael Drake
49bed056dd Make browser_window_navigate (un)verifiable flag match browser_window_create. 2014-02-10 22:40:04 +00:00
Michael Drake
af014bce99 Allow tab creation without history clone. Changes browser_window_create and browser_window_navigate flags. 2014-02-10 14:08:45 +00:00
Michael Drake
ea79e85fcd Clean up gui_window creation API. 2014-02-09 13:07:39 +00:00
Michael Drake
3d7cd77982 Simplify local history interface. 2014-02-08 22:43:54 +00:00
Michael Drake
5e495f0ab9 Avoid dereffing bw in a few places. 2014-02-08 19:52:17 +00:00
Michael Drake
616335c9ca Don't use bw internals. 2014-02-08 19:21:22 +00:00
Michael Drake
5f517cc714 Don't need browser_private.h any more. 2014-02-08 17:13:04 +00:00
Michael Drake
8deb9ec25c Native select menu interface shouldn't force front end to dig inside bw struct. 2014-02-08 17:11:55 +00:00
Michael Drake
ec7a02e550 Use get_scale function instead of derefing the bw. 2014-02-08 16:21:46 +00:00
Michael Drake
a505ea49df Use browser_window_get_extents function. 2014-02-08 16:05:58 +00:00
Michael Drake
e33737ef23 Use browser_window_has_content. 2014-02-08 15:41:32 +00:00
Michael Drake
3697f543d6 Use browser_window_has_content. 2014-02-08 15:33:39 +00:00
Michael Drake
72b5bc85f2 Remove pointless variable. 2014-02-08 15:18:46 +00:00
Michael Drake
41d70c741f Use browser_window URL accessor. 2014-02-08 15:16:05 +00:00
Michael Drake
7a81fe9165 Use clean accessor for bw URL. 2014-02-08 15:06:51 +00:00
Michael Drake
7794f3fb14 Remove includes of browser_private.h and hlcache.h 2014-02-08 15:02:20 +00:00
Michael Drake
2cc6b04a49 Avoid includes of desktop/browser_private.h and content/hlcache.h 2014-02-08 14:28:38 +00:00
Michael Drake
cf84e557fa Simplify browser_window_refresh_url_bar.
Reduces front end need to access bw internals.
2014-02-08 12:07:13 +00:00
Vincent Sanders
25bc5b2b8c remove unecessary desktop/browser.h includes 2014-02-04 15:30:53 +00:00
Vincent Sanders
3455d66921 reduce desktop/browser.h unecessary includes 2014-02-03 17:56:24 +00:00
Vincent Sanders
6a7ca8b2a8 remove unecessary includes 2014-02-03 16:57:45 +00:00
Vincent Sanders
886a3106db move utf8 local conversion operations to table 2014-02-01 22:17:36 +00:00
Vincent Sanders
427f127fa9 remove further extraneous includes 2014-02-01 14:23:58 +00:00
Vincent Sanders
00bdf39dc2 remove unnecessary includes 2014-02-01 13:06:51 +00:00
Vincent Sanders
8bb0e87b1a make clipboard table operations static and remove unecessary includes 2014-02-01 12:41:23 +00:00
Vincent Sanders
db33103fa3 clean up desktop/gui.h include usage 2014-01-29 21:35:53 +00:00
Vincent Sanders
654da2ffb5 move utf8 conversion routines to use nserror instead of their own error enum 2014-01-28 21:40:13 +00:00
Vincent Sanders
8ce0a10670 move path_to_url and url_to_path to fetch operation table 2014-01-25 23:01:32 +00:00
Vincent Sanders
0475693394 create table for fetcher operations and move all operations into it 2014-01-23 00:00:18 +00:00
Vincent Sanders
d47fed4524 move 401 login into operation table 2014-01-16 00:52:17 +00:00
Vincent Sanders
38cb39339a move filename_from_path and path_add_part into gui operation tables 2014-01-16 00:01:25 +00:00
Vincent Sanders
bd065d4a43 split browser gui operations up 2014-01-15 19:37:05 +00:00
Vincent Sanders
68eaec5cb4 complete move of remaining core gui functions 2014-01-15 12:28:55 +00:00
Vincent Sanders
8dfe225153 move download operations to download table 2014-01-14 16:04:02 +00:00
Vincent Sanders
d18c8ed452 move teh final optional window operations into the table 2014-01-13 22:54:19 +00:00
Vincent Sanders
e82d83f184 move four more optional window operations to table 2014-01-13 14:51:27 +00:00
Vincent Sanders
d70e371cd9 move two more mandantory window operations to table 2014-01-13 11:38:35 +00:00
Vincent Sanders
7227c29bba move window scroll getter and setter into operations table 2014-01-13 01:08:15 +00:00
Vincent Sanders
5a962586fb move mandantory window update and redraw operations into table 2014-01-12 23:50:54 +00:00
Vincent Sanders
4b49b4ac77 move more optional window operations into table including removing unused hide_pointer operation altogether 2014-01-12 22:55:26 +00:00
Vincent Sanders
b7736bae2f split gui operations into core and window and move more operations into tables 2014-01-12 17:07:34 +00:00
Vincent Sanders
56bb9582b1 move set title, set url, start and stop throbber window operations to gui table 2014-01-12 10:27:41 +00:00
Vincent Sanders
c8496df3df move window creation and destruction into table 2014-01-11 22:34:12 +00:00
Vincent Sanders
d3c392c3d3 Initial conversion of netsurf gui to callback vtable 2014-01-11 14:20:30 +00:00
Rob Kendrick
d24ee91311 Under GTK, file gadgets are more like buttons 2014-01-05 17:16:26 +00:00
Rob Kendrick
550c8cd73c Change gui_file_gadget_interface to pass gui_window not browser_window, add GTK implementation that of course does not work. 2014-01-05 16:45:32 +00:00
Rob Kendrick
d8ad3b8e78 Add new gui entry point for file open dialogue requests 2014-01-05 16:01:03 +00:00
Rob Kendrick
1bd4a34a27 Remove asserts for default cases from all content message handlers; this is laborious and is no longer useful for catching bugs. 2014-01-05 14:39:08 +00:00
Vincent Sanders
5a408069c9 remove lcms dependancy as NetSurf does not directaly use it.
The dependancy probbaly comes from our historical use of libmng,
even then the libmng pkg-config should bring it in.
2014-01-04 16:13:10 +00:00
Vincent Sanders
f725c2dcde check stat error return (coverity 1109835) 2013-11-27 22:21:59 +00:00
Vincent Sanders
47c17ad889 check return of chmod (coverity 1109836) 2013-11-27 22:09:21 +00:00
Michael Drake
3eb65bb54f Fix Coverity #1129524, resource leak. 2013-11-18 14:19:27 +00:00
Daniel Silverstone
4b3a7666dc Use realpath and stuff file:// on the front of file arguments in GTK frontend 2013-11-17 15:07:09 +00:00
Vincent Sanders
8702eedf67 fix leak in error path (coverity 1109889) 2013-11-06 10:52:29 +00:00
Vincent Sanders
41bda017d1 fix error path resource handling in gtk browser window creation (coverity 1109888) 2013-11-03 16:30:34 +00:00
Vincent Sanders
5c3daf9013 fix memory leak in error path (coverity 1109889) 2013-11-03 15:00:40 +00:00
Vincent Sanders
401d1fd1a6 fix coverity 1109883 2013-10-31 23:17:14 +00:00
Vincent Sanders
9c707c8df0 fix coverity 1109891 2013-10-31 23:17:14 +00:00
Michael Drake
0f166ad6b0 Remove comment. Background only used with alpha channel when printing via Tinct on RISC OS. 2013-10-28 14:30:31 +00:00
Vincent Sanders
f29306cc9a improve gtk source save to use gtk overwrite protection feature coverity 1109873 2013-10-25 21:25:56 +01:00
Vincent Sanders
2962faed63 fix gtk title setting to cope with null titles coverity 1109897 2013-10-25 15:44:52 +01:00
Vincent Sanders
88bd4e2ee2 fix resource leak coverity 1109883 2013-10-25 12:42:53 +01:00
Vincent Sanders
2e4c1cf950 fix resource leak coverity 1109884 2013-10-25 12:42:53 +01:00
Vincent Sanders
2cd2846122 fix coverity 1109906 uninitialised pointer read 2013-10-25 12:42:53 +01:00
Michael Drake
2d14f0bb2e Fix Ctrl+Shift+Z. 2013-10-01 13:15:25 +01:00
Michael Drake
10b422b163 Pass KEY_UNDO and KEY_REDO to core. (Currently ignored.) 2013-09-30 21:37:31 +01:00
Michael Drake
f2b4a7a997 Port to new recursive expand/contract functions. 2013-09-03 12:36:55 +01:00
Michael Drake
cf8ffa412a Remove old hotlist, cookies, and history_global_core modules.
New versions of expand/collapse node functions for these modules aren't yet implemented.
2013-09-02 22:41:04 +01:00
Michael Drake
e9f65ff9cb Remove cookies, history_global, and hotlist_old _initialise and _cleanup functions. 2013-09-02 18:57:43 +01:00
Michael Drake
4473f4b8a8 Remove tree icon_name globals from all the front ends. 2013-09-02 16:39:46 +01:00