summaryrefslogtreecommitdiff
path: root/frontends/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-08 00:16:06 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-08 00:16:06 +0100
commit4713e1c8af2e4defbc127150838bd35549038b7b (patch)
tree3e028473033812e72400ba7b5425c3f3834fd217 /frontends/amiga/gui.c
parentca1a519cfad66978c18181b4a544b485f69aee90 (diff)
downloadnetsurf-4713e1c8af2e4defbc127150838bd35549038b7b.tar.gz
netsurf-4713e1c8af2e4defbc127150838bd35549038b7b.tar.bz2
Accessor for the select menu control pointer
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r--frontends/amiga/gui.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 55d57d52b..0d7299ffd 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -389,6 +389,24 @@ void ami_gui2_set_menu(struct gui_window_2 *gwin, struct Menu *menu)
}
}
+struct form_control *ami_gui_get_control(struct gui_window *gw)
+{
+ /* TODO: does this need to be in the shared window? */
+ assert(gw != NULL);
+ return gw->shared->control;
+}
+
+/**
+ * Set control (for select menu) to gui_window
+ */
+void ami_gui_set_control(struct gui_window *gw, struct form_control *control)
+{
+ /* TODO: does this need to be in the shared window? */
+ assert(gw != NULL);
+ gw->shared->control = control;
+}
+
+
STRPTR ami_locale_langs(int *codeset)
{
struct Locale *locale;