gtk_box_remove should not refer to the widget after it's been unparent'ed, since this unref's the widget, which means that it may not exist anymore.