psppire-button-editable: Fix infinite recursion in button-release-event.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 9 Nov 2012 06:10:58 +0000 (22:10 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 9 Nov 2012 06:10:58 +0000 (22:10 -0800)
commit474ee420de40fc52eefabf81bcbdd156b44bbf0d
tree9ba75d9574aabfecba9e28a771314e3892886f37
parent428ee3e6955aabbe0d9341708ad15fd12a404716
psppire-button-editable: Fix infinite recursion in button-release-event.

"release" and "button-release-event" are different.  Before commit
8f843c3a5e905c (Avoid deprecated function: gtk_button_released),
psppire_button_editable_button_release() invoked the former.  That commit
changed it to invoke the latter, which is the same signal that the
function itself implements, hence causing infinite recursion.  This commit
changes it to invoke the former.

Without this commit, the following instructions reliably crash for me:

1. Load a data file, click over to variables tab.
2. Click on a ... button in the Type column.
3. Click on Cancel button in Type dialog.
4. Click on the same ... button as before.

With this commit, those instructions don't crash (the Type dialog pops
back up after step 4, as it should).

Reported by John Darrington.
src/ui/gui/psppire-button-editable.c