2 * ion/mod_query/query.c
4 * Copyright (c) Tuomo Valkonen 1999-2007.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
13 #include <ioncore/common.h>
14 #include <ioncore/global.h>
15 #include <ioncore/focus.h>
16 #include <ioncore/frame.h>
17 #include <libtu/objp.h>
23 * Display an error message box in the multiplexer \var{mplex}.
26 WMessage *mod_query_do_warn(WMPlex *mplex, const char *p)
34 p2=scat(TR("Error:\n"), p);
39 wmsg=mod_query_do_message(mplex, p2);
48 * Display a message in the \var{mplex}.
51 WMessage *mod_query_do_message(WMPlex *mplex, const char *p)
53 WMPlexAttachParams par;
58 par.flags=(MPLEX_ATTACH_SWITCHTO|
60 MPLEX_ATTACH_UNNUMBERED|
61 MPLEX_ATTACH_SIZEPOLICY);
62 par.szplcy=SIZEPOLICY_FULL_BOUNDS;
64 return (WMessage*)mplex_do_attach_new(mplex, &par,
65 (WRegionCreateFn*)create_wmsg,