(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.

This commit is contained in:
rubidium
2008-05-04 10:05:50 +00:00
parent 63fea0790b
commit 0083ce9e1b
6 changed files with 44 additions and 29 deletions

View File

@@ -161,7 +161,7 @@ static void OskWndProc(Window *w, WindowEvent *e)
WindowEvent e;
e.event = WE_CLICK;
e.we.click.widget = WP(w, osk_d).ok_btn;
parent->wndproc(parent, &e);
parent->HandleWindowEvent(&e);
}
}
DeleteWindow(w);
@@ -173,7 +173,7 @@ static void OskWndProc(Window *w, WindowEvent *e)
WindowEvent e;
e.event = WE_CLICK;
e.we.click.widget = WP(w, osk_d).cancel_btn;
parent->wndproc(parent, &e);
parent->HandleWindowEvent(&e);
} else { // or reset to original string
strcpy(qs->text.buf, WP(w, osk_d).orig);
UpdateTextBufferSize(&qs->text);