2 * ion/mod_query/query.c
4 * Copyright (c) Tuomo Valkonen 1999-2006.
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_warn(WMPlex *mplex, const char *p)
34 p2=scat(TR("Error:\n"), p);
39 wmsg=mod_query_message(mplex, p2);
47 * Display a message in the \var{mplex}.
50 WMessage *mod_query_message(WMPlex *mplex, const char *p)
52 WMPlexAttachParams par;
57 par.flags=(MPLEX_ATTACH_SWITCHTO|
59 MPLEX_ATTACH_UNNUMBERED|
60 MPLEX_ATTACH_SIZEPOLICY);
61 par.szplcy=SIZEPOLICY_FULL_BOUNDS;
63 return (WMessage*)mplex_do_attach_new(mplex, &par,
64 (WRegionCreateFn*)create_wmsg,