2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
24 "$XConsortium: SrvMain.c /main/4 1995/10/30 09:40:18 rswiston $";
26 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
27 * (c) Copyright 1993, 1994 International Business Machines Corp. *
28 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
29 * (c) Copyright 1993, 1994 Novell, Inc. *
33 * Revision 1.10 95/02/24 13:47:53 13:47:53 mcnichol_ibm_austin
34 * 7602 - code needs 4 line CDE partner copyright notices
36 * Revision 1.9 94/07/25 15:52:01 15:52:01 mcbill_hp_cv
37 * remove call to DtSetUserMessageHandler (obsolete)
40 * Revision 1.8 94/05/05 16:13:58 16:13:58 arg_sun
43 * Revision 1.7 93/08/12 20:25:17 20:25:17 xbuild (See Marc Ayotte)
44 * additional CoeToDt check-in
46 * Revision 1.6 93/08/12 20:17:58 20:17:58 xbuild (See Marc Ayotte)
49 * Revision 1.5 93/03/08 14:39:58 14:39:58 xbuild (See Marc Ayotte)
50 * "duplicate rev for sending to ibm"
52 * Revision 1.4 93/03/05 11:19:52 11:19:52 ronv (Ronald Voll)
53 * ========= Changed strings: =============
59 * Revision 1.3 93/01/28 15:47:47 15:47:47 xbuild (See Marc Ayotte)
62 * Revision 1.2 93/01/27 19:50:39 19:50:39 xbuild (See Marc Ayotte)
65 * Revision 1.1 93/01/12 10:42:51 10:42:51 xbuild (See Marc Ayotte)
68 * Revision 1.1 93/01/07 16:40:10 16:40:10 xbuild (See Marc Ayotte)
71 * Revision 1.1 91/10/31 16:26:30 16:26:30 keith (Keith Taylor)
74 * Revision 3.3 91/05/22 14:02:22 14:02:22 julie (Julie Skeen)
75 * protos and domain fixes
77 * Revision 3.2 90/09/24 17:20:33 17:20:33 fredh (Fred Handloser)
78 * change to static message catalogs
80 * Revision 3.1 90/07/27 11:37:34 11:37:34 ted (Ted Ransom)
81 * added the new parameter for InitializeCoecolor
83 * Revision 3.0 90/07/10 12:08:42 12:08:42 kimd (Kim Drongesen)
84 * first release after strider/tw
85 * useAsyncGeometry and font changes for topcat added
87 * Revision 2.6 90/04/26 14:00:03 14:00:03 ted
90 * Revision 2.5 90/03/29 08:08:46 08:08:46 ted (Ted Ransom)
91 * now calls InitializeCoecolor .. does CheckMonitor, InitializePalettes, and
94 * Revision 2.4 90/03/26 14:34:45 14:34:45 ted (Ted Ransom)
95 * registered error message handler .. registered XeProgName
97 * Revision 2.3 90/03/14 17:23:40 17:23:40 ted (Ted Ransom)
100 * Revision 2.2 90/03/14 11:25:43 11:25:43 jenny (Jennefer Wood)
101 * added appContext to XtOpenDisplay and XtAppMainLoop
103 * Revision 2.1 90/03/13 09:04:30 09:04:30 ted (Ted Ransom)
104 * added support for Selections .. use -DSELECTION
106 * Revision 2.0 90/03/12 09:17:25 09:17:25 jenny (Jennefer Wood)
109 * Revision 1.5 90/02/28 11:27:02 11:27:02 ted (Ted Ransom)
110 * updated to support multiple screens
112 * Revision 1.4 90/02/26 17:25:02 17:25:02 ted (Ted Ransom)
113 * no changes ... sorry
115 * Revision 1.3 90/02/21 13:41:08 13:41:08 root ()
116 * added malloc_check and malloc_trace under ifdef for USERHELP
118 * Revision 1.2 90/02/12 16:04:09 16:04:09 ted (Ted Ransom)
119 * changed c_server.h Srv.h
121 * Revision 1.1 90/02/12 15:20:45 15:20:45 ted (Ted Ransom)
142 /* Initialize the toolkit and open the display */
143 XtToolkitInitialize();
145 app = XtCreateApplicationContext();
147 display = XtOpenDisplay(app, NULL, argv[0], "Customize", NULL, 0,
150 /* Go register the DT error handler */
151 XeProgName = argv[0];
153 result = InitializeDtcolor(display, DEFAULT_SESSION);