diff options
author | Ole Loots <ole@monochrom.net> | 2013-01-11 23:53:46 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-01-11 23:53:46 +0100 |
commit | badc87f343895e66d5c550075165165da3e4f6a6 (patch) | |
tree | 3618327aae0b2fffeb612cf151757a87629b6fb9 /atari | |
parent | adcbbbe88033e245732b73bd6319c0cb9b4da9b3 (diff) | |
download | netsurf-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.
Diffstat (limited to 'atari')
-rw-r--r-- | atari/gemtk/guiwin.c | 39 | ||||
-rw-r--r-- | atari/search.c | 2 |
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 );
} } |