Re: [Vala] Gschema: failed to parse <default> value



Hi Al,


On 19.04.2017 22:32, Al Thomas wrote:
default element is available by using double quotes.
Hmmm, this has caught out other people too:
https://rm5248.com/gsettings/
Yes that is irritating. I have placed a enhancement on bgo.
The problem to do with properties is because you are assigning the body
of the property. That's not how is should be done. So in 

src/core/create_publication_core.vala the property:


private string entity_file_local = {get {_filename = publication_title + entity_file_suffix; return 
_filename;}}

should be:

private string entity_file_local {get {_filename = publication_title + entity_file_suffix; return 
_filename;}}

Also, if you haven't already figured it out Path.DIR_SEPARATOR needs to be cast to a string:


private string project_dir {get {_path = target_dir + (string)Path.DIR_SEPARATOR + publication_title + 
(string)Path.DIR_SEPARATOR + create_language; return _path;}}
After that changes the make process goes to the end now. Thanks for helping.

-- 
Sascha Manns
Maifeldstraße 10
56727 Mayen

P: +49-2651-4014045
W: http://saigkill.tuxfamily.org


Attachment: signature.asc
Description: OpenPGP digital signature



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