Mercurial > emacs
diff src/xdisp.c @ 72490:82853c744b53
(update_tool_bar): Redisplay toolbar also when only
number of items changes.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 22 Aug 2006 21:32:04 +0000 |
parents | 06d60c338318 |
children | 27c305d70c67 |
line wrap: on
line diff
--- a/src/xdisp.c Tue Aug 22 21:31:50 2006 +0000 +++ b/src/xdisp.c Tue Aug 22 21:32:04 2006 +0000 @@ -9391,7 +9391,8 @@ &new_n_tool_bar); /* Redisplay the tool-bar if we changed it. */ - if (NILP (Fequal (new_tool_bar, f->tool_bar_items))) + if (new_n_tool_bar != f->n_tool_bar_items + || NILP (Fequal (new_tool_bar, f->tool_bar_items))) { /* Redisplay that happens asynchronously due to an expose event may access f->tool_bar_items. Make sure we update both