Definite's Extractor

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

Tag Archives: gobject

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