Merge remote-tracking branch 'sourceforge/master'
[emacs-jabber.git] / jabber-osd.el
blobffcee86b8127a2c4cb0b8d3746b05939b66f931a
1 ;;; jabber-osd.el --- OSD support for jabber.el
3 ;; Copyright (C) 2008 - Terechkov Evgenii - evg@altlinux.org
5 ;; This file is a part of jabber.el.
7 ;; This program is free software; you can redistribute it and/or modify
8 ;; it under the terms of the GNU General Public License as published by
9 ;; the Free Software Foundation; either version 2, or (at your option)
10 ;; any later version.
12 ;; This program is distributed in the hope that it will be useful,
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;; GNU General Public License for more details.
17 ;; You should have received a copy of the GNU General Public License
18 ;; along with GNU Emacs; see the file COPYING. If not, write to
19 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 ;; Boston, MA 02111-1307, USA.
22 (eval-when-compile (require 'jabber-alert))
24 (condition-case e
25 (progn
26 ;; Most people don't have osd.el, so this will often fail
27 (require 'osd)
28 (define-jabber-alert osd "Display a message in osd"
29 (lambda (text &optional title) (osd-show-string (or title text))))
30 (define-personal-jabber-alert jabber-muc-osd))
31 (error nil))
33 (provide 'jabber-osd)
35 ;; arch-tag: 3eb8d55a-dd86-11dc-b2c6-000a95c2fcd0