i'm stuck at add_to_queue(), i get the uri and then it tells me that's
wrong, how am i supposed to add to the play queue?
On the writing guide it just shows the URI and that's what i've given
it, but it doesn't want it as a string?
#ERROR:
shell.add_to_queue(location)
TypeError: RB.Source.add_to_queue() argument 1 must be rb.Source, not str
#CODE
def event_handler(self, shell, event, data=None):
if event.type != gtk.gdk.BUTTON_RELEASE or event.button != 2:
return False
source = shell.get_property("selected_page")
entry = rb.Source.get_entry_view(source)
selection = entry.get_selected_entries()
for items in selection:
location = items.get_playback_uri()
shell.add_to_queue(location)
_______________________________________________
rhythmbox-devel mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/rhythmbox-devel