comparison src/xmenu.c @ 67743:3c879987313f

(xmenu_show): Call inhibit_garbage_collection.
author Richard M. Stallman <rms@gnu.org>
date Thu, 22 Dec 2005 23:30:36 +0000
parents 7ae48da37b8f
children 3bd95f4f2941 d0eee3282e6b 7beb78bc1f8e
comparison
equal deleted inserted replaced
67742:3dc88cb2b76a 67743:3c879987313f
3341 { 3341 {
3342 *error = "Can't create menu"; 3342 *error = "Can't create menu";
3343 return Qnil; 3343 return Qnil;
3344 } 3344 }
3345 3345
3346 /* Don't GC while we prepare and show the menu,
3347 because we give the oldxmenu library pointers to the
3348 contents of strings. */
3349 inhibit_garbage_collection ();
3350
3346 #ifdef HAVE_X_WINDOWS 3351 #ifdef HAVE_X_WINDOWS
3347 /* Adjust coordinates to relative to the outer (window manager) window. */ 3352 /* Adjust coordinates to relative to the outer (window manager) window. */
3348 x += FRAME_OUTER_TO_INNER_DIFF_X (f); 3353 x += FRAME_OUTER_TO_INNER_DIFF_X (f);
3349 y += FRAME_OUTER_TO_INNER_DIFF_Y (f); 3354 y += FRAME_OUTER_TO_INNER_DIFF_Y (f);
3350 #endif /* HAVE_X_WINDOWS */ 3355 #endif /* HAVE_X_WINDOWS */