chiark / gitweb /
Path argument to the toggle signal for cell-renderer-toggle convertet from string...
authorespen <espen>
Tue, 15 Aug 2006 10:13:42 +0000 (10:13 +0000)
committerespen <espen>
Tue, 15 Aug 2006 10:13:42 +0000 (10:13 +0000)
gtk/gtktree.lisp

index 0d101562f27c1f09bd2452bfb75fbb852715e1db..b5abc0ec3c1bac390d77b2aad548d362baa110a5 100644 (file)
@@ -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: gtktree.lisp,v 1.22 2006/06/23 12:46:26 espen Exp $
+;; $Id: gtktree.lisp,v 1.23 2006/08/15 10:13:42 espen Exp $
 
 
 (in-package "GTK")
@@ -73,6 +73,14 @@ (defbinding cell-layout-clear-attributes () nil
   (cell cell-renderer))
 
 
+;;;; Cell Renderer
+
+(defmethod compute-signal-function ((gobject cell-renderer-toggle) (signal (eql 'toggled)) function object)
+  (declare (ignore gobject signal function object))
+  (let ((function (call-next-method)))
+    #'(lambda (object path)
+       (funcall function object (ensure-tree-path path)))))
+
 
 ;;;; List Store