diff options
Diffstat (limited to 'src/xfns.c')
| -rw-r--r-- | src/xfns.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/xfns.c b/src/xfns.c index b962e1b6c1a..f8ac7c3f760 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -670,7 +670,7 @@ x_decode_color (FRAME_PTR f, Lisp_Object color_name, int mono_color) | |||
| 670 | 670 | ||
| 671 | /* x_defined_color is responsible for coping with failures | 671 | /* x_defined_color is responsible for coping with failures |
| 672 | by looking for a near-miss. */ | 672 | by looking for a near-miss. */ |
| 673 | if (x_defined_color (f, SDATA (color_name), &cdef, 1)) | 673 | if (x_defined_color (f, SSDATA (color_name), &cdef, 1)) |
| 674 | return cdef.pixel; | 674 | return cdef.pixel; |
| 675 | 675 | ||
| 676 | signal_error ("Undefined color", color_name); | 676 | signal_error ("Undefined color", color_name); |
| @@ -1603,7 +1603,7 @@ x_set_name_internal (FRAME_PTR f, Lisp_Object name) | |||
| 1603 | FRAME_X_DISPLAY_INFO (f)->Xatom_net_wm_name, | 1603 | FRAME_X_DISPLAY_INFO (f)->Xatom_net_wm_name, |
| 1604 | FRAME_X_DISPLAY_INFO (f)->Xatom_UTF8_STRING, | 1604 | FRAME_X_DISPLAY_INFO (f)->Xatom_UTF8_STRING, |
| 1605 | 8, PropModeReplace, | 1605 | 8, PropModeReplace, |
| 1606 | SSDATA (encoded_name), | 1606 | SDATA (encoded_name), |
| 1607 | SBYTES (encoded_name)); | 1607 | SBYTES (encoded_name)); |
| 1608 | #endif /* not USE_GTK */ | 1608 | #endif /* not USE_GTK */ |
| 1609 | 1609 | ||
| @@ -1612,7 +1612,7 @@ x_set_name_internal (FRAME_PTR f, Lisp_Object name) | |||
| 1612 | FRAME_X_DISPLAY_INFO (f)->Xatom_net_wm_icon_name, | 1612 | FRAME_X_DISPLAY_INFO (f)->Xatom_net_wm_icon_name, |
| 1613 | FRAME_X_DISPLAY_INFO (f)->Xatom_UTF8_STRING, | 1613 | FRAME_X_DISPLAY_INFO (f)->Xatom_UTF8_STRING, |
| 1614 | 8, PropModeReplace, | 1614 | 8, PropModeReplace, |
| 1615 | SSDATA (encoded_icon_name), | 1615 | SDATA (encoded_icon_name), |
| 1616 | SBYTES (encoded_icon_name)); | 1616 | SBYTES (encoded_icon_name)); |
| 1617 | 1617 | ||
| 1618 | if (do_free_icon_value) | 1618 | if (do_free_icon_value) |
| @@ -1658,7 +1658,7 @@ x_set_name (struct frame *f, Lisp_Object name, int explicit) | |||
| 1658 | /* Check for no change needed in this very common case | 1658 | /* Check for no change needed in this very common case |
| 1659 | before we do any consing. */ | 1659 | before we do any consing. */ |
| 1660 | if (!strcmp (FRAME_X_DISPLAY_INFO (f)->x_id_name, | 1660 | if (!strcmp (FRAME_X_DISPLAY_INFO (f)->x_id_name, |
| 1661 | SDATA (f->name))) | 1661 | SSDATA (f->name))) |
| 1662 | return; | 1662 | return; |
| 1663 | name = build_string (FRAME_X_DISPLAY_INFO (f)->x_id_name); | 1663 | name = build_string (FRAME_X_DISPLAY_INFO (f)->x_id_name); |
| 1664 | } | 1664 | } |
| @@ -3549,7 +3549,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, | |||
| 3549 | 3549 | ||
| 3550 | CHECK_STRING (color); | 3550 | CHECK_STRING (color); |
| 3551 | 3551 | ||
| 3552 | if (x_defined_color (f, SDATA (color), &foo, 0)) | 3552 | if (x_defined_color (f, SSDATA (color), &foo, 0)) |
| 3553 | return Qt; | 3553 | return Qt; |
| 3554 | else | 3554 | else |
| 3555 | return Qnil; | 3555 | return Qnil; |
| @@ -3564,7 +3564,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, | |||
| 3564 | 3564 | ||
| 3565 | CHECK_STRING (color); | 3565 | CHECK_STRING (color); |
| 3566 | 3566 | ||
| 3567 | if (x_defined_color (f, SDATA (color), &foo, 0)) | 3567 | if (x_defined_color (f, SSDATA (color), &foo, 0)) |
| 3568 | return list3 (make_number (foo.red), | 3568 | return list3 (make_number (foo.red), |
| 3569 | make_number (foo.green), | 3569 | make_number (foo.green), |
| 3570 | make_number (foo.blue)); | 3570 | make_number (foo.blue)); |
| @@ -3965,7 +3965,7 @@ select_visual (struct x_display_info *dpyinfo) | |||
| 3965 | int i, class = -1; | 3965 | int i, class = -1; |
| 3966 | XVisualInfo vinfo; | 3966 | XVisualInfo vinfo; |
| 3967 | 3967 | ||
| 3968 | strcpy (s, SDATA (value)); | 3968 | strcpy (s, SSDATA (value)); |
| 3969 | dash = strchr (s, '-'); | 3969 | dash = strchr (s, '-'); |
| 3970 | if (dash) | 3970 | if (dash) |
| 3971 | { | 3971 | { |
| @@ -4244,11 +4244,11 @@ FRAME. Default is to change on the edit X window. */) | |||
| 4244 | } | 4244 | } |
| 4245 | 4245 | ||
| 4246 | BLOCK_INPUT; | 4246 | BLOCK_INPUT; |
| 4247 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), SDATA (prop), False); | 4247 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), SSDATA (prop), False); |
| 4248 | if (! NILP (type)) | 4248 | if (! NILP (type)) |
| 4249 | { | 4249 | { |
| 4250 | CHECK_STRING (type); | 4250 | CHECK_STRING (type); |
| 4251 | target_type = XInternAtom (FRAME_X_DISPLAY (f), SDATA (type), False); | 4251 | target_type = XInternAtom (FRAME_X_DISPLAY (f), SSDATA (type), False); |
| 4252 | } | 4252 | } |
| 4253 | 4253 | ||
| 4254 | if (! NILP (outer_p)) w = FRAME_OUTER_WINDOW (f); | 4254 | if (! NILP (outer_p)) w = FRAME_OUTER_WINDOW (f); |
| @@ -4279,7 +4279,7 @@ FRAME nil or omitted means use the selected frame. Value is PROP. */) | |||
| 4279 | 4279 | ||
| 4280 | CHECK_STRING (prop); | 4280 | CHECK_STRING (prop); |
| 4281 | BLOCK_INPUT; | 4281 | BLOCK_INPUT; |
| 4282 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), SDATA (prop), False); | 4282 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), SSDATA (prop), False); |
| 4283 | XDeleteProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), prop_atom); | 4283 | XDeleteProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), prop_atom); |
| 4284 | 4284 | ||
| 4285 | /* Make sure the property is removed when we return. */ | 4285 | /* Make sure the property is removed when we return. */ |
| @@ -4343,13 +4343,13 @@ no value of TYPE (always string in the MS Windows case). */) | |||
| 4343 | BLOCK_INPUT; | 4343 | BLOCK_INPUT; |
| 4344 | if (STRINGP (type)) | 4344 | if (STRINGP (type)) |
| 4345 | { | 4345 | { |
| 4346 | if (strcmp ("AnyPropertyType", SDATA (type)) == 0) | 4346 | if (strcmp ("AnyPropertyType", SSDATA (type)) == 0) |
| 4347 | target_type = AnyPropertyType; | 4347 | target_type = AnyPropertyType; |
| 4348 | else | 4348 | else |
| 4349 | target_type = XInternAtom (FRAME_X_DISPLAY (f), SDATA (type), False); | 4349 | target_type = XInternAtom (FRAME_X_DISPLAY (f), SSDATA (type), False); |
| 4350 | } | 4350 | } |
| 4351 | 4351 | ||
| 4352 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), SDATA (prop), False); | 4352 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), SSDATA (prop), False); |
| 4353 | rc = XGetWindowProperty (FRAME_X_DISPLAY (f), target_window, | 4353 | rc = XGetWindowProperty (FRAME_X_DISPLAY (f), target_window, |
| 4354 | prop_atom, 0, 0, False, target_type, | 4354 | prop_atom, 0, 0, False, target_type, |
| 4355 | &actual_type, &actual_format, &actual_size, | 4355 | &actual_type, &actual_format, &actual_size, |