chiark / gitweb /
Bug fix
authorespen <espen>
Fri, 11 Apr 2008 18:42:40 +0000 (18:42 +0000)
committerespen <espen>
Fri, 11 Apr 2008 18:42:40 +0000 (18:42 +0000)
gtk/gtkwidget.lisp

index fb44dcf2959d226d06e8a3c1664fe1f5894def2f..4ac4e2e1ef6256d1f2986bf9d1d58957a492bd23 100644 (file)
@@ -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: gtkwidget.lisp,v 1.29 2007/09/06 14:27:07 espen Exp $
+;; $Id: gtkwidget.lisp,v 1.30 2008/04/11 18:42:40 espen Exp $
 
 (in-package "GTK")
 
@@ -60,8 +60,7 @@ (defmethod slot-unbound ((class gobject-class) (object widget)
    ((slot-boundp object 'parent)
     (with-slots (parent child-properties) object
       (setf child-properties
-       (make-instance 
-        (gethash (class-of parent) *container-to-child-class-mappings*)
+       (make-instance (find-child-class (class-of parent))
        :parent parent :child object))))
    ((call-next-method))))