Use GINT_TO_POINTER instead of (gpointer)