comparison browser_side/notification.py @ 424:4ba4b099d266

browser side: notifications: fixed dialog message in Chromium workaround
author Goffi <goffi@goffi.org>
date Wed, 26 Mar 2014 17:53:02 +0100
parents f9130176bc8d
children d52f529a6d42
comparison
equal deleted inserted replaced
423:f9130176bc8d 424:4ba4b099d266
65 print "Chromium version: %d" % (version,) 65 print "Chromium version: %d" % (version,)
66 if version < 22: 66 if version < 22:
67 print "Notification use the old prefixed version or are unmanaged" 67 print "Notification use the old prefixed version or are unmanaged"
68 return 68 return
69 if version < 32: 69 if version < 32:
70 dialog.InfoDialog(_("Notifications activation for Chromium"), _('You need to activate notifications manually for your Chromium version.\nTo activate notifications, click on the favicon on the left of the address bar')).show() 70 dialog.InfoDialog(_("Notifications activation for Chromium"), _('You need to activate notifications manually for your Chromium version.<br/>To activate notifications, click on the favicon on the left of the address bar')).show()
71 return 71 return
72 72
73 print "==> Installing Chromium notifications request workaround <==" 73 print "==> Installing Chromium notifications request workaround <=="
74 self._old_click = wnd().onclick 74 self._old_click = wnd().onclick
75 wnd().onclick = self._chromiumWorkaround 75 wnd().onclick = self._chromiumWorkaround