diff options
| author | Yuuki Harano | 2019-05-03 17:20:47 +0900 |
|---|---|---|
| committer | Jeff Walsh | 2020-11-22 14:46:55 +1100 |
| commit | 12cc104cd54dd80a9bc1d391a256de49f4b77077 (patch) | |
| tree | aaa82d03ec0bc65f60e74a541b88ecfbd51f9641 /src | |
| parent | ed1f7d1e2a5caae4d3d90c6a166ccc15f143f776 (diff) | |
| download | emacs-12cc104cd54dd80a9bc1d391a256de49f4b77077.tar.gz emacs-12cc104cd54dd80a9bc1d391a256de49f4b77077.zip | |
Cleanup x_* to gui_ to match upstream work
* ../src/pgtkterm.h (struct pgtk_display_info):
* ../src/pgtkterm.c (mark_pgtkterm, x_free_frame_resources)
(pgtk_update_window_end, pgtk_mouse_position)
(pgtk_redisplay_interface, pgtk_query_frame_background_color)
(pgtk_delete_terminal, pgtk_create_terminal)
(pgtk_query_frame_background_color, frame_highlight)
(motion_notify_event, button_event, scroll_event):
* ../src/pgtkfns.c (x_set_cursor_color, x_icon)
(pgtk_frame_parm_handlers, x_default_font_parameter)
(Fx_create_frame):
"for the time being, commit" -- rename x->gui, frame_X_X(f) macros
ひとまず commit。
Diffstat (limited to 'src')
| -rw-r--r-- | src/pgtkfns.c | 180 | ||||
| -rw-r--r-- | src/pgtkgui.h | 2 | ||||
| -rw-r--r-- | src/pgtkterm.c | 90 | ||||
| -rw-r--r-- | src/pgtkterm.h | 8 |
4 files changed, 147 insertions, 133 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c index dd450a40bf9..ce702028348 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c | |||
| @@ -234,8 +234,8 @@ x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 234 | 234 | ||
| 235 | if (FRAME_VISIBLE_P (f)) | 235 | if (FRAME_VISIBLE_P (f)) |
| 236 | { | 236 | { |
| 237 | x_update_cursor (f, false); | 237 | gui_update_cursor (f, false); |
| 238 | x_update_cursor (f, true); | 238 | gui_update_cursor (f, true); |
| 239 | } | 239 | } |
| 240 | } | 240 | } |
| 241 | 241 | ||
| @@ -349,7 +349,7 @@ x_explicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 349 | name; names set this way will never override names set by the user's | 349 | name; names set this way will never override names set by the user's |
| 350 | lisp code. */ | 350 | lisp code. */ |
| 351 | void | 351 | void |
| 352 | x_implicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | 352 | pgtk_implicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 353 | { | 353 | { |
| 354 | PGTK_TRACE ("x_implicitly_set_name"); | 354 | PGTK_TRACE ("x_implicitly_set_name"); |
| 355 | 355 | ||
| @@ -643,8 +643,8 @@ x_icon (struct frame *f, Lisp_Object parms) | |||
| 643 | FRAME_X_OUTPUT(f)->icon_left = -1; | 643 | FRAME_X_OUTPUT(f)->icon_left = -1; |
| 644 | 644 | ||
| 645 | /* Set the position of the icon. */ | 645 | /* Set the position of the icon. */ |
| 646 | icon_x = x_get_arg (dpyinfo, parms, Qicon_left, 0, 0, RES_TYPE_NUMBER); | 646 | icon_x = gui_display_get_arg (dpyinfo, parms, Qicon_left, 0, 0, RES_TYPE_NUMBER); |
| 647 | icon_y = x_get_arg (dpyinfo, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); | 647 | icon_y = gui_display_get_arg (dpyinfo, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); |
| 648 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) | 648 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) |
| 649 | { | 649 | { |
| 650 | CHECK_NUMBER (icon_x); | 650 | CHECK_NUMBER (icon_x); |
| @@ -715,11 +715,11 @@ x_set_override_redirect (struct frame *f, Lisp_Object new_value, Lisp_Object old | |||
| 715 | { | 715 | { |
| 716 | /* Here (xfwm) override_redirect can be changed for invisible | 716 | /* Here (xfwm) override_redirect can be changed for invisible |
| 717 | frames only. */ | 717 | frames only. */ |
| 718 | x_make_frame_invisible (f); | 718 | pgtk_make_frame_invisible (f); |
| 719 | 719 | ||
| 720 | xg_set_override_redirect (f, new_value); | 720 | xg_set_override_redirect (f, new_value); |
| 721 | 721 | ||
| 722 | x_make_frame_visible (f); | 722 | pgtk_make_frame_visible (f); |
| 723 | FRAME_OVERRIDE_REDIRECT (f) = !NILP (new_value); | 723 | FRAME_OVERRIDE_REDIRECT (f) = !NILP (new_value); |
| 724 | } | 724 | } |
| 725 | } | 725 | } |
| @@ -727,41 +727,41 @@ x_set_override_redirect (struct frame *f, Lisp_Object new_value, Lisp_Object old | |||
| 727 | /* Note: see frame.c for template, also where generic functions are impl */ | 727 | /* Note: see frame.c for template, also where generic functions are impl */ |
| 728 | frame_parm_handler pgtk_frame_parm_handlers[] = | 728 | frame_parm_handler pgtk_frame_parm_handlers[] = |
| 729 | { | 729 | { |
| 730 | x_set_autoraise, /* generic OK */ | 730 | gui_set_autoraise, /* generic OK */ |
| 731 | x_set_autolower, /* generic OK */ | 731 | gui_set_autolower, /* generic OK */ |
| 732 | x_set_background_color, | 732 | x_set_background_color, |
| 733 | 0, /* x_set_border_color, may be impossible under Nextstep */ | 733 | 0, /* x_set_border_color, may be impossible under Nextstep */ |
| 734 | 0, /* x_set_border_width, may be impossible under Nextstep */ | 734 | 0, /* x_set_border_width, may be impossible under Nextstep */ |
| 735 | x_set_cursor_color, | 735 | x_set_cursor_color, |
| 736 | x_set_cursor_type, | 736 | x_set_cursor_type, |
| 737 | x_set_font, /* generic OK */ | 737 | gui_set_font, /* generic OK */ |
| 738 | x_set_foreground_color, | 738 | x_set_foreground_color, |
| 739 | x_set_icon_name, | 739 | x_set_icon_name, |
| 740 | x_set_icon_type, | 740 | x_set_icon_type, |
| 741 | x_set_internal_border_width, /* generic OK */ | 741 | x_set_internal_border_width, /* generic OK */ |
| 742 | x_set_right_divider_width, | 742 | gui_set_right_divider_width, |
| 743 | x_set_bottom_divider_width, | 743 | gui_set_bottom_divider_width, |
| 744 | x_set_menu_bar_lines, | 744 | x_set_menu_bar_lines, |
| 745 | x_set_mouse_color, | 745 | x_set_mouse_color, |
| 746 | x_explicitly_set_name, | 746 | x_explicitly_set_name, |
| 747 | x_set_scroll_bar_width, /* generic OK */ | 747 | gui_set_scroll_bar_width, /* generic OK */ |
| 748 | x_set_scroll_bar_height, /* generic OK */ | 748 | gui_set_scroll_bar_height, /* generic OK */ |
| 749 | x_set_title, | 749 | x_set_title, |
| 750 | x_set_unsplittable, /* generic OK */ | 750 | gui_set_unsplittable, /* generic OK */ |
| 751 | x_set_vertical_scroll_bars, /* generic OK */ | 751 | gui_set_vertical_scroll_bars, /* generic OK */ |
| 752 | x_set_horizontal_scroll_bars, /* generic OK */ | 752 | gui_set_horizontal_scroll_bars, /* generic OK */ |
| 753 | x_set_visibility, /* generic OK */ | 753 | gui_set_visibility, /* generic OK */ |
| 754 | x_set_tool_bar_lines, | 754 | x_set_tool_bar_lines, |
| 755 | 0, /* x_set_scroll_bar_foreground, will ignore (not possible on NS) */ | 755 | 0, /* x_set_scroll_bar_foreground, will ignore (not possible on NS) */ |
| 756 | 0, /* x_set_scroll_bar_background, will ignore (not possible on NS) */ | 756 | 0, /* x_set_scroll_bar_background, will ignore (not possible on NS) */ |
| 757 | x_set_screen_gamma, /* generic OK */ | 757 | gui_set_screen_gamma, /* generic OK */ |
| 758 | x_set_line_spacing, /* generic OK, sets f->extra_line_spacing to int */ | 758 | gui_set_line_spacing, /* generic OK, sets f->extra_line_spacing to int */ |
| 759 | x_set_left_fringe, /* generic OK */ | 759 | gui_set_left_fringe, /* generic OK */ |
| 760 | x_set_right_fringe, /* generic OK */ | 760 | gui_set_right_fringe, /* generic OK */ |
| 761 | 0, /* x_set_wait_for_wm, will ignore */ | 761 | 0, /* x_set_wait_for_wm, will ignore */ |
| 762 | x_set_fullscreen, /* generic OK */ | 762 | gui_set_fullscreen, /* generic OK */ |
| 763 | x_set_font_backend, /* generic OK */ | 763 | gui_set_font_backend, /* generic OK */ |
| 764 | x_set_alpha, | 764 | gui_set_alpha, |
| 765 | 0, /* x_set_sticky */ | 765 | 0, /* x_set_sticky */ |
| 766 | 0, /* x_set_tool_bar_position */ | 766 | 0, /* x_set_tool_bar_position */ |
| 767 | 0, /* x_set_inhibit_double_buffering */ | 767 | 0, /* x_set_inhibit_double_buffering */ |
| @@ -772,7 +772,7 @@ frame_parm_handler pgtk_frame_parm_handlers[] = | |||
| 772 | x_set_no_accept_focus, | 772 | x_set_no_accept_focus, |
| 773 | x_set_z_group, | 773 | x_set_z_group, |
| 774 | x_set_override_redirect, | 774 | x_set_override_redirect, |
| 775 | x_set_no_special_glyphs, | 775 | gui_set_no_special_glyphs, |
| 776 | }; | 776 | }; |
| 777 | 777 | ||
| 778 | 778 | ||
| @@ -846,7 +846,7 @@ static void | |||
| 846 | x_default_font_parameter (struct frame *f, Lisp_Object parms) | 846 | x_default_font_parameter (struct frame *f, Lisp_Object parms) |
| 847 | { | 847 | { |
| 848 | struct pgtk_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); | 848 | struct pgtk_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 849 | Lisp_Object font_param = x_get_arg (dpyinfo, parms, Qfont, NULL, NULL, | 849 | Lisp_Object font_param = gui_display_get_arg (dpyinfo, parms, Qfont, NULL, NULL, |
| 850 | RES_TYPE_STRING); | 850 | RES_TYPE_STRING); |
| 851 | Lisp_Object font = Qnil; | 851 | Lisp_Object font = Qnil; |
| 852 | if (EQ (font_param, Qunbound)) | 852 | if (EQ (font_param, Qunbound)) |
| @@ -864,7 +864,7 @@ x_default_font_parameter (struct frame *f, Lisp_Object parms) | |||
| 864 | 864 | ||
| 865 | if (NILP (font)) | 865 | if (NILP (font)) |
| 866 | font = !NILP (font_param) ? font_param | 866 | font = !NILP (font_param) ? font_param |
| 867 | : x_get_arg (dpyinfo, parms, Qfont, "font", "Font", RES_TYPE_STRING); | 867 | : gui_display_get_arg (dpyinfo, parms, Qfont, "font", "Font", RES_TYPE_STRING); |
| 868 | 868 | ||
| 869 | if (! FONTP (font) && ! STRINGP (font)) | 869 | if (! FONTP (font) && ! STRINGP (font)) |
| 870 | { | 870 | { |
| @@ -898,11 +898,11 @@ x_default_font_parameter (struct frame *f, Lisp_Object parms) | |||
| 898 | /* Remember the explicit font parameter, so we can re-apply it after | 898 | /* Remember the explicit font parameter, so we can re-apply it after |
| 899 | we've applied the `default' face settings. */ | 899 | we've applied the `default' face settings. */ |
| 900 | AUTO_FRAME_ARG (arg, Qfont_parameter, font_param); | 900 | AUTO_FRAME_ARG (arg, Qfont_parameter, font_param); |
| 901 | x_set_frame_parameters (f, arg); | 901 | gui_set_frame_parameters (f, arg); |
| 902 | } | 902 | } |
| 903 | 903 | ||
| 904 | /* This call will make X resources override any system font setting. */ | 904 | /* This call will make X resources override any system font setting. */ |
| 905 | x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); | 905 | gui_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); |
| 906 | } | 906 | } |
| 907 | 907 | ||
| 908 | /* ========================================================================== | 908 | /* ========================================================================== |
| @@ -942,9 +942,9 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 942 | until we know if this frame has a specified name. */ | 942 | until we know if this frame has a specified name. */ |
| 943 | Vx_resource_name = Vinvocation_name; | 943 | Vx_resource_name = Vinvocation_name; |
| 944 | 944 | ||
| 945 | display = x_get_arg (dpyinfo, parms, Qterminal, 0, 0, RES_TYPE_NUMBER); | 945 | display = gui_display_get_arg (dpyinfo, parms, Qterminal, 0, 0, RES_TYPE_NUMBER); |
| 946 | if (EQ (display, Qunbound)) | 946 | if (EQ (display, Qunbound)) |
| 947 | display = x_get_arg (dpyinfo, parms, Qdisplay, 0, 0, RES_TYPE_STRING); | 947 | display = gui_display_get_arg (dpyinfo, parms, Qdisplay, 0, 0, RES_TYPE_STRING); |
| 948 | if (EQ (display, Qunbound)) | 948 | if (EQ (display, Qunbound)) |
| 949 | display = Qnil; | 949 | display = Qnil; |
| 950 | dpyinfo = check_pgtk_display_info (display); | 950 | dpyinfo = check_pgtk_display_info (display); |
| @@ -953,7 +953,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 953 | if (!dpyinfo->terminal->name) | 953 | if (!dpyinfo->terminal->name) |
| 954 | error ("Terminal is not live, can't create new frames on it"); | 954 | error ("Terminal is not live, can't create new frames on it"); |
| 955 | 955 | ||
| 956 | name = x_get_arg (dpyinfo, parms, Qname, "name", "Name", RES_TYPE_STRING); | 956 | name = gui_display_get_arg (dpyinfo, parms, Qname, "name", "Name", RES_TYPE_STRING); |
| 957 | if (!STRINGP (name) | 957 | if (!STRINGP (name) |
| 958 | && ! EQ (name, Qunbound) | 958 | && ! EQ (name, Qunbound) |
| 959 | && ! NILP (name)) | 959 | && ! NILP (name)) |
| @@ -963,14 +963,14 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 963 | Vx_resource_name = name; | 963 | Vx_resource_name = name; |
| 964 | 964 | ||
| 965 | /* See if parent window is specified. */ | 965 | /* See if parent window is specified. */ |
| 966 | parent = x_get_arg (dpyinfo, parms, Qparent_id, NULL, NULL, RES_TYPE_NUMBER); | 966 | parent = gui_display_get_arg (dpyinfo, parms, Qparent_id, NULL, NULL, RES_TYPE_NUMBER); |
| 967 | if (EQ (parent, Qunbound)) | 967 | if (EQ (parent, Qunbound)) |
| 968 | parent = Qnil; | 968 | parent = Qnil; |
| 969 | if (! NILP (parent)) | 969 | if (! NILP (parent)) |
| 970 | CHECK_NUMBER (parent); | 970 | CHECK_NUMBER (parent); |
| 971 | 971 | ||
| 972 | frame = Qnil; | 972 | frame = Qnil; |
| 973 | tem = x_get_arg (dpyinfo, parms, Qminibuffer, "minibuffer", "Minibuffer", | 973 | tem = gui_display_get_arg (dpyinfo, parms, Qminibuffer, "minibuffer", "Minibuffer", |
| 974 | RES_TYPE_SYMBOL); | 974 | RES_TYPE_SYMBOL); |
| 975 | if (EQ (tem, Qnone) || NILP (tem)) | 975 | if (EQ (tem, Qnone) || NILP (tem)) |
| 976 | f = make_frame_without_minibuffer (Qnil, kb, display); | 976 | f = make_frame_without_minibuffer (Qnil, kb, display); |
| @@ -984,7 +984,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 984 | else | 984 | else |
| 985 | f = make_frame (true); | 985 | f = make_frame (true); |
| 986 | 986 | ||
| 987 | parent_frame = x_get_arg (dpyinfo, parms, Qparent_frame, NULL, NULL, | 987 | parent_frame = gui_display_get_arg (dpyinfo, parms, Qparent_frame, NULL, NULL, |
| 988 | RES_TYPE_SYMBOL); | 988 | RES_TYPE_SYMBOL); |
| 989 | /* Accept parent-frame iff parent-id was not specified. */ | 989 | /* Accept parent-frame iff parent-id was not specified. */ |
| 990 | if (!NILP (parent) | 990 | if (!NILP (parent) |
| @@ -998,7 +998,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 998 | fset_parent_frame (f, parent_frame); | 998 | fset_parent_frame (f, parent_frame); |
| 999 | store_frame_param (f, Qparent_frame, parent_frame); | 999 | store_frame_param (f, Qparent_frame, parent_frame); |
| 1000 | 1000 | ||
| 1001 | if (!NILP (tem = (x_get_arg (dpyinfo, parms, Qundecorated, NULL, NULL, | 1001 | if (!NILP (tem = (gui_display_get_arg (dpyinfo, parms, Qundecorated, NULL, NULL, |
| 1002 | RES_TYPE_BOOLEAN))) | 1002 | RES_TYPE_BOOLEAN))) |
| 1003 | && !(EQ (tem, Qunbound))) | 1003 | && !(EQ (tem, Qunbound))) |
| 1004 | undecorated = true; | 1004 | undecorated = true; |
| @@ -1006,7 +1006,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1006 | FRAME_UNDECORATED (f) = undecorated; | 1006 | FRAME_UNDECORATED (f) = undecorated; |
| 1007 | store_frame_param (f, Qundecorated, undecorated ? Qt : Qnil); | 1007 | store_frame_param (f, Qundecorated, undecorated ? Qt : Qnil); |
| 1008 | 1008 | ||
| 1009 | if (!NILP (tem = (x_get_arg (dpyinfo, parms, Qoverride_redirect, NULL, NULL, | 1009 | if (!NILP (tem = (gui_display_get_arg (dpyinfo, parms, Qoverride_redirect, NULL, NULL, |
| 1010 | RES_TYPE_BOOLEAN))) | 1010 | RES_TYPE_BOOLEAN))) |
| 1011 | && !(EQ (tem, Qunbound))) | 1011 | && !(EQ (tem, Qunbound))) |
| 1012 | override_redirect = true; | 1012 | override_redirect = true; |
| @@ -1032,7 +1032,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1032 | FRAME_X_OUTPUT(f)->black_relief.pixel = -1; | 1032 | FRAME_X_OUTPUT(f)->black_relief.pixel = -1; |
| 1033 | 1033 | ||
| 1034 | fset_icon_name (f, | 1034 | fset_icon_name (f, |
| 1035 | x_get_arg (dpyinfo, parms, Qicon_name, "iconName", "Title", | 1035 | gui_display_get_arg (dpyinfo, parms, Qicon_name, "iconName", "Title", |
| 1036 | RES_TYPE_STRING)); | 1036 | RES_TYPE_STRING)); |
| 1037 | if (! STRINGP (f->icon_name)) | 1037 | if (! STRINGP (f->icon_name)) |
| 1038 | fset_icon_name (f, Qnil); | 1038 | fset_icon_name (f, Qnil); |
| @@ -1113,7 +1113,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1113 | #endif /* GLYPH_DEBUG */ | 1113 | #endif /* GLYPH_DEBUG */ |
| 1114 | #endif | 1114 | #endif |
| 1115 | 1115 | ||
| 1116 | x_default_parameter (f, parms, Qfont_backend, Qnil, | 1116 | gui_default_parameter (f, parms, Qfont_backend, Qnil, |
| 1117 | "fontBackend", "FontBackend", RES_TYPE_STRING); | 1117 | "fontBackend", "FontBackend", RES_TYPE_STRING); |
| 1118 | 1118 | ||
| 1119 | /* Extract the window parameters from the supplied values | 1119 | /* Extract the window parameters from the supplied values |
| @@ -1129,7 +1129,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1129 | #if 0 | 1129 | #if 0 |
| 1130 | if (! FRAME_X_EMBEDDED_P (f)) | 1130 | if (! FRAME_X_EMBEDDED_P (f)) |
| 1131 | #endif | 1131 | #endif |
| 1132 | x_default_parameter (f, parms, Qborder_width, make_fixnum (0), | 1132 | gui_default_parameter (f, parms, Qborder_width, make_fixnum (0), |
| 1133 | "borderWidth", "BorderWidth", RES_TYPE_NUMBER); | 1133 | "borderWidth", "BorderWidth", RES_TYPE_NUMBER); |
| 1134 | 1134 | ||
| 1135 | /* This defaults to 1 in order to match xterm. We recognize either | 1135 | /* This defaults to 1 in order to match xterm. We recognize either |
| @@ -1139,45 +1139,45 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1139 | { | 1139 | { |
| 1140 | Lisp_Object value; | 1140 | Lisp_Object value; |
| 1141 | 1141 | ||
| 1142 | value = x_get_arg (dpyinfo, parms, Qinternal_border_width, | 1142 | value = gui_display_get_arg (dpyinfo, parms, Qinternal_border_width, |
| 1143 | "internalBorder", "internalBorder", RES_TYPE_NUMBER); | 1143 | "internalBorder", "internalBorder", RES_TYPE_NUMBER); |
| 1144 | if (! EQ (value, Qunbound)) | 1144 | if (! EQ (value, Qunbound)) |
| 1145 | parms = Fcons (Fcons (Qinternal_border_width, value), | 1145 | parms = Fcons (Fcons (Qinternal_border_width, value), |
| 1146 | parms); | 1146 | parms); |
| 1147 | } | 1147 | } |
| 1148 | x_default_parameter (f, parms, Qinternal_border_width, | 1148 | gui_default_parameter (f, parms, Qinternal_border_width, |
| 1149 | make_fixnum (0), | 1149 | make_fixnum (0), |
| 1150 | "internalBorderWidth", "internalBorderWidth", | 1150 | "internalBorderWidth", "internalBorderWidth", |
| 1151 | RES_TYPE_NUMBER); | 1151 | RES_TYPE_NUMBER); |
| 1152 | x_default_parameter (f, parms, Qright_divider_width, make_fixnum (0), | 1152 | gui_default_parameter (f, parms, Qright_divider_width, make_fixnum (0), |
| 1153 | NULL, NULL, RES_TYPE_NUMBER); | 1153 | NULL, NULL, RES_TYPE_NUMBER); |
| 1154 | x_default_parameter (f, parms, Qbottom_divider_width, make_fixnum (0), | 1154 | gui_default_parameter (f, parms, Qbottom_divider_width, make_fixnum (0), |
| 1155 | NULL, NULL, RES_TYPE_NUMBER); | 1155 | NULL, NULL, RES_TYPE_NUMBER); |
| 1156 | x_default_parameter (f, parms, Qvertical_scroll_bars, | 1156 | gui_default_parameter (f, parms, Qvertical_scroll_bars, |
| 1157 | Qright, | 1157 | Qright, |
| 1158 | "verticalScrollBars", "ScrollBars", | 1158 | "verticalScrollBars", "ScrollBars", |
| 1159 | RES_TYPE_SYMBOL); | 1159 | RES_TYPE_SYMBOL); |
| 1160 | x_default_parameter (f, parms, Qhorizontal_scroll_bars, Qnil, | 1160 | gui_default_parameter (f, parms, Qhorizontal_scroll_bars, Qnil, |
| 1161 | "horizontalScrollBars", "ScrollBars", | 1161 | "horizontalScrollBars", "ScrollBars", |
| 1162 | RES_TYPE_SYMBOL); | 1162 | RES_TYPE_SYMBOL); |
| 1163 | /* Also do the stuff which must be set before the window exists. */ | 1163 | /* Also do the stuff which must be set before the window exists. */ |
| 1164 | x_default_parameter (f, parms, Qforeground_color, build_string ("black"), | 1164 | gui_default_parameter (f, parms, Qforeground_color, build_string ("black"), |
| 1165 | "foreground", "Foreground", RES_TYPE_STRING); | 1165 | "foreground", "Foreground", RES_TYPE_STRING); |
| 1166 | x_default_parameter (f, parms, Qbackground_color, build_string ("white"), | 1166 | gui_default_parameter (f, parms, Qbackground_color, build_string ("white"), |
| 1167 | "background", "Background", RES_TYPE_STRING); | 1167 | "background", "Background", RES_TYPE_STRING); |
| 1168 | x_default_parameter (f, parms, Qmouse_color, build_string ("black"), | 1168 | gui_default_parameter (f, parms, Qmouse_color, build_string ("black"), |
| 1169 | "pointerColor", "Foreground", RES_TYPE_STRING); | 1169 | "pointerColor", "Foreground", RES_TYPE_STRING); |
| 1170 | x_default_parameter (f, parms, Qborder_color, build_string ("black"), | 1170 | gui_default_parameter (f, parms, Qborder_color, build_string ("black"), |
| 1171 | "borderColor", "BorderColor", RES_TYPE_STRING); | 1171 | "borderColor", "BorderColor", RES_TYPE_STRING); |
| 1172 | x_default_parameter (f, parms, Qscreen_gamma, Qnil, | 1172 | gui_default_parameter (f, parms, Qscreen_gamma, Qnil, |
| 1173 | "screenGamma", "ScreenGamma", RES_TYPE_FLOAT); | 1173 | "screenGamma", "ScreenGamma", RES_TYPE_FLOAT); |
| 1174 | x_default_parameter (f, parms, Qline_spacing, Qnil, | 1174 | gui_default_parameter (f, parms, Qline_spacing, Qnil, |
| 1175 | "lineSpacing", "LineSpacing", RES_TYPE_NUMBER); | 1175 | "lineSpacing", "LineSpacing", RES_TYPE_NUMBER); |
| 1176 | x_default_parameter (f, parms, Qleft_fringe, Qnil, | 1176 | gui_default_parameter (f, parms, Qleft_fringe, Qnil, |
| 1177 | "leftFringe", "LeftFringe", RES_TYPE_NUMBER); | 1177 | "leftFringe", "LeftFringe", RES_TYPE_NUMBER); |
| 1178 | x_default_parameter (f, parms, Qright_fringe, Qnil, | 1178 | gui_default_parameter (f, parms, Qright_fringe, Qnil, |
| 1179 | "rightFringe", "RightFringe", RES_TYPE_NUMBER); | 1179 | "rightFringe", "RightFringe", RES_TYPE_NUMBER); |
| 1180 | x_default_parameter (f, parms, Qno_special_glyphs, Qnil, | 1180 | gui_default_parameter (f, parms, Qno_special_glyphs, Qnil, |
| 1181 | NULL, NULL, RES_TYPE_BOOLEAN); | 1181 | NULL, NULL, RES_TYPE_BOOLEAN); |
| 1182 | 1182 | ||
| 1183 | #if 0 | 1183 | #if 0 |
| @@ -1189,7 +1189,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1189 | "ScrollBarBackground", false); | 1189 | "ScrollBarBackground", false); |
| 1190 | #endif | 1190 | #endif |
| 1191 | 1191 | ||
| 1192 | /* Init faces before x_default_parameter is called for the | 1192 | /* Init faces before gui_default_parameter is called for the |
| 1193 | scroll-bar-width parameter because otherwise we end up in | 1193 | scroll-bar-width parameter because otherwise we end up in |
| 1194 | init_iterator with a null face cache, which should not happen. */ | 1194 | init_iterator with a null face cache, which should not happen. */ |
| 1195 | init_frame_faces (f); | 1195 | init_frame_faces (f); |
| @@ -1206,10 +1206,10 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1206 | 1206 | ||
| 1207 | Also process `min-width' and `min-height' parameters right here | 1207 | Also process `min-width' and `min-height' parameters right here |
| 1208 | because `frame-windows-min-size' needs them. */ | 1208 | because `frame-windows-min-size' needs them. */ |
| 1209 | tem = x_get_arg (dpyinfo, parms, Qmin_width, NULL, NULL, RES_TYPE_NUMBER); | 1209 | tem = gui_display_get_arg (dpyinfo, parms, Qmin_width, NULL, NULL, RES_TYPE_NUMBER); |
| 1210 | if (NUMBERP (tem)) | 1210 | if (NUMBERP (tem)) |
| 1211 | store_frame_param (f, Qmin_width, tem); | 1211 | store_frame_param (f, Qmin_width, tem); |
| 1212 | tem = x_get_arg (dpyinfo, parms, Qmin_height, NULL, NULL, RES_TYPE_NUMBER); | 1212 | tem = gui_display_get_arg (dpyinfo, parms, Qmin_height, NULL, NULL, RES_TYPE_NUMBER); |
| 1213 | if (NUMBERP (tem)) | 1213 | if (NUMBERP (tem)) |
| 1214 | store_frame_param (f, Qmin_height, tem); | 1214 | store_frame_param (f, Qmin_height, tem); |
| 1215 | adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), | 1215 | adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), |
| @@ -1221,32 +1221,32 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1221 | here; they are processed specially at startup, and reflected in | 1221 | here; they are processed specially at startup, and reflected in |
| 1222 | the values of the mode variables. */ | 1222 | the values of the mode variables. */ |
| 1223 | 1223 | ||
| 1224 | x_default_parameter (f, parms, Qmenu_bar_lines, | 1224 | gui_default_parameter (f, parms, Qmenu_bar_lines, |
| 1225 | NILP (Vmenu_bar_mode) | 1225 | NILP (Vmenu_bar_mode) |
| 1226 | ? make_fixnum (0) : make_fixnum (1), | 1226 | ? make_fixnum (0) : make_fixnum (1), |
| 1227 | NULL, NULL, RES_TYPE_NUMBER); | 1227 | NULL, NULL, RES_TYPE_NUMBER); |
| 1228 | x_default_parameter (f, parms, Qtool_bar_lines, | 1228 | gui_default_parameter (f, parms, Qtool_bar_lines, |
| 1229 | NILP (Vtool_bar_mode) | 1229 | NILP (Vtool_bar_mode) |
| 1230 | ? make_fixnum (0) : make_fixnum (1), | 1230 | ? make_fixnum (0) : make_fixnum (1), |
| 1231 | NULL, NULL, RES_TYPE_NUMBER); | 1231 | NULL, NULL, RES_TYPE_NUMBER); |
| 1232 | 1232 | ||
| 1233 | x_default_parameter (f, parms, Qbuffer_predicate, Qnil, | 1233 | gui_default_parameter (f, parms, Qbuffer_predicate, Qnil, |
| 1234 | "bufferPredicate", "BufferPredicate", | 1234 | "bufferPredicate", "BufferPredicate", |
| 1235 | RES_TYPE_SYMBOL); | 1235 | RES_TYPE_SYMBOL); |
| 1236 | x_default_parameter (f, parms, Qtitle, Qnil, | 1236 | gui_default_parameter (f, parms, Qtitle, Qnil, |
| 1237 | "title", "Title", RES_TYPE_STRING); | 1237 | "title", "Title", RES_TYPE_STRING); |
| 1238 | x_default_parameter (f, parms, Qwait_for_wm, Qt, | 1238 | gui_default_parameter (f, parms, Qwait_for_wm, Qt, |
| 1239 | "waitForWM", "WaitForWM", RES_TYPE_BOOLEAN); | 1239 | "waitForWM", "WaitForWM", RES_TYPE_BOOLEAN); |
| 1240 | x_default_parameter (f, parms, Qtool_bar_position, | 1240 | gui_default_parameter (f, parms, Qtool_bar_position, |
| 1241 | FRAME_TOOL_BAR_POSITION (f), 0, 0, RES_TYPE_SYMBOL); | 1241 | FRAME_TOOL_BAR_POSITION (f), 0, 0, RES_TYPE_SYMBOL); |
| 1242 | x_default_parameter (f, parms, Qinhibit_double_buffering, Qnil, | 1242 | gui_default_parameter (f, parms, Qinhibit_double_buffering, Qnil, |
| 1243 | "inhibitDoubleBuffering", "InhibitDoubleBuffering", | 1243 | "inhibitDoubleBuffering", "InhibitDoubleBuffering", |
| 1244 | RES_TYPE_BOOLEAN); | 1244 | RES_TYPE_BOOLEAN); |
| 1245 | 1245 | ||
| 1246 | /* Compute the size of the X window. */ | 1246 | /* Compute the size of the X window. */ |
| 1247 | window_prompting = x_figure_window_size (f, parms, true, &x_width, &x_height); | 1247 | window_prompting = gui_figure_window_size (f, parms, true, &x_width, &x_height); |
| 1248 | 1248 | ||
| 1249 | tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); | 1249 | tem = gui_display_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); |
| 1250 | f->no_split = minibuffer_only || EQ (tem, Qt); | 1250 | f->no_split = minibuffer_only || EQ (tem, Qt); |
| 1251 | 1251 | ||
| 1252 | #if 0 | 1252 | #if 0 |
| @@ -1292,22 +1292,22 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1292 | 1292 | ||
| 1293 | /* We need to do this after creating the X window, so that the | 1293 | /* We need to do this after creating the X window, so that the |
| 1294 | icon-creation functions can say whose icon they're describing. */ | 1294 | icon-creation functions can say whose icon they're describing. */ |
| 1295 | x_default_parameter (f, parms, Qicon_type, Qt, | 1295 | gui_default_parameter (f, parms, Qicon_type, Qt, |
| 1296 | "bitmapIcon", "BitmapIcon", RES_TYPE_BOOLEAN); | 1296 | "bitmapIcon", "BitmapIcon", RES_TYPE_BOOLEAN); |
| 1297 | 1297 | ||
| 1298 | x_default_parameter (f, parms, Qauto_raise, Qnil, | 1298 | gui_default_parameter (f, parms, Qauto_raise, Qnil, |
| 1299 | "autoRaise", "AutoRaiseLower", RES_TYPE_BOOLEAN); | 1299 | "autoRaise", "AutoRaiseLower", RES_TYPE_BOOLEAN); |
| 1300 | x_default_parameter (f, parms, Qauto_lower, Qnil, | 1300 | gui_default_parameter (f, parms, Qauto_lower, Qnil, |
| 1301 | "autoLower", "AutoRaiseLower", RES_TYPE_BOOLEAN); | 1301 | "autoLower", "AutoRaiseLower", RES_TYPE_BOOLEAN); |
| 1302 | x_default_parameter (f, parms, Qcursor_type, Qbox, | 1302 | gui_default_parameter (f, parms, Qcursor_type, Qbox, |
| 1303 | "cursorType", "CursorType", RES_TYPE_SYMBOL); | 1303 | "cursorType", "CursorType", RES_TYPE_SYMBOL); |
| 1304 | x_default_parameter (f, parms, Qscroll_bar_width, Qnil, | 1304 | gui_default_parameter (f, parms, Qscroll_bar_width, Qnil, |
| 1305 | "scrollBarWidth", "ScrollBarWidth", | 1305 | "scrollBarWidth", "ScrollBarWidth", |
| 1306 | RES_TYPE_NUMBER); | 1306 | RES_TYPE_NUMBER); |
| 1307 | x_default_parameter (f, parms, Qscroll_bar_height, Qnil, | 1307 | gui_default_parameter (f, parms, Qscroll_bar_height, Qnil, |
| 1308 | "scrollBarHeight", "ScrollBarHeight", | 1308 | "scrollBarHeight", "ScrollBarHeight", |
| 1309 | RES_TYPE_NUMBER); | 1309 | RES_TYPE_NUMBER); |
| 1310 | x_default_parameter (f, parms, Qalpha, Qnil, | 1310 | gui_default_parameter (f, parms, Qalpha, Qnil, |
| 1311 | "alpha", "Alpha", RES_TYPE_NUMBER); | 1311 | "alpha", "Alpha", RES_TYPE_NUMBER); |
| 1312 | 1312 | ||
| 1313 | #if 0 | 1313 | #if 0 |
| @@ -1322,9 +1322,9 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1322 | } | 1322 | } |
| 1323 | #endif | 1323 | #endif |
| 1324 | 1324 | ||
| 1325 | x_default_parameter (f, parms, Qno_focus_on_map, Qnil, | 1325 | gui_default_parameter (f, parms, Qno_focus_on_map, Qnil, |
| 1326 | NULL, NULL, RES_TYPE_BOOLEAN); | 1326 | NULL, NULL, RES_TYPE_BOOLEAN); |
| 1327 | x_default_parameter (f, parms, Qno_accept_focus, Qnil, | 1327 | gui_default_parameter (f, parms, Qno_accept_focus, Qnil, |
| 1328 | NULL, NULL, RES_TYPE_BOOLEAN); | 1328 | NULL, NULL, RES_TYPE_BOOLEAN); |
| 1329 | 1329 | ||
| 1330 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 1330 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| @@ -1348,7 +1348,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1348 | #endif /* USE_X_TOOLKIT || USE_GTK */ | 1348 | #endif /* USE_X_TOOLKIT || USE_GTK */ |
| 1349 | 1349 | ||
| 1350 | /* Consider frame official, now. */ | 1350 | /* Consider frame official, now. */ |
| 1351 | f->can_x_set_window_size = true; | 1351 | f->can_set_window_size = true; |
| 1352 | 1352 | ||
| 1353 | if (x_width > 0) | 1353 | if (x_width > 0) |
| 1354 | SET_FRAME_WIDTH (f, x_width); | 1354 | SET_FRAME_WIDTH (f, x_width); |
| @@ -1368,7 +1368,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1368 | /* Process fullscreen parameter here in the hope that normalizing a | 1368 | /* Process fullscreen parameter here in the hope that normalizing a |
| 1369 | fullheight/fullwidth frame will produce the size set by the last | 1369 | fullheight/fullwidth frame will produce the size set by the last |
| 1370 | adjust_frame_size call. */ | 1370 | adjust_frame_size call. */ |
| 1371 | x_default_parameter (f, parms, Qfullscreen, Qnil, | 1371 | gui_default_parameter (f, parms, Qfullscreen, Qnil, |
| 1372 | "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); | 1372 | "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); |
| 1373 | 1373 | ||
| 1374 | /* Make the window appear on the frame and enable display, unless | 1374 | /* Make the window appear on the frame and enable display, unless |
| @@ -1377,27 +1377,27 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1377 | if (!FRAME_X_OUTPUT(f)->explicit_parent) | 1377 | if (!FRAME_X_OUTPUT(f)->explicit_parent) |
| 1378 | { | 1378 | { |
| 1379 | Lisp_Object visibility | 1379 | Lisp_Object visibility |
| 1380 | = x_get_arg (dpyinfo, parms, Qvisibility, 0, 0, RES_TYPE_SYMBOL); | 1380 | = gui_display_get_arg (dpyinfo, parms, Qvisibility, 0, 0, RES_TYPE_SYMBOL); |
| 1381 | 1381 | ||
| 1382 | if (EQ (visibility, Qicon)) | 1382 | if (EQ (visibility, Qicon)) |
| 1383 | x_iconify_frame (f); | 1383 | pgtk_iconify_frame (f); |
| 1384 | else | 1384 | else |
| 1385 | { | 1385 | { |
| 1386 | if (EQ (visibility, Qunbound)) | 1386 | if (EQ (visibility, Qunbound)) |
| 1387 | visibility = Qt; | 1387 | visibility = Qt; |
| 1388 | 1388 | ||
| 1389 | if (!NILP (visibility)) | 1389 | if (!NILP (visibility)) |
| 1390 | x_make_frame_visible (f); | 1390 | pgtk_make_frame_visible (f); |
| 1391 | } | 1391 | } |
| 1392 | 1392 | ||
| 1393 | store_frame_param (f, Qvisibility, visibility); | 1393 | store_frame_param (f, Qvisibility, visibility); |
| 1394 | } | 1394 | } |
| 1395 | 1395 | ||
| 1396 | /* Works iff frame has been already mapped. */ | 1396 | /* Works iff frame has been already mapped. */ |
| 1397 | x_default_parameter (f, parms, Qskip_taskbar, Qnil, | 1397 | gui_default_parameter (f, parms, Qskip_taskbar, Qnil, |
| 1398 | NULL, NULL, RES_TYPE_BOOLEAN); | 1398 | NULL, NULL, RES_TYPE_BOOLEAN); |
| 1399 | /* The `z-group' parameter works only for visible frames. */ | 1399 | /* The `z-group' parameter works only for visible frames. */ |
| 1400 | x_default_parameter (f, parms, Qz_group, Qnil, | 1400 | gui_default_parameter (f, parms, Qz_group, Qnil, |
| 1401 | NULL, NULL, RES_TYPE_SYMBOL); | 1401 | NULL, NULL, RES_TYPE_SYMBOL); |
| 1402 | 1402 | ||
| 1403 | /* Initialize `default-minibuffer-frame' in case this is the first | 1403 | /* Initialize `default-minibuffer-frame' in case this is the first |
| @@ -1408,7 +1408,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1408 | kset_default_minibuffer_frame (kb, frame); | 1408 | kset_default_minibuffer_frame (kb, frame); |
| 1409 | 1409 | ||
| 1410 | /* All remaining specified parameters, which have not been "used" | 1410 | /* All remaining specified parameters, which have not been "used" |
| 1411 | by x_get_arg and friends, now go in the misc. alist of the frame. */ | 1411 | by gui_display_get_arg and friends, now go in the misc. alist of the frame. */ |
| 1412 | for (tem = parms; CONSP (tem); tem = XCDR (tem)) | 1412 | for (tem = parms; CONSP (tem); tem = XCDR (tem)) |
| 1413 | if (CONSP (XCAR (tem)) && !NILP (XCAR (XCAR (tem)))) | 1413 | if (CONSP (XCAR (tem)) && !NILP (XCAR (XCAR (tem)))) |
| 1414 | fset_param_alist (f, Fcons (XCAR (tem), f->param_alist)); | 1414 | fset_param_alist (f, Fcons (XCAR (tem), f->param_alist)); |
| @@ -1809,7 +1809,7 @@ check_x_display_info (Lisp_Object frame) | |||
| 1809 | 1809 | ||
| 1810 | 1810 | ||
| 1811 | void | 1811 | void |
| 1812 | x_set_scroll_bar_default_width (struct frame *f) | 1812 | pgtk_set_scroll_bar_default_width (struct frame *f) |
| 1813 | { | 1813 | { |
| 1814 | int unit = FRAME_COLUMN_WIDTH (f); | 1814 | int unit = FRAME_COLUMN_WIDTH (f); |
| 1815 | int minw = xg_get_default_scrollbar_width (f); | 1815 | int minw = xg_get_default_scrollbar_width (f); |
| @@ -1819,7 +1819,7 @@ x_set_scroll_bar_default_width (struct frame *f) | |||
| 1819 | } | 1819 | } |
| 1820 | 1820 | ||
| 1821 | void | 1821 | void |
| 1822 | x_set_scroll_bar_default_height (struct frame *f) | 1822 | pgtk_set_scroll_bar_default_height (struct frame *f) |
| 1823 | { | 1823 | { |
| 1824 | int height = FRAME_LINE_HEIGHT (f); | 1824 | int height = FRAME_LINE_HEIGHT (f); |
| 1825 | int min_height = xg_get_default_scrollbar_height (f); | 1825 | int min_height = xg_get_default_scrollbar_height (f); |
| @@ -1829,8 +1829,8 @@ x_set_scroll_bar_default_height (struct frame *f) | |||
| 1829 | } | 1829 | } |
| 1830 | 1830 | ||
| 1831 | /* terms impl this instead of x-get-resource directly */ | 1831 | /* terms impl this instead of x-get-resource directly */ |
| 1832 | char * | 1832 | const char * |
| 1833 | x_get_string_resource (XrmDatabase rdb, const char *name, const char *class) | 1833 | pgtk_get_string_resource (XrmDatabase rdb, const char *name, const char *class) |
| 1834 | { | 1834 | { |
| 1835 | /* remove appname prefix; TODO: allow for !="Emacs" */ | 1835 | /* remove appname prefix; TODO: allow for !="Emacs" */ |
| 1836 | const char *res, *toCheck = class + (!strncmp (class, "Emacs.", 6) ? 6 : 0); | 1836 | const char *res, *toCheck = class + (!strncmp (class, "Emacs.", 6) ? 6 : 0); |
| @@ -2239,7 +2239,7 @@ x_hide_tip (bool delete) | |||
| 2239 | tip_frame = Qnil; | 2239 | tip_frame = Qnil; |
| 2240 | } | 2240 | } |
| 2241 | else | 2241 | else |
| 2242 | x_make_frame_invisible (XFRAME (tip_frame)); | 2242 | pgtk_make_frame_invisible (XFRAME (tip_frame)); |
| 2243 | 2243 | ||
| 2244 | was_open = Qt; | 2244 | was_open = Qt; |
| 2245 | } | 2245 | } |
diff --git a/src/pgtkgui.h b/src/pgtkgui.h index 78e1da77d8e..27e94b213d7 100644 --- a/src/pgtkgui.h +++ b/src/pgtkgui.h | |||
| @@ -69,7 +69,7 @@ typedef int Window; | |||
| 69 | typedef struct _GdkDisplay Display; | 69 | typedef struct _GdkDisplay Display; |
| 70 | 70 | ||
| 71 | /* Xism */ | 71 | /* Xism */ |
| 72 | typedef Lisp_Object XrmDatabase; | 72 | typedef void *XrmDatabase; |
| 73 | 73 | ||
| 74 | 74 | ||
| 75 | /* some sort of attempt to normalize rectangle handling.. seems a bit much | 75 | /* some sort of attempt to normalize rectangle handling.. seems a bit much |
diff --git a/src/pgtkterm.c b/src/pgtkterm.c index d84e3b1ae54..a380c11eb15 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c | |||
| @@ -134,12 +134,12 @@ mark_pgtkterm(void) | |||
| 134 | #if false /* marked in alloc.c:compact_font_caches() */ | 134 | #if false /* marked in alloc.c:compact_font_caches() */ |
| 135 | mark_object (dpyinfo->name_list_element); | 135 | mark_object (dpyinfo->name_list_element); |
| 136 | #endif | 136 | #endif |
| 137 | mark_object (dpyinfo->xrdb); | 137 | mark_object (dpyinfo->rdb); |
| 138 | } | 138 | } |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | char * | 141 | char * |
| 142 | x_get_keysym_name (int keysym) | 142 | get_keysym_name (int keysym) |
| 143 | /* -------------------------------------------------------------------------- | 143 | /* -------------------------------------------------------------------------- |
| 144 | Called by keyboard.c. Not sure if the return val is important, except | 144 | Called by keyboard.c. Not sure if the return val is important, except |
| 145 | that it be unique. | 145 | that it be unique. |
| @@ -181,7 +181,7 @@ x_free_frame_resources (struct frame *f) | |||
| 181 | do { if (f == dpyinfo->FIELD) dpyinfo->FIELD = 0; } while (false) | 181 | do { if (f == dpyinfo->FIELD) dpyinfo->FIELD = 0; } while (false) |
| 182 | 182 | ||
| 183 | CLEAR_IF_EQ(x_focus_frame); | 183 | CLEAR_IF_EQ(x_focus_frame); |
| 184 | CLEAR_IF_EQ(x_highlight_frame); | 184 | CLEAR_IF_EQ(highlight_frame); |
| 185 | CLEAR_IF_EQ(x_focus_event_frame); | 185 | CLEAR_IF_EQ(x_focus_event_frame); |
| 186 | CLEAR_IF_EQ(last_mouse_frame); | 186 | CLEAR_IF_EQ(last_mouse_frame); |
| 187 | CLEAR_IF_EQ(last_mouse_motion_frame); | 187 | CLEAR_IF_EQ(last_mouse_motion_frame); |
| @@ -407,16 +407,16 @@ pgtk_set_window_size (struct frame *f, | |||
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | void | 409 | void |
| 410 | x_iconify_frame (struct frame *f) | 410 | pgtk_iconify_frame (struct frame *f) |
| 411 | /* -------------------------------------------------------------------------- | 411 | /* -------------------------------------------------------------------------- |
| 412 | External: Iconify window | 412 | External: Iconify window |
| 413 | -------------------------------------------------------------------------- */ | 413 | -------------------------------------------------------------------------- */ |
| 414 | { | 414 | { |
| 415 | PGTK_TRACE("x_iconify_frame"); | 415 | PGTK_TRACE("pgtk_iconify_frame"); |
| 416 | 416 | ||
| 417 | /* Don't keep the highlight on an invisible frame. */ | 417 | /* Don't keep the highlight on an invisible frame. */ |
| 418 | if (FRAME_DISPLAY_INFO (f)->x_highlight_frame == f) | 418 | if (FRAME_DISPLAY_INFO (f)->highlight_frame == f) |
| 419 | FRAME_DISPLAY_INFO (f)->x_highlight_frame = 0; | 419 | FRAME_DISPLAY_INFO (f)->highlight_frame = 0; |
| 420 | 420 | ||
| 421 | if (FRAME_ICONIFIED_P (f)) | 421 | if (FRAME_ICONIFIED_P (f)) |
| 422 | return; | 422 | return; |
| @@ -469,12 +469,12 @@ x_iconify_frame (struct frame *f) | |||
| 469 | } | 469 | } |
| 470 | 470 | ||
| 471 | void | 471 | void |
| 472 | x_make_frame_visible (struct frame *f) | 472 | pgtk_make_frame_visible (struct frame *f) |
| 473 | /* -------------------------------------------------------------------------- | 473 | /* -------------------------------------------------------------------------- |
| 474 | External: Show the window (X11 semantics) | 474 | External: Show the window (X11 semantics) |
| 475 | -------------------------------------------------------------------------- */ | 475 | -------------------------------------------------------------------------- */ |
| 476 | { | 476 | { |
| 477 | PGTK_TRACE("x_make_frame_visible"); | 477 | PGTK_TRACE("pgtk_make_frame_visible"); |
| 478 | #if 0 | 478 | #if 0 |
| 479 | NSTRACE ("x_make_frame_visible"); | 479 | NSTRACE ("x_make_frame_visible"); |
| 480 | /* XXX: at some points in past this was not needed, as the only place that | 480 | /* XXX: at some points in past this was not needed, as the only place that |
| @@ -523,12 +523,12 @@ x_make_frame_visible (struct frame *f) | |||
| 523 | 523 | ||
| 524 | 524 | ||
| 525 | void | 525 | void |
| 526 | x_make_frame_invisible (struct frame *f) | 526 | pgtk_make_frame_invisible (struct frame *f) |
| 527 | /* -------------------------------------------------------------------------- | 527 | /* -------------------------------------------------------------------------- |
| 528 | External: Hide the window (X11 semantics) | 528 | External: Hide the window (X11 semantics) |
| 529 | -------------------------------------------------------------------------- */ | 529 | -------------------------------------------------------------------------- */ |
| 530 | { | 530 | { |
| 531 | PGTK_TRACE("x_make_frame_invisible"); | 531 | PGTK_TRACE("pgtk_make_frame_invisible"); |
| 532 | #if 0 | 532 | #if 0 |
| 533 | NSView *view; | 533 | NSView *view; |
| 534 | NSTRACE ("x_make_frame_invisible"); | 534 | NSTRACE ("x_make_frame_invisible"); |
| @@ -541,9 +541,9 @@ x_make_frame_invisible (struct frame *f) | |||
| 541 | } | 541 | } |
| 542 | 542 | ||
| 543 | static Lisp_Object | 543 | static Lisp_Object |
| 544 | x_new_font (struct frame *f, Lisp_Object font_object, int fontset) | 544 | pgtk_new_font (struct frame *f, Lisp_Object font_object, int fontset) |
| 545 | { | 545 | { |
| 546 | PGTK_TRACE("x_new_font"); | 546 | PGTK_TRACE("pgtk_new_font"); |
| 547 | struct font *font = XFONT_OBJECT (font_object); | 547 | struct font *font = XFONT_OBJECT (font_object); |
| 548 | int font_ascent, font_descent; | 548 | int font_ascent, font_descent; |
| 549 | 549 | ||
| @@ -730,7 +730,7 @@ pgtk_initialize_display_info (struct pgtk_display_info *dpyinfo) | |||
| 730 | dpyinfo->color_p = 1; | 730 | dpyinfo->color_p = 1; |
| 731 | dpyinfo->n_planes = 32; | 731 | dpyinfo->n_planes = 32; |
| 732 | dpyinfo->root_window = 42; /* a placeholder.. */ | 732 | dpyinfo->root_window = 42; /* a placeholder.. */ |
| 733 | dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame = NULL; | 733 | dpyinfo->highlight_frame = dpyinfo->x_focus_frame = NULL; |
| 734 | dpyinfo->n_fonts = 0; | 734 | dpyinfo->n_fonts = 0; |
| 735 | dpyinfo->smallest_font_height = 1; | 735 | dpyinfo->smallest_font_height = 1; |
| 736 | dpyinfo->smallest_char_width = 1; | 736 | dpyinfo->smallest_char_width = 1; |
| @@ -2606,6 +2606,7 @@ pgtk_draw_window_cursor (struct window *w, struct glyph_row *glyph_row, int x, | |||
| 2606 | PGTK_TRACE("draw_window_cursor: %d, %d, %d, %d, %d, %d.", | 2606 | PGTK_TRACE("draw_window_cursor: %d, %d, %d, %d, %d, %d.", |
| 2607 | x, y, cursor_type, cursor_width, on_p, active_p); | 2607 | x, y, cursor_type, cursor_width, on_p, active_p); |
| 2608 | struct frame *f = XFRAME (WINDOW_FRAME (w)); | 2608 | struct frame *f = XFRAME (WINDOW_FRAME (w)); |
| 2609 | PGTK_TRACE("%p\n", f->output_data.pgtk); | ||
| 2609 | 2610 | ||
| 2610 | if (on_p) | 2611 | if (on_p) |
| 2611 | { | 2612 | { |
| @@ -2735,7 +2736,7 @@ pgtk_scroll_run (struct window *w, struct run *run) | |||
| 2735 | block_input (); | 2736 | block_input (); |
| 2736 | 2737 | ||
| 2737 | /* Cursor off. Will be switched on again in x_update_window_end. */ | 2738 | /* Cursor off. Will be switched on again in x_update_window_end. */ |
| 2738 | x_clear_cursor (w); | 2739 | gui_clear_cursor (w); |
| 2739 | 2740 | ||
| 2740 | { | 2741 | { |
| 2741 | cairo_rectangle_t src_rect = { x, from_y, width, height }; | 2742 | cairo_rectangle_t src_rect = { x, from_y, width, height }; |
| @@ -2913,9 +2914,9 @@ pgtk_update_window_end (struct window *w, bool cursor_on_p, | |||
| 2913 | if (draw_window_fringes (w, true)) | 2914 | if (draw_window_fringes (w, true)) |
| 2914 | { | 2915 | { |
| 2915 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) | 2916 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) |
| 2916 | x_draw_right_divider (w); | 2917 | gui_draw_right_divider (w); |
| 2917 | else | 2918 | else |
| 2918 | x_draw_vertical_border (w); | 2919 | gui_draw_vertical_border (w); |
| 2919 | } | 2920 | } |
| 2920 | 2921 | ||
| 2921 | unblock_input (); | 2922 | unblock_input (); |
| @@ -2989,7 +2990,7 @@ pgtk_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, | |||
| 2989 | seat = gdk_display_get_default_seat(dpyinfo->gdpy); | 2990 | seat = gdk_display_get_default_seat(dpyinfo->gdpy); |
| 2990 | device = gdk_seat_get_pointer(seat); | 2991 | device = gdk_seat_get_pointer(seat); |
| 2991 | 2992 | ||
| 2992 | if (x_mouse_grabbed (dpyinfo)) { | 2993 | if (gui_mouse_grabbed (dpyinfo)) { |
| 2993 | GdkWindow *win; | 2994 | GdkWindow *win; |
| 2994 | GdkModifierType mask; | 2995 | GdkModifierType mask; |
| 2995 | /* get x, y relative to edit window of f1. */ | 2996 | /* get x, y relative to edit window of f1. */ |
| @@ -3279,18 +3280,18 @@ extern frame_parm_handler pgtk_frame_parm_handlers[]; | |||
| 3279 | static struct redisplay_interface pgtk_redisplay_interface = | 3280 | static struct redisplay_interface pgtk_redisplay_interface = |
| 3280 | { | 3281 | { |
| 3281 | pgtk_frame_parm_handlers, | 3282 | pgtk_frame_parm_handlers, |
| 3282 | x_produce_glyphs, | 3283 | gui_produce_glyphs, |
| 3283 | x_write_glyphs, | 3284 | gui_write_glyphs, |
| 3284 | x_insert_glyphs, | 3285 | gui_insert_glyphs, |
| 3285 | x_clear_end_of_line, | 3286 | gui_clear_end_of_line, |
| 3286 | pgtk_scroll_run, | 3287 | pgtk_scroll_run, |
| 3287 | pgtk_after_update_window_line, | 3288 | pgtk_after_update_window_line, |
| 3288 | pgtk_update_window_begin, | 3289 | pgtk_update_window_begin, |
| 3289 | pgtk_update_window_end, | 3290 | pgtk_update_window_end, |
| 3290 | pgtk_flush_display, | 3291 | pgtk_flush_display, |
| 3291 | x_clear_window_mouse_face, | 3292 | gui_clear_window_mouse_face, |
| 3292 | x_get_glyph_overhangs, | 3293 | gui_get_glyph_overhangs, |
| 3293 | x_fix_overlapping_area, | 3294 | gui_fix_overlapping_area, |
| 3294 | pgtk_draw_fringe_bitmap, | 3295 | pgtk_draw_fringe_bitmap, |
| 3295 | pgtk_define_fringe_bitmap, | 3296 | pgtk_define_fringe_bitmap, |
| 3296 | pgtk_destroy_fringe_bitmap, | 3297 | pgtk_destroy_fringe_bitmap, |
| @@ -3298,6 +3299,7 @@ static struct redisplay_interface pgtk_redisplay_interface = | |||
| 3298 | pgtk_draw_glyph_string, | 3299 | pgtk_draw_glyph_string, |
| 3299 | pgtk_define_frame_cursor, | 3300 | pgtk_define_frame_cursor, |
| 3300 | pgtk_clear_frame_area, | 3301 | pgtk_clear_frame_area, |
| 3302 | pgtk_clear_under_internal_border, | ||
| 3301 | pgtk_draw_window_cursor, | 3303 | pgtk_draw_window_cursor, |
| 3302 | pgtk_draw_vertical_window_border, | 3304 | pgtk_draw_vertical_window_border, |
| 3303 | pgtk_draw_window_divider, | 3305 | pgtk_draw_window_divider, |
| @@ -4275,7 +4277,7 @@ pgtk_delete_terminal (struct terminal *terminal) | |||
| 4275 | /* Normally, the display is available... */ | 4277 | /* Normally, the display is available... */ |
| 4276 | if (dpyinfo->gdpy) | 4278 | if (dpyinfo->gdpy) |
| 4277 | { | 4279 | { |
| 4278 | x_destroy_all_bitmaps (dpyinfo); | 4280 | image_destroy_all_bitmaps (dpyinfo); |
| 4279 | 4281 | ||
| 4280 | xg_display_close (dpyinfo->gdpy); | 4282 | xg_display_close (dpyinfo->gdpy); |
| 4281 | 4283 | ||
| @@ -4336,8 +4338,16 @@ pgtk_create_terminal (struct pgtk_display_info *dpyinfo) | |||
| 4336 | terminal->condemn_scroll_bars_hook = pgtk_condemn_scroll_bars; | 4338 | terminal->condemn_scroll_bars_hook = pgtk_condemn_scroll_bars; |
| 4337 | terminal->redeem_scroll_bar_hook = pgtk_redeem_scroll_bar; | 4339 | terminal->redeem_scroll_bar_hook = pgtk_redeem_scroll_bar; |
| 4338 | terminal->judge_scroll_bars_hook = pgtk_judge_scroll_bars; | 4340 | terminal->judge_scroll_bars_hook = pgtk_judge_scroll_bars; |
| 4341 | terminal->get_string_resource_hook = pgtk_get_string_resource; | ||
| 4339 | terminal->delete_frame_hook = x_destroy_window; | 4342 | terminal->delete_frame_hook = x_destroy_window; |
| 4340 | terminal->delete_terminal_hook = pgtk_delete_terminal; | 4343 | terminal->delete_terminal_hook = pgtk_delete_terminal; |
| 4344 | terminal->query_frame_background_color = pgtk_query_frame_background_color; | ||
| 4345 | terminal->defined_color_hook = pgtk_defined_color; | ||
| 4346 | terminal->set_new_font_hook = pgtk_new_font; | ||
| 4347 | terminal->implicit_set_name_hook = pgtk_implicitly_set_name; | ||
| 4348 | terminal->iconify_frame_hook = pgtk_iconify_frame; | ||
| 4349 | terminal->set_scroll_bar_default_width_hook = pgtk_set_scroll_bar_default_width; | ||
| 4350 | terminal->set_scroll_bar_default_height_hook = pgtk_set_scroll_bar_default_height; | ||
| 4341 | terminal->set_window_size_hook = pgtk_set_window_size; | 4351 | terminal->set_window_size_hook = pgtk_set_window_size; |
| 4342 | terminal->query_colors = pgtk_query_colors; | 4352 | terminal->query_colors = pgtk_query_colors; |
| 4343 | terminal->get_focus_frame = x_get_focus_frame; | 4353 | terminal->get_focus_frame = x_get_focus_frame; |
| @@ -5075,7 +5085,7 @@ frame_highlight (struct frame *f) | |||
| 5075 | x_uncatch_errors (); | 5085 | x_uncatch_errors (); |
| 5076 | #endif | 5086 | #endif |
| 5077 | unblock_input (); | 5087 | unblock_input (); |
| 5078 | x_update_cursor (f, true); | 5088 | gui_update_cursor (f, true); |
| 5079 | #if 0 | 5089 | #if 0 |
| 5080 | x_set_frame_alpha (f); | 5090 | x_set_frame_alpha (f); |
| 5081 | #endif | 5091 | #endif |
| @@ -5097,7 +5107,7 @@ frame_unhighlight (struct frame *f) | |||
| 5097 | x_uncatch_errors (); | 5107 | x_uncatch_errors (); |
| 5098 | #endif | 5108 | #endif |
| 5099 | unblock_input (); | 5109 | unblock_input (); |
| 5100 | x_update_cursor (f, true); | 5110 | gui_update_cursor (f, true); |
| 5101 | #if 0 | 5111 | #if 0 |
| 5102 | x_set_frame_alpha (f); | 5112 | x_set_frame_alpha (f); |
| 5103 | #endif | 5113 | #endif |
| @@ -5107,29 +5117,29 @@ frame_unhighlight (struct frame *f) | |||
| 5107 | static void | 5117 | static void |
| 5108 | x_frame_rehighlight (struct pgtk_display_info *dpyinfo) | 5118 | x_frame_rehighlight (struct pgtk_display_info *dpyinfo) |
| 5109 | { | 5119 | { |
| 5110 | struct frame *old_highlight = dpyinfo->x_highlight_frame; | 5120 | struct frame *old_highlight = dpyinfo->highlight_frame; |
| 5111 | 5121 | ||
| 5112 | if (dpyinfo->x_focus_frame) | 5122 | if (dpyinfo->x_focus_frame) |
| 5113 | { | 5123 | { |
| 5114 | dpyinfo->x_highlight_frame | 5124 | dpyinfo->highlight_frame |
| 5115 | = ((FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame))) | 5125 | = ((FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame))) |
| 5116 | ? XFRAME (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame)) | 5126 | ? XFRAME (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame)) |
| 5117 | : dpyinfo->x_focus_frame); | 5127 | : dpyinfo->x_focus_frame); |
| 5118 | if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) | 5128 | if (! FRAME_LIVE_P (dpyinfo->highlight_frame)) |
| 5119 | { | 5129 | { |
| 5120 | fset_focus_frame (dpyinfo->x_focus_frame, Qnil); | 5130 | fset_focus_frame (dpyinfo->x_focus_frame, Qnil); |
| 5121 | dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame; | 5131 | dpyinfo->highlight_frame = dpyinfo->x_focus_frame; |
| 5122 | } | 5132 | } |
| 5123 | } | 5133 | } |
| 5124 | else | 5134 | else |
| 5125 | dpyinfo->x_highlight_frame = 0; | 5135 | dpyinfo->highlight_frame = 0; |
| 5126 | 5136 | ||
| 5127 | if (dpyinfo->x_highlight_frame != old_highlight) | 5137 | if (dpyinfo->highlight_frame != old_highlight) |
| 5128 | { | 5138 | { |
| 5129 | if (old_highlight) | 5139 | if (old_highlight) |
| 5130 | frame_unhighlight (old_highlight); | 5140 | frame_unhighlight (old_highlight); |
| 5131 | if (dpyinfo->x_highlight_frame) | 5141 | if (dpyinfo->highlight_frame) |
| 5132 | frame_highlight (dpyinfo->x_highlight_frame); | 5142 | frame_highlight (dpyinfo->highlight_frame); |
| 5133 | } | 5143 | } |
| 5134 | } | 5144 | } |
| 5135 | 5145 | ||
| @@ -5376,7 +5386,7 @@ motion_notify_event(GtkWidget *widget, GdkEvent *event, gpointer *user_data) | |||
| 5376 | 5386 | ||
| 5377 | frame = pgtk_any_window_to_frame(gtk_widget_get_window(widget)); | 5387 | frame = pgtk_any_window_to_frame(gtk_widget_get_window(widget)); |
| 5378 | dpyinfo = FRAME_DISPLAY_INFO (frame); | 5388 | dpyinfo = FRAME_DISPLAY_INFO (frame); |
| 5379 | f = (x_mouse_grabbed (dpyinfo) ? dpyinfo->last_mouse_frame | 5389 | f = (gui_mouse_grabbed (dpyinfo) ? dpyinfo->last_mouse_frame |
| 5380 | : pgtk_any_window_to_frame(gtk_widget_get_window(widget))); | 5390 | : pgtk_any_window_to_frame(gtk_widget_get_window(widget))); |
| 5381 | hlinfo = MOUSE_HL_INFO (f); | 5391 | hlinfo = MOUSE_HL_INFO (f); |
| 5382 | 5392 | ||
| @@ -5545,7 +5555,7 @@ button_event(GtkWidget *widget, GdkEvent *event, gpointer *user_data) | |||
| 5545 | x_display_set_last_user_time (dpyinfo, event->button.time); | 5555 | x_display_set_last_user_time (dpyinfo, event->button.time); |
| 5546 | #endif | 5556 | #endif |
| 5547 | 5557 | ||
| 5548 | if (x_mouse_grabbed (dpyinfo)) | 5558 | if (gui_mouse_grabbed (dpyinfo)) |
| 5549 | f = dpyinfo->last_mouse_frame; | 5559 | f = dpyinfo->last_mouse_frame; |
| 5550 | else | 5560 | else |
| 5551 | { | 5561 | { |
| @@ -5558,7 +5568,7 @@ button_event(GtkWidget *widget, GdkEvent *event, gpointer *user_data) | |||
| 5558 | into a parent frame with the child frame selected and | 5568 | into a parent frame with the child frame selected and |
| 5559 | `no-accept-focus' is not set, select the clicked | 5569 | `no-accept-focus' is not set, select the clicked |
| 5560 | frame. */ | 5570 | frame. */ |
| 5561 | struct frame *hf = dpyinfo->x_highlight_frame; | 5571 | struct frame *hf = dpyinfo->highlight_frame; |
| 5562 | 5572 | ||
| 5563 | if (FRAME_PARENT_FRAME (f) || (hf && frame_ancestor_p (f, hf))) | 5573 | if (FRAME_PARENT_FRAME (f) || (hf && frame_ancestor_p (f, hf))) |
| 5564 | { | 5574 | { |
| @@ -5635,7 +5645,7 @@ scroll_event(GtkWidget *widget, GdkEvent *event, gpointer *user_data) | |||
| 5635 | frame = pgtk_any_window_to_frame(gtk_widget_get_window(widget)); | 5645 | frame = pgtk_any_window_to_frame(gtk_widget_get_window(widget)); |
| 5636 | dpyinfo = FRAME_DISPLAY_INFO (frame); | 5646 | dpyinfo = FRAME_DISPLAY_INFO (frame); |
| 5637 | 5647 | ||
| 5638 | if (x_mouse_grabbed (dpyinfo)) | 5648 | if (gui_mouse_grabbed (dpyinfo)) |
| 5639 | f = dpyinfo->last_mouse_frame; | 5649 | f = dpyinfo->last_mouse_frame; |
| 5640 | else | 5650 | else |
| 5641 | f = pgtk_any_window_to_frame(gtk_widget_get_window(widget)); | 5651 | f = pgtk_any_window_to_frame(gtk_widget_get_window(widget)); |
diff --git a/src/pgtkterm.h b/src/pgtkterm.h index 6cd6da4ccb3..d14525e740c 100644 --- a/src/pgtkterm.h +++ b/src/pgtkterm.h | |||
| @@ -168,7 +168,7 @@ struct pgtk_display_info | |||
| 168 | Window root_window; | 168 | Window root_window; |
| 169 | 169 | ||
| 170 | /* Xism */ | 170 | /* Xism */ |
| 171 | XrmDatabase xrdb; | 171 | XrmDatabase rdb; |
| 172 | 172 | ||
| 173 | /* The cursor to use for vertical scroll bars. */ | 173 | /* The cursor to use for vertical scroll bars. */ |
| 174 | Emacs_Cursor vertical_scroll_bar_cursor; | 174 | Emacs_Cursor vertical_scroll_bar_cursor; |
| @@ -180,7 +180,7 @@ struct pgtk_display_info | |||
| 180 | mouse-face. */ | 180 | mouse-face. */ |
| 181 | Mouse_HLInfo mouse_highlight; | 181 | Mouse_HLInfo mouse_highlight; |
| 182 | 182 | ||
| 183 | struct frame *x_highlight_frame; | 183 | struct frame *highlight_frame; |
| 184 | struct frame *x_focus_frame; | 184 | struct frame *x_focus_frame; |
| 185 | 185 | ||
| 186 | /* The last frame mentioned in a FocusIn or FocusOut event. This is | 186 | /* The last frame mentioned in a FocusIn or FocusOut event. This is |
| @@ -384,6 +384,7 @@ enum | |||
| 384 | 384 | ||
| 385 | /* This gives the pgtk_display_info structure for the display F is on. */ | 385 | /* This gives the pgtk_display_info structure for the display F is on. */ |
| 386 | #define FRAME_X_OUTPUT(f) ((f)->output_data.pgtk) | 386 | #define FRAME_X_OUTPUT(f) ((f)->output_data.pgtk) |
| 387 | #define FRAME_OUTPUT_DATA(f) FRAME_X_OUTPUT (f) | ||
| 387 | 388 | ||
| 388 | #define FRAME_DISPLAY_INFO(f) (FRAME_X_OUTPUT(f)->display_info) | 389 | #define FRAME_DISPLAY_INFO(f) (FRAME_X_OUTPUT(f)->display_info) |
| 389 | #define FRAME_FOREGROUND_COLOR(f) (FRAME_X_OUTPUT(f)->foreground_color) | 390 | #define FRAME_FOREGROUND_COLOR(f) (FRAME_X_OUTPUT(f)->foreground_color) |
| @@ -397,6 +398,7 @@ enum | |||
| 397 | /* aliases */ | 398 | /* aliases */ |
| 398 | #define FRAME_PGTK_VIEW(f) FRAME_GTK_WIDGET(f) | 399 | #define FRAME_PGTK_VIEW(f) FRAME_GTK_WIDGET(f) |
| 399 | #define FRAME_X_WINDOW(f) FRAME_GTK_WIDGET(f) | 400 | #define FRAME_X_WINDOW(f) FRAME_GTK_WIDGET(f) |
| 401 | #define FRAME_NATIVE_WINDOW(f) FRAME_GTK_WIDGET(f) | ||
| 400 | 402 | ||
| 401 | #define FRAME_X_DISPLAY(f) (FRAME_DISPLAY_INFO(f)->gdpy) | 403 | #define FRAME_X_DISPLAY(f) (FRAME_DISPLAY_INFO(f)->gdpy) |
| 402 | 404 | ||
| @@ -500,6 +502,8 @@ extern char *pgtk_xlfd_to_fontname (const char *xlfd); | |||
| 500 | /* Implemented in pgtkfns. */ | 502 | /* Implemented in pgtkfns. */ |
| 501 | extern void pgtk_set_doc_edited (void); | 503 | extern void pgtk_set_doc_edited (void); |
| 502 | extern const char *pgtk_get_defaults_value (const char *key); | 504 | extern const char *pgtk_get_defaults_value (const char *key); |
| 505 | extern const char *pgtk_get_string_resource (XrmDatabase rdb, const char *name, const char *class); | ||
| 506 | extern void pgtk_implicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval); | ||
| 503 | 507 | ||
| 504 | /* Color management implemented in pgtkterm. */ | 508 | /* Color management implemented in pgtkterm. */ |
| 505 | extern bool pgtk_defined_color (struct frame *f, | 509 | extern bool pgtk_defined_color (struct frame *f, |