util/dttypes: remove register keyword
[oweals/cde.git] / cde / programs / dtudcfonted / xutil.c
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* xutil.c 1.2 - Fujitsu source for CDEnext    96/02/29 17:30:54      */
24 /* $XConsortium: xutil.c /main/2 1996/04/08 16:03:37 cde-fuj $ */
25 /*
26  *  (c) Copyright 1995 FUJITSU LIMITED
27  *  This is source code modified by FUJITSU LIMITED under the Joint
28  *  Development Agreement for the CDEnext PST.
29  *  This is unpublished proprietary source code of FUJITSU LIMITED
30  */
31
32
33
34 #include <string.h>
35 #include <stdio.h>
36 #include <stdlib.h>
37 #include <nl_types.h>
38
39 #include <Xm/Xm.h>
40
41 #include <Xm/Form.h>
42 #include <Xm/PushB.h>
43 #include <Xm/Text.h>
44 #include <Xm/TextF.h>
45 #include <Xm/Label.h>
46 #include <Xm/SeparatoG.h>
47 #include <Xm/List.h>
48 #include <Xm/ToggleB.h>
49 #include <Xm/MessageB.h>
50
51 #include "selectxlfd.h"
52 #include "xoakufont.h"
53
54 /*
55  * parameters
56  */
57 void    xlfdPopupDialog() ;
58
59 extern  int                     getmask ;
60
61 extern Widget   toplevel ;
62 extern Widget   slctBLabel[BUTTONITEMS],
63                 slctBText[BUTTONITEMS], slctButton[BUTTONITEMS], 
64                 listPop[BUTTONITEMS],   listW[BUTTONITEMS], errorMD, msgBox ;
65
66 /****************************************************************
67  * common functions 
68 ****************************************************************/
69
70
71 /*
72  * pop up and down dialog box 
73  */
74
75 void
76 xlfdPopupDialog(w)
77 Widget w;
78 {
79     if (! XtIsManaged(w))
80         XtManageChild(w);
81     else
82         XRaiseWindow(XtDisplayOfObject(w), XtWindow(XtParent(w)));
83 }