Mercurial > hg > xemacs-beta
comparison src/event-Xt.c @ 267:966663fcf606 r20-5b32
Import from CVS: tag r20-5b32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:26:29 +0200 |
parents | 727739f917cb |
children | c5d627a313b1 |
comparison
equal
deleted
inserted
replaced
266:18d185df8c54 | 267:966663fcf606 |
---|---|
2042 stderr_out (" window: 0x%lx", (unsigned long) window); | 2042 stderr_out (" window: 0x%lx", (unsigned long) window); |
2043 w = XtWindowToWidget (display, window); | 2043 w = XtWindowToWidget (display, window); |
2044 if (w) | 2044 if (w) |
2045 stderr_out (" %s", w->core.widget_class->core_class.class_name); | 2045 stderr_out (" %s", w->core.widget_class->core_class.class_name); |
2046 f = x_any_window_to_frame (get_device_from_display (display), window); | 2046 f = x_any_window_to_frame (get_device_from_display (display), window); |
2047 if (f) { | 2047 if (f) |
2048 char buf[500]; | 2048 { |
2049 sprintf (buf, " \"%s\"", XSTRING_DATA (f->name)); | 2049 char *buf = alloca (XSTRING_LENGTH (f->name) + 4); |
2050 write_string_to_stdio_stream (stderr, 0, (Bufbyte *) buf, 0, strlen (buf), | 2050 sprintf (buf, " \"%s\"", XSTRING_DATA (f->name)); |
2051 FORMAT_TERMINAL); | 2051 write_string_to_stdio_stream (stderr, 0, (Bufbyte *) buf, 0, |
2052 } | 2052 strlen (buf), FORMAT_TERMINAL); |
2053 } | |
2053 stderr_out ("\n"); | 2054 stderr_out ("\n"); |
2054 } | 2055 } |
2055 | 2056 |
2056 static CONST char * | 2057 static CONST char * |
2057 XEvent_mode_to_string (int mode) | 2058 XEvent_mode_to_string (int mode) |