Commit 0bcc371b11ca34814ce60fd5b3d5715d296c6826
1 parent
3e33a207
Exists in
master
and in
3 other branches
Incluindo suporte para janelas popup no plugin rexx
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
screen.c
... | ... | @@ -845,14 +845,19 @@ LIB3270_EXPORT void lib3270_set_popup_handler(int (*handler)(H3270 *, void *, LI |
845 | 845 | LIB3270_EXPORT void lib3270_popup_dialog(H3270 *session, LIB3270_NOTIFY id , const char *title, const char *message, const char *fmt, ...) |
846 | 846 | { |
847 | 847 | va_list args; |
848 | + va_start(args, fmt); | |
849 | + lib3270_popup_va(session, id, title, message, fmt, args); | |
850 | + va_end(args); | |
851 | +} | |
852 | + | |
853 | +LIB3270_EXPORT void lib3270_popup_va(H3270 *session, LIB3270_NOTIFY id , const char *title, const char *message, const char *fmt, va_list args) | |
854 | +{ | |
848 | 855 | |
849 | 856 | CHECK_SESSION_HANDLE(session); |
850 | 857 | |
851 | 858 | trace("%s: title=%s msg=%s",__FUNCTION__,"3270 Error",message); |
852 | 859 | |
853 | - va_start(args, fmt); | |
854 | 860 | popup_handler(session,session->widget,id,title ? title : _( "3270 Error" ), message,fmt,args); |
855 | - va_end(args); | |
856 | 861 | } |
857 | 862 | |
858 | 863 | LIB3270_EXPORT int lib3270_is_protected(H3270 *h, unsigned int baddr) | ... | ... |