diff options
| author | Kim F. Storm | 2006-08-22 21:32:04 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-08-22 21:32:04 +0000 |
| commit | 462eca8fcf4d5d6b12e7d3d974e45a6a2e03ce1f (patch) | |
| tree | 82964c755aa83b861e6be6877e2ddd7ab78c9d8e /src | |
| parent | 6b4d876273771721eb291850f5b285151a0e56fe (diff) | |
| download | emacs-462eca8fcf4d5d6b12e7d3d974e45a6a2e03ce1f.tar.gz emacs-462eca8fcf4d5d6b12e7d3d974e45a6a2e03ce1f.zip | |
(update_tool_bar): Redisplay toolbar also when only
number of items changes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 9911f47c2a4..640f7006dd1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -9391,7 +9391,8 @@ update_tool_bar (f, save_match_data) | |||
| 9391 | &new_n_tool_bar); | 9391 | &new_n_tool_bar); |
| 9392 | 9392 | ||
| 9393 | /* Redisplay the tool-bar if we changed it. */ | 9393 | /* Redisplay the tool-bar if we changed it. */ |
| 9394 | if (NILP (Fequal (new_tool_bar, f->tool_bar_items))) | 9394 | if (new_n_tool_bar != f->n_tool_bar_items |
| 9395 | || NILP (Fequal (new_tool_bar, f->tool_bar_items))) | ||
| 9395 | { | 9396 | { |
| 9396 | /* Redisplay that happens asynchronously due to an expose event | 9397 | /* Redisplay that happens asynchronously due to an expose event |
| 9397 | may access f->tool_bar_items. Make sure we update both | 9398 | may access f->tool_bar_items. Make sure we update both |