projects
/
cl-gtk2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get-g-flags-definition should call to register-flags-type, not register-enum-type...
[cl-gtk2.git]
/
glib
/
gobject.type.lisp
diff --git
a/glib/gobject.type.lisp
b/glib/gobject.type.lisp
index
0e1fbfb
..
12dff51
100644
(file)
--- a/
glib/gobject.type.lisp
+++ b/
glib/gobject.type.lisp
@@
-48,6
+48,7
@@
(n-children (:pointer :uint)))
(defun g-type-children (g-type)
(n-children (:pointer :uint)))
(defun g-type-children (g-type)
+ (setf g-type (ensure-g-type g-type))
(with-foreign-object (n-children :uint)
(let ((g-types-ptr (%g-type-children g-type n-children)))
(prog1
(with-foreign-object (n-children :uint)
(let ((g-types-ptr (%g-type-children g-type n-children)))
(prog1
@@
-89,6
+90,15
@@
(info (:pointer g-type-info))
(flags g-type-flags))
(info (:pointer g-type-info))
(flags g-type-flags))
+(defcfun g-type-register-static-simple g-type
+ (parent-type g-type)
+ (type-name :string)
+ (class-size :uint)
+ (class-init :pointer)
+ (instance-size :uint)
+ (instance-init :pointer)
+ (flags g-type-flags))
+
(defcfun g-type-add-interface-static :void
(instance-type g-type)
(interface-type g-type)
(defcfun g-type-add-interface-static :void
(instance-type g-type)
(interface-type g-type)
@@
-116,4
+126,8
@@
(defcfun g-closure-get-type g-type)
(defcfun g-closure-get-type g-type)
-(g-closure-get-type)
\ No newline at end of file
+(g-closure-get-type)
+
+(defcfun g-type-query :void
+ (type g-type)
+ (query (:pointer g-type-query)))
\ No newline at end of file