diff options
| author | Lars Ingebrigtsen | 2022-04-30 17:38:34 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-30 17:38:34 +0200 |
| commit | 655d2319bc50ee09d4acaf9ce90809f9476d8674 (patch) | |
| tree | 3a4dd2fa72435c0167ee8518a220335b56fd3e62 /src/pgtkfns.c | |
| parent | 86b6a69f8614663172c64a3f51ffce39526e7ca9 (diff) | |
| download | emacs-655d2319bc50ee09d4acaf9ce90809f9476d8674.tar.gz emacs-655d2319bc50ee09d4acaf9ce90809f9476d8674.zip | |
Use x-show-tooltip-timeout in all the implementations
* src/haikufns.c (Fx_show_tip): Use the timeout variable.
* src/pgtkfns.c (Fx_show_tip): Ditto.
* src/w32fns.c (Fx_show_tip): Ditto.
* src/xfns.c (Fx_show_tip): Doc fix.
Diffstat (limited to 'src/pgtkfns.c')
| -rw-r--r-- | src/pgtkfns.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c index d1a72804cfe..a0fcf70f31b 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c | |||
| @@ -3092,7 +3092,8 @@ PARMS is an optional list of frame parameters which can be used to | |||
| 3092 | change the tooltip's appearance. | 3092 | change the tooltip's appearance. |
| 3093 | 3093 | ||
| 3094 | Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil | 3094 | Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil |
| 3095 | means use the default timeout of 5 seconds. | 3095 | means use the default timeout from the `x-show-tooltip-timeout' |
| 3096 | variable. | ||
| 3096 | 3097 | ||
| 3097 | If the list of frame parameters PARMS contains a `left' parameter, | 3098 | If the list of frame parameters PARMS contains a `left' parameter, |
| 3098 | display the tooltip at that x-position. If the list of frame parameters | 3099 | display the tooltip at that x-position. If the list of frame parameters |
| @@ -3138,9 +3139,8 @@ Text larger than the specified size is clipped. */) | |||
| 3138 | return unbind_to (count, Qnil); | 3139 | return unbind_to (count, Qnil); |
| 3139 | 3140 | ||
| 3140 | if (NILP (timeout)) | 3141 | if (NILP (timeout)) |
| 3141 | timeout = make_fixnum (5); | 3142 | timeout = Vx_show_tooltip_timeout; |
| 3142 | else | 3143 | CHECK_FIXNAT (timeout); |
| 3143 | CHECK_FIXNAT (timeout); | ||
| 3144 | 3144 | ||
| 3145 | if (NILP (dx)) | 3145 | if (NILP (dx)) |
| 3146 | dx = make_fixnum (5); | 3146 | dx = make_fixnum (5); |