Pass PrefsWindow pointer instead of GtkWindow to prefswindow's open and close callbacks.