XawInit.c revision 749
837N/A/*
837N/A * $XConsortium: XawInit.c,v 1.3 94/04/17 20:13:32 jim Exp $
837N/A *
837N/ACopyright (c) 1989 X Consortium
943N/A
837N/APermission is hereby granted, free of charge, to any person obtaining a copy
837N/Aof this software and associated documentation files (the "Software"), to deal
919N/Ain the Software without restriction, including without limitation the rights
919N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell
919N/Acopies of the Software, and to permit persons to whom the Software is
919N/Afurnished to do so, subject to the following conditions:
919N/A
837N/AThe above copyright notice and this permission notice shall be included in
919N/Aall copies or substantial portions of the Software.
919N/A
919N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
837N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
919N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
919N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
919N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
919N/A
919N/AExcept as contained in this notice, the name of the X Consortium shall not be
919N/Aused in advertising or otherwise to promote the sale, use or other dealings
838N/Ain this Software without prior written authorization from the X Consortium.
838N/A *
838N/A *
838N/A * XawInitializeWidgetSet
838N/A *
838N/A * This routine forces a reference to vendor shell so that the one in this
838N/A * widget is installed. Any other cross-widget set initialization should be
838N/A * done here as well. All Athena widgets should include "XawInit.h" and
838N/A * call this routine from their ClassInitialize procs (this routine may be
838N/A * used as the class init proc).
838N/A */
838N/A
838N/A#include <X11/Intrinsic.h>
838N/A#include <X11/Vendor.h>
838N/A#include <X11/Xaw/XawInit.h>
838N/A
838N/Avoid XawInitializeWidgetSet ()
838N/A{
838N/A static int firsttime = 1;
837N/A
837N/A if (firsttime) {
837N/A firsttime = 0;
837N/A XtInitializeWidgetClass (vendorShellWidgetClass);
837N/A }
837N/A}
837N/A