diff options
| author | Karoly Lorentey | 2006-06-12 07:27:12 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-06-12 07:27:12 +0000 |
| commit | 476e9367ec1f440aa23904b7bc482ea4a3b8041c (patch) | |
| tree | 4f7f5a5e9a6668f908834bb6e216c8fa3727d4b3 /src/macfns.c | |
| parent | a13f8f50d4cc544d3bbfa78568e82ce09e68bded (diff) | |
| parent | 6b519504c3297595101628e823e72c91e562ab45 (diff) | |
| download | emacs-476e9367ec1f440aa23904b7bc482ea4a3b8041c.tar.gz emacs-476e9367ec1f440aa23904b7bc482ea4a3b8041c.zip | |
Merged from emacs@sv.gnu.org.
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-294
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-295
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-296
Update from CVS: admin/FOR-RELEASE: Update refcard section.
* emacs@sv.gnu.org/emacs--devo--0--patch-297
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-298
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-299
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-300
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-301
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-302
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-303
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-304
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-103
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-104
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-570
Diffstat (limited to 'src/macfns.c')
| -rw-r--r-- | src/macfns.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/macfns.c b/src/macfns.c index 577167e6fe3..4345cef2611 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -1592,7 +1592,7 @@ x_set_icon_name (f, arg, oldval) | |||
| 1592 | if (STRINGP (oldval) && EQ (Fstring_equal (oldval, arg), Qt)) | 1592 | if (STRINGP (oldval) && EQ (Fstring_equal (oldval, arg), Qt)) |
| 1593 | return; | 1593 | return; |
| 1594 | } | 1594 | } |
| 1595 | else if (!STRINGP (oldval) && EQ (oldval, Qnil) == EQ (arg, Qnil)) | 1595 | else if (!NILP (arg) || NILP (oldval)) |
| 1596 | return; | 1596 | return; |
| 1597 | 1597 | ||
| 1598 | f->icon_name = arg; | 1598 | f->icon_name = arg; |
| @@ -3024,11 +3024,11 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 3024 | { | 3024 | { |
| 3025 | if (response >= 0x00001040) | 3025 | if (response >= 0x00001040) |
| 3026 | { | 3026 | { |
| 3027 | err = Gestalt ('sys1', &major); /* gestaltSystemVersionMajor */ | 3027 | err = Gestalt (gestaltSystemVersionMajor, &major); |
| 3028 | if (err == noErr) | 3028 | if (err == noErr) |
| 3029 | err = Gestalt ('sys2', &minor); /* gestaltSystemVersionMinor */ | 3029 | err = Gestalt (gestaltSystemVersionMinor, &minor); |
| 3030 | if (err == noErr) | 3030 | if (err == noErr) |
| 3031 | err = Gestalt ('sys3', &bugfix); /* gestaltSystemVersionBugFix */ | 3031 | err = Gestalt (gestaltSystemVersionBugFix, &bugfix); |
| 3032 | } | 3032 | } |
| 3033 | else | 3033 | else |
| 3034 | { | 3034 | { |
| @@ -4514,8 +4514,18 @@ This is for internal use only. Use `mac-font-panel-mode' instead. */) | |||
| 4514 | check_mac (); | 4514 | check_mac (); |
| 4515 | 4515 | ||
| 4516 | BLOCK_INPUT; | 4516 | BLOCK_INPUT; |
| 4517 | if (NILP (visible) == (FPIsFontPanelVisible () == true)) | 4517 | if (NILP (visible) != !mac_font_panel_visible_p ()) |
| 4518 | err = FPShowHideFontPanel (); | 4518 | { |
| 4519 | err = mac_show_hide_font_panel (); | ||
| 4520 | if (err == noErr && !NILP (visible)) | ||
| 4521 | { | ||
| 4522 | Lisp_Object focus_frame = x_get_focus_frame (SELECTED_FRAME ()); | ||
| 4523 | struct frame *f = (NILP (focus_frame) ? SELECTED_FRAME () | ||
| 4524 | : XFRAME (focus_frame)); | ||
| 4525 | |||
| 4526 | mac_set_font_info_for_selection (f, DEFAULT_FACE_ID, 0); | ||
| 4527 | } | ||
| 4528 | } | ||
| 4519 | UNBLOCK_INPUT; | 4529 | UNBLOCK_INPUT; |
| 4520 | 4530 | ||
| 4521 | if (err != noErr) | 4531 | if (err != noErr) |