diff src/gui-x.c @ 444:576fb035e263 r21-2-37

Import from CVS: tag r21-2-37
author cvs
date Mon, 13 Aug 2007 11:36:19 +0200
parents abe6d1db359e
children e9a3f8b4de53
line wrap: on
line diff
--- a/src/gui-x.c	Mon Aug 13 11:35:05 2007 +0200
+++ b/src/gui-x.c	Mon Aug 13 11:36:19 2007 +0200
@@ -289,7 +289,7 @@
     }
 
   /* This is the timestamp used for asserting focus so we need to get an
-     up-to-date value event if no events has been dispatched to emacs
+     up-to-date value event if no events have been dispatched to emacs
      */
 #if defined(HAVE_MENUBARS)
   DEVICE_X_MOUSE_TIMESTAMP (d) = x_focus_timestamp_really_sucks_fix_me_better;
@@ -489,11 +489,14 @@
   if (NILP (pgui->style))
     {
       Bufbyte *intname;
+      Bytecount intlen;
       /* If the callback is nil, treat this item like unselectable text.
 	 This way, dashes will show up as a separator. */
       if (!wv->enabled)
 	wv->type = BUTTON_TYPE;
-      EXTERNAL_TO_C_STRING (wv->name, intname, Qlwlib_encoding);
+      TO_INTERNAL_FORMAT (C_STRING, wv->name,
+			  ALLOCA, (intname, intlen),
+			  Qlwlib_encoding);
       if (separator_string_p (intname))
 	{
 	  wv->type = SEPARATOR_TYPE;