Some aspects of the GObjectification approach

Tomasz Wasilczyk twasilczyk at
Mon Oct 7 03:43:28 EDT 2013

2013/10/7 Mark Doliner <mark at>:
> On Sat, Jun 1, 2013 at 12:13 PM, Ankit Vani <a at> wrote:
>> 2. Data fields
>> We do not need to have protocol data and UI data fields on objects.
>> For that, we can use subclasses. For example, we can have GObject <-
>> PurpleBlistNode <- PurpleBuddy <- XMPPBuddy. If we cannot subclass, we
>> can use or g_object_set_data().
> Is this plan still accurate? I notice that PurpleAccount still has
> "gpointer ui_data," purple_account_set_ui_data(), and
> purple_account_get_ui_data(). It looks like these maybe aren't used
> for PurpleAccount, but it looks like there are other objects with a
> ui_data field that IS still used.

In my opinion, all purple_account_set_ui_data uses should just be
converted to g_object_set_data.


More information about the Devel mailing list