From e3b2c21fc734645ad0cc37e708be33cff22c68b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Wed, 23 Apr 2003 17:51:33 +0000 Subject: [PATCH] * xdisp.c (update_tool_bar): BLOCK_INPUT before calling tool_bar_items so GTK tool bar expose callback does not access items being updated. --- src/ChangeLog | 6 ++++++ src/xdisp.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index b395f560ffe..3992e51cf27 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2003-04-23 Jan Dj,Ad(Brv + + * xdisp.c (update_tool_bar): BLOCK_INPUT before calling + tool_bar_items so GTK tool bar expose callback does not access items + being updated. + 2003-04-18 Miles Bader * data.c (Faset): Calculate nbytes earlier, to satisfy the now diff --git a/src/xdisp.c b/src/xdisp.c index 940db9ced31..7c9a52cbba7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -8152,8 +8152,10 @@ update_tool_bar (f, save_match_data) GCPRO1 (old_tool_bar); /* Build desired tool-bar items from keymaps. */ + BLOCK_INPUT; f->tool_bar_items = tool_bar_items (f->tool_bar_items, &f->n_tool_bar_items); + UNBLOCK_INPUT; /* Redisplay the tool-bar if we changed it. */ if (! NILP (Fequal (old_tool_bar, f->tool_bar_items))) -- 2.39.2