Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@localhost.localdomain>2006-08-25 20:09:54 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2006-08-25 20:09:54 (GMT)
commit93a97660b4175731fabdf0f27bd5874725411853 (patch)
tree70f614a3e2f9eee8f2e5754227aa094f3c803666 /shell
parentef47f6e4c5baedf9c7f6aa4e44e5564da431d071 (diff)
Remove obsolete gtk import and code and save 1.7MiB writeable. Whee\!
Diffstat (limited to 'shell')
-rw-r--r--shell/PresenceService/Buddy.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/shell/PresenceService/Buddy.py b/shell/PresenceService/Buddy.py
index 5f3f0e8..cca0c88 100644
--- a/shell/PresenceService/Buddy.py
+++ b/shell/PresenceService/Buddy.py
@@ -1,7 +1,6 @@
import base64
import logging
-import gtk
import gobject
import dbus, dbus.service
@@ -122,13 +121,13 @@ class Buddy(object):
if result_status == network.RESULT_SUCCESS:
if icon and len(icon):
icon = base64.b64decode(icon)
- print "Buddy icon for '%s' is size %d" % (self._nick_name, len(icon))
+ logging.debug("Buddy icon for '%s' is size %d" % (self._nick_name, len(icon)))
self._set_icon(icon)
if (result_status == network.RESULT_FAILED or not icon) and self._icon_tries < 3:
self._icon_tries = self._icon_tries + 1
- print "Failed to retrieve buddy icon for '%s' on try %d of %d" % (self._nick_name, \
- self._icon_tries, 3)
+ logging.debug("Failed to retrieve buddy icon for '%s' on try %d of %d" % (self._nick_name, \
+ self._icon_tries, 3))
gobject.timeout_add(1000, self._request_buddy_icon, service)
return False
@@ -242,15 +241,6 @@ class Buddy(object):
and successfully resolved."""
return self._valid
- 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