- Fixed selection bug in video player

This commit is contained in:
noisymime 2008-05-06 11:24:36 +00:00
parent 54e693d7a3
commit d60e21c9eb
5 changed files with 14 additions and 6 deletions

View File

@ -61,11 +61,15 @@ class song:
return None
tag.link(filename)
if self.music_player.glossMgr.debug: print "Music_Player: eyeD3 tag linked to file '%s'" % filename
images = tag.getImages()
if self.music_player.glossMgr.debug: print "Music_Player: found %i images in file '%s'" % (len(images), filename)
for img in images:
try:
#print "Image Mine Type: " + str(img.mimeType)
if self.music_player.glossMgr.debug: print "Music_Player: Image Mine Type: " + str(img.mimeType)
data = img.imageData
loader = gtk.gdk.PixbufLoader()
loader.write(data)

View File

@ -58,7 +58,7 @@ class coverViewer(ImageGrid):
if self.textureLibrary[self.currentSelection].isFolder:
return None #self.folderLibrary[(self.currentSelection-len(self.folderLibrary))]
else:
return self.textureLibrary[(self.currentSelection-len(self.folderLibrary))]
return self.textureLibrary[(self.currentSelection-len(self.folderLibrary))+1]
def set_details_update(self, on_off, details):
self.update_details = on_off

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -269,7 +269,8 @@ class ImageGrid(clutter.Group):
return self.textureLibrary[self.currentSelection]
def get_current_item(self):
return self.itemLibrary[(self.currentSelection-len(self.folderLibrary))]
cur_item_no = (self.currentSelection-len(self.folderLibrary))
return self.itemLibrary[cur_item_no]
#Was get_item_x()
def get_texture_x(self, itemNo):

View File

@ -66,9 +66,10 @@ class LabelList(clutter.Group):
themeMgr.setup_actor(self, element, themeMgr.stage)
img_element = themeMgr.search_docs("label_list", id).getElementsByTagName("texture")
if len(img_element) > 0: img_element = img_element[0].childNodes
#img_element = themeMgr.find_element(element, "id", "inactive_background")
self.inactive_item_background = themeMgr.get_texture("inactive_background", self, element = img_element)
img_element = themeMgr.find_element(img_element, "id", "inactive_background")
if not img_element is None:
img_element = img_element.childNodes
self.inactive_item_background = themeMgr.get_texture("inactive_background", self, element = img_element)
def on_key_press_event (self, event):
self.input_queue.input(event)
@ -289,6 +290,8 @@ class ListItem(clutter.Group):
self.scale_step_medium = label_list.zoomStep1
self.scale_step_none = label_list.zoomStep2
self.set_width(label_list.get_width())
#setup the label/s
self.add(self.label_left)
self.label_left.show()