Re: Use local lang file
- From: Paolo Maggi <paolo maggi polito it>
- To: Thomas Dybdahl Ahle <lobais gmail com>
- Cc: gnome-devtools gnome org
- Subject: Re: Use local lang file
- Date: Sat, 06 Jan 2007 11:10:25 +0100
Hi,
> I get an error when trying to set it though,
> manager = SourceLanguagesManager()
> manager.set_property("lang-files-dirs", "/home/thomas/Desktop")
> TypeError: property 'lang-files-dirs' can only be set in constructor
>
As the error reports, 'lang-files-dirs' is a constructor only property,
so you should set it while constructing the object.
I have no idea how you can do this in Pyton (since I don't know Python).
In C you should write something like:
|
| GSList *dirs = ...
|
| lm = GTK_SOURCE_LANGUAGES_MANAGER (g_object_new
(GTK_TYPE_SOURCE_LANGUAGES_MANAGER,
| "lang-files-dirs",
dirs,
| NULL));
|
Regards,
Paolo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]