(extern (* PangoLayout)
gtk_widget_create_pango_layout
(widget (* GtkWidget))
- (text (* (const gchar))))
\ No newline at end of file
+ (text (* (const gchar))))
+
+(extern gboolean
+ gtk_widget_is_composited
+ (widget (* GtkWidget)))
\ No newline at end of file
(and (bit? flags (C-enum "GTK_VISIBLE"))
(bit? flags (C-enum "GTK_MAPPED")))))
+(define (gtk-widget-is-composited? widget)
+ (guarantee-gtk-widget widget 'gtk-widget-is-composited?)
+ (not (zero? (C-call "gtk_widget_is_composited" (gobject-alien widget)))))
+
(define (gtk-widget-grab-focus widget)
(guarantee-gtk-widget widget 'gtk-widget-grab-focus)
(C-call "gtk_widget_grab_focus" (gobject-alien widget)))