diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2003-04-23 17:51:33 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2003-04-23 17:51:33 +0000 |
commit | e3b2c21fc734645ad0cc37e708be33cff22c68b5 (patch) | |
tree | 476bbd5809370140be76e8a17121adc5e9475ba5 | |
parent | f0a478be88cad174421ca47145b5de110e28adec (diff) | |
download | emacs-e3b2c21fc734645ad0cc37e708be33cff22c68b5.tar.gz emacs-e3b2c21fc734645ad0cc37e708be33cff22c68b5.tar.bz2 emacs-e3b2c21fc734645ad0cc37e708be33cff22c68b5.zip |
* xdisp.c (update_tool_bar): BLOCK_INPUT before calling
tool_bar_items so GTK tool bar expose callback does not access items
being updated.
-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 b395f560ffe..3992e51cf27 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2003-04-23 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> + + * 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 <miles@gnu.org> * 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))) |