;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-;; $Id: gtkaction.lisp,v 1.1 2004-12-04 18:03:21 espen Exp $
+;; $Id: gtkaction.lisp,v 1.3 2005-02-03 23:09:09 espen Exp $
(in-package "GTK")
(defmethod initialize-instance ((action-group action-group) &rest initargs
&key action actions)
(declare (ignore action actions))
- (call-next-method)
- (flet ((add-action (action)
- (action-group-add-action action-group action)))
- (loop
- as (initarg value . rest) = initargs then rest
- do (case initarg
- (:action (add-action value))
- (:actions (mapc #'add-action value)))
- while rest)))
+ (prog1
+ (call-next-method)
+ (initial-add action-group #'action-group-add-action
+ initargs :action :actions)))
(defbinding action-group-get-action () action
(action-group action-group)
(defmethod initialize-instance ((action radio-action) &key group value)
(call-next-method)
- (setf (slot-value action '%value) (system:sap-int (proxy-location action)))
+ (setf (slot-value action '%value) (sap-int (proxy-location action)))
(setf (object-data action 'radio-action-value) value)
(when group
(radio-action-add-to-group action group)))