chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
928e2b4
)
Added new function ENSURE-TREE-PATH
author
espen
<espen>
Fri, 23 Jun 2006 12:46:26 +0000
(12:46 +0000)
committer
espen
<espen>
Fri, 23 Jun 2006 12:46:26 +0000
(12:46 +0000)
gtk/gtktree.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gtk/gtktree.lisp
b/gtk/gtktree.lisp
index e6cc5b00d217e6a2dcc75bc6b7516c712a075b4c..0d101562f27c1f09bd2452bfb75fbb852715e1db 100644
(file)
--- 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.
;; 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.2
1 2006/06/23 12:25:37
espen Exp $
+;; $Id: gtktree.lisp,v 1.2
2 2006/06/23 12:46:26
espen Exp $
(in-package "GTK")
(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))))
#'(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)
(defbinding %tree-row-reference-new () pointer
(model tree-model)