[Dicson] improve KDE4 notifications. Fixes #5940

This commit is contained in:
Yann Leboulanger 2010-09-30 22:36:55 +02:00
parent 27b3621680
commit 3b04e6cc4b
1 changed files with 8 additions and 0 deletions

View File

@ -583,6 +583,14 @@ class DesktopNotification:
text = self.text
else:
text = ' '
if os.environ.get('KDE_FULL_SESSION') == 'true':
self.path_to_image = os.path.abspath(self.path_to_image)
text = '<table style=\'padding: 3px\'><tr><td>' \
'<img src=\"%s\"></td><td width=20> </td>' \
'<td>%st4i</td></tr></table>' % (self.path_to_image,
text)
self.path_to_image = os.path.abspath(
gtkgui_helpers.get_icon_path('gajim', 48))
actions = ()
if 'actions' in self.capabilities:
actions = (dbus.String('default'), dbus.String(