diff options
| author | Jan Djärv | 2005-01-07 16:59:57 +0000 |
|---|---|---|
| committer | Jan Djärv | 2005-01-07 16:59:57 +0000 |
| commit | ff59904afeadf91b9b0c101d273a46e5571fba9f (patch) | |
| tree | 6a484bae92178df4e0749d617a3b03130d2c70eb /src/xselect.c | |
| parent | 1bc9c7ed8b140a10f1e263091882f41aa6615b1d (diff) | |
| download | emacs-ff59904afeadf91b9b0c101d273a46e5571fba9f.tar.gz emacs-ff59904afeadf91b9b0c101d273a46e5571fba9f.zip | |
* gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
(xg_tool_bar_callback, xg_tool_bar_help_callback)
(update_frame_tool_bar): Cast to EMACS_INT to avoid compiler
warning.
* xselect.c (x_get_foreign_selection, x_fill_property_data)
(Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
XFLOAT_DATA to get extract number from Lisp object.
Diffstat (limited to 'src/xselect.c')
| -rw-r--r-- | src/xselect.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xselect.c b/src/xselect.c index 38547ea6bbf..5dd63b9c735 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -1383,7 +1383,7 @@ x_get_foreign_selection (selection_symbol, target_type, time_stamp) | |||
| 1383 | else if (INTEGERP (time_stamp)) | 1383 | else if (INTEGERP (time_stamp)) |
| 1384 | requestor_time = (Time) XUINT (time_stamp); | 1384 | requestor_time = (Time) XUINT (time_stamp); |
| 1385 | else if (FLOATP (time_stamp)) | 1385 | else if (FLOATP (time_stamp)) |
| 1386 | requestor_time = (Time) XFLOAT (time_stamp); | 1386 | requestor_time = (Time) XFLOAT_DATA (time_stamp); |
| 1387 | else | 1387 | else |
| 1388 | error ("TIME_STAMP must be cons or number"); | 1388 | error ("TIME_STAMP must be cons or number"); |
| 1389 | } | 1389 | } |
| @@ -2468,7 +2468,7 @@ x_check_property_data (data) | |||
| 2468 | DPY is the display use to look up X atoms. | 2468 | DPY is the display use to look up X atoms. |
| 2469 | DATA is a Lisp list of values to be converted. | 2469 | DATA is a Lisp list of values to be converted. |
| 2470 | RET is the C array that contains the converted values. It is assumed | 2470 | RET is the C array that contains the converted values. It is assumed |
| 2471 | it is big enough to hol all values. | 2471 | it is big enough to hold all values. |
| 2472 | FORMAT is 8, 16 or 32 and gives the size in bits for each C value to | 2472 | FORMAT is 8, 16 or 32 and gives the size in bits for each C value to |
| 2473 | be stored in RET. */ | 2473 | be stored in RET. */ |
| 2474 | 2474 | ||
| @@ -2492,7 +2492,7 @@ x_fill_property_data (dpy, data, ret, format) | |||
| 2492 | if (INTEGERP (o)) | 2492 | if (INTEGERP (o)) |
| 2493 | val = (CARD32) XFASTINT (o); | 2493 | val = (CARD32) XFASTINT (o); |
| 2494 | else if (FLOATP (o)) | 2494 | else if (FLOATP (o)) |
| 2495 | val = (CARD32) XFLOAT (o); | 2495 | val = (CARD32) XFLOAT_DATA (o); |
| 2496 | else if (CONSP (o)) | 2496 | else if (CONSP (o)) |
| 2497 | val = (CARD32) cons_to_long (o); | 2497 | val = (CARD32) cons_to_long (o); |
| 2498 | else if (STRINGP (o)) | 2498 | else if (STRINGP (o)) |
| @@ -2597,7 +2597,7 @@ If the value is 0 or the atom is not known, return the empty string. */) | |||
| 2597 | if (INTEGERP (value)) | 2597 | if (INTEGERP (value)) |
| 2598 | atom = (Atom) XUINT (value); | 2598 | atom = (Atom) XUINT (value); |
| 2599 | else if (FLOATP (value)) | 2599 | else if (FLOATP (value)) |
| 2600 | atom = (Atom) XFLOAT (value); | 2600 | atom = (Atom) XFLOAT_DATA (value); |
| 2601 | else if (CONSP (value)) | 2601 | else if (CONSP (value)) |
| 2602 | atom = (Atom) cons_to_long (value); | 2602 | atom = (Atom) cons_to_long (value); |
| 2603 | else | 2603 | else |
| @@ -2729,7 +2729,7 @@ are ignored. */) | |||
| 2729 | else if (INTEGERP (dest)) | 2729 | else if (INTEGERP (dest)) |
| 2730 | wdest = (Window) XFASTINT (dest); | 2730 | wdest = (Window) XFASTINT (dest); |
| 2731 | else if (FLOATP (dest)) | 2731 | else if (FLOATP (dest)) |
| 2732 | wdest = (Window) XFLOAT (dest); | 2732 | wdest = (Window) XFLOAT_DATA (dest); |
| 2733 | else if (CONSP (dest)) | 2733 | else if (CONSP (dest)) |
| 2734 | { | 2734 | { |
| 2735 | if (! NUMBERP (XCAR (dest)) || ! NUMBERP (XCDR (dest))) | 2735 | if (! NUMBERP (XCAR (dest)) || ! NUMBERP (XCDR (dest))) |