From: Kim F. Storm Date: Tue, 22 Aug 2006 21:32:04 +0000 (+0000) Subject: (update_tool_bar): Redisplay toolbar also when only X-Git-Tag: emacs-pretest-22.0.90~913 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=462eca8fcf4d5d6b12e7d3d974e45a6a2e03ce1f;p=emacs.git (update_tool_bar): Redisplay toolbar also when only number of items changes. --- 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) &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