comparison man/external-widget.texi @ 755:da44ff90109f

[xemacs-hg @ 2002-02-16 07:25:39 by stephent] Fix braces. <m3u1sigwgf.fsf@mail.contactor.se>
author stephent
date Sat, 16 Feb 2002 07:25:39 +0000
parents 41528f633ff7
children 42375619fa45
comparison
equal deleted inserted replaced
754:8661af9617f8 755:da44ff90109f
171 #include <X11/Shell.h> 171 #include <X11/Shell.h>
172 172
173 #include "ExternalClient.h" 173 #include "ExternalClient.h"
174 174
175 main (int argc, char *argv[]) 175 main (int argc, char *argv[])
176 { 176 @{
177 Widget toplevel, emacs; 177 Widget toplevel, emacs;
178 XtAppContext app; 178 XtAppContext app;
179 179
180 XtSetLanguageProc (NULL, NULL, NULL); 180 XtSetLanguageProc (NULL, NULL, NULL);
181 181
191 XtRealizeWidget (toplevel); 191 XtRealizeWidget (toplevel);
192 192
193 printf ("(make-frame '(window-id \"%d\"))\n", XtWindow(emacs)); 193 printf ("(make-frame '(window-id \"%d\"))\n", XtWindow(emacs));
194 194
195 XtAppMainLoop (app); 195 XtAppMainLoop (app);
196 } 196 @}
197 197
198 /* This function doesn't belong here but somehow it's not getting resolved 198 /* This function doesn't belong here but somehow it's not getting resolved
199 from the library. */ 199 from the library. */
200 void 200 void
201 fatal (char *msg) 201 fatal (char *msg)
202 { 202 @{
203 fprintf (stderr, "%s", msg); 203 fprintf (stderr, "%s", msg);
204 exit (1); 204 exit (1);
205 } 205 @}
206 @end example 206 @end example
207 207
208 208
209 @summarycontents 209 @summarycontents
210 @contents 210 @contents