Vincent Sanders
3a9fa29ee5
try and improve usage of browser window internals
2014-07-06 18:34:34 +01:00
Vincent Sanders
e2633a9a63
fix default search provider icon handling
2014-06-03 15:01:14 +01:00
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
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
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
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
e33737ef23
Use browser_window_has_content.
2014-02-08 15:41:32 +00:00
Michael Drake
41d70c741f
Use browser_window URL accessor.
2014-02-08 15:16:05 +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
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
b7736bae2f
split gui operations into core and window and move more operations into tables
2014-01-12 17:07:34 +00:00
Vincent Sanders
8702eedf67
fix leak in error path (coverity 1109889)
2013-11-06 10:52:29 +00:00
Vincent Sanders
5c3daf9013
fix memory leak in error path (coverity 1109889)
2013-11-03 15:00:40 +00: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
2cd2846122
fix coverity 1109906 uninitialised pointer read
2013-10-25 12:42:53 +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
eaae716989
Move old hotlist out of the way.
2013-08-13 12:41:04 +01:00
Michael Drake
3f45e53539
s/history_core/local_history/
2013-07-10 11:55:42 +01:00
Vincent Sanders
2f280f16eb
completely rework scaffolding window destruction using gtkwidget destroy signals
2013-06-28 12:13:02 +01:00
Vincent Sanders
3d7f79683c
add new tab tab
2013-06-27 16:42:08 +01:00
Vincent Sanders
59dc293156
fix status/toolbar bottom split position and setting user option in gtk
2013-06-25 19:01:41 +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
Michael Drake
631265ef6b
Front ends have no reason to include desktop/selection.h now.
2013-05-10 12:16:05 +01:00
Michael Drake
3afd9c9731
Remove search context from browser window, simplify search interface for front ends.
...
Added content interface for search.
Removed bw->cur_search search context. Desktop layer now does nothing
except pass search requests from front end onto the bw's current_content
via the content interface.
Search API reduced to a pair of functions at each level:
{desktop|content|html|textplain}_search
and
{desktop|content|html|textplain}_search_clear
Updated front ends to use simplified search API. Only tested GTK and RO builds.
These confine the search stuff to render/. However search still uses struct
selection. The handling for which is still spread over desktop/ and render/.
Also the render/search code itself still fiddles inside html and textplain
privates.
2013-05-07 14:41:40 +01: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
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
Michael Drake
e2e7aa135c
Update GTK front end to implement new clipboard API.
2013-01-08 17:02:27 +00:00
Vincent Sanders
33934e1271
implement the GTK preferances dialog with signals
2013-01-01 00:59:47 +00:00
John-Mark Bell
f824ab8af4
Port save complete to libdom.
2012-11-03 23:19:45 +00:00
Daniel Silverstone
fa660c24e8
Remove unnecessary libxml includes from GTK includes
2012-10-11 20:48:06 +01: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
Michael Drake
634b8f642e
Don't need to set everything to zero since it's static
2012-08-20 23:05:09 +01:00
Michael Drake
b134279644
Allow the presence of form inputs to be obtained without knowledge of html content internals.
2012-08-20 22:02:37 +01:00
Michael Drake
9202c137b2
Remove unused includes.
2012-08-20 16:08:06 +01:00
Michael Drake
8fc0eab89b
Use proper function for dumping box tree.
2012-08-20 16:06:51 +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
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
Vincent Sanders
ea0c028cac
fix favicon display
...
svn path=/trunk/netsurf/; revision=13460
2012-02-21 20:54:31 +00:00
Vincent Sanders
4dd1b4d80b
fix the popup menu entry signal attaching to attach the correct handler functions. as the prototype changes depending on signal type and we were using the non menu function prototype for menu entries.
...
svn path=/trunk/netsurf/; revision=13437
2012-02-08 02:45:03 +00:00
Vincent Sanders
7124d96b1f
ensure favicon is correctly set
...
svn path=/trunk/netsurf/; revision=13358
2011-12-31 12:57:47 +00:00
Vincent Sanders
e0596793e1
load default favicon once
...
svn path=/trunk/netsurf/; revision=13357
2011-12-31 00:00:54 +00:00
Vincent Sanders
be20f89884
only use libsexy entry widget prior to gtk 2.16
...
svn path=/trunk/netsurf/; revision=13356
2011-12-30 23:22:18 +00:00
Vincent Sanders
df18a97143
Change GTK plotting to use cairo surfaces throughout
...
svn path=/trunk/netsurf/; revision=13354
2011-12-30 00:58:35 +00:00
Michael Drake
67f2470d5a
Pass whether background images are wanted in redraw_context.
...
svn path=/trunk/netsurf/; revision=13335
2011-12-23 22:39:25 +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
Daniel Silverstone
c7b2675eff
Ensure the GTK UI closes all its scaffoldings before exiting.
...
svn path=/trunk/netsurf/; revision=13019
2011-10-09 11:35:24 +00:00
Vincent Sanders
33af42360f
fix ico handler to actually decode to bitmap when called via get_internal
...
svn path=/trunk/netsurf/; revision=12980
2011-10-07 19:39:52 +00:00
Vincent Sanders
52ad2c1e25
initial favicon support
...
svn path=/trunk/netsurf/; revision=12975
2011-10-06 23:31:55 +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
212358278c
clean up gtk tabs argument types to avoid uncessary casting
...
svn path=/trunk/netsurf/; revision=12888
2011-09-26 14:34:16 +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
e82c5be653
remove deprecated GDK usage except for in libsexy
...
svn path=/trunk/netsurf/; revision=12803
2011-09-17 14:58:42 +00:00
Michael Drake
9db586ed63
Port GTK front end's context menu handling to browser_window_get_contextual_content. (Can handle various things the old code couldn't (imagemaps, (i)frames).) Fix "Save Link" menu option to save the target of the link rather than the current content.
...
svn path=/trunk/netsurf/; revision=12756
2011-09-06 18:15:42 +00:00
Michael Drake
34fe2531f2
Remove gui_window_get_browser_window from core. Remove unused implementations from front ends. Rename the GTK front end implementation to nsgtk_get_browser_window and change the GTK front end to use that.
...
svn path=/trunk/netsurf/; revision=12737
2011-09-05 13:28:17 +00:00
Michael Drake
48917cbb82
GTK changes for core search update (r12646).
...
svn path=/trunk/netsurf/; revision=12647
2011-08-24 12:31:27 +00:00
Michael Drake
9c91893028
Fix selection for non-gui browser windows (iframes).
...
Selection no longer uses current_redraw_browser.
Fix long-standing selection bugs on platforms that use action on release behaviour.
svn path=/trunk/netsurf/; revision=12598
2011-07-13 13:20:26 +00:00
Michael Drake
eddae6af06
Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
...
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake
324e5bfce4
New window opens with homepage, rather than current page.
...
svn path=/trunk/netsurf/; revision=12457
2011-06-04 13:51:42 +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
Vincent Sanders
cb2e3f95b8
make gtk help menu entries actually do something
...
svn path=/trunk/netsurf/; revision=12065
2011-03-15 21:00:08 +00:00
John Mark Bell
408f78b737
Move schedule.h to utils/
...
svn path=/trunk/netsurf/; revision=12039
2011-03-13 22:50:54 +00:00
Michael Drake
5833549a35
Purge nsgtk_plot_set_scale(), nsgtk_plot_get_scale() and nsgtk_plot_scale global.
...
svn path=/trunk/netsurf/; revision=11943
2011-03-09 16:52:03 +00:00
Michael Drake
94e7b44ebc
Pass clip rect to clip plotters as struct. Simplify clip rect handling in debug window code. Pass clip rect to select menu as struct.
...
svn path=/trunk/netsurf/; revision=11683
2011-02-14 22:05:39 +00:00
Vincent Sanders
726881c2ad
gtk can have *only* a single accelerator group attached or it goes bang
...
svn path=/trunk/netsurf/; revision=11598
2011-02-01 23:11:29 +00:00
Vincent Sanders
42f89d4e0b
fixup gtk source file names
...
svn path=/trunk/netsurf/; revision=11529
2011-01-29 23:40:22 +00:00