mra@srchtec.uucp (Michael Almond) (08/31/90)
I'm trying to create a GC for a widget's window. I haven't gotten
past the XCreateGC() call as of yet, due to a core dump which provides
little information for debugging purposes. I felt that something like
the following would create a GC for any widget I passed it, but I
haven't had any luck. ;-(
GC *theGC;
void createGC(Widget w)
{
XtGCMask mask = 0;
XGCValues values;
Display *display;
Window window;
display = XtDisplayOfObject(w);
window = XtWindowOfObject(w);
*theGC = XCreateGC(display, window, mask, &values);
}
If anyone could provide me with some help, I would GREATLY appreciate
it.
---
Michael R. Almond mra@srchtec.uucp (registered)
search technology, inc. gatech.edu!stiatl!srchtec!mra
Atlanta, Georgia (404) 441-1457 (work)