New version of XChat-Notify

I finally got around to merging a patch sent by Bas van der Lei, so I can now release version 0.2 of xchat-notify. Hooray!

Not a lot of changes, I made a better choice of icon (it now uses the themed xchat icon), and Bas added a tooltip. The next stage is to make clicking on the icon show XChat. After that, I think it's finished.

NP: Fear Of Fours, Lamb

15:57 Tuesday, 26 Apr 2005 [#] [computers] (10 comments)

Posted by Robert McQueen at Tue Apr 26 19:22:17 2005:
One or two lessons from the Gaim tray icon... You should probably add a "destroy" event handler which will create a new tray icon widget if/when the tray icon is destroyed by the panel closing/crashing or whatever. Otherwise it will go away and not come back until you reload the plugin or such. If you want to know when the icon actually becomes visible, check for the "embedded" signal from GtkPlug.
Posted by francesco at Tue Apr 26 19:54:47 2005:
hi, something's not working for me (ubuntu hoary):

Notification area integration plugin loaded
Traceback (most recent call last):
  File "/home/fra/.xchat2/notify.py", line 37, in ?
  import gtk
  File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/_init_.py", line 38, in ?
  import gdk # this is created by the _gtk import
ImportError: No module named gdk
Error loading module /home/fra/.xchat2/notify.py

while the previous version worked as a charm..
Posted by Ross at Tue Apr 26 20:07:07 2005:
Francesco: this is odd, I'm using Hoary myself.  Try removing the 'import pygtk;pygtk.require("2.0")' line from notify.py and restarting xchat.
Posted by francesco at Tue Apr 26 20:18:15 2005:
mmh, i smell a bug in the xchat-python support: i got the previous error doing /unload of the 0.1 version and /load of the new one.
restarting xchat everything went fine (so far;)). thanks
Posted by francesco at Tue Apr 26 20:24:31 2005:
mmh, i smell a bug in the xchat-python support: i got the previous error doing /unload of the 0.1 version and /load of the new one.
restarting xchat everything went fine (so far;)). thanks
Posted by francesco at Tue Apr 26 20:25:21 2005:
oops, sorry for the double comment :)
Posted by daveg at Wed Apr 27 01:39:48 2005:
I'm getting a similiar problem on Hoary as well. I tried commenting out "import pygtk;pygtk.require("2.0")" but when I do I get:

Traceback (most recent call last):
  File "/home/gilliesd/.xchat2/notify.py", line 37, in ?
  import gtk
  File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/_init_.py", line 38, in ?
  import gdk # this is created by the _gtk import
ImportError: No module named gdk
Error loading module /home/gilliesd/.xchat2/notify.py
Posted by daveg at Wed Apr 27 01:44:13 2005:
I'm getting a similiar problem on Hoary as well. I tried commenting out "import pygtk;pygtk.require("2.0")" but when I do I get:

Traceback (most recent call last):
  File "/home/gilliesd/.xchat2/notify.py", line 37, in ?
  import gtk
  File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/_init_.py", line 38, in ?
  import gdk # this is created by the _gtk import
ImportError: No module named gdk
Error loading module /home/gilliesd/.xchat2/notify.py
Posted by daveg at Mon May 2 13:34:29 2005:
Looks like the version of the python plugin that comes with ubuntu 5.04 defaults to using python 2.3. Is there anyway to force it use python 2.4 (which is where the egg.trayicon is)?
Posted by Ross at Mon May 2 16:28:32 2005:
daveg: None of my Hoary boxes have Python 2.3 installed.  If that is the problem, I'd file a bug  with Ubuntu and remove py2.3 if you can.

Name:


E-mail:


URL:


Add 8 and 1 (required):


Comment: