diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-10 20:32:40 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-10 20:32:40 +0100 |
commit | c5a07fac76313c2d2d6348dee20d881a639c40c8 (patch) | |
tree | d83ea7b5b2849be63c739a796a93f4d860267a2a /frontends/amiga/gui.h | |
parent | 8f9d434b1295215c377eab2ba7186ad8b2d92aa9 (diff) | |
download | netsurf-c5a07fac76313c2d2d6348dee20d881a639c40c8.tar.gz netsurf-c5a07fac76313c2d2d6348dee20d881a639c40c8.tar.bz2 |
Replace global current gui_window with an accessor function
Diffstat (limited to 'frontends/amiga/gui.h')
-rw-r--r-- | frontends/amiga/gui.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/frontends/amiga/gui.h b/frontends/amiga/gui.h index 0ce50112e..caa21c339 100644 --- a/frontends/amiga/gui.h +++ b/frontends/amiga/gui.h @@ -1,5 +1,5 @@ /* - * Copyright 2008-2017 Chris Young <chris@unsatisfactorysoftware.co.uk> + * Copyright 2008-2019 Chris Young <chris@unsatisfactorysoftware.co.uk> * * This file is part of NetSurf, http://www.netsurf-browser.org/ * @@ -79,7 +79,6 @@ struct ami_generic_window { extern struct MinList *window_list; /**\todo stop arexx.c poking about in here */ extern struct Screen *scrn; extern struct MsgPort *sport; -extern struct gui_window *cur_gw; #define IS_CURRENT_GW(GWIN,GW) (ami_gui2_get_gui_window(GWIN) == GW) @@ -184,6 +183,12 @@ bool ami_gui_window_update_box_deferred_check(struct MinList *deferred_rects, void ami_gui_adjust_scale(struct gui_window *gw, float adjustment); /** + * Get a pointer to the gui_window which NetSurf considers + * to be the current/active one + */ +struct gui_window *ami_gui_get_active_gw(void); + +/** * Get browser window from gui_window */ struct browser_window *ami_gui_get_browser_window(struct gui_window *gw); |