From d8db2929f75d4f7c2a5f053f2ad60194073ecced Mon Sep 17 00:00:00 2001 From: "David Grant (dgrant)" Date: Tue, 26 Sep 2006 07:07:59 +0000 Subject: net-mail/gmail-notify: Added ubuntu patches (without which gmail-notify was somewhat broken), added patch to use gnome-python-extras instead, and clean up ebuild svn path=/sunrise/; revision=1343 --- .../files/gmail-notify-ubuntu-patches.patch | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 net-mail/gmail-notify/files/gmail-notify-ubuntu-patches.patch (limited to 'net-mail/gmail-notify/files/gmail-notify-ubuntu-patches.patch') diff --git a/net-mail/gmail-notify/files/gmail-notify-ubuntu-patches.patch b/net-mail/gmail-notify/files/gmail-notify-ubuntu-patches.patch new file mode 100644 index 000000000..e0396ea0d --- /dev/null +++ b/net-mail/gmail-notify/files/gmail-notify-ubuntu-patches.patch @@ -0,0 +1,50 @@ +diff -u gmail-notify.orig/GmailConfig.py gmail-notify/GmailConfig.py +--- gmail-notify.orig/GmailConfig.py 2006-09-25 23:23:50.000000000 -0700 ++++ gmail-notify/GmailConfig.py 2006-09-25 23:36:22.000000000 -0700 +@@ -9,8 +9,8 @@ + import xmllangs + import sys + +-LANGSXML_PATH=sys.path[0]+"/langs.xml" +-ICON_PATH=sys.path[0]+"/gmail-notify-icon.png" ++LANGSXML_PATH="/usr/lib/pythonGENTOO_PYVER/site-packages/gmail-notify/langs.xml" ++ICON_PATH="/usr/lib/pythonGENTOO_PYVER/site-packages/gmail-notify/gmail-notify-icon.png" + + class GmailConfigWindow: + +@@ -131,12 +131,12 @@ + # Attach combobox and label + table.attach( self.lbl_langs, 0, 1, 8, 9 ) + self.lbl_langs.show() +- table.attach( self.cbo_langs, 1, 2, 8, 9, ypadding=5 ) ++ table.attach( self.cbo_langs, 1, 2, 8, 9, xpadding=5, ypadding=5 ) + self.cbo_langs.show() + + # Add 'Close' button + button = gtk.Button( stock=gtk.STOCK_OK ) +- table.attach( button, 0, 2, 10, 11, ypadding=2 ) ++ table.attach( button, 0, 2, 10, 11, xpadding=2, ypadding=2 ) + button.connect( "clicked", self.onOkay ) + button.show() + +diff -u gmail-notify.orig/notifier.py gmail-notify/notifier.py +--- gmail-notify.orig/notifier.py 2006-09-25 23:23:50.000000000 -0700 ++++ gmail-notify/notifier.py 2006-09-25 23:35:50.000000000 -0700 +@@ -8,6 +8,7 @@ + import os + import pytrayicon + import sys ++sys.path.insert (0, "/usr/lib/pythonGENTOO_PYVER/site-packages/gmail-notify/") + import warnings + import ConfigParser + import xmllangs +@@ -18,6 +19,9 @@ + BKG_PATH=sys.path[0]+"/background.jpg" + ICON_PATH=sys.path[0]+"/icon.png" + ICON2_PATH=sys.path[0]+"/icon2.png" ++BKG_PATH="/usr/lib/pythonGENTOO_PYVER/site-packages/gmail-notify/background.jpg" ++ICON_PATH="/usr/lib/pythonGENTOO_PYVER/site-packages/gmail-notify/icon.png" ++ICON2_PATH="/usr/lib/pythonGENTOO_PYVER/site-packages/gmail-notify/icon2.png" + + def removetags(text): + raw=text.split("") -- cgit v1.2.3-65-gdbad