diff options
Diffstat (limited to 'beos/beos_window.cpp')
-rw-r--r-- | beos/beos_window.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/beos/beos_window.cpp b/beos/beos_window.cpp index 3d66a2c82..b18504b2c 100644 --- a/beos/beos_window.cpp +++ b/beos/beos_window.cpp @@ -31,6 +31,7 @@ extern "C" { #include "utils/utf8.h" #include "utils/utils.h" } +#include "beos/beos_about.h" #include "beos/beos_window.h" #include "beos/beos_font.h" #include "beos/beos_gui.h" @@ -101,6 +102,8 @@ struct gui_window { struct gui_window *next, *prev; }; + + static const rgb_color kWhiteColor = {255, 255, 255, 255}; static struct gui_window *window_list = 0; /**< first entry in win list*/ @@ -397,6 +400,8 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw, } else { /* Now construct and attach a scaffold */ g->scaffold = nsbeos_new_scaffolding(g); + if (!g->scaffold) + return NULL; } /* Construct our primary elements */ @@ -688,8 +693,7 @@ void nsbeos_dispatch_event(BMessage *message) break; case B_ABOUT_REQUESTED: { - //BAlert *alert; - //XXX: i18n-ize + nsbeos_about(gui); /* XXX: doesn't work yet! bug in rsrc:/ BString url("rsrc:/about.en.html,text/html"); browser_window_create(url.String(), NULL, NULL, true, false); @@ -1287,6 +1291,9 @@ void nsbeos_window_destroy_browser(struct gui_window *g) void gui_window_destroy(struct gui_window *g) { + if (!g) + return; + if (g->prev) g->prev->next = g->next; else |