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:
e414392
)
Added function to compute type dependencies for the container class correctly
author
espen
<espen>
Thu, 10 May 2007 20:13:42 +0000
(20:13 +0000)
committer
espen
<espen>
Thu, 10 May 2007 20:13:42 +0000
(20:13 +0000)
gtk/gtkobject.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gtk/gtkobject.lisp
b/gtk/gtkobject.lisp
index 9a319813a2214c350886471f188bc54fd164464c..2444c08fdb52211bb5172e6c1eb347b145733807 100644
(file)
--- a/
gtk/gtkobject.lisp
+++ b/
gtk/gtkobject.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: gtkobject.lisp,v 1.4
0 2007-03-12 12:59:2
2 espen Exp $
+;; $Id: gtkobject.lisp,v 1.4
1 2007-05-10 20:13:4
2 espen Exp $
(in-package "GTK")
(in-package "GTK")
@@
-238,4
+238,10
@@
(defclass ,child-class (,(default-container-child-name super))
(defun container-child-class (container-class)
(gethash container-class *container-to-child-class-mappings*))
(defun container-child-class (container-class)
(gethash container-class *container-to-child-class-mappings*))
-(register-derivable-type 'container "GtkContainer" 'expand-container-type 'gobject-dependencies)
+(defun container-dependencies (type options)
+ (delete-duplicates
+ (append
+ (gobject-dependencies type options)
+ (mapcar #'param-value-type (query-container-class-child-properties type)))))
+
+(register-derivable-type 'container "GtkContainer" 'expand-container-type 'container-dependencies)