comparison src/macfns.c @ 76370:14f1f51f8e2b

(mac_set_scroll_bar_width, mac_frame_parm_handlers): Undo 2006-03-06 changes.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Wed, 07 Mar 2007 08:13:28 +0000
parents 433bde797a0b
children fa556a7af559
comparison
equal deleted inserted replaced
76369:488516b0de0a 76370:14f1f51f8e2b
1907 scroll bar. */ 1907 scroll bar. */
1908 FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = 0; 1908 FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = 0;
1909 #endif /* not MAC_OSX */ 1909 #endif /* not MAC_OSX */
1910 } 1910 }
1911 1911
1912 void
1913 mac_set_scroll_bar_width (f, arg, oldval)
1914 struct frame *f;
1915 Lisp_Object arg, oldval;
1916 {
1917 #ifdef MAC_OSX
1918 if (INTEGERP (arg) && XINT (arg) > 0)
1919 {
1920 if (XINT (arg) < (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH
1921 + MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH) / 2)
1922 XSETINT (arg, MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH);
1923 else
1924 XSETINT (arg, MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH);
1925 }
1926 #endif
1927 x_set_scroll_bar_width (f, arg, oldval);
1928 }
1929
1930 static void 1912 static void
1931 mac_set_font (f, arg, oldval) 1913 mac_set_font (f, arg, oldval)
1932 struct frame *f; 1914 struct frame *f;
1933 Lisp_Object arg, oldval; 1915 Lisp_Object arg, oldval;
1934 { 1916 {
4675 0, /* MAC_TODO: x_set_icon_type, */ 4657 0, /* MAC_TODO: x_set_icon_type, */
4676 x_set_internal_border_width, 4658 x_set_internal_border_width,
4677 x_set_menu_bar_lines, 4659 x_set_menu_bar_lines,
4678 x_set_mouse_color, 4660 x_set_mouse_color,
4679 x_explicitly_set_name, 4661 x_explicitly_set_name,
4680 mac_set_scroll_bar_width, 4662 x_set_scroll_bar_width,
4681 x_set_title, 4663 x_set_title,
4682 x_set_unsplittable, 4664 x_set_unsplittable,
4683 x_set_vertical_scroll_bars, 4665 x_set_vertical_scroll_bars,
4684 x_set_visibility, 4666 x_set_visibility,
4685 x_set_tool_bar_lines, 4667 x_set_tool_bar_lines,