Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!ucbvax!alfalfa.com!nazgul From: nazgul@alfalfa.com (Information Junkie) Newsgroups: comp.windows.x.motif Subject: I did say it was 3 in the morning Message-ID: <910419030853.11985@sun.alfalfa.com> Date: 19 Apr 91 07:08:53 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 36 Of course I forgot the source code! #include #include void okcb() { printf("Called\n"); } main(argc, argv) int argc; char **argv; { Widget top, mainw, rowc, pushb; Arg args[10]; int n; top = XtInitialize("test","test",NULL,0,&argc, argv); mainw = XmCreateFileSelectionDialog(top, "select", NULL, 0); XtAddCallback(mainw, XmNokCallback, okcb, NULL); XtManageChild(mainw); /*XtRealizeWidget(top);*/ XtMainLoop(); } Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/646-7703 (voice/fax) | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.