Mercurial > hg > xemacs-beta
changeset 651:98b3721724bd
[xemacs-hg @ 2001-08-26 09:42:22 by stephent]
Glynn Clements's patch to unregister input methods under Motif. <15240.50183.445881.777321@turnbull.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Sun, 26 Aug 2001 09:42:24 +0000 |
parents | 704cb139ec6b |
children | 2cf5d151eeb9 |
files | src/ChangeLog src/input-method-motif.c |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Fri Aug 24 08:52:09 2001 +0000 +++ b/src/ChangeLog Sun Aug 26 09:42:24 2001 +0000 @@ -1,3 +1,8 @@ +2001-04-19 Glynn Clements <glynn.clements@virgin.net> + + * input-method-motif.c (XIM_delete_frame): New callback. + (XIM_init_frame): Register it. + 2001-08-24 Stephen J. Turnbull <stephen@xemacs.org> * buffer.h (valid_char_p): Make negative integers invalid again.
--- a/src/input-method-motif.c Fri Aug 24 08:52:09 2001 +0000 +++ b/src/input-method-motif.c Sun Aug 26 09:42:24 2001 +0000 @@ -94,6 +94,13 @@ /* Nothing to do */ } +/* Callback for the deleting frame. */ +static void +XIM_delete_frame (Widget w, XtPointer client_data, XtPointer call_data) +{ + XmImUnregister ((Widget) client_data); +} + void XIM_init_frame (struct frame *f) { @@ -152,6 +159,8 @@ NULL); XmFontListEntryFree (&fontlistEntry); + + XtAddCallback (w, XmNdestroyCallback, XIM_delete_frame, (XtPointer) w); } void