summaryrefslogtreecommitdiff
path: root/frontends/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-12-31 00:02:21 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-12-31 00:02:21 +0000
commit6ba5edaede1a04db5e374d94e8fd8d4d1fbc3f0a (patch)
treec22cd469bec1e7fe06d93978ed754a90450f514f /frontends/amiga/gui.c
parent47379c04442c805af95ba16b9932fbdb549a7594 (diff)
downloadnetsurf-6ba5edaede1a04db5e374d94e8fd8d4d1fbc3f0a.tar.gz
netsurf-6ba5edaede1a04db5e374d94e8fd8d4d1fbc3f0a.tar.bz2
Update GUI options window to use event callback
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r--frontends/amiga/gui.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index e55e1da2a..f5ae32054 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -1957,7 +1957,7 @@ static void ami_handle_msg(void)
continue;
}
} else if(node->Type == AMINS_GUIOPTSWINDOW) {
- if(ami_gui_opts_event()) {
+ if(w->tbl->event(w)) {
/* last window possibly closed, so exit with conditions ;) */
if(scrn) ami_try_quit();
break;
@@ -2958,6 +2958,7 @@ void ami_quit_netsurf(void)
struct nsObject *node;
struct nsObject *nnode;
struct ami_generic_window *w;
+ struct gui_window_2 *gwin;
/* Disable the multiple tabs open warning */
nsoption_set_bool(tab_close_warn, false);
@@ -2977,12 +2978,13 @@ void ami_quit_netsurf(void)
case AMINS_WINDOW:
/* This also closes windows that are attached to the
* gui_window, such as local history and find. */
- //ShowWindow(gwin->win, WINDOW_BACKMOST); // do we need this??
+ gwin = (struct gui_window_2 *)w;
+ ShowWindow(gwin->win, WINDOW_BACKMOST); // do we need this??
w->tbl->close(w);
break;
case AMINS_GUIOPTSWINDOW:
- ami_gui_opts_close();
+ w->tbl->close(w);
break;
case AMINS_DLWINDOW: