Re: GConf.Client.get_default is not a function error
- From: Mesutcan Kurt <mesutcank gmail com>
- To: javascript-list gnome org
- Subject: Re: GConf.Client.get_default is not a function error
- Date: Mon, 9 May 2011 13:40:13 +0300
On Mon, May 9, 2011 at 1:29 PM, Mesutcan Kurt
<mesutcank gmail com> wrote:
On Mon, May 9, 2011 at 1:21 PM, Alan Knowles
<alan akbkhome com> wrote:
Your test gjs test is slightly wrong, you should test with get_default(), rather than get_client()
Opps, there was a typo. It was get_default().
It's likely that you have a missing GConf typelib.
print(typeof(GConf.Client)); should say object or similar, if it says undefined, then check that /usr/lib/girepository-1.0/GConf...???..typelib exists.
The output is:
function
And "/usr/lib/girepository-1.0/GConf-2.0.typelib" exists.
Also there are some strict warnings:
gjs> const GConf = imports.gi.GConf
typein:1: strict warning: reference to undefined property
imports.gi (6 times)
typein:1: strict warning: reference to undefined property imports.gi.GConf
gjs> GConf.Client
typein:7: strict warning: reference to undefined property GConf.Client
--
Mesutcan Kurt
--
Mesutcan Kurt
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]