Re: [Rhythmbox-devel] How to import RBIRadioSource reference

2009-12-15 Thread Jonathan Matthew
On Tue, Dec 15, 2009 at 7:00 AM, Jannik Heller wrote: >> Here's a better approach: shell.guess_source_for_uri("mms://x") > Thanks, that works and seems to be safe. >> This would be better again, but it doesn't work yet: >>   entrytype = db.entry_type_get_by_name("iradio") >>   source = shell.get_s

Re: [Rhythmbox-devel] How to import RBIRadioSource reference

2009-12-14 Thread Jannik Heller
Am Dienstag, den 15.12.2009, 06:28 +1000 schrieb Jonathan Matthew: > On Tue, Dec 15, 2009 at 1:04 AM, Jannik Heller wrote: > > Am Montag, den 14.12.2009, 11:55 +1000 schrieb Jonathan Matthew: > >> > So how to import the RBIRadioSource that I can access it? Or does > >> > someone know another way t

Re: [Rhythmbox-devel] How to import RBIRadioSource reference

2009-12-14 Thread Jonathan Matthew
On Tue, Dec 15, 2009 at 1:04 AM, Jannik Heller wrote: > Am Montag, den 14.12.2009, 11:55 +1000 schrieb Jonathan Matthew: >> > So how to import the RBIRadioSource that I can access it? Or does >> > someone know another way to get the Radio source? >> >> You'd have to check the source name or maybe

Re: [Rhythmbox-devel] How to import RBIRadioSource reference

2009-12-14 Thread Jannik Heller
Am Montag, den 14.12.2009, 11:55 +1000 schrieb Jonathan Matthew: > On Mon, Dec 7, 2009 at 12:15 AM, Jannik Heller wrote: > > Hi, > > > > I want to get a reference to the "Radio" source in my plugin. I want to > > use this code: > > > > for group in shell.props.sourcelist_model: > > for source

Re: [Rhythmbox-devel] How to import RBIRadioSource reference

2009-12-13 Thread Jonathan Matthew
On Mon, Dec 7, 2009 at 12:15 AM, Jannik Heller wrote: > Hi, > > I want to get a reference to the "Radio" source in my plugin. I want to > use this code: > > for group in shell.props.sourcelist_model: >      for source in group.iterchildren(): >         for props in source: >             if isinsta