diff options
| author | Paul Eggert | 2015-01-25 12:32:49 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-01-25 12:34:02 -0800 |
| commit | 11a9f3779ca7ec0c7559a5a3abf732d068684b84 (patch) | |
| tree | 9bc56f5f83c70e8d42ee22d0f8490286d8091472 /src | |
| parent | a3689d3c661fe36df971c875760f8d500b5ae994 (diff) | |
| download | emacs-11a9f3779ca7ec0c7559a5a3abf732d068684b84.tar.gz emacs-11a9f3779ca7ec0c7559a5a3abf732d068684b84.zip | |
Use bool for boolean in xfns.c
* xfaces.c (x_update_menu_appearance):
* xfns.c (x_real_positions, x_defined_color, x_decode_color)
(xg_set_icon, xg_set_icon_from_xpm_data, x_set_cursor_color)
(x_set_icon_type, x_set_icon_name, x_set_menu_bar_lines)
(x_change_tool_bar_height, x_set_internal_border_width)
(x_encode_text, x_set_name_internal, x_explicitly_set_name)
(x_implicitly_set_name, x_default_scroll_bar_color_parameter)
(hack_wm_protocols, xic_create_fontsetname, xic_free_xfontset)
(x_window, x_icon, Fx_wm_set_size_hint, Fx_create_frame)
(Fxw_color_defined_p, Fxw_color_values, x_create_tip_frame)
(Fx_show_tip, clean_up_file_dialog, Fx_file_dialog)
(clean_up_dialog, syms_of_xfns):
* xterm.h (xg_set_icon, xg_set_icon_from_xpm_data)
(xic_create_fontsetname):
Use bool for boolean.
* xfns.c: Include bitmaps/gray.xbm unconditionally.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 18 | ||||
| -rw-r--r-- | src/xfaces.c | 4 | ||||
| -rw-r--r-- | src/xfns.c | 219 | ||||
| -rw-r--r-- | src/xterm.h | 6 |
4 files changed, 130 insertions, 117 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b137045f216..eeea0d8bb22 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,23 @@ | |||
| 1 | 2015-01-25 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2015-01-25 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Use bool for boolean in xfns.c | ||
| 4 | * xfaces.c (x_update_menu_appearance): | ||
| 5 | * xfns.c (x_real_positions, x_defined_color, x_decode_color) | ||
| 6 | (xg_set_icon, xg_set_icon_from_xpm_data, x_set_cursor_color) | ||
| 7 | (x_set_icon_type, x_set_icon_name, x_set_menu_bar_lines) | ||
| 8 | (x_change_tool_bar_height, x_set_internal_border_width) | ||
| 9 | (x_encode_text, x_set_name_internal, x_explicitly_set_name) | ||
| 10 | (x_implicitly_set_name, x_default_scroll_bar_color_parameter) | ||
| 11 | (hack_wm_protocols, xic_create_fontsetname, xic_free_xfontset) | ||
| 12 | (x_window, x_icon, Fx_wm_set_size_hint, Fx_create_frame) | ||
| 13 | (Fxw_color_defined_p, Fxw_color_values, x_create_tip_frame) | ||
| 14 | (Fx_show_tip, clean_up_file_dialog, Fx_file_dialog) | ||
| 15 | (clean_up_dialog, syms_of_xfns): | ||
| 16 | * xterm.h (xg_set_icon, xg_set_icon_from_xpm_data) | ||
| 17 | (xic_create_fontsetname): | ||
| 18 | Use bool for boolean. | ||
| 19 | * xfns.c: Include bitmaps/gray.xbm unconditionally. | ||
| 20 | |||
| 3 | Count MANY function args more reliably | 21 | Count MANY function args more reliably |
| 4 | * alloc.c (Fgc_status, purecopy, unbind_to, garbage_collect_1): | 22 | * alloc.c (Fgc_status, purecopy, unbind_to, garbage_collect_1): |
| 5 | * buffer.c (Fbuffer_list, Fkill_buffer): | 23 | * buffer.c (Fbuffer_list, Fkill_buffer): |
diff --git a/src/xfaces.c b/src/xfaces.c index 1ba6b51a5fb..31048aece5d 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -3489,7 +3489,7 @@ x_update_menu_appearance (struct frame *f) | |||
| 3489 | Lisp_Object xlfd = Ffont_xlfd_name (LFACE_FONT (lface), Qnil); | 3489 | Lisp_Object xlfd = Ffont_xlfd_name (LFACE_FONT (lface), Qnil); |
| 3490 | #ifdef USE_MOTIF | 3490 | #ifdef USE_MOTIF |
| 3491 | const char *suffix = "List"; | 3491 | const char *suffix = "List"; |
| 3492 | Bool motif = True; | 3492 | bool motif = true; |
| 3493 | #else | 3493 | #else |
| 3494 | #if defined HAVE_X_I18N | 3494 | #if defined HAVE_X_I18N |
| 3495 | 3495 | ||
| @@ -3497,7 +3497,7 @@ x_update_menu_appearance (struct frame *f) | |||
| 3497 | #else | 3497 | #else |
| 3498 | const char *suffix = ""; | 3498 | const char *suffix = ""; |
| 3499 | #endif | 3499 | #endif |
| 3500 | Bool motif = False; | 3500 | bool motif = false; |
| 3501 | #endif | 3501 | #endif |
| 3502 | 3502 | ||
| 3503 | if (! NILP (xlfd)) | 3503 | if (! NILP (xlfd)) |
diff --git a/src/xfns.c b/src/xfns.c index a09e4a6df63..9dd00868d7b 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -46,12 +46,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 46 | #include <sys/types.h> | 46 | #include <sys/types.h> |
| 47 | #include <sys/stat.h> | 47 | #include <sys/stat.h> |
| 48 | 48 | ||
| 49 | #if 1 /* Used to be #ifdef EMACS_BITMAP_FILES, but this should always work. */ | ||
| 50 | #include "bitmaps/gray.xbm" | 49 | #include "bitmaps/gray.xbm" |
| 51 | #else | ||
| 52 | #include <X11/bitmaps/gray> | ||
| 53 | #endif | ||
| 54 | |||
| 55 | #include "xsettings.h" | 50 | #include "xsettings.h" |
| 56 | 51 | ||
| 57 | #ifdef HAVE_XRANDR | 52 | #ifdef HAVE_XRANDR |
| @@ -182,7 +177,7 @@ x_real_positions (struct frame *f, int *xptr, int *yptr) | |||
| 182 | { | 177 | { |
| 183 | int win_x, win_y, outer_x IF_LINT (= 0), outer_y IF_LINT (= 0); | 178 | int win_x, win_y, outer_x IF_LINT (= 0), outer_y IF_LINT (= 0); |
| 184 | int real_x = 0, real_y = 0; | 179 | int real_x = 0, real_y = 0; |
| 185 | int had_errors = 0; | 180 | bool had_errors = false; |
| 186 | Window win = f->output_data.x->parent_desc; | 181 | Window win = f->output_data.x->parent_desc; |
| 187 | Atom actual_type; | 182 | Atom actual_type; |
| 188 | unsigned long actual_size, bytes_remaining; | 183 | unsigned long actual_size, bytes_remaining; |
| @@ -386,7 +381,7 @@ bool | |||
| 386 | x_defined_color (struct frame *f, const char *color_name, | 381 | x_defined_color (struct frame *f, const char *color_name, |
| 387 | XColor *color, bool alloc_p) | 382 | XColor *color, bool alloc_p) |
| 388 | { | 383 | { |
| 389 | bool success_p = 0; | 384 | bool success_p = false; |
| 390 | Display *dpy = FRAME_X_DISPLAY (f); | 385 | Display *dpy = FRAME_X_DISPLAY (f); |
| 391 | Colormap cmap = FRAME_X_COLORMAP (f); | 386 | Colormap cmap = FRAME_X_COLORMAP (f); |
| 392 | 387 | ||
| @@ -415,9 +410,9 @@ x_decode_color (struct frame *f, Lisp_Object color_name, int mono_color) | |||
| 415 | 410 | ||
| 416 | CHECK_STRING (color_name); | 411 | CHECK_STRING (color_name); |
| 417 | 412 | ||
| 418 | #if 0 /* Don't do this. It's wrong when we're not using the default | 413 | #if false /* Don't do this. It's wrong when we're not using the default |
| 419 | colormap, it makes freeing difficult, and it's probably not | 414 | colormap, it makes freeing difficult, and it's probably not |
| 420 | an important optimization. */ | 415 | an important optimization. */ |
| 421 | if (strcmp (SDATA (color_name), "black") == 0) | 416 | if (strcmp (SDATA (color_name), "black") == 0) |
| 422 | return BLACK_PIX_DEFAULT (f); | 417 | return BLACK_PIX_DEFAULT (f); |
| 423 | else if (strcmp (SDATA (color_name), "white") == 0) | 418 | else if (strcmp (SDATA (color_name), "white") == 0) |
| @@ -430,7 +425,7 @@ x_decode_color (struct frame *f, Lisp_Object color_name, int mono_color) | |||
| 430 | 425 | ||
| 431 | /* x_defined_color is responsible for coping with failures | 426 | /* x_defined_color is responsible for coping with failures |
| 432 | by looking for a near-miss. */ | 427 | by looking for a near-miss. */ |
| 433 | if (x_defined_color (f, SSDATA (color_name), &cdef, 1)) | 428 | if (x_defined_color (f, SSDATA (color_name), &cdef, true)) |
| 434 | return cdef.pixel; | 429 | return cdef.pixel; |
| 435 | 430 | ||
| 436 | signal_error ("Undefined color", color_name); | 431 | signal_error ("Undefined color", color_name); |
| @@ -477,10 +472,10 @@ x_set_tool_bar_position (struct frame *f, | |||
| 477 | /* Set icon from FILE for frame F. By using GTK functions the icon | 472 | /* Set icon from FILE for frame F. By using GTK functions the icon |
| 478 | may be any format that GdkPixbuf knows about, i.e. not just bitmaps. */ | 473 | may be any format that GdkPixbuf knows about, i.e. not just bitmaps. */ |
| 479 | 474 | ||
| 480 | int | 475 | bool |
| 481 | xg_set_icon (struct frame *f, Lisp_Object file) | 476 | xg_set_icon (struct frame *f, Lisp_Object file) |
| 482 | { | 477 | { |
| 483 | int result = 0; | 478 | bool result = false; |
| 484 | Lisp_Object found; | 479 | Lisp_Object found; |
| 485 | 480 | ||
| 486 | found = x_find_image_file (file); | 481 | found = x_find_image_file (file); |
| @@ -500,7 +495,7 @@ xg_set_icon (struct frame *f, Lisp_Object file) | |||
| 500 | pixbuf); | 495 | pixbuf); |
| 501 | g_object_unref (pixbuf); | 496 | g_object_unref (pixbuf); |
| 502 | 497 | ||
| 503 | result = 1; | 498 | result = true; |
| 504 | } | 499 | } |
| 505 | else | 500 | else |
| 506 | g_error_free (err); | 501 | g_error_free (err); |
| @@ -511,17 +506,17 @@ xg_set_icon (struct frame *f, Lisp_Object file) | |||
| 511 | return result; | 506 | return result; |
| 512 | } | 507 | } |
| 513 | 508 | ||
| 514 | int | 509 | bool |
| 515 | xg_set_icon_from_xpm_data (struct frame *f, const char **data) | 510 | xg_set_icon_from_xpm_data (struct frame *f, const char **data) |
| 516 | { | 511 | { |
| 517 | GdkPixbuf *pixbuf = gdk_pixbuf_new_from_xpm_data (data); | 512 | GdkPixbuf *pixbuf = gdk_pixbuf_new_from_xpm_data (data); |
| 518 | 513 | ||
| 519 | if (!pixbuf) | 514 | if (!pixbuf) |
| 520 | return 0; | 515 | return false; |
| 521 | 516 | ||
| 522 | gtk_window_set_icon (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), pixbuf); | 517 | gtk_window_set_icon (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), pixbuf); |
| 523 | g_object_unref (pixbuf); | 518 | g_object_unref (pixbuf); |
| 524 | return 1; | 519 | return true; |
| 525 | } | 520 | } |
| 526 | #endif /* USE_GTK */ | 521 | #endif /* USE_GTK */ |
| 527 | 522 | ||
| @@ -778,20 +773,20 @@ static void | |||
| 778 | x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | 773 | x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 779 | { | 774 | { |
| 780 | unsigned long fore_pixel, pixel; | 775 | unsigned long fore_pixel, pixel; |
| 781 | bool fore_pixel_allocated_p = 0, pixel_allocated_p = 0; | 776 | bool fore_pixel_allocated_p = false, pixel_allocated_p = false; |
| 782 | struct x_output *x = f->output_data.x; | 777 | struct x_output *x = f->output_data.x; |
| 783 | 778 | ||
| 784 | if (!NILP (Vx_cursor_fore_pixel)) | 779 | if (!NILP (Vx_cursor_fore_pixel)) |
| 785 | { | 780 | { |
| 786 | fore_pixel = x_decode_color (f, Vx_cursor_fore_pixel, | 781 | fore_pixel = x_decode_color (f, Vx_cursor_fore_pixel, |
| 787 | WHITE_PIX_DEFAULT (f)); | 782 | WHITE_PIX_DEFAULT (f)); |
| 788 | fore_pixel_allocated_p = 1; | 783 | fore_pixel_allocated_p = true; |
| 789 | } | 784 | } |
| 790 | else | 785 | else |
| 791 | fore_pixel = FRAME_BACKGROUND_PIXEL (f); | 786 | fore_pixel = FRAME_BACKGROUND_PIXEL (f); |
| 792 | 787 | ||
| 793 | pixel = x_decode_color (f, arg, BLACK_PIX_DEFAULT (f)); | 788 | pixel = x_decode_color (f, arg, BLACK_PIX_DEFAULT (f)); |
| 794 | pixel_allocated_p = 1; | 789 | pixel_allocated_p = true; |
| 795 | 790 | ||
| 796 | /* Make sure that the cursor color differs from the background color. */ | 791 | /* Make sure that the cursor color differs from the background color. */ |
| 797 | if (pixel == FRAME_BACKGROUND_PIXEL (f)) | 792 | if (pixel == FRAME_BACKGROUND_PIXEL (f)) |
| @@ -799,7 +794,7 @@ x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 799 | if (pixel_allocated_p) | 794 | if (pixel_allocated_p) |
| 800 | { | 795 | { |
| 801 | x_free_colors (f, &pixel, 1); | 796 | x_free_colors (f, &pixel, 1); |
| 802 | pixel_allocated_p = 0; | 797 | pixel_allocated_p = false; |
| 803 | } | 798 | } |
| 804 | 799 | ||
| 805 | pixel = x->mouse_pixel; | 800 | pixel = x->mouse_pixel; |
| @@ -808,7 +803,7 @@ x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 808 | if (fore_pixel_allocated_p) | 803 | if (fore_pixel_allocated_p) |
| 809 | { | 804 | { |
| 810 | x_free_colors (f, &fore_pixel, 1); | 805 | x_free_colors (f, &fore_pixel, 1); |
| 811 | fore_pixel_allocated_p = 0; | 806 | fore_pixel_allocated_p = false; |
| 812 | } | 807 | } |
| 813 | fore_pixel = FRAME_BACKGROUND_PIXEL (f); | 808 | fore_pixel = FRAME_BACKGROUND_PIXEL (f); |
| 814 | } | 809 | } |
| @@ -833,8 +828,8 @@ x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 833 | 828 | ||
| 834 | if (FRAME_VISIBLE_P (f)) | 829 | if (FRAME_VISIBLE_P (f)) |
| 835 | { | 830 | { |
| 836 | x_update_cursor (f, 0); | 831 | x_update_cursor (f, false); |
| 837 | x_update_cursor (f, 1); | 832 | x_update_cursor (f, true); |
| 838 | } | 833 | } |
| 839 | } | 834 | } |
| 840 | 835 | ||
| @@ -894,7 +889,7 @@ x_set_cursor_type (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 894 | static void | 889 | static void |
| 895 | x_set_icon_type (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | 890 | x_set_icon_type (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 896 | { | 891 | { |
| 897 | int result; | 892 | bool result; |
| 898 | 893 | ||
| 899 | if (STRINGP (arg)) | 894 | if (STRINGP (arg)) |
| 900 | { | 895 | { |
| @@ -926,7 +921,7 @@ x_set_icon_type (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 926 | static void | 921 | static void |
| 927 | x_set_icon_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | 922 | x_set_icon_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 928 | { | 923 | { |
| 929 | int result; | 924 | bool result; |
| 930 | 925 | ||
| 931 | if (STRINGP (arg)) | 926 | if (STRINGP (arg)) |
| 932 | { | 927 | { |
| @@ -992,7 +987,7 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) | |||
| 992 | FRAME_EXTERNAL_MENU_BAR (f) = 1; | 987 | FRAME_EXTERNAL_MENU_BAR (f) = 1; |
| 993 | if (FRAME_X_P (f) && f->output_data.x->menubar_widget == 0) | 988 | if (FRAME_X_P (f) && f->output_data.x->menubar_widget == 0) |
| 994 | /* Make sure next redisplay shows the menu bar. */ | 989 | /* Make sure next redisplay shows the menu bar. */ |
| 995 | XWINDOW (FRAME_SELECTED_WINDOW (f))->update_mode_line = 1; | 990 | XWINDOW (FRAME_SELECTED_WINDOW (f))->update_mode_line = true; |
| 996 | } | 991 | } |
| 997 | else | 992 | else |
| 998 | { | 993 | { |
| @@ -1005,7 +1000,7 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) | |||
| 1005 | #else /* not USE_X_TOOLKIT && not USE_GTK */ | 1000 | #else /* not USE_X_TOOLKIT && not USE_GTK */ |
| 1006 | FRAME_MENU_BAR_LINES (f) = nlines; | 1001 | FRAME_MENU_BAR_LINES (f) = nlines; |
| 1007 | FRAME_MENU_BAR_HEIGHT (f) = nlines * FRAME_LINE_HEIGHT (f); | 1002 | FRAME_MENU_BAR_HEIGHT (f) = nlines * FRAME_LINE_HEIGHT (f); |
| 1008 | adjust_frame_size (f, -1, -1, 2, 1, Qmenu_bar_lines); | 1003 | adjust_frame_size (f, -1, -1, 2, true, Qmenu_bar_lines); |
| 1009 | if (FRAME_X_WINDOW (f)) | 1004 | if (FRAME_X_WINDOW (f)) |
| 1010 | x_clear_under_internal_border (f); | 1005 | x_clear_under_internal_border (f); |
| 1011 | 1006 | ||
| @@ -1084,17 +1079,17 @@ x_change_tool_bar_height (struct frame *f, int height) | |||
| 1084 | FRAME_TOOL_BAR_HEIGHT (f) = 0; | 1079 | FRAME_TOOL_BAR_HEIGHT (f) = 0; |
| 1085 | if (height) | 1080 | if (height) |
| 1086 | { | 1081 | { |
| 1087 | FRAME_EXTERNAL_TOOL_BAR (f) = 1; | 1082 | FRAME_EXTERNAL_TOOL_BAR (f) = true; |
| 1088 | if (FRAME_X_P (f) && f->output_data.x->toolbar_widget == 0) | 1083 | if (FRAME_X_P (f) && f->output_data.x->toolbar_widget == 0) |
| 1089 | /* Make sure next redisplay shows the tool bar. */ | 1084 | /* Make sure next redisplay shows the tool bar. */ |
| 1090 | XWINDOW (FRAME_SELECTED_WINDOW (f))->update_mode_line = 1; | 1085 | XWINDOW (FRAME_SELECTED_WINDOW (f))->update_mode_line = true; |
| 1091 | update_frame_tool_bar (f); | 1086 | update_frame_tool_bar (f); |
| 1092 | } | 1087 | } |
| 1093 | else | 1088 | else |
| 1094 | { | 1089 | { |
| 1095 | if (FRAME_EXTERNAL_TOOL_BAR (f)) | 1090 | if (FRAME_EXTERNAL_TOOL_BAR (f)) |
| 1096 | free_frame_tool_bar (f); | 1091 | free_frame_tool_bar (f); |
| 1097 | FRAME_EXTERNAL_TOOL_BAR (f) = 0; | 1092 | FRAME_EXTERNAL_TOOL_BAR (f) = false; |
| 1098 | } | 1093 | } |
| 1099 | #else /* !USE_GTK */ | 1094 | #else /* !USE_GTK */ |
| 1100 | int unit = FRAME_LINE_HEIGHT (f); | 1095 | int unit = FRAME_LINE_HEIGHT (f); |
| @@ -1134,7 +1129,7 @@ x_change_tool_bar_height (struct frame *f, int height) | |||
| 1134 | (!f->tool_bar_redisplayed_once ? 1 | 1129 | (!f->tool_bar_redisplayed_once ? 1 |
| 1135 | : (old_height == 0 || height == 0) ? 2 | 1130 | : (old_height == 0 || height == 0) ? 2 |
| 1136 | : 4), | 1131 | : 4), |
| 1137 | 0, Qtool_bar_lines); | 1132 | false, Qtool_bar_lines); |
| 1138 | 1133 | ||
| 1139 | /* adjust_frame_size might not have done anything, garbage frame | 1134 | /* adjust_frame_size might not have done anything, garbage frame |
| 1140 | here. */ | 1135 | here. */ |
| @@ -1166,7 +1161,7 @@ x_set_internal_border_width (struct frame *f, Lisp_Object arg, Lisp_Object oldva | |||
| 1166 | 1161 | ||
| 1167 | if (FRAME_X_WINDOW (f) != 0) | 1162 | if (FRAME_X_WINDOW (f) != 0) |
| 1168 | { | 1163 | { |
| 1169 | adjust_frame_size (f, -1, -1, 3, 0, Qinternal_border_width); | 1164 | adjust_frame_size (f, -1, -1, 3, false, Qinternal_border_width); |
| 1170 | 1165 | ||
| 1171 | #ifdef USE_GTK | 1166 | #ifdef USE_GTK |
| 1172 | xg_clear_under_internal_border (f); | 1167 | xg_clear_under_internal_border (f); |
| @@ -1271,14 +1266,14 @@ x_set_scroll_bar_background (struct frame *f, Lisp_Object value, Lisp_Object old | |||
| 1271 | 1266 | ||
| 1272 | Store the byte length of resulting text in *TEXT_BYTES. | 1267 | Store the byte length of resulting text in *TEXT_BYTES. |
| 1273 | 1268 | ||
| 1274 | If the text contains only ASCII and Latin-1, store 1 in *STRING_P, | 1269 | If the text contains only ASCII and Latin-1, store true in *STRING_P, |
| 1275 | which means that the `encoding' of the result can be `STRING'. | 1270 | which means that the `encoding' of the result can be `STRING'. |
| 1276 | Otherwise store 0 in *STRINGP, which means that the `encoding' of | 1271 | Otherwise store false in *STRINGP, which means that the `encoding' of |
| 1277 | the result should be `COMPOUND_TEXT'. */ | 1272 | the result should be `COMPOUND_TEXT'. */ |
| 1278 | 1273 | ||
| 1279 | static unsigned char * | 1274 | static unsigned char * |
| 1280 | x_encode_text (Lisp_Object string, Lisp_Object coding_system, | 1275 | x_encode_text (Lisp_Object string, Lisp_Object coding_system, |
| 1281 | ptrdiff_t *text_bytes, int *stringp, bool *freep) | 1276 | ptrdiff_t *text_bytes, bool *stringp, bool *freep) |
| 1282 | { | 1277 | { |
| 1283 | int result = string_xstring_p (string); | 1278 | int result = string_xstring_p (string); |
| 1284 | struct coding_system coding; | 1279 | struct coding_system coding; |
| @@ -1287,8 +1282,8 @@ x_encode_text (Lisp_Object string, Lisp_Object coding_system, | |||
| 1287 | { | 1282 | { |
| 1288 | /* No multibyte character in OBJ. We need not encode it. */ | 1283 | /* No multibyte character in OBJ. We need not encode it. */ |
| 1289 | *text_bytes = SBYTES (string); | 1284 | *text_bytes = SBYTES (string); |
| 1290 | *stringp = 1; | 1285 | *stringp = true; |
| 1291 | *freep = 0; | 1286 | *freep = false; |
| 1292 | return SDATA (string); | 1287 | return SDATA (string); |
| 1293 | } | 1288 | } |
| 1294 | 1289 | ||
| @@ -1302,7 +1297,7 @@ x_encode_text (Lisp_Object string, Lisp_Object coding_system, | |||
| 1302 | SCHARS (string), SBYTES (string), Qnil); | 1297 | SCHARS (string), SBYTES (string), Qnil); |
| 1303 | *text_bytes = coding.produced; | 1298 | *text_bytes = coding.produced; |
| 1304 | *stringp = (result == 1 || !EQ (coding_system, Qcompound_text)); | 1299 | *stringp = (result == 1 || !EQ (coding_system, Qcompound_text)); |
| 1305 | *freep = 1; | 1300 | *freep = true; |
| 1306 | return coding.destination; | 1301 | return coding.destination; |
| 1307 | } | 1302 | } |
| 1308 | 1303 | ||
| @@ -1320,8 +1315,8 @@ x_set_name_internal (struct frame *f, Lisp_Object name) | |||
| 1320 | { | 1315 | { |
| 1321 | XTextProperty text, icon; | 1316 | XTextProperty text, icon; |
| 1322 | ptrdiff_t bytes; | 1317 | ptrdiff_t bytes; |
| 1323 | int stringp; | 1318 | bool stringp; |
| 1324 | bool do_free_icon_value = 0, do_free_text_value = 0; | 1319 | bool do_free_icon_value = false, do_free_text_value = false; |
| 1325 | Lisp_Object coding_system; | 1320 | Lisp_Object coding_system; |
| 1326 | Lisp_Object encoded_name; | 1321 | Lisp_Object encoded_name; |
| 1327 | Lisp_Object encoded_icon_name; | 1322 | Lisp_Object encoded_icon_name; |
| @@ -1469,7 +1464,7 @@ x_set_name (struct frame *f, Lisp_Object name, bool explicit) | |||
| 1469 | static void | 1464 | static void |
| 1470 | x_explicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | 1465 | x_explicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1471 | { | 1466 | { |
| 1472 | x_set_name (f, arg, 1); | 1467 | x_set_name (f, arg, true); |
| 1473 | } | 1468 | } |
| 1474 | 1469 | ||
| 1475 | /* This function should be called by Emacs redisplay code to set the | 1470 | /* This function should be called by Emacs redisplay code to set the |
| @@ -1478,7 +1473,7 @@ x_explicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 1478 | void | 1473 | void |
| 1479 | x_implicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | 1474 | x_implicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval) |
| 1480 | { | 1475 | { |
| 1481 | x_set_name (f, arg, 0); | 1476 | x_set_name (f, arg, false); |
| 1482 | } | 1477 | } |
| 1483 | 1478 | ||
| 1484 | /* Change the title of frame F to NAME. | 1479 | /* Change the title of frame F to NAME. |
| @@ -1557,7 +1552,7 @@ static Lisp_Object | |||
| 1557 | x_default_scroll_bar_color_parameter (struct frame *f, | 1552 | x_default_scroll_bar_color_parameter (struct frame *f, |
| 1558 | Lisp_Object alist, Lisp_Object prop, | 1553 | Lisp_Object alist, Lisp_Object prop, |
| 1559 | const char *xprop, const char *xclass, | 1554 | const char *xprop, const char *xclass, |
| 1560 | int foreground_p) | 1555 | bool foreground_p) |
| 1561 | { | 1556 | { |
| 1562 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); | 1557 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 1563 | Lisp_Object tem; | 1558 | Lisp_Object tem; |
| @@ -1614,9 +1609,9 @@ hack_wm_protocols (struct frame *f, Widget widget) | |||
| 1614 | { | 1609 | { |
| 1615 | Display *dpy = XtDisplay (widget); | 1610 | Display *dpy = XtDisplay (widget); |
| 1616 | Window w = XtWindow (widget); | 1611 | Window w = XtWindow (widget); |
| 1617 | int need_delete = 1; | 1612 | bool need_delete = true; |
| 1618 | int need_focus = 1; | 1613 | bool need_focus = true; |
| 1619 | int need_save = 1; | 1614 | bool need_save = true; |
| 1620 | 1615 | ||
| 1621 | block_input (); | 1616 | block_input (); |
| 1622 | { | 1617 | { |
| @@ -1640,20 +1635,20 @@ hack_wm_protocols (struct frame *f, Widget widget) | |||
| 1640 | nitems--; | 1635 | nitems--; |
| 1641 | if (atoms[nitems] | 1636 | if (atoms[nitems] |
| 1642 | == FRAME_DISPLAY_INFO (f)->Xatom_wm_delete_window) | 1637 | == FRAME_DISPLAY_INFO (f)->Xatom_wm_delete_window) |
| 1643 | need_delete = 0; | 1638 | need_delete = false; |
| 1644 | else if (atoms[nitems] | 1639 | else if (atoms[nitems] |
| 1645 | == FRAME_DISPLAY_INFO (f)->Xatom_wm_take_focus) | 1640 | == FRAME_DISPLAY_INFO (f)->Xatom_wm_take_focus) |
| 1646 | need_focus = 0; | 1641 | need_focus = false; |
| 1647 | else if (atoms[nitems] | 1642 | else if (atoms[nitems] |
| 1648 | == FRAME_DISPLAY_INFO (f)->Xatom_wm_save_yourself) | 1643 | == FRAME_DISPLAY_INFO (f)->Xatom_wm_save_yourself) |
| 1649 | need_save = 0; | 1644 | need_save = false; |
| 1650 | } | 1645 | } |
| 1651 | } | 1646 | } |
| 1652 | if (catoms) | 1647 | if (catoms) |
| 1653 | XFree (catoms); | 1648 | XFree (catoms); |
| 1654 | } | 1649 | } |
| 1655 | { | 1650 | { |
| 1656 | Atom props [10]; | 1651 | Atom props[10]; |
| 1657 | int count = 0; | 1652 | int count = 0; |
| 1658 | if (need_delete) | 1653 | if (need_delete) |
| 1659 | props[count++] = FRAME_DISPLAY_INFO (f)->Xatom_wm_delete_window; | 1654 | props[count++] = FRAME_DISPLAY_INFO (f)->Xatom_wm_delete_window; |
| @@ -1705,7 +1700,7 @@ static const char xic_default_fontset[] = "-*-*-*-r-normal--14-*-*-*-*-*-*-*"; | |||
| 1705 | /* Create an Xt fontset spec from the name of a base font. | 1700 | /* Create an Xt fontset spec from the name of a base font. |
| 1706 | If `motif' is True use the Motif syntax. */ | 1701 | If `motif' is True use the Motif syntax. */ |
| 1707 | char * | 1702 | char * |
| 1708 | xic_create_fontsetname (const char *base_fontname, int motif) | 1703 | xic_create_fontsetname (const char *base_fontname, bool motif) |
| 1709 | { | 1704 | { |
| 1710 | const char *sep = motif ? ";" : ","; | 1705 | const char *sep = motif ? ";" : ","; |
| 1711 | char *fontsetname; | 1706 | char *fontsetname; |
| @@ -1947,7 +1942,7 @@ void | |||
| 1947 | xic_free_xfontset (struct frame *f) | 1942 | xic_free_xfontset (struct frame *f) |
| 1948 | { | 1943 | { |
| 1949 | Lisp_Object rest, frame; | 1944 | Lisp_Object rest, frame; |
| 1950 | bool shared_p = 0; | 1945 | bool shared_p = false; |
| 1951 | 1946 | ||
| 1952 | if (!FRAME_XIC_FONTSET (f)) | 1947 | if (!FRAME_XIC_FONTSET (f)) |
| 1953 | return; | 1948 | return; |
| @@ -1960,7 +1955,7 @@ xic_free_xfontset (struct frame *f) | |||
| 1960 | && FRAME_DISPLAY_INFO (cf) == FRAME_DISPLAY_INFO (f) | 1955 | && FRAME_DISPLAY_INFO (cf) == FRAME_DISPLAY_INFO (f) |
| 1961 | && FRAME_XIC_FONTSET (cf) == FRAME_XIC_FONTSET (f)) | 1956 | && FRAME_XIC_FONTSET (cf) == FRAME_XIC_FONTSET (f)) |
| 1962 | { | 1957 | { |
| 1963 | shared_p = 1; | 1958 | shared_p = true; |
| 1964 | break; | 1959 | break; |
| 1965 | } | 1960 | } |
| 1966 | } | 1961 | } |
| @@ -2220,7 +2215,7 @@ xic_set_xfontset (struct frame *f, const char *base_fontname) | |||
| 2220 | /* Create and set up the X widget for frame F. */ | 2215 | /* Create and set up the X widget for frame F. */ |
| 2221 | 2216 | ||
| 2222 | static void | 2217 | static void |
| 2223 | x_window (struct frame *f, long window_prompting, int minibuffer_only) | 2218 | x_window (struct frame *f, long window_prompting) |
| 2224 | { | 2219 | { |
| 2225 | XClassHint class_hints; | 2220 | XClassHint class_hints; |
| 2226 | XSetWindowAttributes attributes; | 2221 | XSetWindowAttributes attributes; |
| @@ -2228,7 +2223,7 @@ x_window (struct frame *f, long window_prompting, int minibuffer_only) | |||
| 2228 | Widget shell_widget; | 2223 | Widget shell_widget; |
| 2229 | Widget pane_widget; | 2224 | Widget pane_widget; |
| 2230 | Widget frame_widget; | 2225 | Widget frame_widget; |
| 2231 | Arg al [25]; | 2226 | Arg al[25]; |
| 2232 | int ac; | 2227 | int ac; |
| 2233 | 2228 | ||
| 2234 | block_input (); | 2229 | block_input (); |
| @@ -2298,8 +2293,8 @@ x_window (struct frame *f, long window_prompting, int minibuffer_only) | |||
| 2298 | + f->output_data.x->menubar_widget->core.border_width) | 2293 | + f->output_data.x->menubar_widget->core.border_width) |
| 2299 | : 0); | 2294 | : 0); |
| 2300 | 2295 | ||
| 2301 | #if 0 /* Experimentally, we now get the right results | 2296 | #if false /* Experimentally, we now get the right results |
| 2302 | for -geometry -0-0 without this. 24 Aug 96, rms. */ | 2297 | for -geometry -0-0 without this. 24 Aug 96, rms. */ |
| 2303 | if (FRAME_EXTERNAL_MENU_BAR (f)) | 2298 | if (FRAME_EXTERNAL_MENU_BAR (f)) |
| 2304 | { | 2299 | { |
| 2305 | Dimension ibw = 0; | 2300 | Dimension ibw = 0; |
| @@ -2328,9 +2323,9 @@ x_window (struct frame *f, long window_prompting, int minibuffer_only) | |||
| 2328 | We pass that information later, in x_wm_set_size_hints. */ | 2323 | We pass that information later, in x_wm_set_size_hints. */ |
| 2329 | { | 2324 | { |
| 2330 | int left = f->left_pos; | 2325 | int left = f->left_pos; |
| 2331 | int xneg = window_prompting & XNegative; | 2326 | bool xneg = (window_prompting & XNegative) != 0; |
| 2332 | int top = f->top_pos; | 2327 | int top = f->top_pos; |
| 2333 | int yneg = window_prompting & YNegative; | 2328 | bool yneg = (window_prompting & YNegative) != 0; |
| 2334 | if (xneg) | 2329 | if (xneg) |
| 2335 | left = -left; | 2330 | left = -left; |
| 2336 | if (yneg) | 2331 | if (yneg) |
| @@ -2429,7 +2424,7 @@ x_window (struct frame *f, long window_prompting, int minibuffer_only) | |||
| 2429 | Lisp_Object name; | 2424 | Lisp_Object name; |
| 2430 | bool explicit = f->explicit_name; | 2425 | bool explicit = f->explicit_name; |
| 2431 | 2426 | ||
| 2432 | f->explicit_name = 0; | 2427 | f->explicit_name = false; |
| 2433 | name = f->name; | 2428 | name = f->name; |
| 2434 | fset_name (f, Qnil); | 2429 | fset_name (f, Qnil); |
| 2435 | x_set_name (f, name, explicit); | 2430 | x_set_name (f, name, explicit); |
| @@ -2568,7 +2563,7 @@ x_window (struct frame *f) | |||
| 2568 | Lisp_Object name; | 2563 | Lisp_Object name; |
| 2569 | bool explicit = f->explicit_name; | 2564 | bool explicit = f->explicit_name; |
| 2570 | 2565 | ||
| 2571 | f->explicit_name = 0; | 2566 | f->explicit_name = false; |
| 2572 | name = f->name; | 2567 | name = f->name; |
| 2573 | fset_name (f, Qnil); | 2568 | fset_name (f, Qnil); |
| 2574 | x_set_name (f, name, explicit); | 2569 | x_set_name (f, name, explicit); |
| @@ -2614,15 +2609,12 @@ x_icon_verify (struct frame *f, Lisp_Object parms) | |||
| 2614 | static void | 2609 | static void |
| 2615 | x_icon (struct frame *f, Lisp_Object parms) | 2610 | x_icon (struct frame *f, Lisp_Object parms) |
| 2616 | { | 2611 | { |
| 2617 | Lisp_Object icon_x, icon_y; | ||
| 2618 | #if 0 | ||
| 2619 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); | ||
| 2620 | #endif | ||
| 2621 | |||
| 2622 | /* Set the position of the icon. Note that twm groups all | 2612 | /* Set the position of the icon. Note that twm groups all |
| 2623 | icons in an icon window. */ | 2613 | icons in an icon window. */ |
| 2624 | icon_x = x_frame_get_and_record_arg (f, parms, Qicon_left, 0, 0, RES_TYPE_NUMBER); | 2614 | Lisp_Object icon_x |
| 2625 | icon_y = x_frame_get_and_record_arg (f, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); | 2615 | = x_frame_get_and_record_arg (f, parms, Qicon_left, 0, 0, RES_TYPE_NUMBER); |
| 2616 | Lisp_Object icon_y | ||
| 2617 | = x_frame_get_and_record_arg (f, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); | ||
| 2626 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) | 2618 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) |
| 2627 | { | 2619 | { |
| 2628 | CHECK_TYPE_RANGED_INTEGER (int, icon_x); | 2620 | CHECK_TYPE_RANGED_INTEGER (int, icon_x); |
| @@ -2636,9 +2628,10 @@ x_icon (struct frame *f, Lisp_Object parms) | |||
| 2636 | if (! EQ (icon_x, Qunbound)) | 2628 | if (! EQ (icon_x, Qunbound)) |
| 2637 | x_wm_set_icon_position (f, XINT (icon_x), XINT (icon_y)); | 2629 | x_wm_set_icon_position (f, XINT (icon_x), XINT (icon_y)); |
| 2638 | 2630 | ||
| 2639 | #if 0 /* x_get_arg removes the visibility parameter as a side effect, | 2631 | #if false /* x_get_arg removes the visibility parameter as a side effect, |
| 2640 | but x_create_frame still needs it. */ | 2632 | but x_create_frame still needs it. */ |
| 2641 | /* Start up iconic or window? */ | 2633 | /* Start up iconic or window? */ |
| 2634 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); | ||
| 2642 | x_wm_set_window_state | 2635 | x_wm_set_window_state |
| 2643 | (f, (EQ (x_get_arg (dpyinfo, parms, Qvisibility, 0, 0, RES_TYPE_SYMBOL), | 2636 | (f, (EQ (x_get_arg (dpyinfo, parms, Qvisibility, 0, 0, RES_TYPE_SYMBOL), |
| 2644 | Qicon) | 2637 | Qicon) |
| @@ -2866,7 +2859,7 @@ Signal error if FRAME is not an X frame. */) | |||
| 2866 | struct frame *f = decode_window_system_frame (frame); | 2859 | struct frame *f = decode_window_system_frame (frame); |
| 2867 | 2860 | ||
| 2868 | block_input (); | 2861 | block_input (); |
| 2869 | x_wm_set_size_hint (f, 0, 0); | 2862 | x_wm_set_size_hint (f, 0, false); |
| 2870 | unblock_input (); | 2863 | unblock_input (); |
| 2871 | return Qnil; | 2864 | return Qnil; |
| 2872 | } | 2865 | } |
| @@ -2906,7 +2899,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 2906 | struct frame *f; | 2899 | struct frame *f; |
| 2907 | Lisp_Object frame, tem; | 2900 | Lisp_Object frame, tem; |
| 2908 | Lisp_Object name; | 2901 | Lisp_Object name; |
| 2909 | int minibuffer_only = 0; | 2902 | bool minibuffer_only = false; |
| 2910 | long window_prompting = 0; | 2903 | long window_prompting = 0; |
| 2911 | ptrdiff_t count = SPECPDL_INDEX (); | 2904 | ptrdiff_t count = SPECPDL_INDEX (); |
| 2912 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | 2905 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; |
| @@ -2960,12 +2953,12 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 2960 | else if (EQ (tem, Qonly)) | 2953 | else if (EQ (tem, Qonly)) |
| 2961 | { | 2954 | { |
| 2962 | f = make_minibuffer_frame (); | 2955 | f = make_minibuffer_frame (); |
| 2963 | minibuffer_only = 1; | 2956 | minibuffer_only = true; |
| 2964 | } | 2957 | } |
| 2965 | else if (WINDOWP (tem)) | 2958 | else if (WINDOWP (tem)) |
| 2966 | f = make_frame_without_minibuffer (tem, kb, display); | 2959 | f = make_frame_without_minibuffer (tem, kb, display); |
| 2967 | else | 2960 | else |
| 2968 | f = make_frame (1); | 2961 | f = make_frame (true); |
| 2969 | 2962 | ||
| 2970 | XSETFRAME (frame, f); | 2963 | XSETFRAME (frame, f); |
| 2971 | 2964 | ||
| @@ -3032,12 +3025,12 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3032 | if (!NILP (parent)) | 3025 | if (!NILP (parent)) |
| 3033 | { | 3026 | { |
| 3034 | f->output_data.x->parent_desc = (Window) XFASTINT (parent); | 3027 | f->output_data.x->parent_desc = (Window) XFASTINT (parent); |
| 3035 | f->output_data.x->explicit_parent = 1; | 3028 | f->output_data.x->explicit_parent = true; |
| 3036 | } | 3029 | } |
| 3037 | else | 3030 | else |
| 3038 | { | 3031 | { |
| 3039 | f->output_data.x->parent_desc = FRAME_DISPLAY_INFO (f)->root_window; | 3032 | f->output_data.x->parent_desc = FRAME_DISPLAY_INFO (f)->root_window; |
| 3040 | f->output_data.x->explicit_parent = 0; | 3033 | f->output_data.x->explicit_parent = false; |
| 3041 | } | 3034 | } |
| 3042 | 3035 | ||
| 3043 | /* Set the name; the functions to which we pass f expect the name to | 3036 | /* Set the name; the functions to which we pass f expect the name to |
| @@ -3045,12 +3038,12 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3045 | if (EQ (name, Qunbound) || NILP (name)) | 3038 | if (EQ (name, Qunbound) || NILP (name)) |
| 3046 | { | 3039 | { |
| 3047 | fset_name (f, build_string (dpyinfo->x_id_name)); | 3040 | fset_name (f, build_string (dpyinfo->x_id_name)); |
| 3048 | f->explicit_name = 0; | 3041 | f->explicit_name = false; |
| 3049 | } | 3042 | } |
| 3050 | else | 3043 | else |
| 3051 | { | 3044 | { |
| 3052 | fset_name (f, name); | 3045 | fset_name (f, name); |
| 3053 | f->explicit_name = 1; | 3046 | f->explicit_name = true; |
| 3054 | /* Use the frame's title when getting resources for this frame. */ | 3047 | /* Use the frame's title when getting resources for this frame. */ |
| 3055 | specbind (Qx_resource_name, name); | 3048 | specbind (Qx_resource_name, name); |
| 3056 | } | 3049 | } |
| @@ -3137,10 +3130,10 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3137 | 3130 | ||
| 3138 | x_default_scroll_bar_color_parameter (f, parms, Qscroll_bar_foreground, | 3131 | x_default_scroll_bar_color_parameter (f, parms, Qscroll_bar_foreground, |
| 3139 | "scrollBarForeground", | 3132 | "scrollBarForeground", |
| 3140 | "ScrollBarForeground", 1); | 3133 | "ScrollBarForeground", true); |
| 3141 | x_default_scroll_bar_color_parameter (f, parms, Qscroll_bar_background, | 3134 | x_default_scroll_bar_color_parameter (f, parms, Qscroll_bar_background, |
| 3142 | "scrollBarBackground", | 3135 | "scrollBarBackground", |
| 3143 | "ScrollBarBackground", 0); | 3136 | "ScrollBarBackground", false); |
| 3144 | 3137 | ||
| 3145 | #ifdef GLYPH_DEBUG | 3138 | #ifdef GLYPH_DEBUG |
| 3146 | image_cache_refcount = | 3139 | image_cache_refcount = |
| @@ -3163,7 +3156,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3163 | had one frame line vs one toolbar line which left us with a zero | 3156 | had one frame line vs one toolbar line which left us with a zero |
| 3164 | root window height which was obviously wrong as well ... */ | 3157 | root window height which was obviously wrong as well ... */ |
| 3165 | adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), | 3158 | adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), |
| 3166 | FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 5, 1, | 3159 | FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 5, true, |
| 3167 | Qx_create_frame_1); | 3160 | Qx_create_frame_1); |
| 3168 | 3161 | ||
| 3169 | /* Set the menu-bar-lines and tool-bar-lines parameters. We don't | 3162 | /* Set the menu-bar-lines and tool-bar-lines parameters. We don't |
| @@ -3193,7 +3186,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3193 | FRAME_TOOL_BAR_POSITION (f), 0, 0, RES_TYPE_SYMBOL); | 3186 | FRAME_TOOL_BAR_POSITION (f), 0, 0, RES_TYPE_SYMBOL); |
| 3194 | 3187 | ||
| 3195 | /* Compute the size of the X window. */ | 3188 | /* Compute the size of the X window. */ |
| 3196 | window_prompting = x_figure_window_size (f, parms, 1); | 3189 | window_prompting = x_figure_window_size (f, parms, true); |
| 3197 | 3190 | ||
| 3198 | tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); | 3191 | tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); |
| 3199 | f->no_split = minibuffer_only || EQ (tem, Qt); | 3192 | f->no_split = minibuffer_only || EQ (tem, Qt); |
| @@ -3202,7 +3195,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3202 | 3195 | ||
| 3203 | /* Create the X widget or window. */ | 3196 | /* Create the X widget or window. */ |
| 3204 | #ifdef USE_X_TOOLKIT | 3197 | #ifdef USE_X_TOOLKIT |
| 3205 | x_window (f, window_prompting, minibuffer_only); | 3198 | x_window (f, window_prompting); |
| 3206 | #else | 3199 | #else |
| 3207 | x_window (f); | 3200 | x_window (f); |
| 3208 | #endif | 3201 | #endif |
| @@ -3238,7 +3231,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3238 | /* Consider frame official, now. */ | 3231 | /* Consider frame official, now. */ |
| 3239 | f->can_x_set_window_size = true; | 3232 | f->can_x_set_window_size = true; |
| 3240 | 3233 | ||
| 3241 | adjust_frame_size (f, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 0, 1, | 3234 | adjust_frame_size (f, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 0, true, |
| 3242 | Qx_create_frame_2); | 3235 | Qx_create_frame_2); |
| 3243 | 3236 | ||
| 3244 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 3237 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| @@ -3263,7 +3256,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3263 | badly we want them. This should be done after we have the menu | 3256 | badly we want them. This should be done after we have the menu |
| 3264 | bar so that its size can be taken into account. */ | 3257 | bar so that its size can be taken into account. */ |
| 3265 | block_input (); | 3258 | block_input (); |
| 3266 | x_wm_set_size_hint (f, window_prompting, 0); | 3259 | x_wm_set_size_hint (f, window_prompting, false); |
| 3267 | unblock_input (); | 3260 | unblock_input (); |
| 3268 | 3261 | ||
| 3269 | /* Make the window appear on the frame and enable display, unless | 3262 | /* Make the window appear on the frame and enable display, unless |
| @@ -3392,7 +3385,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, | |||
| 3392 | 3385 | ||
| 3393 | CHECK_STRING (color); | 3386 | CHECK_STRING (color); |
| 3394 | 3387 | ||
| 3395 | if (x_defined_color (f, SSDATA (color), &foo, 0)) | 3388 | if (x_defined_color (f, SSDATA (color), &foo, false)) |
| 3396 | return Qt; | 3389 | return Qt; |
| 3397 | else | 3390 | else |
| 3398 | return Qnil; | 3391 | return Qnil; |
| @@ -3407,7 +3400,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, | |||
| 3407 | 3400 | ||
| 3408 | CHECK_STRING (color); | 3401 | CHECK_STRING (color); |
| 3409 | 3402 | ||
| 3410 | if (x_defined_color (f, SSDATA (color), &foo, 0)) | 3403 | if (x_defined_color (f, SSDATA (color), &foo, false)) |
| 3411 | return list3i (foo.red, foo.green, foo.blue); | 3404 | return list3i (foo.red, foo.green, foo.blue); |
| 3412 | else | 3405 | else |
| 3413 | return Qnil; | 3406 | return Qnil; |
| @@ -4946,14 +4939,14 @@ x_create_tip_frame (struct x_display_info *dpyinfo, | |||
| 4946 | 4939 | ||
| 4947 | frame = Qnil; | 4940 | frame = Qnil; |
| 4948 | GCPRO3 (parms, name, frame); | 4941 | GCPRO3 (parms, name, frame); |
| 4949 | f = make_frame (1); | 4942 | f = make_frame (true); |
| 4950 | XSETFRAME (frame, f); | 4943 | XSETFRAME (frame, f); |
| 4951 | 4944 | ||
| 4952 | AUTO_STRING (tip, " *tip*"); | 4945 | AUTO_STRING (tip, " *tip*"); |
| 4953 | buffer = Fget_buffer_create (tip); | 4946 | buffer = Fget_buffer_create (tip); |
| 4954 | /* Use set_window_buffer instead of Fset_window_buffer (see | 4947 | /* Use set_window_buffer instead of Fset_window_buffer (see |
| 4955 | discussion of bug#11984, bug#12025, bug#12026). */ | 4948 | discussion of bug#11984, bug#12025, bug#12026). */ |
| 4956 | set_window_buffer (FRAME_ROOT_WINDOW (f), buffer, 0, 0); | 4949 | set_window_buffer (FRAME_ROOT_WINDOW (f), buffer, false, false); |
| 4957 | old_buffer = current_buffer; | 4950 | old_buffer = current_buffer; |
| 4958 | set_buffer_internal_1 (XBUFFER (buffer)); | 4951 | set_buffer_internal_1 (XBUFFER (buffer)); |
| 4959 | bset_truncate_lines (current_buffer, Qnil); | 4952 | bset_truncate_lines (current_buffer, Qnil); |
| @@ -4987,7 +4980,7 @@ x_create_tip_frame (struct x_display_info *dpyinfo, | |||
| 4987 | fset_icon_name (f, Qnil); | 4980 | fset_icon_name (f, Qnil); |
| 4988 | FRAME_DISPLAY_INFO (f) = dpyinfo; | 4981 | FRAME_DISPLAY_INFO (f) = dpyinfo; |
| 4989 | f->output_data.x->parent_desc = FRAME_DISPLAY_INFO (f)->root_window; | 4982 | f->output_data.x->parent_desc = FRAME_DISPLAY_INFO (f)->root_window; |
| 4990 | f->output_data.x->explicit_parent = 0; | 4983 | f->output_data.x->explicit_parent = false; |
| 4991 | 4984 | ||
| 4992 | /* These colors will be set anyway later, but it's important | 4985 | /* These colors will be set anyway later, but it's important |
| 4993 | to get the color reference counts right, so initialize them! */ | 4986 | to get the color reference counts right, so initialize them! */ |
| @@ -5027,12 +5020,12 @@ x_create_tip_frame (struct x_display_info *dpyinfo, | |||
| 5027 | if (EQ (name, Qunbound) || NILP (name)) | 5020 | if (EQ (name, Qunbound) || NILP (name)) |
| 5028 | { | 5021 | { |
| 5029 | fset_name (f, build_string (dpyinfo->x_id_name)); | 5022 | fset_name (f, build_string (dpyinfo->x_id_name)); |
| 5030 | f->explicit_name = 0; | 5023 | f->explicit_name = false; |
| 5031 | } | 5024 | } |
| 5032 | else | 5025 | else |
| 5033 | { | 5026 | { |
| 5034 | fset_name (f, name); | 5027 | fset_name (f, name); |
| 5035 | f->explicit_name = 1; | 5028 | f->explicit_name = true; |
| 5036 | /* use the frame's title when getting resources for this frame. */ | 5029 | /* use the frame's title when getting resources for this frame. */ |
| 5037 | specbind (Qx_resource_name, name); | 5030 | specbind (Qx_resource_name, name); |
| 5038 | } | 5031 | } |
| @@ -5103,7 +5096,7 @@ x_create_tip_frame (struct x_display_info *dpyinfo, | |||
| 5103 | 5096 | ||
| 5104 | f->output_data.x->parent_desc = FRAME_DISPLAY_INFO (f)->root_window; | 5097 | f->output_data.x->parent_desc = FRAME_DISPLAY_INFO (f)->root_window; |
| 5105 | 5098 | ||
| 5106 | x_figure_window_size (f, parms, 0); | 5099 | x_figure_window_size (f, parms, false); |
| 5107 | 5100 | ||
| 5108 | { | 5101 | { |
| 5109 | XSetWindowAttributes attrs; | 5102 | XSetWindowAttributes attrs; |
| @@ -5156,7 +5149,7 @@ x_create_tip_frame (struct x_display_info *dpyinfo, | |||
| 5156 | height = FRAME_LINES (f); | 5149 | height = FRAME_LINES (f); |
| 5157 | SET_FRAME_COLS (f, 0); | 5150 | SET_FRAME_COLS (f, 0); |
| 5158 | SET_FRAME_LINES (f, 0); | 5151 | SET_FRAME_LINES (f, 0); |
| 5159 | change_frame_size (f, width, height, 1, 0, 0, 0); | 5152 | change_frame_size (f, width, height, true, false, false, false); |
| 5160 | 5153 | ||
| 5161 | /* Add `tooltip' frame parameter's default value. */ | 5154 | /* Add `tooltip' frame parameter's default value. */ |
| 5162 | if (NILP (Fframe_parameter (frame, Qtooltip))) | 5155 | if (NILP (Fframe_parameter (frame, Qtooltip))) |
| @@ -5209,7 +5202,7 @@ x_create_tip_frame (struct x_display_info *dpyinfo, | |||
| 5209 | } | 5202 | } |
| 5210 | } | 5203 | } |
| 5211 | 5204 | ||
| 5212 | f->no_split = 1; | 5205 | f->no_split = true; |
| 5213 | 5206 | ||
| 5214 | UNGCPRO; | 5207 | UNGCPRO; |
| 5215 | 5208 | ||
| @@ -5327,7 +5320,8 @@ Text larger than the specified size is clipped. */) | |||
| 5327 | int root_x, root_y; | 5320 | int root_x, root_y; |
| 5328 | struct buffer *old_buffer; | 5321 | struct buffer *old_buffer; |
| 5329 | struct text_pos pos; | 5322 | struct text_pos pos; |
| 5330 | int i, width, height, seen_reversed_p; | 5323 | int i, width, height; |
| 5324 | bool seen_reversed_p; | ||
| 5331 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | 5325 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; |
| 5332 | int old_windows_or_buffers_changed = windows_or_buffers_changed; | 5326 | int old_windows_or_buffers_changed = windows_or_buffers_changed; |
| 5333 | ptrdiff_t count = SPECPDL_INDEX (); | 5327 | ptrdiff_t count = SPECPDL_INDEX (); |
| @@ -5465,7 +5459,7 @@ Text larger than the specified size is clipped. */) | |||
| 5465 | 5459 | ||
| 5466 | FRAME_TOTAL_COLS (f) = w->total_cols; | 5460 | FRAME_TOTAL_COLS (f) = w->total_cols; |
| 5467 | adjust_frame_glyphs (f); | 5461 | adjust_frame_glyphs (f); |
| 5468 | w->pseudo_window_p = 1; | 5462 | w->pseudo_window_p = true; |
| 5469 | 5463 | ||
| 5470 | /* Display the tooltip text in a temporary buffer. */ | 5464 | /* Display the tooltip text in a temporary buffer. */ |
| 5471 | old_buffer = current_buffer; | 5465 | old_buffer = current_buffer; |
| @@ -5477,7 +5471,8 @@ Text larger than the specified size is clipped. */) | |||
| 5477 | try_window (FRAME_ROOT_WINDOW (f), pos, TRY_WINDOW_IGNORE_FONTS_CHANGE); | 5471 | try_window (FRAME_ROOT_WINDOW (f), pos, TRY_WINDOW_IGNORE_FONTS_CHANGE); |
| 5478 | 5472 | ||
| 5479 | /* Compute width and height of the tooltip. */ | 5473 | /* Compute width and height of the tooltip. */ |
| 5480 | width = height = seen_reversed_p = 0; | 5474 | width = height = 0; |
| 5475 | seen_reversed_p = false; | ||
| 5481 | for (i = 0; i < w->desired_matrix->nrows; ++i) | 5476 | for (i = 0; i < w->desired_matrix->nrows; ++i) |
| 5482 | { | 5477 | { |
| 5483 | struct glyph_row *row = &w->desired_matrix->rows[i]; | 5478 | struct glyph_row *row = &w->desired_matrix->rows[i]; |
| @@ -5489,7 +5484,7 @@ Text larger than the specified size is clipped. */) | |||
| 5489 | break; | 5484 | break; |
| 5490 | 5485 | ||
| 5491 | /* Let the row go over the full width of the frame. */ | 5486 | /* Let the row go over the full width of the frame. */ |
| 5492 | row->full_width_p = 1; | 5487 | row->full_width_p = true; |
| 5493 | 5488 | ||
| 5494 | row_width = row->pixel_width; | 5489 | row_width = row->pixel_width; |
| 5495 | if (row->used[TEXT_AREA]) | 5490 | if (row->used[TEXT_AREA]) |
| @@ -5512,7 +5507,7 @@ Text larger than the specified size is clipped. */) | |||
| 5512 | if (g->type == STRETCH_GLYPH && NILP (g->object)) | 5507 | if (g->type == STRETCH_GLYPH && NILP (g->object)) |
| 5513 | { | 5508 | { |
| 5514 | row_width -= g->pixel_width; | 5509 | row_width -= g->pixel_width; |
| 5515 | seen_reversed_p = 1; | 5510 | seen_reversed_p = true; |
| 5516 | } | 5511 | } |
| 5517 | } | 5512 | } |
| 5518 | } | 5513 | } |
| @@ -5548,7 +5543,7 @@ Text larger than the specified size is clipped. */) | |||
| 5548 | 5543 | ||
| 5549 | if (!row->enabled_p || !MATRIX_ROW_DISPLAYS_TEXT_P (row)) | 5544 | if (!row->enabled_p || !MATRIX_ROW_DISPLAYS_TEXT_P (row)) |
| 5550 | break; | 5545 | break; |
| 5551 | row->full_width_p = 1; | 5546 | row->full_width_p = true; |
| 5552 | row_width = row->pixel_width; | 5547 | row_width = row->pixel_width; |
| 5553 | if (row->used[TEXT_AREA] && !row->reversed_p) | 5548 | if (row->used[TEXT_AREA] && !row->reversed_p) |
| 5554 | { | 5549 | { |
| @@ -5715,7 +5710,7 @@ clean_up_file_dialog (void *arg) | |||
| 5715 | block_input (); | 5710 | block_input (); |
| 5716 | XtUnmanageChild (dialog); | 5711 | XtUnmanageChild (dialog); |
| 5717 | XtDestroyWidget (dialog); | 5712 | XtDestroyWidget (dialog); |
| 5718 | x_menu_set_in_use (0); | 5713 | x_menu_set_in_use (false); |
| 5719 | unblock_input (); | 5714 | unblock_input (); |
| 5720 | } | 5715 | } |
| 5721 | 5716 | ||
| @@ -5839,7 +5834,7 @@ value of DIR as in previous invocations; this is standard Windows behavior. */) | |||
| 5839 | record_unwind_protect_ptr (clean_up_file_dialog, dialog); | 5834 | record_unwind_protect_ptr (clean_up_file_dialog, dialog); |
| 5840 | 5835 | ||
| 5841 | /* Process events until the user presses Cancel or OK. */ | 5836 | /* Process events until the user presses Cancel or OK. */ |
| 5842 | x_menu_set_in_use (1); | 5837 | x_menu_set_in_use (true); |
| 5843 | result = 0; | 5838 | result = 0; |
| 5844 | while (result == 0) | 5839 | while (result == 0) |
| 5845 | { | 5840 | { |
| @@ -5893,7 +5888,7 @@ value of DIR as in previous invocations; this is standard Windows behavior. */) | |||
| 5893 | static void | 5888 | static void |
| 5894 | clean_up_dialog (void) | 5889 | clean_up_dialog (void) |
| 5895 | { | 5890 | { |
| 5896 | x_menu_set_in_use (0); | 5891 | x_menu_set_in_use (false); |
| 5897 | } | 5892 | } |
| 5898 | 5893 | ||
| 5899 | DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 5, 0, | 5894 | DEFUN ("x-file-dialog", Fx_file_dialog, Sx_file_dialog, 2, 5, 0, |
| @@ -6192,7 +6187,7 @@ Changing the value does not affect existing frames | |||
| 6192 | unless you set the mouse color. */); | 6187 | unless you set the mouse color. */); |
| 6193 | Vx_pointer_shape = Qnil; | 6188 | Vx_pointer_shape = Qnil; |
| 6194 | 6189 | ||
| 6195 | #if 0 /* This doesn't really do anything. */ | 6190 | #if false /* This doesn't really do anything. */ |
| 6196 | DEFVAR_LISP ("x-nontext-pointer-shape", Vx_nontext_pointer_shape, | 6191 | DEFVAR_LISP ("x-nontext-pointer-shape", Vx_nontext_pointer_shape, |
| 6197 | doc: /* The shape of the pointer when not over text. | 6192 | doc: /* The shape of the pointer when not over text. |
| 6198 | This variable takes effect when you create a new frame | 6193 | This variable takes effect when you create a new frame |
| @@ -6206,7 +6201,7 @@ This variable takes effect when you create a new frame | |||
| 6206 | or when you set the mouse color. */); | 6201 | or when you set the mouse color. */); |
| 6207 | Vx_hourglass_pointer_shape = Qnil; | 6202 | Vx_hourglass_pointer_shape = Qnil; |
| 6208 | 6203 | ||
| 6209 | #if 0 /* This doesn't really do anything. */ | 6204 | #if false /* This doesn't really do anything. */ |
| 6210 | DEFVAR_LISP ("x-mode-pointer-shape", Vx_mode_pointer_shape, | 6205 | DEFVAR_LISP ("x-mode-pointer-shape", Vx_mode_pointer_shape, |
| 6211 | doc: /* The shape of the pointer when over the mode line. | 6206 | doc: /* The shape of the pointer when over the mode line. |
| 6212 | This variable takes effect when you create a new frame | 6207 | This variable takes effect when you create a new frame |
| @@ -6268,25 +6263,25 @@ Chinese, Japanese, and Korean. */); | |||
| 6268 | If nil or if the file selection dialog is not available, the new GTK file | 6263 | If nil or if the file selection dialog is not available, the new GTK file |
| 6269 | chooser is used instead. To turn off all file dialogs set the | 6264 | chooser is used instead. To turn off all file dialogs set the |
| 6270 | variable `use-file-dialog'. */); | 6265 | variable `use-file-dialog'. */); |
| 6271 | x_gtk_use_old_file_dialog = 0; | 6266 | x_gtk_use_old_file_dialog = false; |
| 6272 | 6267 | ||
| 6273 | DEFVAR_BOOL ("x-gtk-show-hidden-files", x_gtk_show_hidden_files, | 6268 | DEFVAR_BOOL ("x-gtk-show-hidden-files", x_gtk_show_hidden_files, |
| 6274 | doc: /* If non-nil, the GTK file chooser will by default show hidden files. | 6269 | doc: /* If non-nil, the GTK file chooser will by default show hidden files. |
| 6275 | Note that this is just the default, there is a toggle button on the file | 6270 | Note that this is just the default, there is a toggle button on the file |
| 6276 | chooser to show or not show hidden files on a case by case basis. */); | 6271 | chooser to show or not show hidden files on a case by case basis. */); |
| 6277 | x_gtk_show_hidden_files = 0; | 6272 | x_gtk_show_hidden_files = false; |
| 6278 | 6273 | ||
| 6279 | DEFVAR_BOOL ("x-gtk-file-dialog-help-text", x_gtk_file_dialog_help_text, | 6274 | DEFVAR_BOOL ("x-gtk-file-dialog-help-text", x_gtk_file_dialog_help_text, |
| 6280 | doc: /* If non-nil, the GTK file chooser will show additional help text. | 6275 | doc: /* If non-nil, the GTK file chooser will show additional help text. |
| 6281 | If more space for files in the file chooser dialog is wanted, set this to nil | 6276 | If more space for files in the file chooser dialog is wanted, set this to nil |
| 6282 | to turn the additional text off. */); | 6277 | to turn the additional text off. */); |
| 6283 | x_gtk_file_dialog_help_text = 1; | 6278 | x_gtk_file_dialog_help_text = true; |
| 6284 | 6279 | ||
| 6285 | DEFVAR_BOOL ("x-gtk-use-system-tooltips", x_gtk_use_system_tooltips, | 6280 | DEFVAR_BOOL ("x-gtk-use-system-tooltips", x_gtk_use_system_tooltips, |
| 6286 | doc: /* If non-nil with a Gtk+ built Emacs, the Gtk+ tooltip is used. | 6281 | doc: /* If non-nil with a Gtk+ built Emacs, the Gtk+ tooltip is used. |
| 6287 | Otherwise use Emacs own tooltip implementation. | 6282 | Otherwise use Emacs own tooltip implementation. |
| 6288 | When using Gtk+ tooltips, the tooltip face is not used. */); | 6283 | When using Gtk+ tooltips, the tooltip face is not used. */); |
| 6289 | x_gtk_use_system_tooltips = 1; | 6284 | x_gtk_use_system_tooltips = true; |
| 6290 | 6285 | ||
| 6291 | /* Tell Emacs about this window system. */ | 6286 | /* Tell Emacs about this window system. */ |
| 6292 | Fprovide (Qx, Qnil); | 6287 | Fprovide (Qx, Qnil); |
| @@ -6317,7 +6312,7 @@ When using Gtk+ tooltips, the tooltip face is not used. */); | |||
| 6317 | char gtk_version[sizeof ".." + 3 * INT_STRLEN_BOUND (int)]; | 6312 | char gtk_version[sizeof ".." + 3 * INT_STRLEN_BOUND (int)]; |
| 6318 | int len = sprintf (gtk_version, "%d.%d.%d", | 6313 | int len = sprintf (gtk_version, "%d.%d.%d", |
| 6319 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | 6314 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
| 6320 | Vgtk_version_string = make_pure_string (gtk_version, len, len, 0); | 6315 | Vgtk_version_string = make_pure_string (gtk_version, len, len, false); |
| 6321 | } | 6316 | } |
| 6322 | #endif /* USE_GTK */ | 6317 | #endif /* USE_GTK */ |
| 6323 | 6318 | ||
diff --git a/src/xterm.h b/src/xterm.h index 123f31cda7b..e597227c81c 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -1067,8 +1067,8 @@ extern void x_clipboard_manager_save_frame (Lisp_Object); | |||
| 1067 | extern void x_clipboard_manager_save_all (void); | 1067 | extern void x_clipboard_manager_save_all (void); |
| 1068 | 1068 | ||
| 1069 | #ifdef USE_GTK | 1069 | #ifdef USE_GTK |
| 1070 | extern int xg_set_icon (struct frame *, Lisp_Object); | 1070 | extern bool xg_set_icon (struct frame *, Lisp_Object); |
| 1071 | extern int xg_set_icon_from_xpm_data (struct frame *, const char **); | 1071 | extern bool xg_set_icon_from_xpm_data (struct frame *, const char **); |
| 1072 | #endif /* USE_GTK */ | 1072 | #endif /* USE_GTK */ |
| 1073 | 1073 | ||
| 1074 | extern void xic_free_xfontset (struct frame *); | 1074 | extern void xic_free_xfontset (struct frame *); |
| @@ -1081,7 +1081,7 @@ extern bool x_defined_color (struct frame *, const char *, XColor *, bool); | |||
| 1081 | #ifdef HAVE_X_I18N | 1081 | #ifdef HAVE_X_I18N |
| 1082 | extern void free_frame_xic (struct frame *); | 1082 | extern void free_frame_xic (struct frame *); |
| 1083 | # if defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT | 1083 | # if defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT |
| 1084 | extern char * xic_create_fontsetname (const char *base_fontname, int motif); | 1084 | extern char *xic_create_fontsetname (const char *, bool); |
| 1085 | # endif | 1085 | # endif |
| 1086 | #endif | 1086 | #endif |
| 1087 | 1087 | ||