Re: [PATCH 2/3] vala: cloned grl-inspect
- From: Simón Pena <spenap gmail com>
- To: Víctor M. Jáquez L. <vjaquez igalia com>
- Cc: grilo-list gnome org
- Subject: Re: [PATCH 2/3] vala: cloned grl-inspect
- Date: Sun, 21 Nov 2010 17:13:49 +0100
2010/11/21 Víctor M. Jáquez L. <vjaquez igalia com>:
> On Sun, Nov 21, 2010 at 12:12:59AM +0100, Simón Pena wrote:
>> Cloned C's grl-inspect in Vala, to add another test of its bindings.
>> ---
>> tools/vala/grl-inspect.vala | 205 +++++++++++++++++++++++++++++++++++++++++++
>> 1 files changed, 205 insertions(+), 0 deletions(-)
>> create mode 100644 tools/vala/grl-inspect.vala
>>
>> diff --git a/tools/vala/grl-inspect.vala b/tools/vala/grl-inspect.vala
>> new file mode 100644
>> index 0000000..d5deaf9
>> --- /dev/null
>> +++ b/tools/vala/grl-inspect.vala
>> @@ -0,0 +1,205 @@
>> +using Grl;
>> +
>> +public class SourcesInspector : Object {
>> +
>> + static int delay;
>> + static MainLoop main_loop = new MainLoop ();
>> +
>> + private unowned List<string> introspect_sources;
>> + private PluginRegistry registry;
>> + private Config youtube_config;
>> + private Config vimeo_config;
>> + private Config flickr_config;
>> +
>> + const string FLICKR_KEY = "fa037bee8120a921b34f8209d715a2fa";
>> + const string FLICKR_SECRET = "9f6523b9c52e3317";
>> + const string VIMEO_KEY = "4d908c69e05a9d5b5c6669d302f920cb";
>> + const string VIMEO_SECRET = "4a923ffaab6238eb";
>> + const string YOUTUBE_KEY = "AI39si4EfscPllSfUy1IwexMf__kntTL_" +
>> + "G5dfSr2iUEVN45RHGq92Aq0lX25OlnOkG6" +
>> + "KTN-4soVAkAf67fWYXuHfVADZYr7S1A";
>
> I'm pretty worried about this. It seems that our plugins do network operations
> with the service just as soon they are loaded. I don't think this is right,
> and the perfect example is this application: we only want to display the
> plugin keys and properties. We shouldn't need to configure them.
While that would be more a workaround than a solution, if you set
empty keys and secrets, the plugins will load, and we would be able to
display their keys and properties. I guess that only when trying to
access remote contents they would fail.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]