Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
112433:7b649f6eac4f | 112434:9de5a68b57e1 |
---|---|
693 ASET (menu_items, i + MENU_ITEMS_PANE_NAME, pane_name); | 693 ASET (menu_items, i + MENU_ITEMS_PANE_NAME, pane_name); |
694 } | 694 } |
695 #endif | 695 #endif |
696 | 696 |
697 pane_string = (NILP (pane_name) | 697 pane_string = (NILP (pane_name) |
698 ? "" : (char *) SDATA (pane_name)); | 698 ? "" : SSDATA (pane_name)); |
699 /* If there is just one top-level pane, put all its items directly | 699 /* If there is just one top-level pane, put all its items directly |
700 under the top-level menu. */ | 700 under the top-level menu. */ |
701 if (menu_items_n_panes == 1) | 701 if (menu_items_n_panes == 1) |
702 pane_string = ""; | 702 pane_string = ""; |
703 | 703 |
845 | 845 |
846 for (wv = first_wv; wv; wv = wv->next) | 846 for (wv = first_wv; wv; wv = wv->next) |
847 { | 847 { |
848 if (STRINGP (wv->lname)) | 848 if (STRINGP (wv->lname)) |
849 { | 849 { |
850 wv->name = (char *) SDATA (wv->lname); | 850 wv->name = SSDATA (wv->lname); |
851 | 851 |
852 /* Ignore the @ that means "separate pane". | 852 /* Ignore the @ that means "separate pane". |
853 This is a kludge, but this isn't worth more time. */ | 853 This is a kludge, but this isn't worth more time. */ |
854 if (wv->value == (char *)1) | 854 if (wv->value == (char *)1) |
855 { | 855 { |
858 wv->value = 0; | 858 wv->value = 0; |
859 } | 859 } |
860 } | 860 } |
861 | 861 |
862 if (STRINGP (wv->lkey)) | 862 if (STRINGP (wv->lkey)) |
863 wv->key = (char *) SDATA (wv->lkey); | 863 wv->key = SSDATA (wv->lkey); |
864 | 864 |
865 if (wv->contents) | 865 if (wv->contents) |
866 update_submenu_strings (wv->contents); | 866 update_submenu_strings (wv->contents); |
867 } | 867 } |
868 } | 868 } |
1351 menu_items = Qnil; | 1351 menu_items = Qnil; |
1352 menu_items_inuse = Qnil; | 1352 menu_items_inuse = Qnil; |
1353 | 1353 |
1354 defsubr (&Sx_popup_menu); | 1354 defsubr (&Sx_popup_menu); |
1355 } | 1355 } |
1356 |