Re: Accessors vs Properties
- From: Nicola Fontana <ntd entidi it>
- To: Tobias Knopp <tobias knoppweb de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Accessors vs Properties
- Date: Thu, 5 Jan 2017 09:24:01 +0100
Hi,
Il Tue, 3 Jan 2017 22:46:13 +0100 Tobias Knopp <tobias knoppweb de> scrisse:
...
- Is any accessor backuped with a property and vice versa?
Only the second part stands, i.e. any property should have its
own accessors. There is some exception though, e.g.
GtkContainer:child, but that is a special property anyway (it is
write-only).
- Which one is to prefer?
They are equivalent. Sometime you can encounter missing accessors,
so I'd use g_object_{set,get}_property(), more so if you plan
to do some automatic processing (e.g. writing binding code).
Ciao.
--
Nicola
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]