Re: Use local lang file



Okay, I read this thread:
http://mail.gnome.org/archives/rhythmbox-devel/2006-June/msg00092.html
and the problems seems to be in the bindings. I've filled a bugreport.

I can't wait for everybody to get the latest version though, so could
there be other possibilities? Like would it be able to put the lang file
to some /home dir? like /home/user/.gtksourceview?

l�6 01 2007 kl. 11:59 +0100, skrev Thomas Dybdahl Ahle:
> l�6 01 2007 kl. 11:10 +0100, skrev Paolo Maggi:
> > > 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.
> 
> ok, I found a way: manager = gobject.new(SourceLanguagesManager,
> lang_files_dirs=["..."])
> The pygtk people told me that _ or - are the same here, as
> lang-files-dirs is not a legal variable name.
> 
> Now I get another strange error though: TypeError: could not convert
> value for property `lang_files_dirs' from list to gpointer.
> 
> The same goes for tuple. And the pygtk gpointer doc doesn't give much
> help either:
> http://www.moeraki.com/pygtkreference/pygtk2reference/class-gobjectgpointer.html
> 
-- 
Med venlig hilsen,
Best regards,
Thomas




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