Get rid of the new message icon entirely

This commit is contained in:
Marco Pesenti Gritti
2006-05-22 15:25:10 -04:00
parent 30f3c73dcb
commit 0c2940d56e
2 changed files with 20 additions and 22 deletions
+13
View File
@@ -1,6 +1,10 @@
import pwd
import os
import pygtk
pygtk.require('2.0')
import gtk
from Service import Service
from sugar import env
@@ -25,6 +29,15 @@ class Buddy(object):
self._address = service.get_address()
self._icon = None
def get_icon_pixbuf(self):
if self._icon:
pbl = gtk.gdk.PixbufLoader()
pbl.write(self._icon)
pbl.close()
return pbl.get_pixbuf()
else:
return None
def get_icon(self):
"""Return the buddies icon, if any."""
return self._icon