diff options
author | Eli Zaretskii <eliz@gnu.org> | 2015-11-13 15:33:29 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2015-11-13 22:01:26 +0200 |
commit | 34530571fcef401629ac674f7814553b15ad53ed (patch) | |
tree | f084641bf82e84152eca38f50ba0a31fe13f7b86 | |
parent | 93e7db13d60ea04b3b32cdd4bf0de7a4cda25021 (diff) |
Remove support for ':timeout' from w32 tray notifications
* src/w32fns.c (Fw32_notification_notify): Delete the code that
supports ':timeout'.
(syms_of_w32fns): Don't DEFSYM ':timeout'. This avoids clashes
with dbusbind.c when D-Bus is compiled in.
* doc/lispref/os.texi (Desktop Notifications): Don't mention
':timeout'.
Backport.
-rw-r--r-- | doc/lispref/os.texi | 6 | ||||
-rw-r--r-- | src/w32fns.c | 15 |
2 files changed, 0 insertions, 21 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 53aa0e195a..f3c4e29cca 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi @@ -2603,12 +2603,6 @@ Notification severity level, one of @code{info}, @code{warning}, or left of the notification title, but only if the @code{:title} parameter (see below) is also specified and is a string. -@item :timeout @var{timeout} -@var{timeout} is the time in seconds after which the notification -disappears. The value can be integer or floating-point. This is -ignored on Vista and later systems, where the duration is fixed at 9 -sec and can only be customized via system-wide Accessibility settings. - @item :title @var{title} The title of the notification. If @var{title} is a string, it is displayed in a larger font immediately above the body text. The title diff --git a/src/w32fns.c b/src/w32fns.c index f2d286d636..f3391cb98f 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -9111,13 +9111,6 @@ The following parameters are supported: parameter (see below) is also specified and is a string. -:timeout TIMEOUT -- TIMEOUT is the time in seconds after which the - notification disappears. The value can be integer - or floating-point. This is ignored on Vista and - later systems, where the duration is fixed at 9 sec - and can only be customized via system-wide - Accessibility settings. - :title TITLE -- The title of the notification. If TITLE is a string, it is displayed in a larger font immediately above the body text. The title text can be up to 63 @@ -9179,13 +9172,6 @@ usage: (w32-notification-notify &rest PARAMS) */) else severity = Ni_Info; - /* Timeout. */ - lres = Fplist_get (arg_plist, QCtimeout); - if (NUMBERP (lres)) - timeout = 1000 * (INTEGERP (lres) ? XINT (lres) : XFLOAT_DATA (lres)); - else - timeout = 0; - /* Title. */ lres = Fplist_get (arg_plist, QCtitle); if (STRINGP (lres)) @@ -9300,7 +9286,6 @@ syms_of_w32fns (void) DEFSYM (QClevel, ":level"); DEFSYM (Qinfo, "info"); DEFSYM (Qwarning, "warning"); - DEFSYM (QCtimeout, ":timeout"); DEFSYM (QCtitle, ":title"); DEFSYM (QCbody, ":body"); #endif |