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



From: Sascha Manns <Sascha Manns mailbox org>
Sent: Wednesday, 19 April 2017, 20:35
Subject: Re: [Vala] Gschema: failed to parse <default> value

i have looked in other projects on git, and found out, that a empty

default element is available by using double quotes.

Hmmm, this has caught out other people too:
https://rm5248.com/gsettings/

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;}}


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