1
# Copyright (C) 2009 Abhishek Mukherjee <abhishek.mukher.g@gmail.com>
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 1, or (at your option)
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
from xlgui.prefs import widgets
20
from xl.nls import gettext as _
23
basedir = os.path.dirname(os.path.realpath(__file__))
24
glade = os.path.join(basedir, "notifyprefs_pane.glade")
27
class ResizeCovers(widgets.CheckPrefsItem):
29
name = 'plugin/notify/resize'
32
class AttachToTray(widgets.CheckPrefsItem):
34
name = 'plugin/notify/attach_tray'
37
class BodyArtistAlbum(widgets.TextViewPrefsItem):
38
default = _("by %(artist)s\nfrom <i>%(album)s</i>")
39
name = 'plugin/notify/body_artistalbum'
42
class BodyArtist(widgets.TextViewPrefsItem):
43
default = _("by %(artist)s")
44
name = 'plugin/notify/body_artist'
47
class BodyAlbum(widgets.TextViewPrefsItem):
48
default = _("from %(album)s")
49
name = 'plugin/notify/body_album'
52
class Summary(widgets.TextViewPrefsItem):
53
default = _("%(title)s")
54
name = 'plugin/notify/summary'