YAMAMOTO Mitsuharu
e4e64b037b
(mac_color_map): Make static const.
...
(mac_color_map_lookup): Add const qualifier to arguments.
2006-10-31 08:31:50 +00:00
YAMAMOTO Mitsuharu
9346531434
(Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
...
New variable.
(syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
2006-10-19 08:01:25 +00:00
YAMAMOTO Mitsuharu
95afacef74
* macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
...
Undo 2006-09-08 change.
2006-09-12 09:48:08 +00:00
YAMAMOTO Mitsuharu
267fb7e271
(Fx_file_dialog): Remove unused variable `f'. Call check_mac.
2006-09-10 05:51:45 +00:00
YAMAMOTO Mitsuharu
fa4ba14c91
(mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
...
Specify kWindowAsyncDragAttribute.
2006-09-08 08:18:08 +00:00
YAMAMOTO Mitsuharu
3bb4025e9f
[TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't
...
use FRAME_FILE_NAME. Use (FS)UpdateAlias.
(Fx_create_frame): Apply 2006-07-03 for xfns.c.
2006-08-27 07:09:33 +00:00
Kim F. Storm
a508663b26
(Fxw_color_values): Simplify; use list3.
2006-08-25 23:33:04 +00:00
YAMAMOTO Mitsuharu
6704fec12c
(Fx_create_frame): Apply 2006-06-24 change for xfns.c.
2006-06-28 08:30:16 +00:00
YAMAMOTO Mitsuharu
e2da5e4212
(Fx_display_mm_height, Fx_display_mm_width)
...
[MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
2006-06-16 08:08:49 +00:00
YAMAMOTO Mitsuharu
a05e867db7
(x_set_icon_name): Apply 2006-06-02 change for xfns.c.
2006-06-03 02:32:42 +00:00
YAMAMOTO Mitsuharu
54b9479288
[USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
...
Call mac_set_font_info_for_selection if font panel is made visible.
2006-05-29 09:42:41 +00:00
YAMAMOTO Mitsuharu
a0293ec7a8
(Fx_server_version): Use gestaltSystemVersionMajor etc.
2006-05-24 08:07:37 +00:00
YAMAMOTO Mitsuharu
91c889526a
(Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
2006-05-19 09:11:47 +00:00
YAMAMOTO Mitsuharu
976b059fda
(x_to_mac_color): Fix shift amount change.
...
[USE_MAC_FONT_PANEL] (mac_set_font): Use x_get_focus_frame.
[USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
2006-05-10 08:23:45 +00:00
YAMAMOTO Mitsuharu
000447ac01
(mac_set_font): New function.
...
(mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
(mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
kWindowToolbarButtonAttribute when creating window.
(Fmac_clear_font_name_table): Move from macfns.c.
(syms_of_macfns): Likewise for defsubr.
[USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
(syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
2006-05-07 08:05:02 +00:00
YAMAMOTO Mitsuharu
d5085af01f
(mac_update_title_bar): Minor format change.
2006-05-01 02:51:38 +00:00
YAMAMOTO Mitsuharu
caec817144
(mac_update_title_bar): New function.
...
[TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
(show_hourglass, hide_hourglass) [USE_CG_DRAWING]: Call
mac_prepare_for_quickdraw.
2006-05-01 01:11:56 +00:00
YAMAMOTO Mitsuharu
28a11ed69d
(x_to_mac_color): Remove unused variable `tail'.
...
(x_set_mouse_color): Remove unused variable `dpy'.
(Fx_create_frame): Remove unused variable `x_frame_count'.
(Fx_server_version): Add explicit braces to avoid ambiguous `else'.
(x_sync): Move from macterm.c.
(Fx_file_dialog): Remove unused variable `default_filter_index'.
2006-04-12 08:07:32 +00:00
YAMAMOTO Mitsuharu
1599821a5c
(x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
2006-03-12 08:19:50 +00:00
YAMAMOTO Mitsuharu
8950bc7363
(x_default_scroll_bar_color_parameter)
...
(x_set_scroll_bar_foreground, x_set_scroll_bar_background): Remove
unnecessary prototypes.
(x_set_scroll_bar_default_width): Use
MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
(mac_set_scroll_bar_width): New function.
(mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
2006-03-06 07:55:53 +00:00
YAMAMOTO Mitsuharu
052c4ff370
(x_set_menu_bar_lines): Menu bar is always shown on Mac.
2006-02-15 08:41:36 +00:00
YAMAMOTO Mitsuharu
7d53d6786c
(x_set_mouse_color): Don't call rif->define_frame_cursor
...
if window_desc is not set yet.
(Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
parameter `visibility' is `icon'.
(Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
instead of "fontset-mac".
(Fx_focus_frame): New defun.
(syms_of_macfns): Defsubr it.
2006-02-10 08:21:47 +00:00
Thien-Thi Nguyen
aaef169dc6
Update years in copyright notice; nfc.
2006-02-06 15:23:23 +00:00
YAMAMOTO Mitsuharu
11aa10071e
(Fx_server_version): Use gestaltSystemVersionMajor,
...
gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
OS X 10.4 and later.
2006-01-05 08:14:33 +00:00
YAMAMOTO Mitsuharu
d62ff4c3cc
[TARGET_API_MAC_CARBON] (Fx_file_dialog): Use coercion of Apple event
...
data for translation from/to file names.
2005-12-24 02:50:34 +00:00
Jan Djärv
bf63eb6967
* xfns.c (compute_tip_xy): Handle negative dx and dy.
...
* w32fns.c (compute_tip_xy): Ditto
* macfns.c (compute_tip_xy): Ditto
2005-12-14 20:58:33 +00:00
Jan Djärv
7e8410d1ab
* (compute_tip_xy): Calculate root_y the same way as root_x,
...
i.e. dy is offset from top of frame instead of bottom.
2005-12-12 09:32:59 +00:00
Romain Francoise
edf84ae9cd
* macfns.c: Update copyright year.
...
* m/gould.h: Likewise.
2005-10-31 08:36:55 +00:00
YAMAMOTO Mitsuharu
0abf3e71f3
(Fx_create_frame): Add debugging code.
...
(Fx_show_tip): Set frame pixel width and height.
2005-10-16 02:22:35 +00:00
YAMAMOTO Mitsuharu
aa27f1e712
(start_hourglass): Apply 2005-05-07 change for xfns.c.
...
(x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debug code.
(Fx_create_frame, x_create_tip_frame) [USE_ATSUI]: Try
ATSUI-compatible 12pt Monaco font first.
2005-10-01 11:09:09 +00:00
YAMAMOTO Mitsuharu
3da64ce8fc
(image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
...
[TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple file
selection.
2005-09-18 05:42:12 +00:00
Thien-Thi Nguyen
0b5538bd85
Update years in copyright notice; nfc.
2005-08-07 12:33:19 +00:00
YAMAMOTO Mitsuharu
b8ab86c320
Don't include stdlib.h or string.h. Include atimer.h.
...
(gray_width, gray_height): Remove defines.
(gray_bits, gray_bitmap_width, gray_bitmap_height)
(gray_bitmap_bits): Remove variables.
(lispy_function_keys): Remove extern.
(free_frame_menubar): Add extern.
(x_window_to_frame): Remove function.
(unwind_create_tip_frame): Add declaration.
(x_set_name_internal): New function.
(x_set_name, x_set_title): Use it.
(Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
(Fx_display_pixel_height, Fx_display_planes)
(Fx_display_color_cells, Fx_server_max_request_size)
(Fx_server_vendor, Fx_server_version, Fx_display_screens)
(Fx_display_mm_height, Fx_display_mm_width)
(Fx_display_backing_store, Fx_display_visual_class)
(Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
2005-07-23 07:48:10 +00:00
YAMAMOTO Mitsuharu
88ad5ea792
(x_set_cursor_color): Use XSetBackground and XSetForeground.
2005-07-18 05:38:38 +00:00
Lute Kamstra
4fc5845fe8
Update FSF's address.
2005-07-04 16:49:24 +00:00
Richard M. Stallman
29e952546a
(Fx_show_tip): Pass new arg to try_window.
2005-06-25 22:37:06 +00:00
Juanma Barranquero
25f45c8175
(check_x_frame): Follow error conventions.
2005-06-23 16:12:25 +00:00
Jason Rumney
ba6f3859e0
(Fx_file_dialog): Unblock input before falling back to minibuffer.
2005-06-10 23:03:28 +00:00
YAMAMOTO Mitsuharu
b78c807ab4
Don't include signal.h.
2005-05-13 08:43:18 +00:00
YAMAMOTO Mitsuharu
4f19cb1521
(Fx_server_version): Add BLOCK_INPUT around Gestalt.
2005-04-29 09:00:22 +00:00
YAMAMOTO Mitsuharu
28fbbe2306
(Fx_file_dialog): Likewise.
2005-04-16 03:04:13 +00:00
YAMAMOTO Mitsuharu
844631fa1f
(x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]: Use ENCODE_SYSTEM
...
to encode title bar string.
(x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
(Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]: Use
CFStringGetSystemEncoding to get system default string encoding.
2005-04-14 09:25:41 +00:00
YAMAMOTO Mitsuharu
3495835063
(Fx_create_frame, x_create_tip_frame): Add "fontset-mac" to fallback
...
font/fontsets.
2005-04-06 02:24:23 +00:00
YAMAMOTO Mitsuharu
214080a533
(mac_get_rdb_resource): Remove function.
...
(x_get_string_resource): Use xrm_get_resource.
2005-03-16 08:06:33 +00:00
YAMAMOTO Mitsuharu
901a6b035e
(Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): Remove unused
...
variables.
(syms_of_macfns): Don't initialize them. Likewise for
Qface_set_after_frame_default. Defvar and initialize
Vx_window_horizontal_drag_shape.
(x_set_mouse_color): Change mouse pointer shape.
(mac_window) [!MAC_OSX]: Create root control.
(mac_window): Remove initializations of mouse pointer shapes.
(hourglass_started): New function (from xfns.c).
(start_hourglass, cancel_hourglass): Put function body in #ifdef
MAC_OSX.
(show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
indicator for each non-tooltip frame if needed, and show it.
(hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
2005-03-16 03:26:37 +00:00
YAMAMOTO Mitsuharu
1a8726ba2b
(install_window_handler): Move extern to macterm.h.
...
(Fx_file_dialog): Check STRINGP (default_filename) to see it is valid.
Don't check !NILP (dir) because it is already checked with
CHECK_STRING.
(Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
specifying the default location and obtaining the selected filename.
2005-03-04 11:08:54 +00:00
YAMAMOTO Mitsuharu
50b96379d7
(x_create_tip_frame): Use MAC_OS_X_VERSION_MAX_ALLOWED to
...
conditionalize by the compiling OS version.
2005-02-03 11:56:47 +00:00
Steven Tamm
f6c62d9690
* macfns.c (unwind_create_frame): Fixing compile error due to
...
xassert being uncondition, but predicate is.
2005-02-03 07:09:43 +00:00
Steven Tamm
42afbcda13
* macfns.c (Fx_file_dialog): Save As dialog includes only the
...
file name in the text box.
2005-01-16 00:17:25 +00:00
Steven Tamm
9cdd488421
* macfns.c (x_set_foreground_color, x_set_background_color): Sync
...
with xfns.c.
(mac_window, x_create_tip_frame): Use XSetWindowBackground.
* macterm.c (XSetBackground, XSetWindowBackground): New functions.
* macterm.h (XSetBackground, XSetWindowBackground): Add externs.
2005-01-16 00:10:18 +00:00