Commit Graph

45 Commits

Author SHA1 Message Date
John Mark Bell e591889566 The frontend has no business calling fetch_poll(). Stop it.
svn path=/trunk/netsurf/; revision=11773
2011-02-23 22:30:31 +00:00
Vincent Sanders 0231675abf add resource handling
move gtk and framebuffer to use generic resource handling

svn path=/trunk/netsurf/; revision=11772
2011-02-23 22:27:55 +00:00
François Revel e8ce7bd953 Fix the build.
svn path=/trunk/netsurf/; revision=11766
2011-02-22 23:50:18 +00:00
François Revel e1c11a1d54 Pick the CSS system colours from ui_color() and BScreen::DesktopColor(). Update those when they are updated in ZETA. Also update the toolbar and statusbar background.
svn path=/trunk/netsurf/; revision=11535
2011-01-30 19:23:42 +00:00
Michael Drake 5eaeaed909 Remove Hubbub and Wapcaplet initialisation and finalisation.
svn path=/trunk/netsurf/; revision=10980
2010-12-04 20:14:33 +00:00
John Mark Bell 6173bb0e6c Merge treeview-redux to trunk
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
François Revel 4cb2657d19 Copy over the gtk implementation of url_to_path/path_to_url(). This fixes getting the mime type of local files.
svn path=/trunk/netsurf/; revision=10688
2010-08-12 13:33:53 +00:00
François Revel 982dc9e128 Fix BeOS build:
- struct content -> hlcache_handle
- login window (though it won't work yet as the message isn't handled, and since we don't have the window pointer anymore we can't add the alert as subset of the window...),
- rsrc fetcher,
- netsurf_init() args (but the replicant is still broken due to this),
- export the realpath() hack as it's needed elsewhere too.

svn path=/trunk/netsurf/; revision=10677
2010-08-02 23:35:35 +00:00
Michael Drake 513793a060 Fix inventory file leafname.
svn path=/trunk/netsurf/; revision=10624
2010-07-09 21:36:55 +00:00
Chris Young 1510bbd3ad Check the last character for a path separator, rather than the NULL string termination.
svn path=/trunk/netsurf/; revision=10622
2010-07-09 19:55:13 +00:00
Chris Young d6eb28d5de Replace unnecessarily complicated path concatenation with something simpler and
easily adaptable to different platform path structures.

svn path=/trunk/netsurf/; revision=10621
2010-07-09 19:45:44 +00:00
Michael Drake b010a25771 + Refactor input handling from browser window code into content
handlers.
+ Disentangle all box tree manipulation from browser window
  code and put it where it belongs.
+ Move other content specific and other irrelevant code from
  browser window handling to appropriate places.
+ Put mouse state enum in new mouse header, since it's not just
  used by browser window code, and it is used by treeview
  windows on the treeview branch.

svn path=/trunk/netsurf/; revision=10561
2010-06-04 09:35:08 +00:00
John Mark Bell 000e6ad3de It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by the C standard (whereas realloc(NULL, size) --> malloc(size) is).
Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free).

svn path=/trunk/netsurf/; revision=10524
2010-04-30 07:00:58 +00:00
Vincent Sanders 03bb3e8636 remove _GNU_SOURCE define from everywhere.
strndup is not standard so provide an implementation.

svn path=/trunk/netsurf/; revision=10474
2010-04-24 15:22:17 +00:00
John Mark Bell 2748fe4f64 Make downloads work again.
svn path=/trunk/netsurf/; revision=10243
2010-04-05 21:35:38 +00:00
Vincent Sanders 95e4a737de rationalise the usage of the file scheme
svn path=/trunk/netsurf/; revision=10221
2010-03-31 13:59:57 +00:00
Vincent Sanders 7e67527267 first part of initialisation refactor move gui_init2 into frontends
svn path=/trunk/netsurf/; revision=10202
2010-03-29 16:59:30 +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
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