Easy fix. The close button's click is hooked to gtk_widget_destroy directly, which kills the button. Pointing the function to the preferences window works fine.
Easy fix. The close button's click is hooked to gtk_widget_destroy directly, which kills the button. Pointing the function to the preferences window works fine.