From: espen Date: Fri, 23 Jun 2006 12:46:26 +0000 (+0000) Subject: Added new function ENSURE-TREE-PATH X-Git-Tag: clg-0-93~289 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/6beb5074f6074f88e75f8a24271c5aeca7ee886a Added new function ENSURE-TREE-PATH --- diff --git a/gtk/gtktree.lisp b/gtk/gtktree.lisp index e6cc5b0..0d10156 100644 --- a/gtk/gtktree.lisp +++ b/gtk/gtktree.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: gtktree.lisp,v 1.21 2006/06/23 12:25:37 espen Exp $ +;; $Id: gtktree.lisp,v 1.22 2006/06/23 12:46:26 espen Exp $ (in-package "GTK") @@ -308,6 +308,11 @@ (define-type-method destroy-function ((type tree-path) &key temp inlined) #'(lambda (location &optional (offset 0)) (%tree-path-free (ref-pointer location offset)))) +(defun ensure-tree-path (path) + (etypecase path + (string (coerce (clg-utils:split-string path :delimiter #\:) 'vector)) + (vector path))) + (defbinding %tree-row-reference-new () pointer (model tree-model)