Permalink
Browse files

Merge pull request #1576 from joshf/master

Growl support for Windows
  • Loading branch information...
2 parents e8e1c75 + da59018 commit c09f6490afa291f807a3c57528fd5db39de3906e @c10ud c10ud committed Mar 14, 2013
Showing with 10 additions and 4 deletions.
  1. +10 −4 emesene/gui/common/GNTPNotification.py
@@ -18,23 +18,29 @@
import gntp.notifier
+import sys
+
import gui
from gui.base import Plus
NAME = 'GNTPNotification'
DESCRIPTION = 'Wrapper around GNTP for the notification system'
AUTHOR = 'joshf'
WEBSITE = 'www.github.com/joshf'
-VERSION = '1.0'
+VERSION = '1.1'
def GNTPNotification(title, text, picture_path=None, const=None,
callback=None, tooltip=None):
title = Plus.msnplus_strip(title)
- appicon = open(gui.theme.image_theme.logo).read()
- imagepath = picture_path.replace( "file:///", "/" )
- icon = open(imagepath).read()
+ if sys.platform == 'darwin':
+ appicon = open(gui.theme.image_theme.logo).read()
+ imagepath = picture_path.replace( "file:///", "/" )
+ icon = open(imagepath).read()
+ else:
+ appicon = gui.theme.image_theme.logo
+ icon = picture_path
growl = gntp.notifier.GrowlNotifier(
applicationName = "emesene",

0 comments on commit c09f649

Please sign in to comment.