From 70b6104c5d1bf74f72edc9a2b3a6579c3aab9109 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Wed, 26 Mar 2003 16:13:44 +0000 Subject: [PATCH] * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt so tool bar gets updated. --- src/ChangeLog | 5 +++++ src/xdisp.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2ce23055896..d04286bc795 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-03-26 Jan Dj,Ad(Brv + + * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt + so tool bar gets updated. + 2003-03-26 Stefan Monnier * data.c (store_symval_forwarding): Re-instate part of the code diff --git a/src/xdisp.c b/src/xdisp.c index 718ef1702d0..32c84757072 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -7905,11 +7905,16 @@ update_menu_bar (f, save_match_data) window = FRAME_SELECTED_WINDOW (f); w = XWINDOW (window); -#if 0 /* The if statement below this if statement used to include the +#if 1 /* The if statement below this if statement used to include the condition !NILP (w->update_mode_line), rather than using update_mode_lines directly, and this if statement may have been added to make that condition work. Now the if statement below matches its comment, this isn't needed. */ + /* We need to set w->update_mode_line to Qt so that update_tool_bar + rebuilds tool bar items. For example, to notice when a tool bar item + goes from enabled to disabled state. + A better way would be to notice tool bar, menu bar and mode line + changes separately, but for now update_mode_line is all we got. */ if (update_mode_lines) w->update_mode_line = Qt; #endif -- 2.39.2