diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-06 10:43:25 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-06 10:43:25 +0000 |
commit | 7c695048aefaa3eb1fcc07e27f27b3bc408fe3aa (patch) | |
tree | 4d27d3f7fcfddb4f7e222132a2983fc1a20f4c9e | |
parent | 24291b61602d1e9a5f54deab7bd3d33968a41e04 (diff) | |
download | netsurf-7c695048aefaa3eb1fcc07e27f27b3bc408fe3aa.tar.gz netsurf-7c695048aefaa3eb1fcc07e27f27b3bc408fe3aa.tar.bz2 |
Make NetSurf's screen a public screen with the name "NetSurf".
svn path=/trunk/netsurf/; revision=5885
-rwxr-xr-x | amiga/gui.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 2a541a5b4..6dbedb68c 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -441,8 +441,12 @@ void gui_init2(int argc, char** argv) SA_Depth,option_screen_depth, SA_DisplayID,id, SA_Title,nsscreentitle, + SA_Type,CUSTOMSCREEN, + SA_PubName,"NetSurf", SA_LikeWorkbench,TRUE, TAG_DONE); + + if(scrn) PubScreenStatus(scrn,0); } } @@ -536,6 +540,13 @@ void ami_handle_msg(void) struct InputEvent *ie; struct Node *tabnode; + if(IsMinListEmpty(window_list)) + { + /* no windows in list, so NetSurf should not be running */ + netsurf_quit = true; + return; + } + node = (struct nsObject *)GetHead((struct List *)window_list); do |