projects
/
watersofshiloah
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding animations support
[watersofshiloah]
/
src
/
imagestore.py
diff --git
a/src/imagestore.py
b/src/imagestore.py
index
af0a1e2
..
092efd0
100644
(file)
--- a/
src/imagestore.py
+++ b/
src/imagestore.py
@@
-12,6
+12,7
@@
class ImageStore(object):
"pause": "pause.png",
"play": "play.png",
"stop": "stop.png",
"pause": "pause.png",
"play": "play.png",
"stop": "stop.png",
+ "loading": "loading.gif",
"radio_header": "radio_header.png",
"conference_background": "conference_bg.png",
"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_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)