diff options
Diffstat (limited to 'src/osx/growler.py')
-rw-r--r-- | src/osx/growler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osx/growler.py b/src/osx/growler.py index 0b39a66f6..62573d5a3 100644 --- a/src/osx/growler.py +++ b/src/osx/growler.py @@ -23,7 +23,7 @@ growler = None def init(): global growler, notifications - icon = file(os.path.join(gajim.DATA_DIR, "pixmaps", "gajim.icns"), "r") + icon = open(os.path.join(gajim.DATA_DIR, "pixmaps", "gajim.icns"), "r") growler = GrowlNotifier(applicationName = "Gajim", notifications = notifications, applicationIcon = icon.read(), @@ -46,7 +46,7 @@ def notify(event_type, jid, account, msg_type, path_to_image, title, text): path_to_image = os.path.abspath( os.path.join(gajim.DATA_DIR, 'pixmaps', 'events', 'chat_msg_recv.png')) # img to display - icon = file(path_to_image, "r") + icon = open(path_to_image, "r") context = [account, jid, msg_type] growler.notify(event_type, title, text, icon.read(), False, None, context) |