Re: Importing custom modules in Gjs



On Sun, Aug 5, 2012 at 11:01 AM, alex diavatis
<alexis diavatis gmail com> wrote:
> Hello Jasper,
>
> On Sun, Aug 5, 2012 at 5:57 PM, Jasper St. Pierre <jstpierre mecheye net>
> wrote:
>
>> You need to import Clutter as well:
>>
>> const Clutter = imports.gi.Clutter;
>
>
> Of course I have Clutter imported.
> I just can't find a way to call black_c from conf.js to main.js. When I call
> it it I get:
> ReferenceError: black_c is not defined

Oh, so you added black_c in Conf?

Then, you want Conf.black_c.

>>
>> > - alex
>> >
>> > _______________________________________________
>> > gnome-shell-list mailing list
>> > gnome-shell-list gnome org
>> > https://mail.gnome.org/mailman/listinfo/gnome-shell-list
>> >
>>
>>
>>
>> --
>>   Jasper
>
>



-- 
  Jasper


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