Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

The underscore prefix cannot be used in t_n (2nd) parameter of G_DEFINE_TYPE.

While debuging tomoe, the original code in lib/tomoe-dict-ptr-array.c reads:

G_DEFINE_ABSTRACT_TYPE (TomoeDictPtrArray, _tomoe_dict_ptr_array, TOMOE_TYPE_DICT)

But it does not work and cause segmentation fault in scim-tomoe.

After remove the _ from the 2nd parameter (and corresponding functions),
it works like charm.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: