diff options
Diffstat (limited to 'chat/chat.py')
-rwxr-xr-x | chat/chat.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chat/chat.py b/chat/chat.py index f5e7315..bb66d8f 100755 --- a/chat/chat.py +++ b/chat/chat.py @@ -15,8 +15,6 @@ import pwd import gc import socket -sys.path.append(os.getcwd()) -sys.path.append('../shell/example-activity/') import activity import presence @@ -25,6 +23,8 @@ import network import richtext import xmlrpclib +from sugar_globals import * + class Chat(object): def __init__(self, parent, view, label): self._parent = parent @@ -193,8 +193,8 @@ class ChatActivity(activity.Activity): self._buddy_list_model = gtk.ListStore(gobject.TYPE_STRING, gtk.gdk.Pixbuf, gobject.TYPE_PYOBJECT) - self._pixbuf_active_chat = gtk.gdk.pixbuf_new_from_file("bubbleOutline.png") - self._pixbuf_new_message = gtk.gdk.pixbuf_new_from_file("bubble.png") + self._pixbuf_active_chat = gtk.gdk.pixbuf_new_from_file(data_dir + "/bubbleOutline.png") + self._pixbuf_new_message = gtk.gdk.pixbuf_new_from_file(data_dir + "/bubble.png") sw = gtk.ScrolledWindow() sw.set_shadow_type(gtk.SHADOW_IN) |