[BACK]Return to xdeb.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / parse

Diff for /OpenXM_contrib2/asir2000/parse/xdeb.c between version 1.9 and 1.12

version 1.9, 2003/02/14 22:29:18 version 1.12, 2004/02/29 08:30:31
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2000/parse/xdeb.c,v 1.8 2001/10/09 01:36:25 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/xdeb.c,v 1.11 2003/03/07 06:39:59 noro Exp $
 */  */
 #if defined(VISUAL)  #if defined(VISUAL)
 #if defined(VISUAL_LIB)  #if defined(VISUAL_LIB)
Line 159  static void SetDismiss(Widget w,XtPointer cld,XtPointe
Line 159  static void SetDismiss(Widget w,XtPointer cld,XtPointe
         XtSetValues(cmdwin, arg, 1);          XtSetValues(cmdwin, arg, 1);
 }  }
   
   static Atom wm_delete_window;
   static void quit(Widget w, XEvent *ev, String *params,Cardinal *nparams)
   {
           XBell(XtDisplay(w),0);
   }
   
 void init_cmdwin()  void init_cmdwin()
 {  {
         Arg             arg[5];          Arg             arg[5];
Line 193  void init_cmdwin()
Line 199  void init_cmdwin()
                 toplevel = XtAppCreateShell(0,title,applicationShellWidgetClass,                  toplevel = XtAppCreateShell(0,title,applicationShellWidgetClass,
                         display,0,0);                          display,0,0);
                 n = 0;                  n = 0;
                   wm_delete_window = XInternAtom(XtDisplay(toplevel), "WM_DELETE_WINDOW",
                           False);
                   XtOverrideTranslations(toplevel,
                                           XtParseTranslationTable("<Message>WM_PROTOCOLS: quit()"));
                 XtSetArg(arg[n],XtNiconName,title); n++;                  XtSetArg(arg[n],XtNiconName,title); n++;
                 XtSetArg(arg[n], XtNwidth, 360); n++;                  XtSetArg(arg[n], XtNwidth, 360); n++;
                 mainwin = XtCreatePopupShell("shell",topLevelShellWidgetClass,                  mainwin = XtCreatePopupShell("shell",topLevelShellWidgetClass,
Line 209  void init_cmdwin()
Line 219  void init_cmdwin()
                 XtSetArg(arg[n], XtNvalue, ""); n++;                  XtSetArg(arg[n], XtNvalue, ""); n++;
                 XtSetValues(cmdwin, arg, n);                  XtSetValues(cmdwin, arg, n);
                 XtRealizeWidget(mainwin);                  XtRealizeWidget(mainwin);
                   XSetWMProtocols(XtDisplay(mainwin),XtWindow(mainwin),
                           &wm_delete_window,1);
         }          }
         is_init = 1;          is_init = 1;
 }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.12

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>