Commit b978141d authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

* net/notifications.el (dbus-register-signal): Declare function.

(notifications-notify): Fix typos and reflow docstring.
parent 5f4f2ae4
2010-06-09 Juanma Barranquero <lekktu@gmail.com>
* net/notifications.el (dbus-register-signal): Declare function.
(notifications-notify): Fix typos and reflow docstring.
2010-06-09 Dan Nicolaescu <dann@ics.uci.edu> 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
   
Improve VC create/retrieve tag/branch. Improve VC create/retrieve tag/branch.
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
;; disabled with configuration option "--without-dbus". Declare used ;; disabled with configuration option "--without-dbus". Declare used
;; subroutines and variables of `dbus' therefore. ;; subroutines and variables of `dbus' therefore.
(declare-function dbus-call-method "dbusbind.c") (declare-function dbus-call-method "dbusbind.c")
(declare-function dbus-register-signal "dbusbind.c")
(require 'dbus) (require 'dbus)
...@@ -127,9 +128,10 @@ Various PARAMS can be set: ...@@ -127,9 +128,10 @@ Various PARAMS can be set:
:actions A list of actions in the form: :actions A list of actions in the form:
(KEY TITLE KEY TITLE ...) (KEY TITLE KEY TITLE ...)
where KEY and TITLE are both strings. where KEY and TITLE are both strings.
The default action (usually invoked by clicking the notification) The default action (usually invoked by clicking the
should have a key named \"default\". The name can be anything, notification) should have a key named \"default\".
though implementations are free not to display it. The name can be anything, though implementations are free
not to display it.
:timeout The timeout time in milliseconds since the display :timeout The timeout time in milliseconds since the display
of the notification at which the notification should of the notification at which the notification should
automatically close. automatically close.
...@@ -150,14 +152,14 @@ Various PARAMS can be set: ...@@ -150,14 +152,14 @@ Various PARAMS can be set:
:suppress-sound Causes the server to suppress playing any sounds, if it has :suppress-sound Causes the server to suppress playing any sounds, if it has
that ability. that ability.
:x Specifies the X location on the screen that the notification :x Specifies the X location on the screen that the notification
should point to. The \"y\" hint must also be specified. should point to. The \"y\" hint must also be specified.
:y Specifies the Y location on the screen that the notification :y Specifies the Y location on the screen that the notification
should point to. The \"x\" hint must also be specified. should point to. The \"x\" hint must also be specified.
:on-action Function to call when an action is invoked. The key of the :on-action Function to call when an action is invoked. The key of the
action is passed as argument to the function. action is passed as argument to the function.
:on-close Function to call when the notification has been closed :on-close Function to call when the notification has been closed
by timeout or by the user. by timeout or by the user.
The function receive the closing reason as argument: The function receives the closing reason as argument:
- `expired' if the notification has expired - `expired' if the notification has expired
- `dismissed' if the notification was dismissed by the user - `dismissed' if the notification was dismissed by the user
- `close-notification' if the notification was closed - `close-notification' if the notification was closed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment