aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
authorDaniel Colascione2012-09-17 04:07:36 -0800
committerDaniel Colascione2012-09-17 04:07:36 -0800
commit2ab329f3b5d52a39f0a45c3d9c129f1c19560142 (patch)
tree6dd6784d63e54cb18071df8e28fbdbc27d418728 /src/widget.c
parentf701ab72dd55460d23c8b029550aa4d7ecef3cfa (diff)
parentbb7dce392f6d9d5fc4b9d7de09ff920a52f07669 (diff)
downloademacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.tar.gz
emacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.zip
Merge from trunk
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/widget.c b/src/widget.c
index b94c30f4e9c..fd5ad167125 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -30,7 +30,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30 30
31#include <config.h> 31#include <config.h>
32#include <stdio.h> 32#include <stdio.h>
33#include <setjmp.h> 33
34#include "lisp.h" 34#include "lisp.h"
35#include "xterm.h" 35#include "xterm.h"
36 36
@@ -50,9 +50,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
50#include <X11/ShellP.h> 50#include <X11/ShellP.h>
51#include "../lwlib/lwlib.h" 51#include "../lwlib/lwlib.h"
52 52
53#include <signal.h>
54#include "syssignal.h"
55
56#include "character.h" 53#include "character.h"
57#include "font.h" 54#include "font.h"
58 55
@@ -226,7 +223,7 @@ get_wm_shell (Widget w)
226static void 223static void
227mark_shell_size_user_specified (Widget wmshell) 224mark_shell_size_user_specified (Widget wmshell)
228{ 225{
229 if (! XtIsWMShell (wmshell)) abort (); 226 if (! XtIsWMShell (wmshell)) emacs_abort ();
230 /* This is kind of sleazy, but I can't see how else to tell it to make it 227 /* This is kind of sleazy, but I can't see how else to tell it to make it
231 mark the WM_SIZE_HINTS size as user specified when appropriate. */ 228 mark the WM_SIZE_HINTS size as user specified when appropriate. */
232 ((WMShellWidget) wmshell)->wm.size_hints.flags |= USSize; 229 ((WMShellWidget) wmshell)->wm.size_hints.flags |= USSize;
@@ -290,7 +287,7 @@ set_frame_size (EmacsFrame ew)
290 Widget wmshell = get_wm_shell ((Widget) ew); 287 Widget wmshell = get_wm_shell ((Widget) ew);
291 /* Each Emacs shell is now independent and top-level. */ 288 /* Each Emacs shell is now independent and top-level. */
292 289
293 if (! XtIsSubclass (wmshell, shellWidgetClass)) abort (); 290 if (! XtIsSubclass (wmshell, shellWidgetClass)) emacs_abort ();
294 291
295 /* We don't need this for the moment. The geometry is computed in 292 /* We don't need this for the moment. The geometry is computed in
296 xfns.c. */ 293 xfns.c. */
@@ -671,16 +668,14 @@ EmacsFrameRealize (Widget widget, XtValueMask *mask, XSetWindowAttributes *attrs
671 update_wm_hints (ew); 668 update_wm_hints (ew);
672} 669}
673 670
674extern void free_frame_faces (struct frame *);
675
676static void 671static void
677EmacsFrameDestroy (Widget widget) 672EmacsFrameDestroy (Widget widget)
678{ 673{
679 EmacsFrame ew = (EmacsFrame) widget; 674 EmacsFrame ew = (EmacsFrame) widget;
680 struct frame* s = ew->emacs_frame.frame; 675 struct frame* s = ew->emacs_frame.frame;
681 676
682 if (! s) abort (); 677 if (! s) emacs_abort ();
683 if (! s->output_data.x) abort (); 678 if (! s->output_data.x) emacs_abort ();
684 679
685 BLOCK_INPUT; 680 BLOCK_INPUT;
686 x_free_gcs (s); 681 x_free_gcs (s);