7905 |
window = FRAME_SELECTED_WINDOW (f); |
window = FRAME_SELECTED_WINDOW (f); |
7906 |
w = XWINDOW (window); |
w = XWINDOW (window); |
7907 |
|
|
7908 |
#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 |
7909 |
condition !NILP (w->update_mode_line), rather than using |
condition !NILP (w->update_mode_line), rather than using |
7910 |
update_mode_lines directly, and this if statement may have |
update_mode_lines directly, and this if statement may have |
7911 |
been added to make that condition work. Now the if |
been added to make that condition work. Now the if |
7912 |
statement below matches its comment, this isn't needed. */ |
statement below matches its comment, this isn't needed. */ |
7913 |
|
/* We need to set w->update_mode_line to Qt so that update_tool_bar |
7914 |
|
rebuilds tool bar items. For example, to notice when a tool bar item |
7915 |
|
goes from enabled to disabled state. |
7916 |
|
A better way would be to notice tool bar, menu bar and mode line |
7917 |
|
changes separately, but for now update_mode_line is all we got. */ |
7918 |
if (update_mode_lines) |
if (update_mode_lines) |
7919 |
w->update_mode_line = Qt; |
w->update_mode_line = Qt; |
7920 |
#endif |
#endif |