Make sure args are always str
This commit is contained in:
parent
418459b634
commit
5b1f8bcc48
|
@ -89,7 +89,7 @@ class Notification:
|
||||||
def _nec_notification(self, obj):
|
def _nec_notification(self, obj):
|
||||||
if obj.do_popup:
|
if obj.do_popup:
|
||||||
icon_name = self._get_icon_name(obj)
|
icon_name = self._get_icon_name(obj)
|
||||||
self.popup(obj.popup_event_type, obj.jid, obj.conn.name,
|
self.popup(obj.popup_event_type, str(obj.jid), obj.conn.name,
|
||||||
obj.popup_msg_type, icon_name=icon_name,
|
obj.popup_msg_type, icon_name=icon_name,
|
||||||
title=obj.popup_title, text=obj.popup_text,
|
title=obj.popup_title, text=obj.popup_text,
|
||||||
timeout=obj.popup_timeout)
|
timeout=obj.popup_timeout)
|
||||||
|
@ -219,7 +219,7 @@ class Notification:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _make_id(*args):
|
def _make_id(*args):
|
||||||
return ','.join(args)
|
return ','.join(map(str, args))
|
||||||
|
|
||||||
|
|
||||||
class PopupNotification(Gtk.Window):
|
class PopupNotification(Gtk.Window):
|
||||||
|
|
Loading…
Reference in New Issue