From 040da4cf7b5cdef29ee7811cd9250cade778036e Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 20 Jun 2009 22:29:43 +0000 Subject: Amiga Options GUI template code and a bonus "redraw" option in the menu svn path=/trunk/netsurf/; revision=7900 --- amiga/gui.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index 23b5d0311..a36f04541 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -75,6 +75,7 @@ #include "amiga/font.h" #include "amiga/download.h" #include +#include "amiga/gui_options.h" #ifdef NS_AMIGA_CAIRO #include @@ -793,6 +794,23 @@ void ami_handle_msg(void) continue; } } + else if(node->Type == AMINS_GUIOPTSWINDOW) + { + if(ami_gui_opts_event()) + { + if(IsMinListEmpty(window_list)) + { + /* last window closed, so exit */ + netsurf_quit = true; + } + break; + } + else + { + node = nnode; + continue; + } + } while((result = RA_HandleInput(gwin->objects[OID_MAIN],&code)) != WMHI_LASTMSG) { -- cgit v1.2.3