X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/8ab0db90ff4867ccaa730c9c089d9cc2a10e92bf..995eb841c0c43cb35740619c5ae9c0bde939b18b:/gtk/gtkaction.lisp?ds=sidebyside diff --git a/gtk/gtkaction.lisp b/gtk/gtkaction.lisp index c8c80d7..4ffce9e 100644 --- a/gtk/gtkaction.lisp +++ b/gtk/gtkaction.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: gtkaction.lisp,v 1.9 2006-04-26 12:32:04 espen Exp $ +;; $Id: gtkaction.lisp,v 1.10 2006-08-14 13:57:37 espen Exp $ (in-package "GTK") @@ -118,7 +118,7 @@ (defun radio-action-get-current-value (action) ;;; Toggle Action -(defmethod initialize-instance ((action toggle-action) &rest initargs &key callback) +(defmethod initialize-instance ((action toggle-action) &rest initargs &key callback active) (remf initargs :callback) (apply #'call-next-method action initargs) (when callback @@ -130,7 +130,7 @@ (defmethod initialize-instance ((action toggle-action) &rest initargs &key callb #'(lambda () (funcall function (toggle-action-active-p action)))) :object object :after after))) - (when (toggle-action-active-p action) + (when active (action-activate action))) (defbinding toggle-action-toggled () nil