]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't call ENCODE_MENU_STRING on top level menu names, GC may occur.
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 30 Aug 2004 20:14:21 +0000 (20:14 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 30 Aug 2004 20:14:21 +0000 (20:14 +0000)
src/ChangeLog
src/xmenu.c

index b761d28b29e4dc6353c0237956f0b5bad974910a..8d441748ffd6c5f926029cb37fac07746f568fcb 100644 (file)
@@ -4,8 +4,7 @@
        instead of name and key.
        (update_submenu_strings): New function.
        (set_frame_menubar): Remove call to inhibit_garbage_collection,
-       call update_submenu_strings.  Call ENCODE_MENU_STRING for top level
-       menu names.
+       call update_submenu_strings.
 
        * gtkutil.h (_widget_value): Added lname and lkey.
 
index 2eed2b4987e60405524fe717ca73089583ba5f47..229f9c37de71ef41ca274b2674498caa5a779db0 100644 (file)
@@ -2056,7 +2056,7 @@ set_frame_menubar (f, first_time, deep_p)
          string = XVECTOR (items)->contents[i + 1];
          if (NILP (string))
             break;
-          wv->name = (char *) SDATA (ENCODE_MENU_STRING (string));
+          wv->name = (char *) SDATA (string);
           update_submenu_strings (wv->contents);
           wv = wv->next;
        }
@@ -2088,7 +2088,7 @@ set_frame_menubar (f, first_time, deep_p)
            break;
 
          wv = xmalloc_widget_value ();
-         wv->name = (char *) SDATA (ENCODE_MENU_STRING (string));
+         wv->name = (char *) SDATA (string);
          wv->value = 0;
          wv->enabled = 1;
          wv->button_type = BUTTON_TYPE_NONE;