diff options
author | François Revol <revol@free.fr> | 2014-10-13 01:15:44 +0200 |
---|---|---|
committer | François Revol <revol@free.fr> | 2014-10-13 01:15:44 +0200 |
commit | 34fdedba787550a0ae12b573ad5acc1ecb3702e2 (patch) | |
tree | e4b3964396d4715d310d76a18539f3590cbd4044 /beos/gui.cpp | |
parent | a726860d4eccb9a2ebc305c0de119833613137db (diff) | |
download | netsurf-34fdedba787550a0ae12b573ad5acc1ecb3702e2.tar.gz netsurf-34fdedba787550a0ae12b573ad5acc1ecb3702e2.tar.bz2 |
remove use of deprecated netsurf_quit variable in beos
The core no longer needs to run the event polling loop as fetches are now
scheduler driven. This is part of a series which will ultimately remove
netsurf_poll callback altogether.
Diffstat (limited to 'beos/gui.cpp')
-rw-r--r-- | beos/gui.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/beos/gui.cpp b/beos/gui.cpp index cb7effead..695ab8d21 100644 --- a/beos/gui.cpp +++ b/beos/gui.cpp @@ -84,6 +84,8 @@ static void *myrealloc(void *ptr, size_t len, void *pw); // enable using resources instead of files #define USE_RESOURCES 1 +bool nsbeos_done = false; + bool replicated = false; /**< if we are running as a replicant */ char *options_file_location; @@ -713,7 +715,7 @@ void nsbeos_pipe_message_top(BMessage *message, BWindow *_this, struct beos_scaf } -static void gui_poll(bool active) +void nsbeos_gui_poll(void) { fd_set read_fd_set, write_fd_set, exc_fd_set; int max_fd; @@ -978,7 +980,7 @@ static struct gui_fetch_table beos_fetch_table = { }; static struct gui_browser_table beos_browser_table = { - gui_poll, + NULL, //nsbeos_gui_poll, beos_schedule, gui_quit, gui_launch_url, @@ -1038,7 +1040,9 @@ int main(int argc, char** argv) gui_init(argc, argv); - netsurf_main_loop(); + while (!nsbeos_done) { + nsbeos_gui_poll(); + } netsurf_exit(); |