Re: Object properties
- From: Olexiy Avramchenko <olexiy irtech cn ua>
- To: Russell Shaw <rjshaw netspace net au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Object properties
- Date: Fri, 21 May 2004 16:07:07 +0300
Russell Shaw wrote:
Hi Olexiy,
I mean just for widget implementation code. Ie:
static void
show_table(DBTab *tab)
{
gint n=tab->ncols; // direct access of a property
// that is normally accessed externally
// with g_object_get/set()
...
}
I prefer direct access to the property field when getting it, but call
*_set_* wrapper for setting - this eliminates following
g_object_notify() calls.
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]