2
* Motif Tools Library, Version 3.1
5
* Written by David Flanagan.
6
* Copyright (c) 1992-2001 by David Flanagan.
7
* All Rights Reserved. See the file COPYRIGHT for details.
8
* This is open source software. See the file LICENSE for details.
9
* There is no warranty for this software. See NO_WARRANTY for details.
12
* Revision 1.1.1.1 2001/07/18 11:06:02 root
15
* Revision 1.2 2001/06/12 16:25:28 andre
16
* *** empty log message ***
23
#include <Xmt/AppResP.h>
24
#include <X11/IntrinsicP.h>
27
static char *information [] = {
30
"X s background m white",
31
": s foreground m black",
32
". s top_shadow m black",
33
"# s bottom_shadow m black",
75
" ..oXoXoXoXoXoXoX## ",
76
" ..XoXoXoXoXoXoXo## ",
77
" ..oXoXoXoXoXoXoX## ",
78
" ..XoXoXoXoXoXoXo## ",
79
" ..oXoXoXoXoXoXoX## ",
80
" ..XoXoXoXoXoXoXo## ",
81
" .################ ",
86
static char *error [] = {
89
"X s background m white",
90
": s foreground m black",
91
". s top_shadow m black",
92
"# s bottom_shadow m black",
94
" ................. ",
95
" ................... ",
96
" ...XoXoXoXoXoXoXoXo## ",
97
" ...XoXoXoXoXoXoXoXoXo## ",
98
" ...XoXoXoXoXoXoXoXoXoXo## ",
99
" ...XoXoXoXoXoXoXoXoXoXoXo## ",
100
" ...XoXoXoXoXoXoXoXoXoXoXoXo## ",
101
" ...XoXoXoX############oXoXoXo## ",
102
" ...XoXoXoX#############.oXoXoXo## ",
103
" ...XoXoXoX### ..oXoXoXo## ",
104
" ...XoXoXoX### ..oXoXoXo## ",
105
" ...XoXoXoXo## ..oXoXoXo## ",
106
" ...XoXoXoXoXo## ..oXoXoXo## ",
107
" ...XoXoXoXoXoXo## ..oXoXoXo## ",
108
" ...XoXoXoXoXoXoXo## ..oXoXoXo## ",
109
" ..XoXoXoX#XoXoXoXo## ..oXoXoXo## ",
110
" ..oXoXoX##..oXoXoXo## ..oXoXoX## ",
111
" ..XoXoX## ..oXoXoXo## ..oXoXo## ",
112
" ..oXoXo## ..oXoXoXo## ..XoXoX## ",
113
" ..XoXoX## ..oXoXoXo## ..oXoXo## ",
114
" ..oXoXo## ..oXoXoXo## ..XoXoX## ",
115
" ..XoXoX## ..oXoXoXo## ..oXoXo## ",
116
" ..oXoXo## ..oXoXoXo## ..XoXoX## ",
117
" ..XoXoX## ..oXoXoXo## ..oXoXo## ",
118
" ..oXoXo## ..oXoXoXo## ..XoXoX## ",
119
" ..XoXoX## ..oXoXoXo## ..oXoXo## ",
120
" ..oXoXo## ..oXoXoXo## ..XoXoX## ",
121
" ..XoXoX## ..oXoXoXo## ..oXoXo## ",
122
" ..oXoXo## ..oXoXoXo## ..XoXoX## ",
123
" ..XoXoX## ..oXoXoXo## ..oXoXo## ",
124
" ..oXoXo## ..oXoXoXo## ..XoXoX## ",
125
" ..XoXoXo## ..oXoXoXo##..XoXoXo## ",
126
" ..oXoXoXo## ..oXoXoXoX#XoXoXoX## ",
127
" ..oXoXoXo## ..oXoXoXoXoXoXoX### ",
128
" ..oXoXoXo## ..oXoXoXoXoXoX### ",
129
" ..oXoXoXo## ..oXoXoXoXoX### ",
130
" ..oXoXoXo## ..oXoXoXoX### ",
131
" ..oXoXoXo## ...XoXoXoX### ",
132
" ..oXoXoXo## ...XoXoXoX### ",
133
" ..oXoXoXo##............XoXoXoX### ",
134
" ..oXoXoXo............XoXoXoX### ",
135
" ..oXoXoXoXoXoXoXoXoXoXoXoX### ",
136
" ..oXoXoXoXoXoXoXoXoXoXoX### ",
137
" ..oXoXoXoXoXoXoXoXoXoX### ",
138
" ..oXoXoXoXoXoXoXoXoX### ",
139
" ..oXoXoXoXoXoXoXoX### ",
140
" ..################# ",
141
" .################ "
145
static char *warning [] = {
148
"X s background m white",
149
": s foreground m black",
150
". s top_shadow m black",
151
"# s bottom_shadow m black",
152
"o s select m black",
204
#if NeedFunctionPrototypes
205
void XmtRegisterImprovedIcons(Widget w, XmtColorTable ctable)
207
void XmtRegisterImprovedIcons(w, ctable)
209
XmtColorTable ctable;
212
XmtImage *ii, *ei, *wi;
213
XImage *ixi, *exi, *wxi;
214
Widget shell = XmtGetShell(w);
215
Visual *visual = XmtGetVisual(shell);
216
Colormap cmap = shell->core.colormap;
217
int depth = shell->core.depth;
218
XmtAppResources *appres;
220
ii = XmtParseXpmData(information);
221
ei = XmtParseXpmData(error);
222
wi = XmtParseXpmData(warning);
225
appres = XmtGetApplicationResources(shell);
226
ctable = appres->colortable;
229
if (XmtCreateXImageFromXmtImage(shell, visual, cmap, depth, ctable,
230
ii, &ixi, NULL, NULL, NULL))
231
XmInstallImage(ixi, "xm_information");
233
if (XmtCreateXImageFromXmtImage(shell, visual, cmap, depth, ctable,
234
ei, &exi, NULL, NULL, NULL))
235
XmInstallImage(exi, "xm_error");
237
if (XmtCreateXImageFromXmtImage(shell, visual, cmap, depth, ctable,
238
wi, &wxi, NULL, NULL, NULL))
239
XmInstallImage(wxi, "xm_warning");