Mine
public text v1 · immutablevoid initGObject(GObject *object, JGRef *ref)
{
if (!GTK_IS_WINDOW(object)) {
g_printerr("Going into toggle_ref from initGObject\n");
g_object_add_toggle_ref (object, toggleNotify, ref);
g_printerr("Coming out of toggle_ref in initGObject\n");
if (GTK_IS_OBJECT (object)) {
gtk_object_sink ((GtkObject*) object);
}
else {
g_object_unref(object);
}
}
}