Skip to content

Commit

Permalink
Callback had incorrect signature. I am not sure what this does.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramarren committed Nov 1, 2009
1 parent 7be70c0 commit 3b2268e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cells-gtk/tree-view.lisp
Expand Up @@ -72,7 +72,7 @@
(tree-model :owning t :accessor tree-model :initarg :tree-model :initform nil))
() ; gtk-slots
() ; signal-slots
:on-select (lambda (self widget event data)
:on-select (lambda (self tree-selection data)
(declare (ignore widget event data))
(with-integrity (:change 'tree-view-select-cb)
(setf (value self) (get-selection self)))))
Expand Down Expand Up @@ -121,11 +121,11 @@
(:multiple 3))))))

(cffi:defcallback tree-view-select-handler :void
((column-widget :pointer) (event :pointer) (data :pointer))
(if-bind (tree-view (gtk-object-find column-widget))
(let ((cb (callback-recover tree-view :on-select)))
(funcall cb tree-view column-widget event data))
(trc "Clean up old widgets after runs" column-widget))
((tree-selection :pointer) (data :pointer))
(if-bind (tree-view (gtk-object-find tree-selection))
(let ((cb (callback-recover tree-view :on-select)))
(funcall cb tree-view tree-selection data))
(trc "Clean up old widgets after runs" tree-selection))
0)

;;; The check that previously was performed here (for a clos object) caused the handler
Expand Down

0 comments on commit 3b2268e

Please sign in to comment.