# HG changeset patch # User Kim F. Storm # Date 1156282324 0 # Node ID 82853c744b53a33b9730461f28f0eb16e25a2429 # Parent b0aed237ce9c6c1f193c86b1638bf36b209a8278 (update_tool_bar): Redisplay toolbar also when only number of items changes. diff -r b0aed237ce9c -r 82853c744b53 src/xdisp.c --- 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