2 * ion/mod_query/query.c
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
10 #include <ioncore/common.h>
11 #include <ioncore/global.h>
12 #include <ioncore/focus.h>
13 #include <ioncore/frame.h>
14 #include <ioncore/stacking.h>
15 #include <libtu/objp.h>
21 * Display an error message box in the multiplexer \var{mplex}.
24 WMessage
*mod_query_do_warn(WMPlex
*mplex
, const char *p
)
32 p2
=scat(TR("Error:\n"), p
);
37 wmsg
=mod_query_do_message(mplex
, p2
);
46 * Display a message in the \var{mplex}.
49 WMessage
*mod_query_do_message(WMPlex
*mplex
, const char *p
)
51 WMPlexAttachParams par
;
56 par
.flags
=(MPLEX_ATTACH_SWITCHTO
|
58 MPLEX_ATTACH_UNNUMBERED
|
59 MPLEX_ATTACH_SIZEPOLICY
);
60 par
.szplcy
=SIZEPOLICY_FULL_BOUNDS
;
61 par
.level
=STACKING_LEVEL_MODAL1
+2;
63 return (WMessage
*)mplex_do_attach_new(mplex
, &par
,
64 (WRegionCreateFn
*)create_wmsg
,