Commit Graph

787 Commits

Author SHA1 Message Date
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
4e24869524 Add and use no proxy list option 2013-06-04 18:11:15 +01:00
Vincent Sanders
bccaa05fdb add finalisation to options and document the API better 2013-06-01 16:09:39 +01:00
Michael Drake
b2aa0c129c Remove 0.5px vertical displacement of text. 2013-05-31 15:12:40 +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
a5355ec557 change all core and frontend options headers to new format 2013-05-28 14:16:10 +01:00
Vincent Sanders
e2957762ba remove extraneous debug 2013-05-23 12:07:08 +01:00
Vincent Sanders
35dacc3671 move the logging initialisation out to be call by frontends
This allows each frontend to pass a distinct callback to configure the
output file stream appropriately for their use.
2013-05-23 11:50:57 +01:00
Michael Drake
7ee2573f17 Convert image format to core format, when the core requests it. 2013-05-20 13:07:40 +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
9644d0594c Remove struct selection from gui_drag_save_selection, so gui.h doesn't need it now. 2013-05-10 11:54:26 +01:00
Michael Drake
8b6665fe03 Merge branch 'master' of git://git.netsurf-browser.org/netsurf into tlsa/selection-search-refactor 2013-05-07 14:56:42 +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
Vincent Sanders
47783096e8 fix cookies and bookmarks windows on gtk3 2013-05-04 20:42:00 +01:00
Vincent Sanders
85030ea2de Fix mouse wheel scrolling on gtk3 by implementing the smooth scroll direction
Fix mouse wheel scrolling on gtk2 by setting a reasonable default step
2013-05-04 19:42:01 +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
8df67ca801 Ensure default C language is installed 2013-04-28 22:06:30 +01:00
Vincent Sanders
d2ffd402b3 add fallback language 2013-04-28 21:55:49 +01:00
Vincent Sanders
ad74fa4d6f fix scrolling on gtk3 2013-04-17 14:16:45 +01:00
Vincent Sanders
69a26c50a3 add translation tokens for GTK preferences dialog 2013-04-17 12:02:53 +01:00
Vincent Sanders
d6f9ae3793 attach scrollbar and layout to the same adjustment so it need not be done in code 2013-04-17 12:02:53 +01:00
Vincent Sanders
fc9097fb1f provide gettext hooks to use the netsurf localisation system
This means the internal message system is used for gettext calls from
gtk libraries.
2013-04-14 11:27:42 +01:00
Vincent Sanders
38d0a299df remove unecissary glib internationalisation include 2013-04-14 11:27:42 +01:00
Vincent Sanders
bf75ba31ac update gtk3 preferences dialog 2013-04-14 11:27:41 +01:00
Daniel Silverstone (parasomnia chroot)
78149141f9 all-program now splits fatmessages for generic in-tree execution 2013-04-10 23:24:49 +01:00
Michael Drake
037beb44fb Pass caret clip rect out to front ends. (Nothing actually using them yet.) 2013-03-05 22:54:51 +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
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
0c0e988ea5 Pass double and triple clicks to the browser window. 2013-02-12 13:20:36 +00:00
Michael Drake
7af0614202 Make delete line key enum value name less missleading. (Doesn't cut to clipboard.) 2013-02-11 10:34:06 +00:00
Michael Drake
4843658742 Don't need to break on space any more. This gives us unicode line breaking from pango. 2013-02-10 18:23:34 +00:00
Michael Drake
d899ebb5fa Pass correct mouse button for button 2. 2013-01-16 11:54:30 +00:00
Michael Drake
e2e7aa135c Update GTK front end to implement new clipboard API. 2013-01-08 17:02:27 +00:00
Michael Drake
8314101ada Pass various control keys to core for clipboard control, etc. 2013-01-08 12:07:56 +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
Vincent Sanders
0402b5ca91 fixup combo boxes to have content, missed in conversion from glade 2012-12-26 17:47:41 +00:00
Vincent Sanders
484fa8b110 move common include path setup to core Makefile 2012-12-20 15:27:07 +00:00
Vincent Sanders
c87cbe5655 split target defaults out 2012-12-13 19:26:24 +00:00
Vincent Sanders
16d67095a6 add pkg-config macro for libraries which are not controled by configuration 2012-12-13 17:23:47 +00:00
Vincent Sanders
45906b9dc2 make macro name more correct 2012-12-13 16:31:05 +00:00
John-Mark Bell
617d655c7b Remove libxml 2012-11-10 00:11:57 +00:00
Anthony J. Bentley
4c82afa287 Fix GNUisms to make things more portable.
On OpenBSD, install does not take a -v flag, and tar does not default to
stdin/stdout.
2012-11-07 08:43:28 +00:00
Vincent Sanders
f16d560f6f add math library to link 2012-11-05 17:20:33 +00:00
John-Mark Bell
07a53f4b44 Appease ancient "install" by removing -C 2012-11-05 09:08:52 +00:00
John-Mark Bell
925a830f9e Make step adjustment work on GTK 2.12 2012-11-05 08:59:29 +00:00
Rob Kendrick (fatigue)
ba2a0fd723 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2012-11-04 11:20:31 +00:00
Rob Kendrick (fatigue)
abb1251461 Try to rationalise the gtk install target somewhat 2012-11-04 11:17:41 +00:00
Daniel Silverstone
3675f38cc3 Force GtkAdjustments to have a step -- this is a bodge but makes scrollwheels work again 2012-11-04 11:06:08 +00:00
John-Mark Bell
f824ab8af4 Port save complete to libdom. 2012-11-03 23:19:45 +00:00
Daniel Silverstone
180f7ff42c Merge Vincent's Javascript work onto master 2012-11-03 15:13:43 +00:00
Rob Kendrick (monotony)
118b03a786 Add a macro to split and install messages files, and have gtk front end use it. 2012-11-03 11:16:33 +00:00
Daniel Silverstone
5631943e40 Ensure that we turn on JS sources if either of USE_JS or USE_MOZJS is triggered 2012-11-02 23:03:20 +00:00
Rob Kendrick (monotony)
de074a3ada Deference symlinks when installing. This should be rewritten to use the install tool 2012-11-02 19:13:09 +00:00
Michael Drake
35eb251244 Fix "error setting certificate verify locations" problem when the Choices file doesn't exist. Now there's a single place for front ends to set options overrides. Fix nsoption_setnull_charp leak. 2012-10-17 14:20:18 +01:00
Michael Drake
d88a839937 Remove suspension of bmp/gif images. It's completely redundant with the convert on demand core image cache. 2012-10-14 20:03:18 +01:00
Daniel Silverstone
fa660c24e8 Remove unnecessary libxml includes from GTK includes 2012-10-11 20:48:06 +01:00
Michael Drake
d9e7d58106 Fix up ripples from urldb change. 2012-10-11 11:20:02 +01:00
Vincent Sanders
5800789df2 trivial docuemntation cleanups to address some of the huge number of docuemntation warnings 2012-10-08 14:52:24 +01:00
Rob Kendrick (humdrum)
c2eff23c0d Make GTK install target work again, and make copy flags consistent 2012-10-02 13:07:32 +01:00
Vincent Sanders
e237ebac8f Split install and package targets.
Install target is for installing on the local machine and package generates a package
2012-08-23 11:46:31 +01:00
Michael Drake
bc8fee46f7 Fix scaled tiled image rendering. 2012-08-22 22:29:18 +01:00
Michael Drake
4357f5e9d7 Test for zero width/height at the start. 2012-08-22 22:26:00 +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
1086fc5246 Change order of libs. 2012-08-21 14:17:11 +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
f478ee4db7 Remove a bunch of unused includes. 2012-08-20 18:54:57 +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
Michael Drake
971058cd67 Remove unused struct box. 2012-08-20 14:21:16 +01:00
Michael Drake
b51816c222 Clean up search gui callbacks. 2012-08-14 13:41:30 +01:00
Michael Drake
c8a83bf1b4 s/TRUE/true/ 2012-08-13 14:51:24 +01:00
Michael Drake
d106091d6e Pass font plot style out to front end clipboard append function. 2012-08-13 14:43:04 +01:00
Michael Drake
5747465437 Use selection_copy_to_clipboard instead of peering at core innards. 2012-08-02 14:38:47 +01:00
Michael Drake
02561162a9 Add welcome page resources. Add symlinks to English welcome page to gtk and framebuffer. 2012-07-21 13:09:14 +01:00
Vincent Sanders
804bec4f99 make non js builds compile
make js support compile with older debian/ubuntu packaging


svn path=/trunk/netsurf/; revision=13990
2012-06-27 23:17:18 +00:00
Vincent Sanders
4c89c9d5df improve javascript support
svn path=/trunk/netsurf/; revision=13962
2012-06-10 22:17:30 +00:00
Vincent Sanders
feb37dd067 cleanup debug logging
svn path=/trunk/netsurf/; revision=13961
2012-06-10 14:53:52 +00:00
Vincent Sanders
d6fbe19acd remove supurflous variable
svn path=/trunk/netsurf/; revision=13960
2012-06-10 14:53:25 +00:00
Vincent Sanders
bc664042c4 remove junk blank page resource
svn path=/trunk/netsurf/; revision=13959
2012-06-10 14:51:40 +00: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
François Revel
4465c4f4af Add Seeks <http://www.seeks-project.info/> to the list of search engines. Use http for the favicon to avoid a cert popup.
svn path=/trunk/netsurf/; revision=13821
2012-04-07 17:14:31 +00:00
François Revel
c48042e0da Implement gui_launch_url() for GTK.
svn path=/trunk/netsurf/; revision=13820
2012-04-07 12:56:02 +00:00
Michael Drake
ce20021df7 Fix colour string matching. Lose unneeded case insensitivity in matching.
svn path=/trunk/netsurf/; revision=13739
2012-03-27 11:02:35 +00:00
Michael Drake
eb189092c7 Constify param to gui_system_colour_char function.
svn path=/trunk/netsurf/; revision=13737
2012-03-27 10:47:29 +00:00
Daniel Silverstone
bf5459c18b Include render/box.h
svn path=/trunk/netsurf/; revision=13667
2012-03-25 10:21:47 +00:00
Vincent Sanders
b21f85a072 initial move to libdom
svn path=/trunk/netsurf/; revision=13573
2012-03-23 23:18:04 +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
9478f01828 Fix bug #3481624: this was needlessly complex
svn path=/trunk/netsurf/; revision=13463
2012-02-23 21:22:37 +00:00
Vincent Sanders
ea0c028cac fix favicon display
svn path=/trunk/netsurf/; revision=13460
2012-02-21 20:54:31 +00:00
Vincent Sanders
8e3e8f2ca1 remove unused scrolledwindow member
svn path=/trunk/netsurf/; revision=13452
2012-02-20 21:28:24 +00:00
John Mark Bell
26a1bb7718 Use S_IRWXU where appropriate
svn path=/trunk/netsurf/; revision=13439
2012-02-10 20:02:13 +00:00
John Mark Bell
6d8cb05732 Fix Debian bug #659376: .netsurf must not be world readable
svn path=/trunk/netsurf/; revision=13438
2012-02-10 19:41:02 +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
Michael Drake
6794af012e Constify rect param to gui_window_drag_start.
svn path=/trunk/netsurf/; revision=13397
2012-01-11 16:45:17 +00:00
Michael Drake
04ece30fa9 Pass pointer constraints for drag out to front ends. Ensure content scrollbar drag termination always informs the browser window layer that the drag is over.
svn path=/trunk/netsurf/; revision=13395
2012-01-11 14:20:26 +00:00
Michael Drake
31f221e84f Remove search init function.
svn path=/trunk/netsurf/; revision=13391
2012-01-06 23:42:22 +00:00
Michael Drake
fc3de8814c Search-as-you-type.
svn path=/trunk/netsurf/; revision=13385
2012-01-06 23:10:04 +00:00
Michael Drake
aac69e6478 s/s/S/
svn path=/trunk/netsurf/; revision=13366
2012-01-02 13:42:51 +00:00
John Mark Bell
f91dcf7308 Fix build with GTK <2.16
svn path=/trunk/netsurf/; revision=13364
2012-01-02 12:11:07 +00:00
Vincent Sanders
6ebaecccaf Totaly prefunctry binding to spidermonkey
svn path=/trunk/netsurf/; revision=13360
2012-01-01 21:42:38 +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
4e3a4448ec Beginnings of a gstreamer binding. I've been sitting on this for too long
svn path=/trunk/netsurf/; revision=13248
2011-12-05 22:33:02 +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
9a29f4b4fe Call core to see if handles scroll wheel event first.
svn path=/trunk/netsurf/; revision=13199
2011-11-29 15:17:35 +00:00
Chris Young
24486e342a Update frontends for r13185. Enabled new functionality, where it is not logical it
can be switched off.

svn path=/trunk/netsurf/; revision=13186
2011-11-27 20:09:10 +00:00
Chris Young
085940711d Add missing title
svn path=/trunk/netsurf/; revision=13058
2011-10-15 13:10:54 +00:00
Michael Drake
deae02c0e7 Remove unused variable.
svn path=/trunk/netsurf/; revision=13050
2011-10-14 20:57:24 +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
4c829ae481 use resource:favicon.ico instead of resource:favicon.png
svn path=/trunk/netsurf/; revision=12982
2011-10-07 21:03:45 +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
John Mark Bell
d5bb9d98e7 Build resource: map at start time
Remove stylesheet url globals -- the core will always use resource:{default,quirks,adblock}.css as appropriate

svn path=/trunk/netsurf/; revision=12949
2011-10-05 08:32:52 +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
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
14db3f7c70 make resource path discovery robust when no resources can be found
svn path=/trunk/netsurf/; revision=12860
2011-09-22 15:10:22 +00:00
John Mark Bell
f27d5a3e15 Remove gui_multitask
svn path=/trunk/netsurf/; revision=12828
2011-09-21 00:25:09 +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
Vincent Sanders
33df7bb9a0 ensure depricated interfaces are not used
svn path=/trunk/netsurf/; revision=12800
2011-09-16 11:09:58 +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
0401d52f51 Remove gui_window_frame_resize_start() functions.
svn path=/trunk/netsurf/; revision=12738
2011-09-05 15:35:34 +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
1d5c6fd0ce Delete unused function.
svn path=/trunk/netsurf/; revision=12731
2011-09-05 10:54:04 +00:00
Michael Drake
a7b886181b Delete dead frames handling.
svn path=/trunk/netsurf/; revision=12730
2011-09-05 10:52:37 +00:00
John Mark Bell
0cc93c221b Fix runtime warning
svn path=/trunk/netsurf/; revision=12717
2011-09-04 20:57:12 +00:00
Michael Drake
e1f20d37c5 Remove dead code.
svn path=/trunk/netsurf/; revision=12715
2011-09-04 19:00:18 +00:00
Michael Drake
5be6bd452d Remove gui_window_position_frame() definition from core and remove all implementations from front ends.
svn path=/trunk/netsurf/; revision=12711
2011-09-04 18:20:24 +00:00
Vincent Sanders
cd554e6f1e make image content handlers build conditional from teh makefile
svn path=/trunk/netsurf/; revision=12673
2011-08-28 14:29:15 +00:00
Michael Drake
1bcfb7500b Don't need to set current_redraw_browser any more.
svn path=/trunk/netsurf/; revision=12655
2011-08-24 13:35:27 +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
Vincent Sanders
0860ac499d refactor to fix warning about out of range enums
split default image finding for toolbar and findbar
reorder to avoid forward declarations
refactor macros to be *slightly* less awful

svn path=/trunk/netsurf/; revision=12640
2011-08-13 22:02:36 +00:00
John Mark Bell
f75b0fca43 Fix motion event handling in GTK treeview
svn path=/trunk/netsurf/; revision=12622
2011-07-24 11:38:26 +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
639e2dbfef Fix up GTK for r12574 API change.
svn path=/trunk/netsurf/; revision=12580
2011-07-06 12:53:23 +00:00
Chris Young
4147c185c8 When launching multiple URLs from a treeview, allow to open one window with multiple
tabs instead of one window per URL.  Make compatible frontends do this by default.

svn path=/trunk/netsurf/; revision=12552
2011-07-02 11:41:06 +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