diff options
| author | Miles Bader | 2007-06-16 22:33:42 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-06-16 22:33:42 +0000 |
| commit | 262d5ce7c21d6c1136fd2b8df67736e41e8e8953 (patch) | |
| tree | 853a5d30babd0abd585ccbe7f4e228bf43a42d5c /src/macfns.c | |
| parent | 5534694247d2b5259325ff43af0624aa2f8abb3e (diff) | |
| parent | af41f8a8d6660ad1fefad5bda69d1acb8e40b4d1 (diff) | |
| download | emacs-262d5ce7c21d6c1136fd2b8df67736e41e8e8953.tar.gz emacs-262d5ce7c21d6c1136fd2b8df67736e41e8e8953.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 793-802)
- Update from CVS
- Remove RCS keywords
- Merge from emacs--rel--22
* emacs--rel--22 (patch 42-50)
- Update from CVS
- Merge from gnus--rel--5.10
- Gnus ChangeLog tweaks
* gnus--rel--5.10 (patch 229-232)
- Merge from emacs--devo--0, emacs--rel--22
- ChangeLog tweak
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-23
Diffstat (limited to 'src/macfns.c')
| -rw-r--r-- | src/macfns.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/macfns.c b/src/macfns.c index cd02552df7a..a58c9975f45 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -1681,6 +1681,25 @@ x_set_tool_bar_lines (f, value, oldval) | |||
| 1681 | /* Make sure we redisplay all windows in this frame. */ | 1681 | /* Make sure we redisplay all windows in this frame. */ |
| 1682 | ++windows_or_buffers_changed; | 1682 | ++windows_or_buffers_changed; |
| 1683 | 1683 | ||
| 1684 | #if USE_MAC_TOOLBAR | ||
| 1685 | FRAME_TOOL_BAR_LINES (f) = 0; | ||
| 1686 | if (nlines) | ||
| 1687 | { | ||
| 1688 | FRAME_EXTERNAL_TOOL_BAR (f) = 1; | ||
| 1689 | if (FRAME_MAC_P (f) && !IsWindowToolbarVisible (FRAME_MAC_WINDOW (f))) | ||
| 1690 | /* Make sure next redisplay shows the tool bar. */ | ||
| 1691 | XWINDOW (FRAME_SELECTED_WINDOW (f))->update_mode_line = Qt; | ||
| 1692 | } | ||
| 1693 | else | ||
| 1694 | { | ||
| 1695 | if (FRAME_EXTERNAL_TOOL_BAR (f)) | ||
| 1696 | free_frame_tool_bar (f); | ||
| 1697 | FRAME_EXTERNAL_TOOL_BAR (f) = 0; | ||
| 1698 | } | ||
| 1699 | |||
| 1700 | return; | ||
| 1701 | #endif | ||
| 1702 | |||
| 1684 | delta = nlines - FRAME_TOOL_BAR_LINES (f); | 1703 | delta = nlines - FRAME_TOOL_BAR_LINES (f); |
| 1685 | 1704 | ||
| 1686 | /* Don't resize the tool-bar to more than we have room for. */ | 1705 | /* Don't resize the tool-bar to more than we have room for. */ |
| @@ -2283,6 +2302,16 @@ mac_window (f, window_prompting, minibuffer_only) | |||
| 2283 | XSetWindowBackground (FRAME_MAC_DISPLAY(f), FRAME_MAC_WINDOW (f), | 2302 | XSetWindowBackground (FRAME_MAC_DISPLAY(f), FRAME_MAC_WINDOW (f), |
| 2284 | FRAME_BACKGROUND_PIXEL (f)); | 2303 | FRAME_BACKGROUND_PIXEL (f)); |
| 2285 | 2304 | ||
| 2305 | #if USE_MAC_TOOLBAR | ||
| 2306 | /* At the moment, the size of the tool bar is not yet known. We | ||
| 2307 | record the gravity value of the newly created window and use it | ||
| 2308 | to adjust the position of the window (especially for a negative | ||
| 2309 | specification of its vertical position) when the tool bar is | ||
| 2310 | first redisplayed. */ | ||
| 2311 | if (FRAME_EXTERNAL_TOOL_BAR (f)) | ||
| 2312 | f->output_data.mac->toolbar_win_gravity = f->win_gravity; | ||
| 2313 | #endif | ||
| 2314 | |||
| 2286 | validate_x_resource_name (); | 2315 | validate_x_resource_name (); |
| 2287 | 2316 | ||
| 2288 | /* x_set_name normally ignores requests to set the name if the | 2317 | /* x_set_name normally ignores requests to set the name if the |