ColorButton: Don’t destroy dialog @ ::delete-event
authorHiroyuki Ito <ZXB01226@nifty.com>
Mon, 11 Sep 2017 12:02:13 +0000 (12:02 +0000)
committerDaniel Boles <dboles@src.gnome.org>
Tue, 12 Sep 2017 20:15:53 +0000 (21:15 +0100)
commite7fbfdd067cd3f811fd657ce3e72f2f73518e987
treead986f97562435b20e59cfd97e9efefa46e61cbd
parent4b88560feb9e87a7e07c220df23291876cba0ffa
ColorButton: Don’t destroy dialog @ ::delete-event

Without specifically connecting ::delete-event to something, the dialog
will be destroyed when it is closed, for example by pressing Esc. This
meant that when dismissing it this way, unlike by pressing Cancel, any
custom palette would be lost when the dialog was next opened, and so on.

Resolve this by making ::delete-event just do GTK_RESPONSE_CANCEL, so
closing the dialog has the same effect as clicking its Cancel button.

https://bugzilla.gnome.org/show_bug.cgi?id=787444
gtk/gtkcolorbutton.c