home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.3 Development Libraries
/
SGI IRIX 6.3 Development Libraries.iso
/
dist6.3
/
ViewKit_dev.idb
/
usr
/
share
/
src
/
ViewKit
/
Applications
/
GLX
/
installcmap.c.z
/
installcmap.c
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-09-20
|
433 b
|
18 lines
#include <X11/Intrinsic.h>
/*
* This routine will install a particular gl widgets's colormap onto the
* top level window. It may not be called until after the windows have
* been realized.
*/
void
installColormap(toplevel, glw)
Widget toplevel, glw;
{
Window windows[2];
windows[0] = XtWindow(glw);
windows[1] = XtWindow(toplevel);
XSetWMColormapWindows(XtDisplay(toplevel), XtWindow(toplevel), windows, 2);
}