Author: asterix Date: 2008-12-19 19:47:28 +0100 (Fri, 19 Dec 2008) New Revision: 10883
Modified: branches/gajim_0.12/src/notify.py Log: notification-daemon doesn't seem to like empty text string.
Modified: branches/gajim_0.12/src/notify.py =================================================================== --- branches/gajim_0.12/src/notify.py 2008-12-19 18:22:27 UTC (rev 10882) +++ branches/gajim_0.12/src/notify.py 2008-12-19 18:47:28 UTC (rev 10883) @@ -540,12 +540,17 @@ if version >= [0, 3, 2]: hints['urgency'] = dbus.Byte(0) # Low Urgency hints['category'] = dbus.String(ntype) + # it seems notification-daemon doesn't like empty text + if self.text: + text = self.text + else: + text = ' ' self.notif.Notify( dbus.String(_('Gajim')), dbus.UInt32(0), # this notification does not replace other dbus.String(self.path_to_image), dbus.String(self.title), - dbus.String(self.text), + dbus.String(text), ( dbus.String('default'), dbus.String(self.event_type) ), hints, dbus.UInt32(timeout*1000),