diff options
author | François Revel <mmu_man@netsurf-browser.org> | 2008-10-17 21:59:44 +0000 |
---|---|---|
committer | François Revel <mmu_man@netsurf-browser.org> | 2008-10-17 21:59:44 +0000 |
commit | 174a8dcca2cb1a8fdaed09382650836edf0df9a8 (patch) | |
tree | 0075b14f531d847cf3b7846a7e1512798748f2bb /beos/beos_scaffolding.cpp | |
parent | f74cd65518bf13e6f8270acd560c64a0038d2f2f (diff) | |
download | netsurf-174a8dcca2cb1a8fdaed09382650836edf0df9a8.tar.gz netsurf-174a8dcca2cb1a8fdaed09382650836edf0df9a8.tar.bz2 |
- when replicated, forbid creating windows, even though it initially works it crashes as soon as the menus are used.
- added an about box from the infos in the gtk code, still not perfect.
svn path=/trunk/netsurf/; revision=5590
Diffstat (limited to 'beos/beos_scaffolding.cpp')
-rw-r--r-- | beos/beos_scaffolding.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/beos/beos_scaffolding.cpp b/beos/beos_scaffolding.cpp index 24c5d27de..1362b1115 100644 --- a/beos/beos_scaffolding.cpp +++ b/beos/beos_scaffolding.cpp @@ -1612,7 +1612,13 @@ nsbeos_scaffolding *nsbeos_new_scaffolding(struct gui_window *toplevel) g->window = NULL; - if (!replicated) { + if (replicated && !replicant_view) { + warn_user("Error: No subwindow allowed when replicated.", NULL); + return NULL; + } + + + if (!replicant_view) { BRect frame(0, 0, 600-1, 500-1); if (option_window_width > 0) { @@ -1940,7 +1946,6 @@ nsbeos_scaffolding *nsbeos_new_scaffolding(struct gui_window *toplevel) } else { // replicant_view // the base view has already been created with the archive constructor g->top_view = replicant_view; - replicant_view = NULL; } g->top_view->SetScaffolding(g); @@ -2053,7 +2058,10 @@ nsbeos_scaffolding *nsbeos_new_scaffolding(struct gui_window *toplevel) // will be added to the scrollview when adding the top view. // notify the thread creating the replicant that we're done - release_sem(replicant_done_sem); + if (replicant_view) + release_sem(replicant_done_sem); + + replicant_view = NULL; #warning XXX #if 0 /* GTK */ |