Adding animations support
authorEd Page <eopage@byu.net>
Tue, 4 May 2010 03:09:03 +0000 (22:09 -0500)
committerEd Page <eopage@byu.net>
Wed, 5 May 2010 03:31:17 +0000 (22:31 -0500)
data/loading.gif [new file with mode: 0644]
src/imagestore.py

diff --git a/data/loading.gif b/data/loading.gif
new file mode 100644 (file)
index 0000000..f864d5f
Binary files /dev/null and b/data/loading.gif differ
index af0a1e2..092efd0 100644 (file)
@@ -12,6 +12,7 @@ class ImageStore(object):
                "pause": "pause.png",
                "play": "play.png",
                "stop": "stop.png",
+               "loading": "loading.gif",
 
                "radio_header": "radio_header.png",
                "conference_background": "conference_bg.png",
@@ -45,3 +46,7 @@ class ImageStore(object):
        def get_pixbuf_from_store(self, image):
                path = os.path.join(self._storePath, image)
                return gtk.gdk.pixbuf_new_from_file(path)
+
+       def get_pixbuf_animation_from_store(self, image):
+               path = os.path.join(self._storePath, image)
+               return gtk.gdk.PixbufAnimation(path)