* xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection

from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
This commit is contained in:
Jan Djärv 2004-08-27 16:57:36 +00:00
parent 5500be54e1
commit 059cd32943
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2004-08-27 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
* gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
tool bar items is 0.

View file

@ -1930,6 +1930,7 @@ set_frame_menubar (f, first_time, deep_p)
FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f));
items = FRAME_MENU_BAR_ITEMS (f);
inhibit_garbage_collection ();
/* Save the frame's previous menu bar contents data. */
if (previous_menu_items_used)