Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Growl support for windows too!

  • Loading branch information...
commit da590180070c1281330ea38486b8088e6eea22a2 1 parent e8e1c75
@joshf joshf authored
Showing with 10 additions and 4 deletions.
  1. +10 −4 emesene/gui/common/GNTPNotification.py
View
14 emesene/gui/common/GNTPNotification.py
@@ -18,6 +18,8 @@
import gntp.notifier
+import sys
+
import gui
from gui.base import Plus
@@ -25,16 +27,20 @@
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",
Please sign in to comment.
Something went wrong with that request. Please try again.