Skip to content

Commit

Permalink
Windows: Encoding issue in notifications (bug 1744)
Browse files Browse the repository at this point in the history
See also: #70
  • Loading branch information
smunkel authored and thp committed Feb 17, 2013
1 parent d7020a8 commit e2253a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions share/gpodder/extensions/notification-win32.py 100644 → 100755
Expand Up @@ -80,16 +80,16 @@ def remove(self):
def set_tooltip(self, tooltip):
""" Sets the tray icon tooltip. """
self._flags = self._flags | win32gui.NIF_TIP
self._tip = tooltip
self._tip = tooltip.encode("mbcs")
win32gui.Shell_NotifyIcon(win32gui.NIM_MODIFY,
self.notify_config_data)

def show_balloon(self, title, text, timeout=10,
icon=win32gui.NIIF_NONE):
""" Shows a balloon tooltip from the tray icon. """
self._flags = self._flags | win32gui.NIF_INFO
self._infotitle = title
self._info = text
self._infotitle = title.encode("mbcs")
self._info = text.encode("mbcs")
self._timeout = timeout * 1000
self._infoflags = icon
win32gui.Shell_NotifyIcon(win32gui.NIM_MODIFY,
Expand Down

0 comments on commit e2253a9

Please sign in to comment.