diff options
| author | YAMAMOTO Mitsuharu | 2006-03-06 07:55:53 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-03-06 07:55:53 +0000 |
| commit | 8950bc736331c96d4bc36bed4f64adec70b6f7d9 (patch) | |
| tree | d6105b949bbe15c1e0bd6685d3ec6735f02f4959 /src/macfns.c | |
| parent | a79fbdcb7f73b03d50942baa043b88ac128ee586 (diff) | |
| download | emacs-8950bc736331c96d4bc36bed4f64adec70b6f7d9.tar.gz emacs-8950bc736331c96d4bc36bed4f64adec70b6f7d9.zip | |
(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.
Diffstat (limited to 'src/macfns.c')
| -rw-r--r-- | src/macfns.c | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/src/macfns.c b/src/macfns.c index 617167dfc46..92a78a7319b 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -210,15 +210,6 @@ void x_explicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); | |||
| 210 | void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 210 | void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); |
| 211 | void x_set_title P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 211 | void x_set_title P_ ((struct frame *, Lisp_Object, Lisp_Object)); |
| 212 | void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 212 | void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); |
| 213 | void x_set_scroll_bar_foreground P_ ((struct frame *, Lisp_Object, | ||
| 214 | Lisp_Object)); | ||
| 215 | void x_set_scroll_bar_background P_ ((struct frame *, Lisp_Object, | ||
| 216 | Lisp_Object)); | ||
| 217 | static Lisp_Object x_default_scroll_bar_color_parameter P_ ((struct frame *, | ||
| 218 | Lisp_Object, | ||
| 219 | Lisp_Object, | ||
| 220 | char *, char *, | ||
| 221 | int)); | ||
| 222 | 213 | ||
| 223 | extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *)); | 214 | extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *)); |
| 224 | 215 | ||
| @@ -1897,7 +1888,7 @@ x_set_scroll_bar_default_width (f) | |||
| 1897 | int wid = FRAME_COLUMN_WIDTH (f); | 1888 | int wid = FRAME_COLUMN_WIDTH (f); |
| 1898 | 1889 | ||
| 1899 | #ifdef MAC_OSX | 1890 | #ifdef MAC_OSX |
| 1900 | FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = 16; /* Aqua scroll bars. */ | 1891 | FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH; |
| 1901 | FRAME_CONFIG_SCROLL_BAR_COLS (f) = (FRAME_CONFIG_SCROLL_BAR_WIDTH (f) + | 1892 | FRAME_CONFIG_SCROLL_BAR_COLS (f) = (FRAME_CONFIG_SCROLL_BAR_WIDTH (f) + |
| 1902 | wid - 1) / wid; | 1893 | wid - 1) / wid; |
| 1903 | #else /* not MAC_OSX */ | 1894 | #else /* not MAC_OSX */ |
| @@ -1911,6 +1902,24 @@ x_set_scroll_bar_default_width (f) | |||
| 1911 | #endif /* not MAC_OSX */ | 1902 | #endif /* not MAC_OSX */ |
| 1912 | } | 1903 | } |
| 1913 | 1904 | ||
| 1905 | void | ||
| 1906 | mac_set_scroll_bar_width (f, arg, oldval) | ||
| 1907 | struct frame *f; | ||
| 1908 | Lisp_Object arg, oldval; | ||
| 1909 | { | ||
| 1910 | #ifdef MAC_OSX | ||
| 1911 | if (INTEGERP (arg) && XINT (arg) > 0) | ||
| 1912 | { | ||
| 1913 | if (XINT (arg) < (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH | ||
| 1914 | + MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH) / 2) | ||
| 1915 | XSETINT (arg, MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH); | ||
| 1916 | else | ||
| 1917 | XSETINT (arg, MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH); | ||
| 1918 | } | ||
| 1919 | #endif | ||
| 1920 | x_set_scroll_bar_width (f, arg, oldval); | ||
| 1921 | } | ||
| 1922 | |||
| 1914 | 1923 | ||
| 1915 | /* Subroutines of creating a frame. */ | 1924 | /* Subroutines of creating a frame. */ |
| 1916 | 1925 | ||
| @@ -4373,7 +4382,7 @@ frame_parm_handler mac_frame_parm_handlers[] = | |||
| 4373 | x_set_menu_bar_lines, | 4382 | x_set_menu_bar_lines, |
| 4374 | x_set_mouse_color, | 4383 | x_set_mouse_color, |
| 4375 | x_explicitly_set_name, | 4384 | x_explicitly_set_name, |
| 4376 | x_set_scroll_bar_width, | 4385 | mac_set_scroll_bar_width, |
| 4377 | x_set_title, | 4386 | x_set_title, |
| 4378 | x_set_unsplittable, | 4387 | x_set_unsplittable, |
| 4379 | x_set_vertical_scroll_bars, | 4388 | x_set_vertical_scroll_bars, |