Commit Graph

72 Commits

Author SHA1 Message Date
Vincent Sanders
a6d3ceae0e Completely re-write web search provider handling 2014-05-25 01:01:59 +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
1fd565cba7 make GTK configuration handling conform to XDG specification. 2014-04-28 16:37:00 +01: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
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
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
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
b7736bae2f split gui operations into core and window and move more operations into tables 2014-01-12 17:07:34 +00:00
Vincent Sanders
401d1fd1a6 fix coverity 1109883 2013-10-31 23:17:14 +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
88bd4e2ee2 fix resource leak coverity 1109883 2013-10-25 12:42:53 +01:00
Vincent Sanders
4e24869524 Add and use no proxy list option 2013-06-04 18:11:15 +01:00
Vincent Sanders
8b43b732bc move gtk frontend to use new options API 2013-05-28 14:16:11 +01:00
Vincent Sanders
63d7247a9c fix mismatched option name and variable names
block_ads should be block_advertisments to match option name
toolbar_status_width should be toolbar_status_size to match option name
2013-05-28 14:16:11 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Vincent Sanders
32eaf611b4 fix theme adding dialog 2013-04-29 16:02:20 +01:00
Michael Drake
ef363460f1 Remove another unused inuclude of render/textplain.h. 2013-04-29 14:58:10 +01: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
Vincent Sanders
33934e1271 implement the GTK preferances dialog with signals 2013-01-01 00:59:47 +00:00
Vincent Sanders
f12be4ed85 restructure GTK frontend options dialog to be compiant with the gnome HIG and actually work 2012-12-28 01:08:23 +00:00
Michael Drake
153c444454 Move browser_window struct to private header. Places that shouldn't include it do, such as front end code.
Frontends that have been updated to build:
  framebuffer
  gtk
  monkey
  riscos

TODO:
  amiga
  atari
  beos
  cocoa
  windows
2012-08-22 12:22:58 +01:00
Vincent Sanders
8ffc6439a7 fix build on gtk 2.12
svn path=/trunk/netsurf/; revision=13927
2012-05-17 16:48:20 +00:00
Vincent Sanders
2622adaa1f allow netsurf to build with gtk3
svn path=/trunk/netsurf/; revision=13926
2012-05-16 19:57:43 +00:00
François Revel
bae750ee44 Fix a crash when opening Preferences panel and Choices file doesn't exist:
- add missing strdup(),
- fix free() vs g_free() mixups.

svn path=/trunk/netsurf/; revision=13824
2012-04-07 18:32:11 +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
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
Michael Drake
36eff6da2b Port more internals to nsurl. Front ends may need updating.
svn path=/trunk/netsurf/; revision=12926
2011-10-03 15:56:47 +00:00
Vincent Sanders
cb27637a41 add option to set tab position
svn path=/trunk/netsurf/; revision=12896
2011-09-26 23:35:06 +00:00
Vincent Sanders
7334ec404e reduce to a single global structure for glade file locations
svn path=/trunk/netsurf/; revision=12872
2011-09-24 09:24:13 +00:00
Vincent Sanders
b9bdb198cb compatability fix for recent gtk API deprecation
svn path=/trunk/netsurf/; revision=12469
2011-06-07 17:23:39 +00:00
Vincent Sanders
b3608e3a63 fix close button having default focus
svn path=/trunk/netsurf/; revision=12010
2011-03-13 10:00:44 +00:00
John Mark Bell
155d8dec3f gtk_dialog_set_has_separator is deprecated in GTK >= 2.21.8
svn path=/trunk/netsurf/; revision=12009
2011-03-13 09:52:40 +00:00
Vincent Sanders
009ba43d6e fix gtk about dialog to use about: to display credits and licence
svn path=/trunk/netsurf/; revision=12006
2011-03-13 00:29:50 +00:00
Vincent Sanders
42f89d4e0b fixup gtk source file names
svn path=/trunk/netsurf/; revision=11529
2011-01-29 23:40:22 +00:00
Rob Kendrick
d85dfd0e7c Rationalise titles and styles of various GTK windows
svn path=/trunk/netsurf/; revision=11002
2010-12-05 15:03:53 +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
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
Rob Kendrick
759a482c8f slight, marginal and trifling nsgtk beautification
svn path=/trunk/netsurf/; revision=10157
2010-03-27 11:31:03 +00:00
John Mark Bell
d64f5102eb themesfolder is on stack. Do not free().
svn path=/trunk/netsurf/; revision=9739
2009-12-18 20:25:11 +00:00
John Mark Bell
b75b2ae8bb Merge r9731:HEAD from branches/MarkieB/gtkmain to trunk.
svn path=/trunk/netsurf/; revision=9737
2009-12-18 20:15:50 +00:00
John Mark Bell
355799ce0b Merge branches/MarkieB/gtkmain to trunk.
svn path=/trunk/netsurf/; revision=9729
2009-12-17 23:55:02 +00:00
John Mark Bell
7ee7281fcd Fix font config stuff
svn path=/trunk/netsurf/; revision=8765
2009-07-24 00:43:02 +00:00
John Mark Bell
9582b087c7 Rework GTK options code to be less bug ridden. This fixes a bunch of buffer overflows and memory leaks. Additionally, don't bother calculating the default toolbar button type here -- it will already be determined the first time that a browser window is opened (i.e. before the preferences dialog can be opened, anyway).
Remove loads of trailing whitespace from every line in the gtk languages file.

svn path=/trunk/netsurf/; revision=7370
2009-04-29 15:24:00 +00:00