Mercurial > emacs
diff src/menu.c @ 112434:9de5a68b57e1
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 22 Jan 2011 18:56:06 -0800 |
parents | ef719132ddfa |
children |
line wrap: on
line diff
--- a/src/menu.c Sat Jan 22 17:09:09 2011 -0800 +++ b/src/menu.c Sat Jan 22 18:56:06 2011 -0800 @@ -695,7 +695,7 @@ #endif pane_string = (NILP (pane_name) - ? "" : (char *) SDATA (pane_name)); + ? "" : SSDATA (pane_name)); /* If there is just one top-level pane, put all its items directly under the top-level menu. */ if (menu_items_n_panes == 1) @@ -847,7 +847,7 @@ { if (STRINGP (wv->lname)) { - wv->name = (char *) SDATA (wv->lname); + wv->name = SSDATA (wv->lname); /* Ignore the @ that means "separate pane". This is a kludge, but this isn't worth more time. */ @@ -860,7 +860,7 @@ } if (STRINGP (wv->lkey)) - wv->key = (char *) SDATA (wv->lkey); + wv->key = SSDATA (wv->lkey); if (wv->contents) update_submenu_strings (wv->contents); @@ -1353,4 +1353,3 @@ defsubr (&Sx_popup_menu); } -