Re: GObject's property with _ issue

"Jukka Zitting" <[email protected]> Mon, 20 Feb 2006 12:26:03 +0200
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
Hi,

On 2/20/06, Piotras <[email protected]> wrote:
> I am not sure what to do exactly with underscore used in property name.
> Gobject library replaces all '_' with '-' in property name.
>
> 1. Trigger an error while schema is parsed?
> 2. Trigger a warning and wait for unconditional errors?
> 3. Use black magic for such properties?
>
> The first one seems to me the only one solution.

With 1 we should define CamelCase as the preferred property naming
convention. This is a bit awkward as it interferes with the GObject
naming convention.

Option 3 is also reasonable, we'd need to translate dashes back to
underscores in language bindings and when generating SQL.

BR,

Jukka Zitting

--
Yukatan - http://yukatan.fi/ - [email protected]
Software craftsmanship, JCR consulting, and Java development