Re: Use local lang file

Paolo Maggi <[email protected]>
Newsgroups gmane.comp.gnome.devtools
Message-ID <1168078225.5202.3.camel@elilix>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.