Mercurial > hg > xemacs-beta
comparison src/input-method-xlib.c @ 267:966663fcf606 r20-5b32
Import from CVS: tag r20-5b32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:26:29 +0200 |
parents | 2c611d1463a6 |
children | c5d627a313b1 |
comparison
equal
deleted
inserted
replaced
266:18d185df8c54 | 267:966663fcf606 |
---|---|
536 } | 536 } |
537 } | 537 } |
538 | 538 |
539 if (p->count_styles == 0) | 539 if (p->count_styles == 0) |
540 { /* No valid styles? */ | 540 { /* No valid styles? */ |
541 char buf[1024]; | 541 char *buf = (char *)alloca (strlen (fromVal->addr) |
542 + strlen (DefaultXIMStyles) | |
543 + 100); | |
542 XrmValue new_from; | 544 XrmValue new_from; |
543 XtAppContext the_app_con = XtDisplayToApplicationContext (dpy); | 545 XtAppContext the_app_con = XtDisplayToApplicationContext (dpy); |
544 | 546 |
545 sprintf(buf, "Cannot convert string \"%s\" to type XIMStyles.\n" | 547 sprintf(buf, "Cannot convert string \"%s\" to type XIMStyles.\n" |
546 "Using default string \"%s\" instead.\n", | 548 "Using default string \"%s\" instead.\n", |
701 } | 703 } |
702 | 704 |
703 void | 705 void |
704 describe_Window (Window win) | 706 describe_Window (Window win) |
705 { | 707 { |
706 char xwincmd[64]; | 708 char xwincmd[128]; |
707 sprintf (xwincmd, "xwininfo -id 0x%x >&2; xwininfo -events -id 0x%x >&2", | 709 sprintf (xwincmd, "xwininfo -id 0x%x >&2; xwininfo -events -id 0x%x >&2", |
708 (int) win, (int) win); | 710 (int) win, (int) win); |
709 system (xwincmd); | 711 system (xwincmd); |
710 } | 712 } |
711 | 713 |