* lisp/COMPILE (riece-icons): Add riece-notify-icon.png.
* lisp/Makefile.am (EXTRA_DIST): Ditto.
* lisp/riece-desktop-notify.el (riece-desktop-notify-icon): New.
(riece-desktop-notify-gnu/linux-args): Add option to display icon.
(riece-desktop-notify-keyword-notify-function): Substitute the 'icon
symbol with riece-desktop-notify-icon.
"riece-command-configure-windows.xpm"
"riece-command-list-addons.xpm"
"riece-command-join.xpm"
"riece-command-configure-windows.xpm"
"riece-command-list-addons.xpm"
"riece-command-join.xpm"
- "riece-command-part.xpm"))
+ "riece-command-part.xpm"
+ "riece-notify-icon.png"))
(defvar riece-scripts
'("server.rb"
(defvar riece-scripts
'("server.rb"
url-riece.el \
riece-command-previous-channel.xpm riece-command-next-channel.xpm \
riece-command-configure-windows.xpm riece-command-list-addons.xpm \
url-riece.el \
riece-command-previous-channel.xpm riece-command-next-channel.xpm \
riece-command-configure-windows.xpm riece-command-list-addons.xpm \
- riece-command-join.xpm riece-command-part.xpm \
+ riece-command-join.xpm riece-command-part.xpm riece-notify-icon.png \
server.rb aproxy.rb
CLEANFILES = auto-autoloads.el custom-load.el *.elc lunit-report.xml
server.rb aproxy.rb
CLEANFILES = auto-autoloads.el custom-load.el *.elc lunit-report.xml
:type 'coding-system
:group 'riece-desktop-notify)
:type 'coding-system
:group 'riece-desktop-notify)
+(defcustom riece-desktop-notify-icon
+ (expand-file-name "riece-notify-icon.png" riece-data-directory)
+ "*Icon to display in desktop notifications."
+ :type '(file :must-match t)
+ :group 'riece-desktop-notify)
+
(defcustom riece-desktop-notify-type
(if (eq system-type 'linux) 'gnu/linux system-type)
"*The type to notify desktop."
(defcustom riece-desktop-notify-type
(if (eq system-type 'linux) 'gnu/linux system-type)
"*The type to notify desktop."
:type 'file
:group 'riece-desktop-notify)
:type 'file
:group 'riece-desktop-notify)
-(defcustom riece-desktop-notify-gnu/linux-args '("-u" "low" title message)
+(defcustom riece-desktop-notify-gnu/linux-args
+ '("-i" icon "-u" "low" title message)
"*The Arguments to notify for GNU/Linux."
:type '(repeat (radio (string :tag "Argument")
(const :tag "Title" title)
"*The Arguments to notify for GNU/Linux."
:type '(repeat (radio (string :tag "Argument")
(const :tag "Title" title)
- (const :tag "Message" message)))
+ (const :tag "Message" message)
+ (const :tag "Icon" icon)))
:group 'riece-desktop-notify)
;; for Windows
:group 'riece-desktop-notify)
;; for Windows
(cons 'message
(encode-coding-string
message
(cons 'message
(encode-coding-string
message
- riece-desktop-notify-coding-system)))))
+ riece-desktop-notify-coding-system))
+ (cons 'icon
+ riece-desktop-notify-icon))))
(file-error nil))))))))
(setq riece-desktop-notify-last-message message))
(file-error nil))))))))
(setq riece-desktop-notify-last-message message))