summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-01-11 23:53:46 +0100
committerOle Loots <ole@monochrom.net>2013-01-11 23:53:46 +0100
commitbadc87f343895e66d5c550075165165da3e4f6a6 (patch)
tree3618327aae0b2fffeb612cf151757a87629b6fb9
parentadcbbbe88033e245732b73bd6319c0cb9b4da9b3 (diff)
downloadnetsurf-badc87f343895e66d5c550075165165da3e4f6a6.tar.gz
netsurf-badc87f343895e66d5c550075165165da3e4f6a6.tar.bz2
Use windowes objc_w* and form_w* functions,
this should respect the window area, but it doesn't.
-rw-r--r--atari/gemtk/guiwin.c39
-rw-r--r--atari/search.c2
2 files changed, 21 insertions, 20 deletions
diff --git a/atari/gemtk/guiwin.c b/atari/gemtk/guiwin.c
index 17c577ec0..0d5257fae 100644
--- a/atari/gemtk/guiwin.c
+++ b/atari/gemtk/guiwin.c
@@ -19,11 +19,11 @@
#include <stdint.h>
#include <stdbool.h>
#include <assert.h>
-#include <cflib.h>
-
#include <gem.h>
-#include <mt_gem.h>
+#include <gemx.h>
+#include <cflib.h>
+
#include "gemtk.h"
//#define DEBUG_PRINT(x) printf x
@@ -374,29 +374,30 @@ static short preproc_mu_button(GUIWIN * gw, EVMULT_OUT *ev_out, short msg[8])
// it is attached.
// report mouse click to the tree:
- retval = form_button(gw->form, gw->form_focus_obj,
- ev_out->emo_mclicks, &nextobj);
+ retval = form_wbutton(gw->form, gw->form_focus_obj,
+ ev_out->emo_mclicks, &nextobj,
+ gw->handle);
// end edit mode for active edit object:
if(gw->form_edit_obj != -1) {
- objc_edit(gw->form, gw->form_edit_obj,
+ objc_wedit(gw->form, gw->form_edit_obj,
ev_out->emo_kreturn, &edit_idx,
- EDEND);
+ EDEND, gw->handle);
}
// activate the new edit object:
gw->form_edit_obj = gw->form_focus_obj;
- objc_edit(gw->form, gw->form_edit_obj,
+ objc_wedit(gw->form, gw->form_edit_obj,
ev_out->emo_kreturn, &edit_idx,
- EDINIT);
+ EDINIT, gw->handle);
} else {
// end edit mode for active edit object:
if(gw->form_edit_obj != -1) {
- objc_edit(gw->form, gw->form_edit_obj,
+ objc_wedit(gw->form, gw->form_edit_obj,
ev_out->emo_kreturn, &edit_idx,
- EDEND);
+ EDEND, gw->handle);
gw->form_edit_obj = -1;
}
@@ -443,28 +444,28 @@ static short preproc_mu_keybd(GUIWIN * gw, EVMULT_OUT *ev_out, short msg[8])
short edit_idx;
short r;
- r = form_keybd(gw->form, gw->form_edit_obj, next_edit_obj,
+ r = form_wkeybd(gw->form, gw->form_edit_obj, next_edit_obj,
ev_out->emo_kreturn,
- &next_edit_obj, &next_char);
+ &next_edit_obj, &next_char, gw->handle);
if (next_edit_obj != gw->form_edit_obj) {
if(gw->form_edit_obj != -1) {
- objc_edit(gw->form, gw->form_edit_obj,
+ objc_wedit(gw->form, gw->form_edit_obj,
ev_out->emo_kreturn, &edit_idx,
- EDEND);
+ EDEND, gw->handle);
}
gw->form_edit_obj = next_edit_obj;
- objc_edit(gw->form, gw->form_edit_obj,
+ objc_wedit(gw->form, gw->form_edit_obj,
ev_out->emo_kreturn, &edit_idx,
- EDINIT);
+ EDINIT, gw->handle);
} else {
if(next_char > 13)
- r = objc_edit(gw->form, gw->form_edit_obj,
+ r = objc_wedit(gw->form, gw->form_edit_obj,
ev_out->emo_kreturn, &edit_idx,
- EDCHAR);
+ EDCHAR, gw->handle);
}
}
}
diff --git a/atari/search.c b/atari/search.c
index b58105638..d535d5517 100644
--- a/atari/search.c
+++ b/atari/search.c
@@ -318,7 +318,7 @@ SEARCH_FORM_SESSION open_browser_search(struct gui_window * gw)
if (dlgtree == NULL) {
dlgtree = get_tree(SEARCH);
- if (dlgtree == NULL ) {
+ if (dlgtree == NULL) {
return( NULL );
}
}