diff options
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/xdisp.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b395f560ff..3992e51cf2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2003-04-23 Jan Dj,Ad(Brv <[email protected]> + + * 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 <[email protected]> * data.c (Faset): Calculate nbytes earlier, to satisfy the now diff --git a/src/xdisp.c b/src/xdisp.c index 940db9ced3..7c9a52cbba 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))) |