I guess Gtk2::Widget::hide_on_delete ought to ignore extra args for direct use as a signal handler. (I was using a perl version to try at first and it of course did that already.)
Attachment:
GtkWidget.xs.hide-on-delete-var.diff
Description: Text Data
-- Medical jargon elucidated for the layman: "Adverse outcome" -- the patient died.