Using g_slice functions