Re: Question about map sources.



On Thu, May 17, 2012 at 8:26 AM, Jiří Techet <techet gmail com> wrote:
>> Ok, I will consider adding opencyclemap manually. Just so long as I
>> can use factory.register() in order to continue simply iterating over
>> factory.get_registered() to build the  menu of available app sources,
>> then it won't be particularly onerous for me.
>
> Or you can completely skip the factory and put the sources into python
> list or dict and iterate over it.

Well, I also have bound the map-source property to a GSettings key,
and that depends upon calling source_get_id() whenever the map-source
property changes (to store the id in GSettings) and then also calling
factory_create_cached_source(id) whenever the gsettings key changes
(ie, at app launch, so it always remembers the last used source). So
I'll need to register() the custom source in order for that to keep
working.

-- 
http://exolucere.ca


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