changeset 45414:a163bd34b952

* xselect.c (symbol_to_x_atom, x_get_foreign_selection): Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
author Ken Raeburn <raeburn@raeburn.org>
date Mon, 20 May 2002 08:06:57 +0000
parents 811ea3c0629c
children 79475bcb87bb
files src/xselect.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xselect.c	Mon May 20 08:06:52 2002 +0000
+++ b/src/xselect.c	Mon May 20 08:06:57 2002 +0000
@@ -200,9 +200,9 @@
 #endif
   if (!SYMBOLP (sym)) abort ();
 
-  TRACE1 (" XInternAtom %s", (char *) XSYMBOL (sym)->name->data);
+  TRACE1 (" XInternAtom %s", (char *) XSTRING (SYMBOL_NAME (sym))->data);
   BLOCK_INPUT;
-  val = XInternAtom (display, (char *) XSYMBOL (sym)->name->data, False);
+  val = XInternAtom (display, (char *) XSTRING (SYMBOL_NAME (sym))->data, False);
   UNBLOCK_INPUT;
   return val;
 }
@@ -1272,7 +1272,7 @@
   if (NILP (XCAR (reading_selection_reply)))
     error ("Timed out waiting for reply from selection owner");
   if (EQ (XCAR (reading_selection_reply), Qlambda))
-    error ("No `%s' selection", XSYMBOL (selection_symbol)->name->data);
+    error ("No `%s' selection", XSTRING (SYMBOL_NAME (selection_symbol))->data);
 
   /* Otherwise, the selection is waiting for us on the requested property.  */
   return