Mercurial > hg > xemacs-beta
diff src/frame-x.c @ 5126:2a462149bd6a ben-lisp-object
merge
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Wed, 24 Feb 2010 19:04:27 -0600 |
parents | b5df3737028a 6f2158fa75ed |
children | a9c41067dd88 |
line wrap: on
line diff
--- a/src/frame-x.c Wed Feb 24 01:58:04 2010 -0600 +++ b/src/frame-x.c Wed Feb 24 19:04:27 2010 -0600 @@ -1,6 +1,6 @@ /* Functions for the X window system. Copyright (C) 1989, 1992-5, 1997 Free Software Foundation, Inc. - Copyright (C) 1995, 1996, 2001, 2002, 2004 Ben Wing. + Copyright (C) 1995, 1996, 2001, 2002, 2004, 2010 Ben Wing. This file is part of XEmacs. @@ -224,14 +224,14 @@ void x_wm_mark_shell_size_user_specified (Widget wmshell) { - if (! XtIsWMShell (wmshell)) ABORT (); + assert (XtIsWMShell (wmshell)); EmacsShellSetSizeUserSpecified (wmshell); } void x_wm_mark_shell_position_user_specified (Widget wmshell) { - if (! XtIsWMShell (wmshell)) ABORT (); + assert (XtIsWMShell (wmshell)); EmacsShellSetPositionUserSpecified (wmshell); } @@ -240,7 +240,7 @@ void x_wm_set_shell_iconic_p (Widget shell, int iconic_p) { - if (! XtIsWMShell (shell)) ABORT (); + assert (XtIsWMShell (shell)); /* Because of questionable logic in Shell.c, this sequence can't work: @@ -269,10 +269,8 @@ { Arg al [2]; - if (!XtIsWMShell (wmshell)) - ABORT (); - if (cw <= 0 || ch <= 0) - ABORT (); + assert (XtIsWMShell (wmshell)); + assert (cw > 0 && ch > 0); Xt_SET_ARG (al[0], XtNwidthInc, cw); Xt_SET_ARG (al[1], XtNheightInc, ch); @@ -284,8 +282,7 @@ { Arg al [2]; - if (!XtIsWMShell (wmshell)) - ABORT (); + assert (XtIsWMShell (wmshell)); #ifdef DEBUG_GEOMETRY_MANAGEMENT /* See comment in EmacsShell.c */ printf ("x_wm_set_variable_size: %d %d\n", width, height); @@ -353,8 +350,7 @@ Extbyte *app_name, *app_class; XClassHint classhint; - if (!XtIsWMShell (shell)) - ABORT (); + assert (XtIsWMShell (shell)); XtGetApplicationNameAndClass (dpy, &app_name, &app_class); classhint.res_name = frame_name; @@ -370,8 +366,7 @@ Widget w = FRAME_X_SHELL_WIDGET (f); struct device *d = XDEVICE (FRAME_DEVICE (f)); - if (!XtIsWMShell (w)) - ABORT (); + assert (XtIsWMShell (w)); if (NILP (DEVICE_X_WM_COMMAND_FRAME (d))) { @@ -1524,8 +1519,7 @@ /* OK, we're a top-level shell. */ - if (!XtIsWMShell (wmshell)) - ABORT (); + assert (XtIsWMShell (wmshell)); /* If the EmacsFrame doesn't have a geometry but the shell does, treat that as the geometry of the frame.