Re: Object properties



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]