Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Growl support for Windows #1576

Merged
merged 1 commit into from Mar 14, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 10 additions & 4 deletions emesene/gui/common/GNTPNotification.py
Expand Up @@ -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",
Expand Down