Commit Graph

27 Commits

Author SHA1 Message Date
Chris Young
033b5d815a Move code which extracts the filename from a given path into frontend.
svn path=/trunk/netsurf/; revision=10139
2010-03-21 13:32:59 +00:00
Vincent Sanders
e01d93f344 Refactor main into the frontends
remove unused embedded global

svn path=/trunk/netsurf/; revision=9851
2010-01-20 20:32:30 +00:00
John Mark Bell
ddeadd1c02 Merge LibCSS port to trunk.
svn path=/trunk/netsurf/; revision=8752
2009-07-23 23:05:34 +00:00
John Mark Bell
daf7a52dd6 Hubbub is no longer optional.
Remove libxml2 parser binding.

svn path=/trunk/netsurf/; revision=7115
2009-04-17 00:54:27 +00:00
François Revel
3f0ded25ba Call netsurf_init() from the thread creating the replicant, then the main loop from the thread we created. This avoids a deadlock with the replicant in BeHappy in Haiku. (I should probably make BTranslatorRoster not lock be_app anyway though).
svn path=/trunk/netsurf/; revision=5588
2008-10-16 20:52:00 +00:00
François Revel
ce07ebcea8 - handle NetPositive what codes; this makes it easy to use NetSurf instead by just changing the archived message used to instantiate it.
- fix background view color, some host apps hide the BDragger, making it visible.
- handle mailto: urls as a special case, we historically use the prefered app for text/x-email.

svn path=/trunk/netsurf/; revision=5584
2008-10-16 16:01:44 +00:00
François Revel
b3a5250f99 Add Replicant support. No it's not about cyborgs, just embedding NetSurf into another app, like Tracker (the desktop), or documentation browsers like BeHappy...
svn path=/trunk/netsurf/; revision=5583
2008-10-16 14:24:09 +00:00
François Revel
4e79ee3d07 - support BITMAP_CLEAR_MEMORY in create_bitmap()
- copying to clipboard now constructs a text_run_array for StyledEdit, that is added to the clipboard. In applications supporting it it pastes the text with the correct fonts and sizes, and the text colors.
- tried to find which line in source code the selection starts to open the editor there, but it's not finished so it's disabled.

svn path=/trunk/netsurf/; revision=5533
2008-10-10 21:43:25 +00:00
François Revel
8710d3a814 - fix for copying selection to clipboard
- fix some leaks
- prepare for about box (use about html from rsrc: but it's broken yet)
- if more than 1 refs received at the same time, open the extra ones in a new window.

svn path=/trunk/netsurf/; revision=5511
2008-10-09 01:22:14 +00:00
François Revel
493fb9ed87 Fix app signature for Haiku's StyledEdit.
svn path=/trunk/netsurf/; revision=5504
2008-10-07 01:36:11 +00:00
François Revel
6fd280ad2e - fix using undefined fd_sets in case active was false. Looks like I was too quick at copy-pasting gtk code. This should fix the busy-loop behaviour on Haiku.
- remove dead gtk code.

svn path=/trunk/netsurf/; revision=5502
2008-10-07 00:15:19 +00:00
François Revel
497c218d4a - less debug output
- fixed mouse handling, now text input works again.

svn path=/trunk/netsurf/; revision=5496
2008-10-06 04:11:28 +00:00
François Revel
de531c691a Make gui_poll() a little better. Don't check for the event pipe fd if select returned an error.
svn path=/trunk/netsurf/; revision=5492
2008-10-06 00:29:02 +00:00
François Revel
b36a6f7734 Add Hubbub support, should work much better when actually initializing it.
svn path=/trunk/netsurf/; revision=5487
2008-10-05 20:35:28 +00:00
François Revel
ae7290a2e2 Fix build and opening source file in editor.
svn path=/trunk/netsurf/; revision=5485
2008-10-05 15:10:22 +00:00
François Revel
54ccbc94ed Add support for editting page source.
svn path=/trunk/netsurf/; revision=5479
2008-10-03 03:42:10 +00:00
François Revel
5de594527f - cleanup dead gtk code and copyrights
- fix refs received before we have a window open (as in OpenWith...), maybe I should just open a new window each time anyway ?

svn path=/trunk/netsurf/; revision=5476
2008-10-02 19:57:19 +00:00
François Revel
e4cdeb178e Use find_directory() to find where to put settings instead of polluting ~/.
svn path=/trunk/netsurf/; revision=5475
2008-10-02 18:10:22 +00:00
François Revel
7f100d8d49 - Cleanup: remove dead gtk code and its copyrights
- remove unneeded fieltype hashlist code we just use the mime roster
- implemented saving bitmaps

svn path=/trunk/netsurf/; revision=5469
2008-10-02 14:10:52 +00:00
François Revel
08073fb3d6 - switch to using builtin css files from rsrc:
- add debug output to trace keyboard input as textinput doesn't work anymore.

svn path=/trunk/netsurf/; revision=5468
2008-10-02 13:34:20 +00:00
François Revel
7330f726e5 Fix BeOS build. We don't handle tabs yet though.
svn path=/trunk/netsurf/; revision=5209
2008-08-26 23:58:27 +00:00
François Revel
44856d86d4 Fix the BeOS build:
- hack to work around stdbool.h issue with R5 devkit
- fix prototypes
- fix bitmap code
- fix copy-paste on forward button
- remove unused gif throbber loading code
- R5 rgb_color doesn't have != operator, use memcmp()
- switch back to file based [beos]default.css for the time being
- realpath() hack for R5
Regressions:
- asserts on haiku-os.org
- no libns* yet, so less image support
- text field input doesn't work anymore.

svn path=/trunk/netsurf/; revision=5109
2008-08-13 19:35:41 +00:00
Rob Kendrick
9eacc5ca04 Make user agent string and default homepage configurable from Makefile.config
svn path=/trunk/netsurf/; revision=4803
2008-07-29 15:10:31 +00:00
François Revel
5e393e19ce Use bundled resources instead of separate files. throbber uses 'data' type also now.
svn path=/trunk/netsurf/; revision=4297
2008-06-07 02:48:31 +00:00
François Revel
b0fa2b299d Add copyrights
Notes on a plot_path implementation.

svn path=/trunk/netsurf/; revision=4292
2008-06-07 01:13:07 +00:00
François Revel
524e29c4df - fixed alpha bitmap drawing
- fixed polygon drawing
- newstyle throbber, loosely copied from the gtk one.

svn path=/trunk/netsurf/; revision=4259
2008-06-04 01:53:20 +00:00
François Revel
90a15a9753 The BeOS-specific part of the BeOS (and Haiku) port, modeled mostly from the GTK version.
Some fixes are needed elsewhere but non-obvious ones I'll post on the mailing list for discussion.
Currently it opens windows with a toolbar, url and status bar, a (yet empty) menu bar.
Rendering seems to work including scrolling at scale 1 (other non-tested).
framesets seems broken though.

svn path=/trunk/netsurf/; revision=4253
2008-06-03 19:07:09 +00:00