(guarantee-gtk-widget widget 'gtk-widget-create-pango-layout)
(if (not (default-object? text))
(guarantee-string text 'gtk-widget-create-pango-layout))
- (let ((layout (make-pango-layout)))
+ (let* ((layout (make-pango-layout))
+ (alien (gobject-alien layout)))
(C-call "gtk_widget_create_pango_layout"
- (gobject-alien layout) (gobject-alien widget)
+ alien (gobject-alien widget)
(if (default-object? text) 0 text))
- (error-if-null layout "Could not create:" layout)
+ (error-if-null alien "Could not create:" layout)
layout))
(define (gtk-widget-get-size widget)