comparison src/ExternalClient.c @ 3025:facf3239ba30

[xemacs-hg @ 2005-10-25 11:16:19 by ben] rename new->new_, convert 'foo to `foo' EmacsFrame.c, ExternalClient.c, ExternalShell.c, chartab.c, cmdloop.c, compiler.h, console.c, database.c, device-msw.c, device-x.c, device.c, doc.c, dragdrop.c, eval.c, event-msw.c, event-stream.c, events.c, extents.c, file-coding.c, fns.c, frame-tty.c, frame.c, gpmevent.c, gutter.c, hash.c, imgproc.c, indent.c, keymap.c, lisp-union.h, macros.c, malloc.c, marker.c, menubar-x.c, menubar.c, mule-charset.c, number.c, process.c, profile.h, ralloc.c, redisplay.c, select-common.h, select.c, syntax.c, sysfile.h, sysproc.h, systime.h, syswindows.h, toolbar.c, tooltalk.c, tparam.c, unexaix.c, unexalpha.c, unexconvex.c, unexec.c, unexhp9k800.c, unexmips.c, unicode.c, window.c: new -> new_. 'foo -> `foo'. lwlib-internal.h: redo assert macros to follow lisp.h and not trigger warnings. lwlib.c, xlwtabs.c: new -> new_.
author ben
date Tue, 25 Oct 2005 11:16:49 +0000
parents a640f9c13696
children 2aa9cd456ae7
comparison
equal deleted inserted replaced
3024:b7f26b2f78bd 3025:facf3239ba30
55 55
56 #define NOTIFY(w, type, l0, l1, l2) \ 56 #define NOTIFY(w, type, l0, l1, l2) \
57 extw_send_notify_3(XtDisplay((Widget)(w)), XtWindow((Widget)(w)),\ 57 extw_send_notify_3(XtDisplay((Widget)(w)), XtWindow((Widget)(w)),\
58 type, l0, l1, l2) 58 type, l0, l1, l2)
59 59
60 static void externalClientInitialize (Widget req, Widget new, ArgList args, 60 static void externalClientInitialize (Widget req, Widget new_, ArgList args,
61 Cardinal *num_args); 61 Cardinal *num_args);
62 static void externalClientRealize (Widget widget, XtValueMask *mask, 62 static void externalClientRealize (Widget widget, XtValueMask *mask,
63 XSetWindowAttributes *attrs); 63 XSetWindowAttributes *attrs);
64 static void Destroy (Widget w); 64 static void Destroy (Widget w);
65 static void EventHandler (Widget wid, XtPointer closure, XEvent *event, 65 static void EventHandler (Widget wid, XtPointer closure, XEvent *event,
172 }; 172 };
173 173
174 WidgetClass externalClientWidgetClass = (WidgetClass) &externalClientClassRec; 174 WidgetClass externalClientWidgetClass = (WidgetClass) &externalClientClassRec;
175 175
176 static void 176 static void
177 externalClientInitialize (Widget UNUSED (req), Widget new, 177 externalClientInitialize (Widget UNUSED (req), Widget new_,
178 ArgList UNUSED (args), Cardinal *UNUSED (num_args)) 178 ArgList UNUSED (args), Cardinal *UNUSED (num_args))
179 { 179 {
180 ExternalClientWidget ecw = (ExternalClientWidget) new; 180 ExternalClientWidget ecw = (ExternalClientWidget) new_;
181 static int error_handler_added = 0; 181 static int error_handler_added = 0;
182 182
183 extw_initialize_atoms (XtDisplay (new)); 183 extw_initialize_atoms (XtDisplay (new_));
184 extw_which_side = extw_client_send; 184 extw_which_side = extw_client_send;
185 185
186 #ifdef EXTW_USES_MOTIF 186 #ifdef EXTW_USES_MOTIF
187 187
188 /* yes I know this is horrible. However, the XmPrimitive class adds 188 /* yes I know this is horrible. However, the XmPrimitive class adds
192 192
193 -- BPW 193 -- BPW
194 194
195 */ 195 */
196 196
197 XtOverrideTranslations (new, 197 XtOverrideTranslations (new_,
198 XtParseTranslationTable ("None<Key>Tab:\n" 198 XtParseTranslationTable ("None<Key>Tab:\n"
199 "<FocusIn>:focusIn()\n" 199 "<FocusIn>:focusIn()\n"
200 "<FocusOut>:focusOut()\n" 200 "<FocusOut>:focusOut()\n"
201 "<Enter>:enter()\n" 201 "<Enter>:enter()\n"
202 "<Leave>:leave()\n")); 202 "<Leave>:leave()\n"));
203 203
204 #endif 204 #endif
205 205
206 XtAddEventHandler (new, 0, TRUE, EventHandler, (XtPointer) NULL); 206 XtAddEventHandler (new_, 0, TRUE, EventHandler, (XtPointer) NULL);
207 207
208 ecw->externalClient.shell_ready = False; 208 ecw->externalClient.shell_ready = False;
209 ecw->externalClient.has_focus = False; 209 ecw->externalClient.has_focus = False;
210 210
211 if (!error_handler_added) 211 if (!error_handler_added)