[Rhythmbox-devel] Populating source list...



Hi all,

I'm trying to add entries to the list in a browser source. This is what I have so far:

db = self.shell.props.db
entry_type = db.entry_register_type("NJB:List_Entry")
entry = db.entry_new(entry_type, "njb://song/%i" % count)
# set properties
db.set(entry, rhythmdb.PROP_TITLE, tag.GetStringValue())
# ... set rest of properties
db.commit()

That seems to work, I don't get any errors, but nothing shows up in the Browser listing.

Anyone got any ideas?

Cheers,

Rob



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]