DelCmap.c File Reference

#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xmu/StdCmap.h>

Include dependency graph for DelCmap.c:

Go to the source code of this file.

Functions

void XmuDeleteStandardColormap (Display *dpy, int screen, Atom property)


Function Documentation

void XmuDeleteStandardColormap ( Display *  dpy,
int  screen,
Atom  property 
)

Definition at line 45 of file DelCmap.c.

References count, and s.

Referenced by lookup(), and XmuVisualStandardColormaps().

00050 {
00051     XStandardColormap   *stdcmaps, *s;
00052     int                 count = 0;
00053 
00054     if (XGetRGBColormaps(dpy, RootWindow(dpy, screen), &stdcmaps, &count,
00055                          property))
00056     {
00057         for (s=stdcmaps; count > 0; count--, s++) {
00058             if ((s->killid == ReleaseByFreeingColormap) &&
00059                 (s->colormap != None) &&
00060                 (s->colormap != DefaultColormap(dpy, screen)))
00061                 XFreeColormap(dpy, s->colormap);
00062             else if (s->killid != None)
00063                 XKillClient(dpy, s->killid);
00064         }
00065         XDeleteProperty(dpy, RootWindow(dpy, screen), property);
00066         XFree((char *) stdcmaps);
00067         XSync(dpy, False);
00068     }
00069 }

Here is the caller graph for this function:


Generated on Sun Mar 4 16:03:44 2007 for Scilab [trunk] by  doxygen 1.5.1