(error:bad-range-argument opacity 'gtk-window-set-opacity))
(C-call "gtk_window_set_opacity" (gobject-alien window) opacity))
+(define (gtk-window-set-type-hint window hint)
+ (guarantee-gtk-window window 'gtk-window-set-type-hint)
+ (let ((type-hint (->type-hint hint 'gtk-window-set-type-hint)))
+ (C-call "gtk_window_set_type_hint" (gobject-alien window) type-hint)))
+
+(define (->type-hint object operator)
+ (case object
+ ((NORMAL) (C-enum "GDK_WINDOW_TYPE_HINT_NORMAL"))
+ ((DIALOG) (C-enum "GDK_WINDOW_TYPE_HINT_DIALOG"))
+ ((MENU) (C-enum "GDK_WINDOW_TYPE_HINT_MENU"))
+ ((TOOLBAR) (C-enum "GDK_WINDOW_TYPE_HINT_TOOLBAR"))
+ ((SPLASHSCREEN) (C-enum "GDK_WINDOW_TYPE_HINT_SPLASHSCREEN"))
+ ((UTILITY) (C-enum "GDK_WINDOW_TYPE_HINT_UTILITY"))
+ ((DOCK) (C-enum "GDK_WINDOW_TYPE_HINT_DOCK"))
+ ((DESKTOP) (C-enum "GDK_WINDOW_TYPE_HINT_DESKTOP"))
+ (else (error:wrong-type-argument object "a GdkWindow type hint" operator))))
+
(define (gtk-window-get-default-size window receiver)
(guarantee-gtk-window window 'gtk-window-get-default-size)
(let* ((*width (malloc (fix:* 2 (C-sizeof "gint")) 'gint))
gtk-window-set-geometry-hints
gtk-window-set-title
gtk-window-set-opacity
+ gtk-window-set-type-hint
gtk-window-set-default-size gtk-window-get-default-size
gtk-window-parse-geometry
gtk-window-resize