]> git.eshelyaron.com Git - emacs.git/commitdiff
(tree-widget-value-create): Fix previous change.
authorDavid Ponce <david@dponce.com>
Thu, 22 Sep 2005 09:54:54 +0000 (09:54 +0000)
committerDavid Ponce <david@dponce.com>
Thu, 22 Sep 2005 09:54:54 +0000 (09:54 +0000)
lisp/tree-widget.el

index 28207436688b87fdcf89dfc02bae65c6906cda69..d29e224f549b9bce9e6c1964e14ef8d1194c6495 100644 (file)
@@ -651,7 +651,9 @@ This hook should be local in the buffer setup to display widgets.")
           (widget-put tree :node (widget-convert node))
           ;; Create the icon widget for the expanded tree.
           (push (widget-create-child-and-convert
-                 tree (widget-get tree (if args :open-icon :empty-icon)))
+                 tree (widget-get tree (if args :open-icon :empty-icon))
+                 ;; Pass the node widget to child.
+                 :node (widget-get tree :node))
                 buttons)
           ;; Create the tree node widget.
           (push (widget-create-child tree (widget-get tree :node))
@@ -701,7 +703,9 @@ This hook should be local in the buffer setup to display widgets.")
       (widget-put tree :node (widget-convert node))
       ;; Create the icon widget for the collapsed tree.
       (push (widget-create-child-and-convert
-             tree (widget-get tree :close-icon))
+             tree (widget-get tree :close-icon)
+             ;; Pass the node widget to child.
+             :node (widget-get tree :node))
             buttons)
       ;; Create the tree node widget.
       (push (widget-create-child tree (widget-get tree :node))