pathname == string

"Walter C. Pelissero" <[email protected]> Mon, 3 Sep 2007 23:47:52 +0200
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
After saving an image I've noticed that my program started to convert
strings to pathnames.  I believe it's got to do with the fact that
both PATHNAME and STRING share the same GTK type.

Although I'm not able to tell whether this patch might break something
else (I don't pass pathnames to GTK) it does at least fix my problem:

*** gtype.lisp	28 Jun 2007 19:27:36 +0200	1.64
--- gtype.lisp	03 Sep 2007 23:17:53 +0200	
***************
*** 437,444 ****
  (register-type 'unsigned-long "gulong")
  (register-type 'single-float "gfloat")
  (register-type 'double-float "gdouble")
- (register-type 'pathname "gchararray")
  (register-type 'string "gchararray")
  
  
  ;;;; Introspection of type information
--- 437,444 ----
  (register-type 'unsigned-long "gulong")
  (register-type 'single-float "gfloat")
  (register-type 'double-float "gdouble")
  (register-type 'string "gchararray")
+ (register-type-alias 'pathname 'string)
  
  
  ;;;; Introspection of type information



-- 
walter pelissero
http://www.pelissero.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/